af_alg: Improve comments.
[gnulib.git] / ChangeLog
blob7f1f5b032f35fd174a04e53d86616729763b58a0
1 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3         af_alg: Improve comments.
4         * lib/af_alg.h: Use imperatives and tighten up wording.
6 2018-05-05  Bruno Haible  <bruno@clisp.org>
8         af_alg: Improve comments.
9         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
11 2018-05-05  Bruno Haible  <bruno@clisp.org>
13         af_alg: New module.
14         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16         * lib/md5.c: Include "af_alg.h" unconditionally.
17         (md5_stream): Invoke afalg_stream unconditionally.
18         * lib/sha1.c: Include "af_alg.h" unconditionally.
19         (sha1_stream): Invoke afalg_stream unconditionally.
20         * lib/sha256.c: Include "af_alg.h" unconditionally.
21         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
22         * lib/sha512.c: Include "af_alg.h" unconditionally.
23         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
24         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
25         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
26         * modules/crypto/af_alg: New file.
27         * modules/crypto/md5 (Files): Remove files that are now in the
28         'crypto/af_alg' module.
29         (Depends-on): Add crypto/af_alg.
30         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
31         (Makefile.am): Don't mention af_alg.c here.
32         * modules/crypto/sha1 (Files): Remove files that are now in the
33         'crypto/af_alg' module.
34         (Depends-on): Add crypto/af_alg.
35         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
36         (Makefile.am): Don't mention af_alg.c here.
37         * modules/crypto/sha256 (Files): Remove files that are now in the
38         'crypto/af_alg' module.
39         (Depends-on): Add crypto/af_alg.
40         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
41         (Makefile.am): Don't mention af_alg.c here.
42         * modules/crypto/sha512 (Files): Remove files that are now in the
43         'crypto/af_alg' module.
44         (Depends-on): Add crypto/af_alg.
45         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
46         (Makefile.am): Don't mention af_alg.c here.
48 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50         crypto tests: pacify GCC
51         * tests/test-digest.h (test_digest_on_files):
52         Don’t assume digest size fits in int (!).
54         af_alg: minor style improvements
55         * lib/af_alg.c (afalg_stream): Prefer C99 style
56         decl-after-statement, since we’re already assuming C99.  Clarify
57         by strengthening the bind test and omit unnecessary assignment.
59 2018-05-05  Bruno Haible  <bruno@clisp.org>
61         af_alg: Fix bug on empty files.
62         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
63         stream is empty.
65 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67         sys-limits.h: new file for crypto and safe I/O
68         * lib/af_alg.c: Include sys-limits.h.
69         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
70         (afalg_stream): Also reject negative sizes for sendfile; they
71         should not happen and the code is a bit cleaner and faster this way.
72         * lib/safe-read.c: Include sys-limits.h.
73         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
74         * lib/sys-limits.h: New file, with values and commentary derived
75         from the old safe-read.c and from GNU Emacs sysdep.c.
76         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
77         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
78         Add lib/sys-limits.h to Files section.
80 2018-05-05  Bruno Haible  <bruno@clisp.org>
82         af_alg: Improve function signature.
83         * lib/af_alg.h (afalg_stream): Swap second and third argument.
84         * lib/af_alg.c (afalg_stream): Likewise.
85         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
87 2018-05-05  Bruno Haible  <bruno@clisp.org>
89         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
90         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
91         * modules/crypto/sha1 (Depends-on): Likewise.
92         * modules/crypto/sha256 (Depends-on): Likewise.
93         * modules/crypto/sha512 (Depends-on): Likewise.
95 2018-05-05  Bruno Haible  <bruno@clisp.org>
97         crypto/{md5,sha1,sha256,sha512}: Fix module description.
98         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
99         * modules/crypto/sha1 (Depends-on): Likewise.
100         * modules/crypto/sha256 (Depends-on): Likewise.
101         * modules/crypto/sha512 (Depends-on): Likewise.
103 2018-05-05  Bruno Haible  <bruno@clisp.org>
105         af_alg: Add documentation.
106         * lib/af_alg.h: Add comments.
108 2018-05-05  Bruno Haible  <bruno@clisp.org>
110         sha512: Add tests.
111         * tests/test-sha512.c: New file.
112         * modules/crypto/sha512-tests: New file.
114 2018-05-05  Bruno Haible  <bruno@clisp.org>
116         sha256: Add tests.
117         * tests/test-sha256.c: New file.
118         * modules/crypto/sha256-tests: New file.
120 2018-05-05  Bruno Haible  <bruno@clisp.org>
122         sha1 tests: Add test for sha1_stream.
123         * tests/test-sha1.c: Include test-digest.h.
124         (main): Invoke test_digest_on_files on 'sha1_stream'.
125         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
127 2018-05-05  Bruno Haible  <bruno@clisp.org>
129         md5 tests: Add test for md5_stream.
130         * tests/test-digest.h: New file.
131         * tests/test-md5.c: Include test-digest.h.
132         (main): Invoke test_digest_on_files on 'md5_stream'.
133         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
135 2018-04-28  Matteo Croce  <mcroce@redhat.com>
137         md5sum: Use AF_ALG when available.
138         * lib/md5.c: Include af_alg.h.
139         (md5_stream): Use afalg_stream when available.
140         * modules/crypto/md5 (Files): Add the af_alg files.
141         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
142         (Makefile.am): Add af_alg.c.
144 2018-04-28  Matteo Croce  <mcroce@redhat.com>
146         sha512sum: Use AF_ALG when available.
147         * lib/sha512.c: Include af_alg.h.
148         (sha512_stream, sha384_stream): Use afalg_stream when available.
149         * modules/crypto/sha512 (Files): Add the af_alg files.
150         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
151         (Makefile.am): Add af_alg.c.
153 2018-04-28  Matteo Croce  <mcroce@redhat.com>
155         sha256sum: Use AF_ALG when available.
156         * lib/sha256.c: Include af_alg.h.
157         (sha256_stream, sha224_stream): Use afalg_stream when available.
158         * modules/crypto/sha256 (Files): Add the af_alg files.
159         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
160         (Makefile.am): Add af_alg.c.
162 2018-04-28  Matteo Croce  <mcroce@redhat.com>
164         sha1sum: Use AF_ALG when available.
165         * lib/af_alg.h: New file.
166         * lib/af_alg.c: New file.
167         * lib/sha1.c: Include af_alg.h.
168         (sha1_stream): Use afalg_stream when available.
169         * m4/linux-if-alg.m4: New file.
170         * modules/crypto/sha1 (Files): Add the new files.
171         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
172         (Makefile.am): Add af_alg.c.
174 2018-05-05  Bruno Haible  <bruno@clisp.org>
176         all: Replace more http URLs by https URLs.
177         * lib/localename.c: Use https: URL.
178         * lib/timespec.h: Likewise.
180 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
182         maint: port more modules to GCC 8
183         * lib/dirname.h (base_name):
184         * lib/exclude.h (new_exclude):
185         * lib/xstrndup.h (xstrndup):
186         Add malloc attribute.
187         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
188         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
189         This pacifies GCC 8.
190         * m4/gnulib-common.m4 (gl_COMMON_BODY):
191         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
193 2018-05-03  Bruno Haible  <bruno@clisp.org>
195         Simplify code. Drop support for Borland C++ on Windows.
196         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
197         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
198         'defined _WIN32'.
199         * lib/canonicalize-lgpl.c: Likewise.
200         * lib/classpath.c: Likewise.
201         * lib/clean-temp.c: Likewise.
202         * lib/csharpexec.c: Likewise.
203         * lib/ctime.c: Likewise.
204         * lib/dosname.h: Likewise.
205         * lib/dup2.c: Likewise.
206         * lib/errno.in.h: Likewise.
207         * lib/error.c: Likewise.
208         * lib/euidaccess.c: Likewise.
209         * lib/execute.c: Likewise.
210         * lib/fcntl.in.h: Likewise.
211         * lib/fcntl.c: Likewise.
212         * lib/filename.h: Likewise.
213         * lib/findprog.c: Likewise.
214         * lib/flock.c: Likewise.
215         * lib/fopen.c: Likewise.
216         * lib/freopen.c: Likewise.
217         * lib/fstat.c: Likewise.
218         * lib/fsync.c: Likewise.
219         * lib/gc-gnulib.c: Likewise.
220         * lib/get-rusage-data.c: Likewise.
221         * lib/getaddrinfo.c: Likewise.
222         * lib/getdelim.c: Likewise.
223         * lib/getdtablesize.c: Likewise.
224         * lib/gethostname.c: Likewise.
225         * lib/getlogin.c: Likewise.
226         * lib/getlogin_r.c: Likewise.
227         * lib/getopt.c: Likewise.
228         * lib/getpagesize.c: Likewise.
229         * lib/getpass.c: Likewise.
230         * lib/getrusage.c: Likewise.
231         * lib/gettimeofday.c: Likewise.
232         * lib/glob.c: Likewise.
233         * lib/inttypes.in.h: Likewise.
234         * lib/isapipe.c: Likewise.
235         * lib/javaexec.c: Likewise.
236         * lib/link.c: Likewise.
237         * lib/localcharset.c: Likewise.
238         * lib/localename.h: Likewise.
239         * lib/localename.c: Likewise.
240         * lib/localtime.c: Likewise.
241         * lib/lseek.c: Likewise.
242         * lib/mbsinit.c: Likewise.
243         * lib/mkdir.c: Likewise.
244         * lib/msvc-nothrow.h: Likewise.
245         * lib/nanosleep.c: Likewise.
246         * lib/nl_langinfo.c: Likewise.
247         * lib/nonblocking.c: Likewise.
248         * lib/nproc.c: Likewise.
249         * lib/open.c: Likewise.
250         * lib/openpty.c: Likewise.
251         * lib/pathmax.h: Likewise.
252         * lib/pipe-filter-aux.c: Likewise.
253         * lib/pipe-filter-gi.c: Likewise.
254         * lib/pipe-filter-ii.c: Likewise.
255         * lib/pipe.c: Likewise.
256         * lib/pipe2.c: Likewise.
257         * lib/poll.c: Likewise.
258         * lib/popen.c: Likewise.
259         * lib/posix_openpt.c: Likewise.
260         * lib/printf-parse.c: Likewise.
261         * lib/progreloc.c: Likewise.
262         * lib/putenv.c: Likewise.
263         * lib/read.c: Likewise.
264         * lib/relocatable.c: Likewise.
265         * lib/rename.c: Likewise.
266         * lib/same-inode.h: Likewise.
267         * lib/secure_getenv.c: Likewise.
268         * lib/select.c: Likewise.
269         * lib/sethostname.c: Likewise.
270         * lib/setlocale.c: Likewise.
271         * lib/sigaction.c: Likewise.
272         * lib/sigprocmask.c: Likewise.
273         * lib/sleep.c: Likewise.
274         * lib/spawn-pipe.h: Likewise.
275         * lib/spawn-pipe.c: Likewise.
276         * lib/spawni.c: Likewise.
277         * lib/stat-time.h: Likewise.
278         * lib/stat-w32.c: Likewise.
279         * lib/stat.c: Likewise.
280         * lib/stdio.in.h: Likewise.
281         * lib/stdio-impl.h: Likewise.
282         * lib/stdio-read.c: Likewise.
283         * lib/stdio-write.c: Likewise.
284         * lib/stdlib.in.h: Likewise.
285         * lib/strerror_r.c: Likewise.
286         * lib/strftime-fixes.c: Likewise.
287         * lib/sys_stat.in.h: Likewise.
288         * lib/sys_types.in.h: Likewise.
289         * lib/sys_wait.in.h : Likewise.
290         * lib/system-quote.h: Likewise.
291         * lib/system-quote.c: Likewise.
292         * lib/tmpdir.c: Likewise.
293         * lib/tzset.c: Likewise.
294         * lib/uname.c: Likewise.
295         * lib/unistd.in.h: Likewise.
296         * lib/utime.in.h: Likewise.
297         * lib/utime.c: Likewise.
298         * lib/utimecmp.c: Likewise.
299         * lib/utimens.c: Likewise.
300         * lib/vasnprintf.c: Likewise.
301         * lib/vma-iter.h: Likewise.
302         * lib/vma-iter.c: Likewise.
303         * lib/wait-process.c: Likewise.
304         * lib/wcsftime.c: Likewise.
305         * lib/wctype.in.h: Likewise.
306         * lib/write.c: Likewise.
307         * tests/nap.h: Likewise.
308         * tests/test-cloexec.c: Likewise.
309         * tests/test-dup-safer.c: Likewise.
310         * tests/test-dup2.c: Likewise.
311         * tests/test-dup3.c: Likewise.
312         * tests/test-fcntl.c: Likewise.
313         * tests/test-get-rusage-data.c: Likewise.
314         * tests/test-getaddrinfo.c: Likewise.
315         * tests/test-getlogin.h: Likewise.
316         * tests/test-isatty.c: Likewise.
317         * tests/test-localename.c: Likewise.
318         * tests/test-mbrtowc-w32.c: Likewise.
319         * tests/test-nonblocking.c: Likewise.
320         * tests/test-nonblocking-pipe-main.c: Likewise.
321         * tests/test-nonblocking-socket-main.c: Likewise.
322         * tests/test-nonblocking-socket.h: Likewise.
323         * tests/test-pipe.c: Likewise.
324         * tests/test-pipe2.c: Likewise.
325         * tests/test-poll.c: Likewise.
326         * tests/test-pthread_sigmask1.c: Likewise.
327         * tests/test-select.h: Likewise.
328         * tests/test-sethostname2.c: Likewise.
329         * tests/test-sigprocmask.c: Likewise.
330         * tests/test-spawn-pipe-child.c: Likewise.
331         * tests/test-stat-time.c: Likewise.
332         * tests/test-system-quote-main.c: Likewise.
333         * tests/test-utimens-common.h: Likewise.
334         * tests/test-wcrtomb-w32.c: Likewise.
335         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
336         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
337         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
338         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
339         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
340         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
341         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
342         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
343         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
344         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
345         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
346         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
347         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
348         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
349         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
350         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
352 2018-05-02  Bruno Haible  <bruno@clisp.org>
354         localename: Fix test failures on mingw.
355         * lib/localename.c (gl_locale_name_thread): Remove code specific to
356         native Windows.
357         (gl_locale_name_posix): Move code specific to native Windows here.
358         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
359         Accept result without charset suffix, as it appears on mingw.
361 2018-04-28  Paul Smith  <psmith@gnu.org>
363         bootstrap: Avoid gnulib operations if not needed
364         * build-aux/bootstrap: Remove unused variable gnulib_mk.
365         Set $gnulib_extra_files early so it can be overridden in .conf.
366         Remove redundant --import flag from $gnulib_tool_options.
367         Set $use_gnulib to false if no gnulib modules or files are needed.
368         If $use_gnulib is false, don't do anything related to gnulib.
369         A lot of this is just whitespace (indentation) changes.
371 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
373         manywarnings: port to GCC 8.0
374         * build-aux/gcc-warning.spec: Add -Wcatch-value,
375         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
376         fact that the GCC help message now mentions operands for
377         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
378         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
379         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
380         and -Wunused-const-variable.
381         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
382         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
383         -Wmissing-attributes, -Wmultistatement-macros,
384         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
385         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
387 2018-04-24  Bruno Haible  <bruno@clisp.org>
389         sys_socket: Make SO_REUSEPORT available across platforms.
390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
391         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
392         * doc/posix-headers/sys_socket.texi: Mention the issue.
393         * tests/test-poll.c (SO_REUSEPORT): Remove.
394         * tests/test-select.h: Include <sys/socket.h>.
395         (SO_REUSEPORT): Remove.
396         * modules/select-tests (Depends-on): Add 'sys_socket'.
398 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
400         localcharset: short-circuit the search for an alias on a Mac
401         * lib/localcharset.c (get_charset_aliases): Add a tautological
402         UTF-8 entry to speed up the search for this case.
403         Most machines default to a UTF-8 locale nowadays, so begin the
404         list of aliases with a dummy UTF-8 entry so it will be found
405         immediately and a time-consuming search through the rest of
406         the list is avoided.
408 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
410         fts: add comment
411         * lib/fts.c (fts_build): Explain why ==, not >.
412         See remark by Bernhard Voelker in:
413         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
415         fts: fix bug in find across filesystems
416         This fixes a bug I introduced last summer.
417         Problem reported by Kamil Dudka in:
418         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
419         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
420         (leaf_optimization):
421         New arg for file descriptor.  All callers changed.
422         (fts_build): Check for whether inodes should be sorted
423         before closing the directory.
425 2018-04-07  Bruno Haible  <bruno@clisp.org>
427         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
428         Reported by Genki Sky <sky@genki.is>.
429         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
430         version 0.9.10 or newer.
431         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
432         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
433         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
434         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
435         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
437 2018-04-07  Bruno Haible  <bruno@clisp.org>
439         execute: Update comment.
440         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
442 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
444         fts: treat CIFS like NFS
445         Problem reported by Kamil Dudka in:
446         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
447         * lib/fts.c (S_MAGIC_CIFS): New macro.
448         (dirent_inode_sort_may_be_useful, leaf_optimization):
449         Treat CIFS like NFS.
451 2018-03-28  Bruno Haible  <bruno@clisp.org>
453         c-stack: Fix possible build failure on some platforms.
454         * lib/c-stack.c (die): Define whenever this function is referenced.
456 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
458         time_rz: fix workaround for Mac OS X 10.6 infloop
459         Problems reported by Charles A. Roelli (Bug#27736#117).
460         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
461         Also, discard output, which clutters the 'configure' log.
463 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
465         havelib: port to Solaris 10 /bin/sh
466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
467         instead of '! test EXPR'.
469 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
471         time_rz: work around Mac OS X 10.6 infloop
472         * doc/posix-functions/localtime.texi:
473         * doc/posix-functions/localtime_r.texi: Mention the bug.
474         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
475         better to fix localtime and localtime_r instead, but that would be
476         more work and is not needed to fix the Emacs problem.
477         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
479 2018-03-24  Jim Meyering  <meyering@fb.com>
481         test-version-etc.sh: don't use diff directly: use init.sh's compare
482         We'd rather not sacrifice readable "diff -u" output even for
483         "diff -c" output (not supported by busybox) or for even less
484         readable ed-style "diff" output.  So use init.sh's compare function
485         * tests/test-version-etc.sh: Source init.sh and add "." to path.
486         Remove "./" from invocation of test-version-etc, so we use path.
487         And s/diff/compare/.
488         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
489         to get init.sh.
490         Prompted by Eric Blake's comments in
491         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
493 2018-03-24  Bruno Haible  <bruno@clisp.org>
495         javacomp-script, javacomp: Add support for Java 10.
496         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
497         target-version 10.
498         * lib/javaversion.h: Update comments.
499         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
500         source_version_index, get_goodcode_snippet, get_failcode_snippet,
501         TARGET_VERSION_BOUND, target_version_index,
502         corresponding_classfile_version): Accept source_version 10 and
503         target_version 10.
504         * lib/javacomp.h: Update comments accordingly.
506 2018-03-24  Bruno Haible  <bruno@clisp.org>
508         javacomp-script, javacomp: Update comments.
509         * m4/javacomp.m4: Update comments regarding gcj.
510         * lib/javacomp.h: Likewise.
512 2018-03-24  Bruno Haible  <bruno@clisp.org>
514         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
515         * lib/javaversion.h: Update comments.
516         * lib/javacomp.h: Likewise.
517         * lib/javacomp.c (default_target_version, source_version_index,
518         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
519         "1.9".
520         (TARGET_VERSION_BOUND): Bump to 9.
521         (target_version_index, corresponding_classfile_version): Recognize "9"
522         instead of "1.9".
523         (get_source_version_for_javac): New function.
524         (is_envjavac_nongcj_usable, is_javac_usable): Add
525         source_version_for_javac argument.
526         (compile_java_class): Determine and pass source_version_for_javac.
527         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
528         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
529         appropriate.
531 2018-03-23  Jim Meyering  <meyering@fb.com>
533         test-version-etc.sh: port to diff without -c
534         * tests/test-version-etc.sh: Don't use diff's -c option.
535         This caused spurious test failure on Alpine Linux, which
536         uses busybox's diff. Reported by Assaf Gordon in
537         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
539 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
541         c-stack: port to recent GCC build
542         Problem reported by The Fireplace (Bug#30913).
543         * lib/c-stack.c (die): Define only if used.
545 2018-03-20  Bruno Haible  <bruno@clisp.org>
547         euidaccess: Port to native Windows.
548         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
549         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
551 2018-03-19  Bruno Haible  <bruno@clisp.org>
553         javacomp: Add support for Java 7, 8, 9.
554         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
555         source_version_index, get_goodcode_snippet, get_failcode_snippet,
556         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
557         and target_version 1,7, 1.8, 1.9.
558         * lib/javacomp.h: Update comments accordingly.
560 2018-03-19  Bruno Haible  <bruno@clisp.org>
562         javacomp-script: Add support for Java 9.
563         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
564         target-version 1.9.
566 2018-03-16  Bruno Haible  <bruno@clisp.org>
568         glob: Don't compile replacements on recent glibc systems.
569         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
570         REPLACE_GLOB is 0, include the system's <glob.h> and use
571         _GL_CXXALIAS_SYS.
572         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
573         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
574         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
575         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
576         Remove snippet/warn-on-use.
577         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
578         (Makefile.am): Create glob.h always. Update list of substitutions in
579         glob.h. Don't depend on $(WARN_ON_USE_H).
581 2018-03-16  Bruno Haible  <bruno@clisp.org>
583         glob: Fix link error on native Windows.
584         * modules/glob (Depends-on): Add 'lstat'.
586 2018-03-15  Bruno Haible  <bruno@clisp.org>
588         glob: Fix compilation error in C++ mode.
589         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
591 2018-03-15  Bruno Haible  <bruno@clisp.org>
593         host-cpu-c-abi: Support for RISC-V CPU.
594         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
595         riscv32 and riscv64 ABIs.
596         References:
597         https://github.com/riscv/riscv-toolchain-conventions
598         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
599         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
601 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
603         fflush: be more paranoid about libio.h change
604         Suggested by Eli Zaretskii in:
605         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
606         * lib/fbufmode.c (fbufmode):
607         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
608         (disable_seek_optimization, rpl_fflush):
609         * lib/fpending.c (__fpending):
610         * lib/fpurge.c (fpurge):
611         * lib/freadable.c (freadable):
612         * lib/freadahead.c (freadahead):
613         * lib/freading.c (freading):
614         * lib/freadptr.c (freadptr):
615         * lib/freadseek.c (freadptrinc):
616         * lib/fseeko.c (fseeko):
617         * lib/fseterr.c (fseterr):
618         * lib/fwritable.c (fwritable):
619         * lib/fwriting.c (fwriting):
620         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
622 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
624         maint: write-file-hooks -> before-save-hook
625         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
626         it's time to use the recommended replacement.
627         Problem reported by Glenn Morris in:
628         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
629         * build-aux/announce-gen, build-aux/bootstrap:
630         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
631         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
632         * build-aux/gnu-web-doc-update, build-aux/gnupload:
633         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
634         * build-aux/update-copyright, build-aux/useless-if-before-free:
635         * build-aux/vc-list-files:
636         Update hook usage for files where Gnulib is the canonical source.
638 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
640         binary-io: pacify gcc -Wunused-parameter
641         Problem reported by Reuben Thomas in:
642         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
643         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
644         Use _GL_UNUSED where appropriate.
646         fflush: adjust to glibc 2.28 libio.h removal
647         Problem reported by Daniel P. Berrangé in:
648         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
649         * lib/fbufmode.c (fbufmode):
650         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
651         (disable_seek_optimization, rpl_fflush):
652         * lib/fpending.c (__fpending):
653         * lib/fpurge.c (fpurge):
654         * lib/freadable.c (freadable):
655         * lib/freadahead.c (freadahead):
656         * lib/freading.c (freading):
657         * lib/freadptr.c (freadptr):
658         * lib/freadseek.c (freadptrinc):
659         * lib/fseeko.c (fseeko):
660         * lib/fseterr.c (fseterr):
661         * lib/fwritable.c (fwritable):
662         * lib/fwriting.c (fwriting):
663         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
664         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
665         Define if not already defined.
667 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
669         environ: fix link error on 32-bit Cygwin
670         Problem reported for GNU Emacs by Ken Brown in:
671         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
672         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
674 2018-02-24  Bruno Haible  <bruno@clisp.org>
676         mbrtowc tests: Fix regression on glibc.
677         Reported by Bernhard Voelker.
678         * tests/test-mbrtowc.c (main): Fix expected value of wc.
680 2018-02-24  Bruno Haible  <bruno@clisp.org>
682         striconveha, uniconv/*: Avoid test failures on musl libc.
683         * tests/iconvsupport.c: New file.
684         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
685         does not support the ISO-2022-JP-2 encoding.
686         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
687         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
688         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
689         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
690         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
691         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
692         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
693         (Makefile.am): Link test-striconveha with iconvsupport.o.
694         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
695         tests/iconvsupport.c.
696         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
697         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
698         tests/iconvsupport.c.
699         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
700         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
701         tests/iconvsupport.c.
702         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
703         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
704         tests/iconvsupport.c.
705         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
706         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
707         tests/iconvsupport.c.
708         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
709         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
710         tests/iconvsupport.c.
711         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
713 2018-02-24  Bruno Haible  <bruno@clisp.org>
715         localename: Add support for musl libc.
716         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
717         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
718         on Linux platforms which define NL_LOCALE_NAME.
720 2018-02-24  Bruno Haible  <bruno@clisp.org>
722         mbrtowc tests: Don't make assumptions about the charset the C locale.
723         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
724         particular mapping in the C locale.
726 2018-02-24  Bruno Haible  <bruno@clisp.org>
728         ptsname_r: Don't expect that this function sets errno.
729         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
730         from ptsname_r().
731         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
733 2018-02-23  Bruno Haible  <bruno@clisp.org>
735         xmalloca: pacify gcc -Wbad-function-cast
736         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
738 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
740         nl_langinfo: pacify gcc -Wunused-function
741         * lib/nl_langinfo.c (ctype_codeset): Do not define if
742         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
743         this case.  Without this change, I got a diagnostic when building
744         coreutils on Fedora 27 with gcc 7.3.1 20180130.
746         same: pacify gcc -Wunused-variable
747         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
748         Omit unused variable.
750         malloca: pacify gcc -Wbad-function-cast
751         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
752         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
753         To pacify GCC, I had to cast alloca’s result to some type other
754         than void * before casting that to uintptr_t.
756 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
758         utimecmp: new function utimecmpat
759         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
760         Do not include utimens.h.
761         (utimecmpat): New function, generalizing utimecmp.
762         (utimecmp): Now a thin layer around utimecmpat.
763         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
764         utimensat instead of on lstat and utimens.
766         same: new function same_nameat
767         * lib/same.c: Include fcntl.h.
768         * lib/same.c (same_nameat): New function, generalizing same_name.
769         (same_name): Now a thin layer around same_nameat.
770         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
771         * modules/same (Depends-on): Depend on fstatat, openat.
773 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
775         warnings: Add support for Objective C.
776         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
777         macro.
779 2018-02-17  Bruno Haible  <bruno@clisp.org>
781         lock: Fix test-once1 crash on FreeBSD11.
782         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
783         'pthread_create', not 'pthread_cancel'.
785 2018-02-17  Bruno Haible  <bruno@clisp.org>
787         lock: Add test of gl_once.
788         * tests/test-once.c: New file.
789         * modules/lock-tests (Files): Add it.
790         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
792 2018-02-17  Bruno Haible  <bruno@clisp.org>
794         thread: Fix compilation error on IRIX.
795         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
796         needed; include it outside the C++ extern "C" {} block.
797         * doc/posix-headers/pthread.texi: Mention the problem with
798         pthread_atfork on IRIX.
800 2018-02-04  Bruno Haible  <bruno@clisp.org>
802         nl_langinfo: Override the system's nl_langinfo() when needed.
803         Reported by Jim Meyering.
804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
805         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
807 2018-02-04  Bruno Haible  <bruno@clisp.org>
809         signal-h, monetary, strings: Fix build failure in some cases.
810         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
811         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
812         as delimiter in sed command, not '|'.
813         * modules/monetary (Makefile.am): Likewise.
814         * modules/strings (Makefile.am): Likewise.
816 2018-02-03  Jim Meyering  <meyering@fb.com>
818         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
819         * top/maint.mk (sc_file_system): Don't complain about
820         "/proc/filesystems".
822 2018-02-03  Bruno Haible  <bruno@clisp.org>
824         stdlib: Fix compilation error on OpenIndiana.
825         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
826         <sys/time.h>.
827         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
828         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
830 2018-02-03  Bruno Haible  <bruno@clisp.org>
832         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
833         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
834         and use $EGREP instead of 'grep -E'.
835         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
836         'grep -E'.
838 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
840         malloca: Add a compile-time verification.
841         * lib/malloca.c (small_t): Verify that it is wide enough.
842         * modules/malloca (Depends-on): Add verify.
844 2018-02-02  Bruno Haible  <bruno@clisp.org>
846         malloca: Add an argument check.
847         Suggested by Paul Eggert.
848         * lib/malloca.c (freea): Check against an invalid argument.
850 2018-02-02  Bruno Haible  <bruno@clisp.org>
852         localename: Add support for OpenIndiana.
853         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
854         Solaris 11 variants with uselocale() but without getlocalename_l().
856 2018-02-02  Bruno Haible  <bruno@clisp.org>
858         malloca, xmalloca: Make multithread-safe.
859         Reported by Florian Weimer <fweimer@redhat.com>.
860         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
861         * lib/malloca.h (malloca): In the stack allocation case, return a
862         pointer that is a multiple of 2 * sa_alignment_max.
863         (sa_increment): Remove enum item.
864         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
865         a pointer that is a multiple of 2 * sa_alignment_max.
866         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
867         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
868         HASH_TABLE_SIZE, mmalloca_results): Remove.
869         (small_t): New type.
870         (mmalloca, free): Rewritten.
871         * lib/malloca.valgrind: Remove file.
872         * modules/malloca (Files): Remove it.
873         (Depends-on): Remove verify.
875 2018-01-31  Bruno Haible  <bruno@clisp.org>
877         environ: Fix link error on 64-bit Cygwin.
878         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
879         __declspec(dllimport) attribute.
880         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
882 2018-01-30  Bruno Haible  <bruno@clisp.org>
884         get-rusage-data: Add support for Minix 3.
885         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
887 2018-01-30  Bruno Haible  <bruno@clisp.org>
889         vma-iter: Add support for Minix 3.
890         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
891         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
893 2018-01-27  Bruno Haible  <bruno@clisp.org>
895         Fix malfunction of socket functions on HP-UX in 64-bit mode.
896         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
897         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
898         _HPUX_ALT_XOPEN_SOCKET_API.
899         * modules/accept (Depends-on): Add 'extensions'.
900         * modules/getpeername (Depends-on): Likewise.
901         * modules/getsockname (Depends-on): Likewise.
902         * modules/getsockopt (Depends-on): Likewise.
903         * modules/recvfrom (Depends-on): Likewise.
904         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
905         * doc/posix-functions/getpeername.texi: Likewise.
906         * doc/posix-functions/getsockname.texi: Likewise.
907         * doc/posix-functions/getsockopt.texi: Likewise.
908         * doc/posix-functions/recvfrom.texi: Likewise.
910 2018-01-27  Bruno Haible  <bruno@clisp.org>
912         getsockname tests: More tests.
913         * tests/test-getsockname.c (open_server_socket): New function, mostly
914         copied from test-poll.c.
915         (main): Check that getsockname fills in addr.
916         * modules/getsockname-tests (Depends-on): Add the necessary
917         dependencies.
918         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
920 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
922         manywarnings: fix maintainer comment
923         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
924         it does not mistakenly think that ‘-1)’ is an option.
926 2018-01-26  Bruno Haible  <bruno@clisp.org>
928         langinfo: Fix last commit.
929         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
930         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
932 2018-01-24  Bruno Haible  <bruno@clisp.org>
934         langinfo, nl_langinfo: Add support for alternative month names.
935         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
936         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
937         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
938         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
939         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
940         * doc/posix-functions/nl_langinfo.texi: Likewise.
942 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
944         Merge strftime.c changes from glibc
945         This incorporates:
946         2017-11-14 [BZ #10871] Implement alternative month names
947         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
948         2017-06-20 Use locale_t, not __locale_t, throughout glibc
949         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
950         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
951         Use locale_t, not __locale_t.
952         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
953         (__strftime_internal): Add support for alternate months.
955 2018-01-23  Bruno Haible  <bruno@clisp.org>
957         doc: Mention another prerequisite for using Gnulib.
958         Reported at <https://stackoverflow.com/questions/48378214/>.
959         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
960         AC_CONFIG_HEADERS.
962 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
964         build: GuixSD doesn't have /bin/bash
965         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
967 2018-01-21  Bruno Haible  <bruno@clisp.org>
969         Avoid test failures on Microsoft Windows Subsystem for Linux.
970         * tests/test-fcntl.c (main): Allow a different errno.
971         * tests/test-rename.h (test_rename): Likewise.
972         * tests/test-renameat.c (main): Likewise.
973         * tests/test-renameat2.c (main): Likewise.
975 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
977         filenamecat: make base a suffix of result
978         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
979         (mfile_name_concat): Always make BASE a suffix of the result, as
980         cp expects this.  To implement this, separate with '.' instead of
981         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
982         * tests/test-filenamecat.c (main): Adjust tests to match
983         current behavior.  Check that BASE_IN_RESULT points to
984         a copy of BASE and is a suffix of the resultk, and that DIR
985         is a prefix of the result that is no longer than the prefix
986         indicated by BASE_IN_RESULT.
988 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
990         update-copyright: Handle use of ©
991         * build-aux/update-copyright ($circle_c_re): Update regex to
992         handle use of © in headers.
994 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
996         Fix -Wundef warning in user-included header lib/cdefs.h.
997         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
999 2018-01-04  Bruno Haible  <bruno@clisp.org>
1001         pthread_sigmask: Avoid compilation error on mingw.
1002         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1003         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
1004         macro.
1006 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1008         test-framework-sh: ‘ps -ef’, not ‘ps ef’
1009         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
1010         Suggested by Bob Proulx (Bug#29968).
1011         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
1013 2018-01-02  Eric Blake  <eblake@redhat.com>
1015         stat-time: silence -Wunused-parameter regression
1016         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1017         Prefer attribute over cast-to-void.
1018         (stat_time_normalize): Mark st as potentially unused.
1020 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1022         test-framework-sh: avoid netstat
1023         Problem reported by Kristýna Streitová (Bug#29947).
1024         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
1025         deprecated on SuSE and it's not that important anyway.
1027 2018-01-01  Jim Meyering  <meyering@fb.com>
1029         update-copyright: add code to handle more special cases
1030         After running "make update-copyright" this year, five files
1031         required additional manual changes.  Automate those adjustments
1032         for next year.
1033         * Makefile (_year_and_prev): Define.
1034         (update-copyright): Add perl commands to induce this year's post-
1035         update-copyright adjustments.
1037 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1039         version-etc: new year
1040         * build-aux/gendocs.sh (version):
1041         * doc/gendocs_template:
1042         * doc/gendocs_template_min:
1043         * doc/gnulib.texi:
1044         * lib/version-etc.c (COPYRIGHT_YEAR):
1045         Update copyright dates by hand in templates and the like.
1047         maint: fix 'make update-copyright'
1048         * Makefile (update-copyright): Adjust to 2016-11-23 change
1049         to config/srclist-update, which changed the format of srclist.txt.
1051 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1053         chdir-safer: remove this module
1054         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
1055         * NEWS: Document removal.
1056         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
1057         * modules/chdir-safer: Remove these files.
1059 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
1061         Add cross-compilation results for GNU/Hurd.
1062         * m4/calloc.m4: Add GNU/Hurd guess.
1063         * m4/cbrtl.m4: Likewise.
1064         * m4/ceil.m4: Likewise.
1065         * m4/ceilf.m4: Likewise.
1066         * m4/ceill.m4: Likewise.
1067         * m4/chown.m4: Likewise.
1068         * m4/duplocale.m4: Likewise.
1069         * m4/exp2l.m4: Likewise.
1070         * m4/expm1.m4: Likewise.
1071         * m4/fchdir.m4: Likewise.
1072         * m4/floor.m4: Likewise.
1073         * m4/floorf.m4: Likewise.
1074         * m4/fmod.m4: Likewise.
1075         * m4/fmodf.m4: Likewise.
1076         * m4/fmodl.m4: Likewise.
1077         * m4/getcwd.m4: Likewise.
1078         * m4/getgroups.m4: Likewise.
1079         * m4/gettimeofday.m4: Likewise.
1080         * m4/hypot.m4: Likewise.
1081         * m4/hypotf.m4: Likewise.
1082         * m4/hypotl.m4: Likewise.
1083         * m4/link-follow.m4: Likewise.
1084         * m4/link.m4: Likewise.
1085         * m4/linkat.m4: Likewise.
1086         * m4/log.m4: Likewise.
1087         * m4/log10.m4: Likewise.
1088         * m4/log10f.m4: Likewise.
1089         * m4/log1p.m4: Likewise.
1090         * m4/log1pf.m4: Likewise.
1091         * m4/log1pl.m4: Likewise.
1092         * m4/log2.m4: Likewise.
1093         * m4/log2f.m4: Likewise.
1094         * m4/logf.m4: Likewise.
1095         * m4/lstat.m4: Likewise.
1096         * m4/malloc.m4: Likewise.
1097         * m4/mbrlen.m4: Likewise.
1098         * m4/mbrtowc.m4: Likewise.
1099         * m4/mkdir.m4: Likewise.
1100         * m4/mkfifo.m4: Likewise.
1101         * m4/mknod.m4: Likewise.
1102         * m4/mkstemp.m4: Likewise.
1103         * m4/modf.m4: Likewise.
1104         * m4/modff.m4: Likewise.
1105         * m4/modfl.m4: Likewise.
1106         * m4/printf.m4: Likewise.
1107         * m4/pselect.m4: Likewise.
1108         * m4/ptsname.m4: Likewise.
1109         * m4/putenv.m4: Likewise.
1110         * m4/readlink.m4: Likewise.
1111         * m4/realloc.m4: Likewise.
1112         * m4/remainder.m4: Likewise.
1113         * m4/remainderf.m4: Likewise.
1114         * m4/remainderl.m4: Likewise.
1115         * m4/rmdir.m4: Likewise.
1116         * m4/round.m4: Likewise.
1117         * m4/roundf.m4: Likewise.
1118         * m4/roundl.m4: Likewise.
1119         * m4/select.m4: Likewise.
1120         * m4/setenv.m4: Likewise.
1121         * m4/signbit.m4: Likewise.
1122         * m4/sleep.m4: Likewise.
1123         * m4/stat.m4: Likewise.
1124         * m4/strerror.m4: Likewise.
1125         * m4/strtok_r.m4: Likewise.
1126         * m4/symlink.m4: Likewise.
1127         * m4/symlinkat.m4: Likewise.
1128         * m4/trunc.m4: Likewise.
1129         * m4/truncf.m4: Likewise.
1130         * m4/truncl.m4: Likewise.
1131         * m4/tzset.m4: Likewise.
1132         * m4/ungetc.m4: Likewise.
1133         * m4/usleep.m4: Likewise.
1134         * m4/wcwidth.m4: Likewise.
1136 2017-12-28  Bruno Haible  <bruno@clisp.org>
1138         gnulib-tool: Make --conditional-dependencies work better.
1139         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
1140         * gnulib-tool (Options): Don't reject the combination of
1141         --conditional-dependencies with --with-tests.
1142         (func_emit_autoconf_snippets): Add argument referenceable_modules.
1143         Don't reference $modules.
1144         (func_import, func_create_testdir): Pass it.
1146 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1148         regex: use re_malloc etc. consistently
1149         Problem and original patch reported by Arnold Robbins in:
1150         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
1151         * lib/regcomp.c (re_comp):
1152         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
1153         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
1155 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
1156             Paul Eggert  <eggert@cs.ucla.edu>
1158         glob: Silence warning about void pointer arithmetic.
1159         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
1160         arithmetic.
1162 2017-12-15  Bruno Haible  <bruno@clisp.org>
1164         spawn-pipe: Silence a clang warning.
1165         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1166         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
1167         in this file.
1169 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1171         explicit_bzero: port to macOS + Clang 9.0.0
1172         Problem reported by Marcus Johnson (Bug#29658).
1173         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
1174         Don’t use asm.
1176 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1178         doc: Improve explanation of supporting relocatable libraries.
1179         * doc/relocatable-maint.texi (Supporting Relocation): Explain
1180         properly how to build the relocatable module for
1181         libraries. (Method and example code from Bruno Haible.)
1183 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1185         doc: Use better texinfo tags in a few cases.
1186         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
1187         instead of @samp in a few places.
1189 2017-12-11  Bruno Haible  <bruno@clisp.org>
1191         unistr/base: Update comment.
1192         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
1194 2017-12-10  Pádraig Brady  <P@draigBrady.com>
1196         test-faccessat.c: unlink temp file to avoid subsequent test failure
1197         * tests/test-faccessat.c: Remove the file to avoid failure
1198         to open the file on subsequent runs due to being created
1199         with no permissions.
1201 2017-12-10  Bruno Haible  <bruno@clisp.org>
1203         doc: New sect. "Modifying the build rules of a Gnulib import directory".
1204         * doc/gnulib-tool.texi (Modified build rules): New node.
1206 2017-12-10  Bruno Haible  <bruno@clisp.org>
1208         doc: Tweak wording.
1209         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
1210         "binaries".
1212 2017-12-05  Sam Steingold  <sds@gnu.org>
1213             Bruno Haible  <bruno@clisp.org>
1215         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
1216         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
1217         AC_EGREP_CPP pattern.
1219 2017-12-03  Bruno Haible  <bruno@clisp.org>
1221         all: Replace more http URLs by https URLs.
1222         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
1223         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
1224         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
1225         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
1227 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1229         Port better to CentOS 5
1230         Problems reported by Tom G. Christensen in:
1231         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
1232         * doc/glibc-functions/strverscmp.texi (strverscmp):
1233         Document strverscmp bug with glibc 2.9 and earlier.
1234         * doc/posix-functions/tzset.texi (tzset):
1235         Document that TZ with angle brackets is POSIX-2001 and later.
1236         * tests/test-nstrftime.c: Include unistd.h.
1237         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
1238         (TZ): Use it to skip tests with angle brackets in TZ,
1239         for older systems.
1241         stat: add missing module dependencies
1242         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
1243         Add stat-time.
1245 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
1247         stat: fix compilation failure on macOS Sierra
1248         Reported by Marius Schamschula <mschamschula@gmail.com> in:
1249         https://savannah.gnu.org/bugs/?52546
1250         * lib/stat.c: Add missing include of stat-time.h.
1252 2017-11-28  Jim Meyering  <meyering@fb.com>
1254         test-faccessat.c: correct BASE definition to avoid parallel test failure
1255         * tests/test-faccessat.c (BASE): Define using this file's name, not
1256         that of test-lstat.c.  Using the latter caused this test to fail
1257         sometimes when run concurrently with test-lstat.
1259 2017-11-27  Daiki Ueno  <ueno@gnu.org>
1261         unicase: fix VPATH build
1262         * modules/unicase/special-casing (Makefile.am): Ensure that the
1263         base directory is created when generating
1264         unicase/special-casing.h.
1266 2017-11-27  Daiki Ueno  <ueno@gnu.org>
1268         libunistring: update to Unicode 9.0.0
1269         * lib/gen-uni-tables.c (fill_properties): Recognize
1270         Sentence_Terminal and Prepended_Concatenation_Mark.
1271         (is_property_default_ignorable_code_point): Exclude U+08E2.
1272         (fill_arabicshaping): Allow missing whitespace when parsing;
1273         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
1274         (output_blocks): Increase the element size of the level1 table to
1275         accommodate more blocks.
1276         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
1277         Update each class according to the standard.
1278         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
1279         E_Base_GAZ characters.
1280         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
1281         Glue_After_Zwj, and E_Base_GAZ characters.
1282         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
1283         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
1284         enum value.
1285         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
1286         value.
1287         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
1288         LBP_ZWJ, LBP_EB, and LBP_EM.
1289         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
1290         enum value.
1291         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
1292         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
1293         declaration.
1294         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
1295         (uniwbrk_table): Implement WB14.
1296         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
1297         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
1298         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
1299         uc-is-grapheme-break.
1300         * modules/unigbrk/uc-grapheme-breaks: New module.
1301         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
1302         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
1303         enum value.
1304         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
1305         * lib/unigbrk/u-grapheme-breaks.h: New file.
1306         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
1307         u-grapheme-breaks.h instead of uc_is_grapheme_break.
1308         * lib/unigbrk/uc-grapheme-breaks.c: New file.
1309         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
1310         29.
1311         * tests/unigbrk/test-uc-gbrk-prop.c
1312         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
1313         GBP_GAZ, and GBP_EBG.
1314         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
1315         * tests/unigbrk/test-uc-is-grapheme-break.c
1316         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
1317         GBP_GAZ, and GBP_EBG.
1318         (main): Skip unsupported rules involving 3 or more characters,
1319         namely GB10, GB12, and GB13.
1320         * lib/uniwidth/width.c (nonspacing_table_data): Update.
1321         * all generated files under lib/uni* and tests/uni*: Regenerate.
1322         * all the affected modules: Bump version.
1324 2017-11-26  Bruno Haible  <bruno@clisp.org>
1326         strfmon_l: Fix compilation error with glibc 2.5.
1327         Reported by Tom G. Christensen <tgc@jupiterrise.com>
1328         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
1329         * lib/monetary.in.h: Include also <locale.h>.
1331 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1333         posixtm: remove PDS_LEADING_YEAR
1334         This changes the API slightly, in a hopefully-innocuous way.
1335         Without this change the code had undefined behavior when a
1336         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
1337         Problem reported by Pádraig Brady in:
1338         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
1339         * NEWS: Mention this.
1340         * lib/posixtm.c (posix_time_parse): Treat the absence of
1341         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
1342         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
1343         present, but define it as zero, for compatibility with existing
1344         source code).  All other PDS_* values moved up.
1345         * tests/test-posixtm.c (LY): New macro.
1346         (T): Use it.  Do not expect a particular numeric encoding
1347         for PDS_CENTURY etc.
1349 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1351         stat: work around Solaris bug with tv_nsec < 0
1352         * doc/posix-functions/fstat.texi (fstat):
1353         * doc/posix-functions/fstatat.texi (fstatat):
1354         * doc/posix-functions/lstat.texi (lstat):
1355         * doc/posix-functions/stat.texi (stat):
1356         Mention Solaris 11 bug.
1357         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
1358         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
1359         * lib/lstat.c (rpl_lstat):
1360         * lib/stat.c (rpl_stat):
1361         Normalize resulting timestamps.
1362         * lib/fstatat.c (normal_fstatat): New function.
1363         (rpl_fstatat): Use it.
1364         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
1365         (stat_time_normalize): New function.
1366         * m4/fstat.m4 (gl_FUNC_FSTAT):
1367         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
1368         * m4/lstat.m4 (gl_FUNC_LSTAT):
1369         * m4/stat.m4 (gl_FUNC_STAT):
1370         Replace on Solaris.
1371         * modules/fstat (Depends-on):
1372         * modules/fstatat (Depends-on):
1373         Add stat-time.
1374         * modules/stat-time (Depends-on): Add errno, intprops.
1376 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1378         regex: merge from glibc
1379         * lib/regcomp.c (init_word_char): Add comments.
1381 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1383         regex: merge from glibc
1384         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
1385         * lib/regex_internal.h (internal_function): Remove.
1386         All uses removed.
1388 2017-11-20  Bruno Haible  <bruno@clisp.org>
1390         crypto/gc-sm3: Fix buffer overrun.
1391         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
1392         Reported by Coverity.
1394 2017-11-12  Jim Meyering  <meyering@fb.com>
1396         maint: shorten https://lists.gnu.org/archive/html/... links
1397         Each /archive/html/ part can be replace with /r/.
1398         Run this to induce the change:
1399         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
1400         * ChangeLog: Perform that substitution.
1401         * Makefile: Likewise.
1402         * STATUS-libposix: Likewise.
1403         * build-aux/bootstrap: Likewise.
1404         * doc/maintain.texi: Likewise.
1405         * gnulib-tool: Likewise.
1406         * lib/allocator.h: Likewise.
1407         * lib/argp-ba.c: Likewise.
1408         * lib/argp-pv.c: Likewise.
1409         * lib/canon-host.c: Likewise.
1410         * lib/canonicalize-lgpl.c: Likewise.
1411         * lib/float.in.h: Likewise.
1412         * lib/fstat.c: Likewise.
1413         * lib/getdelim.c: Likewise.
1414         * lib/getprogname.c: Likewise.
1415         * lib/glthread/thread.h: Likewise.
1416         * lib/intprops.h: Likewise.
1417         * lib/mbsrtowcs-state.c: Likewise.
1418         * lib/safe-read.c: Likewise.
1419         * lib/signal.in.h: Likewise.
1420         * lib/stat.c: Likewise.
1421         * lib/stdbool.in.h: Likewise.
1422         * lib/stdio-impl.h: Likewise.
1423         * lib/stdio.in.h: Likewise.
1424         * lib/sysexits.in.h: Likewise.
1425         * lib/timespec.h: Likewise.
1426         * lib/wcsrtombs-state.c: Likewise.
1427         * m4/alloca.m4: Likewise.
1428         * m4/extern-inline.m4: Likewise.
1429         * m4/fstatat.m4: Likewise.
1430         * m4/gnulib-common.m4: Likewise.
1431         * m4/lib-ignore.m4: Likewise.
1432         * m4/printf.m4: Likewise.
1433         * m4/regex.m4: Likewise.
1434         * m4/stat-size.m4: Likewise.
1435         * m4/std-gnu11.m4: Likewise.
1436         * m4/stdbool.m4: Likewise.
1437         * m4/sys_types_h.m4: Likewise.
1438         * m4/threadlib.m4: Likewise.
1439         * m4/vararrays.m4: Likewise.
1440         * pygnulib/GLImport.py: Likewise.
1441         * tests/test-exp.h: Likewise.
1442         * tests/test-exp2.h: Likewise.
1443         * tests/test-expm1.h: Likewise.
1444         * tests/test-fflush2.c: Likewise.
1445         * tests/test-getopt_long.h: Likewise.
1446         * tests/test-intprops.c: Likewise.
1447         * tests/test-log.h: Likewise.
1448         * tests/test-log10.h: Likewise.
1449         * tests/test-log1p.h: Likewise.
1450         * tests/test-log2.h: Likewise.
1451         * tests/test-printf-posix.h: Likewise.
1452         * tests/test-regex.c: Likewise.
1453         * tests/test-snprintf-posix.h: Likewise.
1454         * tests/test-sprintf-posix.h: Likewise.
1455         * tests/test-stdalign.c: Likewise.
1456         * tests/test-stdbool.c: Likewise.
1457         * tests/test-vasnprintf-posix.c: Likewise.
1458         * tests/test-vasprintf-posix.c: Likewise.
1459         * top/maint.mk: Likewise.
1461 2017-11-12  Bruno Haible  <bruno@clisp.org>
1463         faccessat: Make the last change more robust.
1464         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
1465         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
1467 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1469         faccessat: port to macOS (Bug#29231)
1470         macOS faccessat has the same bug that lstat does: if the file
1471         name ends in '/' it ignores the trailing slash.
1472         Problem reported for Emacs by Vincent Zhang.
1473         * doc/posix-functions/faccessat.texi (faccessat): Document this.
1474         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
1475         around the initial includes.  Include errno.h, string.h, sys/stat.h.
1476         (orig_faccessat) [HAVE_FACCESSAT]: New function.
1477         Include "unistd.h" after defining it.
1478         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
1479         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
1480         Handle in the usual way.
1481         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
1482         lstat dereferences symlinks, since faccessat is likely to
1483         have the same problem.
1484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
1485         * modules/faccessat (Depends-on): Add fstatat.
1486         Depend if REPLACE_FACCESSAT is 1, too.
1487         (configure.ac): Link if REPLACE_FACCESSAT is 1.
1488         * modules/faccessat-tests (Depends-on): Add symlink.
1489         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
1490         * tests/test-faccessat.c (main): Test for the bug.
1492 2017-11-11  Bruno Haible  <bruno@clisp.org>
1494         getprogname: Fix compilation error on IRIX.
1495         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
1496         'namesize'.
1498 2017-11-11  Bruno Haible  <bruno@clisp.org>
1500         year2038: Tweak last patch.
1501         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
1503 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1505         year2038: be more insistent about 64-bit time_t
1506         Applications requiring access to arbitrary files should not be
1507         built with 32-bit time_t on hosts that have 64-bit timestamps,
1508         as this can lead to real trouble at runtime.
1509         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
1510         Check on all systems, not just MinGW.  Use a heuristic involving
1511         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
1512         output a failure or just a warning, to make it more likely that
1513         builders will select 64-bit time_t.
1515 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1517         havelib: fix typo in previous change
1518         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
1520         Don’t use AC_EGREP_CPP if affected by CFLAGS
1521         * m4/float_h.m4 (gl_FLOAT_H):
1522         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
1523         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
1524         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
1525         * m4/year2038.m4 (gl_YEAR2038):
1526         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
1527         likely to be affected by the choice of CFLAGS, since CFLAGS are
1528         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
1529         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
1531         fstatat: pacify GCC on unusual platform
1532         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
1533         Omit, as it’s unused in this case.
1535 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
1537         timespec: prefer ‘assume’ to ‘assure’
1538         This avoids some runtime tests.  The rest of the module makes
1539         similar assumptions and there is little point to testing here.
1540         * lib/timespec.h: Include verify.h instead of assure.h.
1541         (timespec_cmp): Use ‘assume’, not ‘assure’.
1542         Also, remove an unnecessary cast to ‘int’, as lots of other
1543         code in this module now causes -Wconversion to complain, and
1544         this is a problem with -Wconversion not with the code.
1546         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
1548         Port recent gnulib-tool change to Dash
1549         * gnulib-tool (func_create_testdir): Don't assume that the shell
1550         retokenizes after expanding "$@" inside the call to
1551         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
1553 2017-10-27  Jim Meyering  <meyering@fb.com>
1555         timespec.h: use "assure" to avoid a spurious warning
1556         * lib/timespec.h: Include "assure.h" and use it to help
1557         gcc7's -Wstrict-overflow avoid a false positive warning
1558         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
1559         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
1560         * modules/timespec (Depends-on): Add assure.
1562 2017-10-29  Bruno Haible  <bruno@clisp.org>
1564         Avoid several test failures with traditional locales on Haiku.
1565         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
1566         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
1567         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
1568         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
1569         LOCALE_ZH_CN=none.
1571 2017-10-29  Bruno Haible  <bruno@clisp.org>
1573         strerror_r-posix: Fix behaviour and test failure on Haiku.
1574         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
1575         are positive. Work around return value 0 instead of ERANGE on Haiku.
1576         For unknown error numbers, use a format string consistent with perror().
1577         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
1578         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
1579         are positive.
1581 2017-10-29  Bruno Haible  <bruno@clisp.org>
1583         get-rusage-data: Avoid crash on Haiku.
1584         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
1586 2017-10-29  Bruno Haible  <bruno@clisp.org>
1588         get-rusage-as: Avoid crash on Haiku.
1589         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
1591 2017-10-29  Bruno Haible  <bruno@clisp.org>
1593         ilogbl: Ensure replacement on Haiku.
1594         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
1595         REPLACE_ILOGBL if ilogbl does not work.
1596         (gl_FUNC_ILOGBL_WORKS): New macro.
1597         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
1598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
1599         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
1600         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
1601         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
1603 2017-10-29  Bruno Haible  <bruno@clisp.org>
1605         expl: Ensure replacement on Haiku.
1606         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
1607         zero.
1608         * doc/posix-functions/expl.texi: Mention the Haiku problem.
1610 2017-10-29  Bruno Haible  <bruno@clisp.org>
1612         math: Fix test failure on Haiku.
1613         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
1614         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
1615         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
1616         * doc/posix-headers/math.texi: Mention the Haiku problem.
1618 2017-10-29  Bruno Haible  <bruno@clisp.org>
1620         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
1621         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
1622         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
1624 2017-10-29  Bruno Haible  <bruno@clisp.org>
1626         crypto/*: Verify that the header file is self-contained.
1627         * tests/test-gc-*.c: Include the module's header file immediately after
1628         <config.h>.
1629         * tests/test-hmac-*.c: Likewise.
1630         * tests/test-arcfour.c: Likewise.
1631         * tests/test-arctwo.c: Likewise.
1632         * tests/test-des.c: Likewise.
1633         * tests/test-md2.c: Likewise.
1634         * tests/test-md4.c: Likewise.
1635         * tests/test-md5.c: Likewise.
1636         * tests/test-rijndael.c: Likewise.
1637         * tests/test-sha1.c: Likewise.
1638         * tests/test-sm3.c: Likewise.
1640 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1641             Bruno Haible  <bruno@clisp.org>
1643         crypto/gc: fix build failure with -Werror=suggest-attribute=const
1644         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
1646 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1648         New module: crypto/gc-sm3
1649         * lib/gc.h: Declare SM3-related stuffs.
1650         * lib/gc-gnulib.c: Support sm3 in internal functions.
1651         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
1652         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
1653         * modules/crypto/gc-sm3: Define gc-sm3 module.
1654         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
1655         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
1656         * MODULES.html.sh: List gc-sm3 module.
1658 2017-10-29  Bruno Haible  <bruno@clisp.org>
1660         random, random_r: Mention different prototypes on Haiku.
1661         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
1662         * doc/glibc-functions/random_r.texi: Likewise.
1663         * doc/glibc-functions/initstate_r.texi: Likewise.
1664         * doc/glibc-functions/setstate_r.texi: Likewise.
1666 2017-10-28  Bruno Haible  <bruno@clisp.org>
1668         posix_spawn: Avoid spurious message in configure output.
1669         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
1670         'cmp' command.
1672 2017-10-28  Bruno Haible  <bruno@clisp.org>
1674         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
1675         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
1676         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1678 2017-10-28  Bruno Haible  <bruno@clisp.org>
1680         ioctl: Override non-POSIX declaration on Haiku.
1681         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
1682         * lib/sys_ioctl.in.h: Add comment about Haiku.
1683         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
1684         * doc/glibc-headers/sys_ioctl.texi: Likewise.
1686 2017-10-28  Bruno Haible  <bruno@clisp.org>
1688         crypto/sm3: Add overview documentation to the .h file.
1689         * lib/sm3.h: Add comments.
1691 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1693         New module: crypto/sm3
1694         This new module can be used to compute SM3 message digest of files or
1695         memory blocks according to the specification GM/T 004-2012
1696         Cryptographic Hash Algorithm SM3, published by State Cryptography
1697         Administration, China.
1698         The official SM3 cryptographic hash algorithm specification is
1699         available at
1700         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
1701         * lib/sm3.h: Declare the APIs of sm3 module.
1702         * lib/sm3.c: Implement SM3 hash algorithm.
1703         * m4/sm3.m4: m4 file for sm3 module.
1704         * modules/crypto/sm3: Define sm3 module.
1705         * tests/test-sm3.c: Implement SM3 test case.
1706         * modules/crypto/sm3-tests: Define sm3 test module.
1707         * MODULES.html.sh: List sm3 module.
1709 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1711         gc-libgcrypt: fix undefined enum type in switch statement
1712         Resolve the following build failure:
1713         lib/gc-libgcrypt.c: In function 'gc_hash_open':
1714         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
1715         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
1716              case 0:
1717              ^~~~
1718         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
1719         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
1721 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1723         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
1724         Resolve the following build failure:
1725         lib/gc-libgcrypt.c: In function 'gc_hash_read':
1726         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
1727         in signedness [-Werror=pointer-sign]
1728             digest = gcry_md_read (ctx->gch, 0);
1729                    ^
1730         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
1732 2017-10-26  Bruno Haible  <bruno@clisp.org>
1734         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
1735         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
1736         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
1738 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1740         glob: fix another heap buffer overflow
1741         Problem reported by Tim Rühsen in:
1742         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
1743         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
1745 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1747         quotearg: pacify compiler re unsigned
1748         * lib/quotearg.c (quotearg_n_options):
1749         Rewrite to avoid diagnostic from overly-picky compiler.
1750         Problem reported by Sami Kerola in:
1751         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
1753         glob: fix heap buffer overflow
1754         * lib/glob.c (glob): Fix off-by-one error introduced into
1755         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
1756         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
1757         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
1758         Fix suggested by Bruno Haible.
1760 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
1762         glob: pacify fuzzer for mempcpy
1763         Problem reported by Tim Rühsen in:
1764         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
1765         * lib/glob.c (glob): Do not pass NULL to mempcpy.
1767 2017-10-12  Bruno Haible  <bruno@clisp.org>
1769         doc: Fix syntax error (regression from 2017-10-03).
1770         * doc/posix-functions/strncpy.texi: Fix syntax error.
1772 2017-10-12  Bruno Haible  <bruno@clisp.org>
1774         doc: Update for Solaris 11.3.
1775         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
1776         mention Solaris 11.3.
1777         * m4/log2.m4: Fix comments.
1778         * m4/log2f.m4: Likewise.
1779         * m4/printf.m4: Update comments.
1780         * m4/rename.m4: Likewise.
1781         * m4/strncat.m4: Likewise.
1783         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
1785 2017-10-10  Bruno Haible  <bruno@clisp.org>
1787         doc: Improve doc about ioctl.
1788         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
1789         prototype.
1791 2017-10-09  Bruno Haible  <bruno@clisp.org>
1793         wcwidth: Don't use obsolete syntax of 'test'.
1794         Reported by Eric Blake.
1795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
1796         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
1798 2017-10-09  Bruno Haible  <bruno@clisp.org>
1800         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
1801         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
1802         and Daniel P. Berrange <berrange@redhat.com>.
1803         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
1804         on glibc systems. The getopt-pfx-core.h file declares exactly what
1805         unistd.h needs, nothing more.
1807 2017-10-08  Bruno Haible  <bruno@clisp.org>
1809         vma-iter: Improve support for FreeBSD.
1810         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
1811         vma_iterate.
1812         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
1814 2017-10-08  Bruno Haible  <bruno@clisp.org>
1816         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
1817         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
1819 2017-10-07  KO Myung-Hun  <komh@chollian.net>
1821         test-framework-sh: Fix 'invalid path dir' error.
1822         On OS/2, a path separator is ';' not ':'. And ':' is used as a
1823         separator between a drive letter and directory parts.
1824         As a result, an absolute path such as x:/path/to/dir on OS/2 is
1825         treated as an invalid path dir.
1826         * tests/init.sh (PATH_SEPARATOR): Set at startup.
1827         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
1828         instead of hard coded ':'.
1830 2017-10-07  Bruno Haible  <bruno@clisp.org>
1832         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
1833         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
1834         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
1835         (rof_open): On Linux, do multiple read() calls and make sure
1836         MIN_LEFTOVER bytes are left when read() returns.
1838 2017-10-07  Bruno Haible  <bruno@clisp.org>
1840         vma-iter: Improve support for GNU/Hurd.
1841         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
1842         API, not the /proc file system.
1844 2017-10-07  Bruno Haible  <bruno@clisp.org>
1846         test-framework-sh: Don't require bash on Windows and OS/2.
1847         Reported by KO Myung-Hun.
1848         * tests/test-init.sh: Use 'shopt' only when running in bash.
1850 2017-10-06  KO Myung-Hun  <komh@chollian.net>
1852         wcwidth: check a macro version of wcwidth () as well
1853         * lib/wchar.in.h: Revert commit from 2016-01-14.
1854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
1856 2017-10-06  Bruno Haible  <bruno@clisp.org>
1858         getopt-posix: Clarify copyright header.
1859         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
1860         * lib/getopt-pfx-core.h: Likewise.
1861         * lib/getopt-pfx-ext.h: Likewise.
1862         * lib/getopt-cdefs.in.h: Likewise.
1864 2017-10-03  Bruno Haible  <bruno@clisp.org>
1866         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
1867         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
1868         gl_HOST_CPU_C_ABI.
1870 2017-10-03  Bruno Haible  <bruno@clisp.org>
1872         doc: warn about misuse of strncpy and wcsncpy.
1873         * doc/posix-functions/strcpy.texi: Describe requirements on prior
1874         memory allocation.
1875         * doc/posix-functions/wcscpy.texi: Likewise.
1876         * doc/posix-functions/strncpy.texi: Describe what this function is not
1877         useful for.
1878         * doc/posix-functions/wcsncpy.texi: Likewise.
1880 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
1882         fsuage: fix typo in previous change
1883         * lib/fsusage.c: Remove stray include of full-read.h.
1884         Problem reported by Sam Steingold for macOS (Bug#28669).
1886 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
1888         fsusage: remove SVR2 support
1889         SVR2 was obsolete by 1986 and is no longer supported by anybody,
1890         and its code was getting in the way of use of this module by
1891         Emacs, which has its own ‘read’ function anyway.
1892         * lib/fsusage.c: Do not include sys/filsys.h.
1893         (get_fs_usage): Remove SVR2-specific code.
1894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
1895         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
1896         * modules/fsusage (Depends-on): Do not depend on full-read.
1898         Simplify autoupdate of licenses
1899         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
1900         place.
1902 2017-10-01  Bruno Haible  <bruno@clisp.org>
1904         vma-iter: Add support for GNU/Hurd.
1905         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
1906         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
1908 2017-09-30  Bruno Haible  <bruno@clisp.org>
1910         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
1911         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
1912         fail when module 'largefile' is in use.
1913         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
1914         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
1915         Don't test HAVE_SYS_PROCFS_H.
1917 2017-09-30  Bruno Haible  <bruno@clisp.org>
1919         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
1920         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
1921         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
1922         * modules/havelib (Depends-on): Add host-cpu-c-abi.
1924 2017-09-30  Bruno Haible  <bruno@clisp.org>
1926         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
1927         * lib/uniname/uniname.c (unicode_name_character): Add braces around
1928         scope of local variables.
1930 2017-09-28  Bruno Haible  <bruno@clisp.org>
1932         string: code style
1933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
1934         substitutable variables.
1935         * modules/string (Makefile.am): Likewise.
1937 2017-09-26  Bruno Haible  <bruno@clisp.org>
1939         uniname/uniname-tests: Tighten code.
1940         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
1941         local variables into one.
1943 2017-09-26  Bruno Haible  <bruno@clisp.org>
1945         vma-iter: Improvements for Linux and BSD platforms.
1946         - Add support for DragonFly BSD.
1947         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
1948         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
1949         Read the entire file into memory in a single system call.
1950         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
1951         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
1953 2017-09-26  Bruno Haible  <bruno@clisp.org>
1955         vma-iter: Provide the protection flags on FreeBSD.
1956         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
1957         skip three fields between the addresses and the protection flags.
1959 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1961         glob: remove bogus extern decl
1962         * lib/glob.c (__glob_pattern_type): Remove now-spurious
1963         extern declaration.  Problem reported by Adhemerval Zanella in:
1964         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
1966 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1968         uniname/uniname-tests: integer overflow fix
1969         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
1970         Check for integer overflow.
1972         duplocale-tests: fix unlikely crash
1973         * tests/test-duplocale.c (get_locale_dependent_values):
1974         Don’t crash with absurdly long month names.
1976         maint: fix overflow checking in nap.h
1977         * modules/chown-tests:
1978         * modules/fchownat-tests, modules/fdutimensat-tests:
1979         * modules/futimens-tests, modules/lchown-tests:
1980         * modules/stat-time-tests, modules/utime-tests:
1981         * modules/utimens-tests, modules/utimensat-tests:
1982         Depend on intprops.
1983         * tests/nap.h: Include intprops.h.
1984         (diff_timespec): Handle overflow properly.
1986         sys_types: update URL
1987         * m4/sys_types_h.m4: Use https: URL.
1989         parse-datetime: fix dependency
1990         * modules/parse-datetime (Depends-on): Depend
1991         on nstrftime, not strftime.
1993         parse-datetime, posixtm: avoid uninit access
1994         * lib/parse-datetime.y (parse_datetime2):
1995         * lib/posixtm.c (posixtime):
1996         Do not access uninitialized storage, even though the resulting
1997         value is never used.
1999 2017-09-25  Bruno Haible  <bruno@clisp.org>
2001         vma-iter: Improvements for BSD platforms.
2002         - Add support for GNU/kFreeBSD.
2003         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
2004         - Speed up on OpenBSD.
2005         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
2006         (vma_iterate_bsd): New function.
2007         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
2008         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
2009         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2010         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
2012 2017-09-23  Bruno Haible  <bruno@clisp.org>
2014         strfmon_l: New module.
2015         * modules/strfmon_l: New file.
2016         * lib/strfmon_l.c: New file.
2017         * m4/strfmon_l.m4: New file.
2018         * doc/posix-functions/strfmon_l.texi: Mention the new module.
2019         * modules/strfmon_l-tests: New file.
2020         * tests/test-strfmon_l.c: New file.
2022         monetary: New module.
2023         * modules/monetary: New file.
2024         * lib/monetary.in.h: New file.
2025         * m4/monetary_h.m4: New file.
2026         * doc/posix-headers/monetary.texi: Mention the new module.
2027         * modules/monetary-tests: New file.
2028         * tests/test-monetary.c: New file.
2029         * modules/monetary-c++-tests: New file.
2030         * tests/test-monetary-c++.cc: New file.
2031         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
2033 2017-09-23  Bruno Haible  <bruno@clisp.org>
2035         duplocale tests: Fix test crash on Linux/x86.
2036         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
2037         locale from the current thread before freeing it.
2039 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
2041         mktime: port to OpenVMS
2042         Problem reported by John E. Malmberg in:
2043         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
2044         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
2046 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2048         manywarnings: port to GCC on 64-bit MS-Windows
2049         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
2050         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
2051         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
2053 2017-09-13  Bruno Haible  <bruno@clisp.org>
2055         all: Replace many more http URLs by https URLs. Update stale URLs.
2056         * users.txt: Remove mention of 'newts'.
2057         * lib/localename.c: Update comment about LANG_SOTHO.
2059 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2061         all: Replace many http URLs by https URLs.
2063 2017-09-12  Bruno Haible  <bruno@clisp.org>
2065         doc: Prefer https URLs where possible.
2066         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
2067         * doc/ld-output-def.texi: Remove unavailable URL.
2069 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2071         maintainer-makefile: FTP -> HTTPS
2072         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
2073         of FTP, which is planned to be decommissioned on 2017-11-01.
2075 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2077         libc-config: Fix __GNUC_PREREQ macro.
2078         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
2079         __GNUC_MINOR.
2081 2017-09-09  Bruno Haible  <bruno@clisp.org>
2083         gnulib-tool: Simplify commit from 2015-08-20.
2084         * gnulib-tool (func_add_or_update): Remove local variable
2085         is_binary_file.
2087 2017-09-08  Bruno Haible  <bruno@clisp.org>
2089         stddef: Avoid conflict with system-defined max_align_t.
2090         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
2091         Reported by Werner Lemberg <wl@gnu.org> in
2092         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
2093         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
2094         (max_align_t): Define as a macro.
2095         (GNULIB_defined_max_align_t): New macro. Guards against multiple
2096         definitions of rpl_max_align_t in different copies of gnulib-generated
2097         <stddef.h>.
2099 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2101         libc-config: port to MSVC
2102         Problems reported by Gisle Vanem in:
2103         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
2104         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
2105         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
2106         * m4/__inline.m4: New file.
2107         * modules/libc-config (Files): Add it.
2108         (Depends-on): Use it.
2110         glob: Use enum for __glob_pattern_type result
2111         From a patch proposed by Adhemerval Zanella in:
2112         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
2113         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2114         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2115         * lib/glob_internal.h (__glob_pattern_type):
2116         * lib/glob.c (glob):
2117         * lib/glob_pattern_p.c (__glob_pattern_p):
2118         Use them.
2120         glob: fix for use in glibc
2121         Problem reported by Adhemerval Zanella in:
2122         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
2123         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
2124         Do not redefine if _LIBC.
2126 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2128         glob: fix bugs with long login names
2129         Problem reported by Adhemerval Zanella in:
2130         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
2131         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
2132         (glob): Use the same scratch buffer for both getlogin_r and
2133         getpwnam_r.  Don’t require preallocation of the login name.  This
2134         simplifies storage allocation, and corrects the handling of
2135         long login names.
2137 2017-09-02  Bruno Haible  <bruno@clisp.org>
2139         dirent: Update doc.
2140         * doc/posix-headers/dirent.texi: More concrete list of platforms.
2142 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2144         glob: fix getpwnam_r errno typo
2145         * lib/glob.c (glob): Fix longstanding misuse of errno after
2146         getpwnam_r, which returns an error number rather than setting
2147         errno.
2149         glob: fix typo in recent change
2150         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
2151         Fix recently-introduced typo.
2153 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2155         glob: don't save and restore errno unnecessarily
2156         * lib/glob.c (glob): Don't save and restore errno
2157         merely because we have getpwnam_r.
2159         glob: don't assume getpwnam_r
2160         * lib/glob.c (glob): Port recent patches to platforms
2161         lacking getpwnam_r.
2163         scratch_buffer: don’t use private glibc API
2164         Suggested by Florian Weimer in:
2165         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
2166         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
2167         * lib/scratch_buffer_grow.c: Rename to
2168         lib/malloc/scratch_buffer_grow.c.
2169         * lib/scratch_buffer_grow_preserve.c: Rename to
2170         lib/malloc/scratch_buffer_grow_preserve.c.
2171         * lib/scratch_buffer_set_array_size.c: Rename to
2172         lib/malloc/scratch_buffer_set_array_size.c.
2173         * lib/scratch_buffer.h: New file.
2174         * modules/scratch_buffer (Files, Makefile.am):
2175         Adjust to source-file renaming.
2177 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2179         glob: use scratch_buffer instead of extend_alloca
2180         Much of the lib/glob.c part of this patch comes from a glibc patch
2181         proposed by Adhemerval Zanella in:
2182         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
2183         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
2184         included via glob.h, does this for us now.
2185         (__set_errno): Remove, as libc-config does this for us now.
2186         Include <scratch_buffer.h>.
2187         (GETPW_R_SIZE_MAX): Remove.
2188         (glob): Use struct scratch_buffer instead of extend_alloca.
2189         * lib/glob.in.h: Include libc-config.h rather than
2190         including <sys/cdefs.h> conditionally.
2191         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
2192         (__glibc_unlikely, __restrict, weak_alias):
2193         Remove, as libc-config does this for us now.
2194         * m4/glob.m4 (gl_PREREQ_GLOB):
2195         Remove sys/cdefs.h tests; no longer needed.
2196         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
2197         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
2199         scratch_buffer: new module
2200         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
2201         * lib/scratch_buffer_grow_preserve.c:
2202         * lib/scratch_buffer_set_array_size.c:
2203         New files, copied from glibc with very minor changes that can be
2204         copied back.
2205         * modules/scratch_buffer: New file.
2207         libc-config: new module
2208         * MODULES.html.sh: Add libc-config.
2209         * lib/cdefs.h: New file, copied from the GNU C Library with very
2210         minor changes that can be copied back.
2211         * lib/libc-config.h, modules/libc-config: New files.
2213 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2215         glob: match dangling symlinks
2216         This fixes a bug I inadvertently introduced to Gnulib when I
2217         merged glibc glob back into gnulib on 2007-10-16.  This fix is
2218         inspired by a patch proposed for glibc by Adhemerval Zanella in:
2219         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
2220         * doc/posix-functions/glob.texi: Update list of affected platforms.
2221         * lib/glob.c (__lstat64): New macro.
2222         (is_dir): New function.
2223         (glob, glob_in_dir): Match symlinks even if they are dangling.
2224         (link_stat, link_exists_p): Remove.  All uses removed.
2225         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
2226         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
2227         * modules/glob-tests (Depends-on): Add symlink.
2228         * tests/test-glob.c: Include errno.h, unistd.h.
2229         (BASE): New macro.
2230         (main): Test dangling symlinks, if symlinks are supported.
2232         glob, backupfile: inode 0 is a valid inode number
2233         * doc/posix-functions/readdir.texi (readdir):
2234         * doc/posix-headers/dirent.texi (dirent.h):
2235         Document more readdir portability issues.
2236         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
2237         (numbered_backup): Don’t treat inode 0 any differently from
2238         other inode values.
2239         * lib/glob.c (struct readdir_result): Remove skip_entry member.
2240         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
2241         All uses removed.
2242         * modules/glob (Depends-on): Remove d-ino.
2244         glob: simplify symlink detection
2245         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
2246         uint8_t, as C99 does not require uint8_t.
2247         (struct readdir_result): Use it.  Do not define skip_entry unless
2248         it is needed; this saves a byte on platforms lacking d_ino.
2249         (readdir_result_type, readdir_result_skip_entry):
2250         New functions, replacing ...
2251         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
2252         ... these functions, which were removed.  This makes the callers
2253         easier to read.  All callers changed.
2254         (D_INO_TO_RESULT): Now empty if there is no d_ino.
2256 2017-08-30  Pádraig Brady  <P@draigBrady.com>
2258         fts-tests: tag as a longrunning-test so not included by default
2259         * modules/fts-tests: This test takes about 20s on current systems,
2260         and uses about 285M of space on ext4.
2262 2017-08-30  Pádraig Brady  <P@draigBrady.com>
2264         renameat2: fix compilation on alpine linux
2265         * m4/renameat.m4: Check for <linux/fs.h> presence.
2266         * lib/renameat2.h: Only include <linux/fs.h> if present.
2267         Reported by Assaf Gordon on Alpine Linux.
2269 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2271         glob: try to port recent changes to MS-Windows
2272         Problem reported by Bruno Haible in:
2273         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
2274         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
2275         * lib/glob.in.h (__glob_pattern_p): ... to here.
2277 2017-08-24  Eric Blake  <eblake@redhat.com>
2279         warnings: fix compilation with old autoconf
2280         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
2281         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
2282         AC_DEFUN.
2283         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
2284         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
2286 2017-08-24  Bruno Haible  <bruno@clisp.org>
2288         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
2289         * modules/glob (Depends-on): Add c99.
2291 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2293         glob: fix typo that broke platforms lacking d_ino
2294         This typo also hurt performance on GNU/Linux and similar hosts.
2295         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
2296         in previous change.
2298 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2300         glob: merge from glibc with Zanella glob changes
2301         Merge glob from glibc, with changes for glob proposed
2302         by Adhemerval Zanella in the thread starting here:
2303         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
2304         plus some fixes for this merge.
2305         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
2306         New files, ported from glibc.
2307         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
2308         with __restrict.
2309         (__size_t): Remove.  All uses replaced by size_t.
2310         (size_t): Define by defining __need_size_t and including <stddef.h>.
2311         This should work even in non-glibc platforms, where any name
2312         pollution is OK.
2313         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
2314         (struct stat64): Don’t worry about __GLOB_GNULIB.
2315         (glob, globfree, glob_pattern_p): Remove macros for
2316         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
2317         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
2318         but set errno.
2319         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
2320         removed since the glibc behavior works on null pointers.
2321         Do not include stdio.h; old SunOS is irrelevant now.
2322         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
2323         Include glob_internal.h.
2324         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
2325         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
2326         worked only coincidentally.
2327         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
2328         Remove macros; now done in glob.in.h.
2329         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
2330         (glob): Properly initialize glob structure with
2331         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
2332         Remove old code using SHELL since Bash no longer
2333         uses this.
2334         (glob, prefix_array): Separate MS code better.
2335         (glob, glob_in_dir): Use C99 decls before statements when glibc
2336         does.
2337         (glob_in_dir): Remove old Amiga and VMS code.
2338         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
2339         separate files.
2340         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
2341         (__glibc_unlikely):
2342         Move here from glob.c.
2343         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
2344         (weak_alias): New macro.
2345         (__size_t): Remove.  All uses replaced by size_t.
2346         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
2347         * modules/glob (Files): Add +lib/glob_internal.h,
2348         lib/glob_pattern_p.c, lib/globfree.c.
2349         (Depends-on): Remove snippet/arg-nonnull.
2351 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2353         glob: port to clang's Undefined Sanitizer
2354         Problem reported by Tim Rühsen in:
2355         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
2356         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
2357         (glob_in_dir): Do not rely on undefined behavior in accessing
2358         struct members beyond their bounds.  Use a flexible array member
2359         instead.
2361 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2363         vc-list-files: port to Solaris 10
2364         * build-aux/vc-list-files: Don't assume test -e works.
2366 2017-08-21  Karl Berry  <karl@freefriends.org>
2368         * doc/posix-functions/srandom.texi (srandom): typo }.
2370 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2372         git-version-gen: port to Solaris 10
2373         Problem reported by Dagobert Michelsen in:
2374         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
2375         * build-aux/git-version-gen (v_from_git):
2376         Use expr instead of shell substitution.
2378 2017-08-19  Bruno Haible  <bruno@clisp.org>
2380         host-cpu-c-abi: Improve detection of MIPS ABI.
2381         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
2382         _MIPS_SIM.
2384 2017-08-17  Bruno Haible  <bruno@clisp.org>
2386         hypot tests: Fix test failure on FreeBSD 11.0/x86.
2387         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
2389 2017-08-17  Bruno Haible  <bruno@clisp.org>
2391         float: Fix LDBL_MIN value on FreeBSD/x86.
2392         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
2394 2017-08-17  Bruno Haible  <bruno@clisp.org>
2396         random: Fix test compilation failure on Cygwin 1.5.25.
2397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
2398         HAVE_DECL_SETSTATE.
2399         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
2400         declared.
2401         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
2402         HAVE_DECL_SETSTATE.
2403         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
2404         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
2405         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
2406         * doc/posix-functions/random.texi: Likewise.
2407         * doc/posix-functions/setstate.texi: Likewise.
2408         * doc/posix-functions/srandom.texi: Likewise.
2410 2017-08-16  Bruno Haible  <bruno@clisp.org>
2412         stdnoreturn: Fix test compilation failure on Cygwin.
2413         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
2414         <stdnoreturn.h> replacement.
2415         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
2416         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
2418 2017-08-16  Bruno Haible  <bruno@clisp.org>
2420         thread: Fix conflict with pthread_sigmask module.
2421         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
2422         it's defined as a macro.
2423         * modules/thread (Depends-on): Add pthread_sigmask.
2425 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2427         rename: port better to NetBSD
2428         * doc/posix-functions/rename.texi (rename): NetBSD 7
2429         does not have the link-count bug.
2430         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
2431         broken merely because rename ("a", "b") removes "a" when the two
2432         names are hard links to the same file.
2434 2017-08-16  Bruno Haible  <bruno@clisp.org>
2436         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
2437         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
2438         the target file names with '$(srcdir)/'.
2439         * modules/unicase/locale-language (Makefile.am): Likewise.
2440         * modules/unicase/special-casing (Makefile.am): Likewise.
2441         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
2442         * modules/unictype/category-byname (Makefile.am): Likewise.
2443         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
2444         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
2445         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
2446         * modules/unictype/property-byname (Makefile.am): Likewise.
2447         * modules/unictype/scripts (Makefile.am): Likewise.
2448         * modules/uninorm/composition (Makefile.am): Likewise.
2450 2017-08-16  Bruno Haible  <bruno@clisp.org>
2452         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
2453         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
2454         value for OpenBSD.
2456 2017-08-16  Bruno Haible  <bruno@clisp.org>
2458         rename, renameat: Update doc regarding NetBSD.
2459         * doc/posix-functions/rename.texi: Clarify that when using
2460         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
2461         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
2462         version.
2464 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2466         renameat2: port better to macOS
2467         * lib/renameat2.c (renameat2): Use renameatx_np if available.
2469         futimens: don’t assume struct timespec layout
2470         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
2471         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
2472         * tests/test-fdutimensat.c (main):
2473         * tests/test-futimens.h (test_futimens):
2474         * tests/test-lutimens.h (test_lutimens):
2475         * tests/test-utimens.h (test_utimens):
2476         * tests/test-utimensat.c (main):
2477         Don’t assume that struct timespec is a two-member structure in
2478         tv_sec, tv_nsec order.  Although this is true on all platforms we
2479         know about, POSIX does not guarantee it.
2481         rename: document+test NetBSD rename
2482         Test failure reported by Bruno Haible in:
2483         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
2484         This is an area where NetBSD is better-behaved than POSIX,
2485         so allow the NetBSD behavior in tests.
2486         * doc/posix-functions/rename.texi:
2487         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
2488         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
2490 2017-08-15  Bruno Haible  <bruno@clisp.org>
2492         renameat: Ensure declaration in <stdio.h> on NetBSD.
2493         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
2494         * doc/posix-functions/renameat.texi: Mention this problem.
2496 2017-08-15  Bruno Haible  <bruno@clisp.org>
2498         duplocale: Work around NetBSD 7.0 bug.
2499         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
2500         * lib/duplocale.c: Add comment about NetBSD problem.
2501         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
2503 2017-08-15  Bruno Haible  <bruno@clisp.org>
2505         duplocale tests: Verify use with *_l functions.
2506         * modules/duplocale-tests (configure.ac): Test for uselocale and
2507         some *_l functions.
2508         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
2509         from main.
2510         (get_locale_dependent_values_from, test_with_locale_parameter): New
2511         functions.
2512         (main): Test both test_with_uselocale and test_with_locale_parameter.
2514 2017-08-15  Bruno Haible  <bruno@clisp.org>
2516         extensions: Enable NetBSD specific extensions.
2517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
2519 2017-08-14  Bruno Haible  <bruno@clisp.org>
2521         open, openat: Update doc about O_CLOEXEC.
2522         * doc/posix-functions/open.texi: More concrete list of platforms.
2523         * doc/posix-functions/openat.texi: Likewise.
2525 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2527         open: support O_CLOEXEC
2528         * NEWS, doc/posix-functions/open.texi:
2529         * doc/posix-functions/openat.texi: Document this.
2530         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
2531         (GNULIB_defined_O_CLOEXEC): New symbol.
2532         * lib/open.c: Include cloexec.h.
2533         (open): Support O_CLOEXEC.
2534         * lib/openat.c: Include cloexec.h.
2535         (rpl_openat): Support O_CLOEXEC.
2536         * lib/popen-safer.c: Do not include cloexec.h.
2537         (open_noinherit): Remove.
2538         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
2539         * lib/save-cwd.c: Do not include cloexec.h.
2540         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
2541         * m4/open-cloexec.m4: New file.
2542         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
2543         Replace 'open' if O_CLOEXEC is not present.
2544         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
2545         Replace 'openat' if O_CLOEXEC is not present.
2546         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
2547         * modules/open (Files): Add m4/open-cloexec.m4.
2548         (Depends-on): Depend on cloexec if replacing 'open'.
2549         * modules/openat (Files): Add m4/open-cloexec.m4.
2550         (Depends-on): Depend on cloexec if replacing openat.
2551         * modules/popen-safer (Depends-on): Remove cloexec.
2552         * modules/save-cwd (Depends-on): Remove cloexec, and add
2553         fd-safer-flag and 'open'.
2555 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
2557         reallocarray: minor fixes
2558         * doc/glibc-functions/reallocarray.texi: Update version numbers.
2559         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
2560         * modules/reallocarray (License): Change from GPL to LGPL.
2561         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
2562         Indent properly and don't use tabs.
2564 2017-08-13  Darshit Shah  <darnir@gnu.org>
2566         reallocarray: New module
2567         reallocarray is a new function in glibc 2.26 to safely allocate an array
2568         of memory locations with integer overflow protection.
2569         * MODULES.html.sh: Add reallocarray.
2570         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
2571         * lib/reallocarray.c: New file to implement module reallocarray.
2572         * lib/stdlib.in.h: Add function declarations for reallocarray.
2573         * m4/reallocarray.m4: New file.
2574         * m4/stdlib_h.m4: Declare reallocarray.
2575         * modules/reallocarray: New file.
2576         * modules/reallocarray-test: New file.
2577         * modules/stdlib: Coerce stdlib.h to export reallocarray.
2578         * tests/test-reallocarray.c: New test.
2580 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2582         dirent-safer: fix cloexec race
2583         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
2584         (opendir_safer): Use F_DUPFD_CLOEXEC.
2585         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
2586         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
2587         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
2588         instead of dup_safer.
2590         fts: fix cloexec races
2591         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
2592         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
2593         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
2594         (fd_ring_check): Set cloexec flag on new file descriptors.
2595         (fts_build, fd_ring_check): While we’re at it, make sure the
2596         resulting file descriptor is not 0, 1, or 2, since that is easy.
2598 2017-08-11  Bruno Haible  <bruno@clisp.org>
2600         fts tests: Fix link error.
2601         Reported by Tom G. Christensen in
2602         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
2603         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
2605 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2607         fts: port recent changes to CentOS 6
2608         Problem reported by Tom G. Christensen in:
2609         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
2610         * lib/fts.c (fsword): New type.
2611         (struct dev_type, filesystem_type): Use it.
2612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
2613         Also, check for f_type only if fstatfs and sys/vfs.h work.
2615 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2617         tempname: do not depend on secure_getenv
2618         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
2619         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
2620         * modules/tempname (Depends-on): Remove secure_getenv.
2622 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
2624         extensions: add _OPENBSD_SOURCE
2625         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
2627 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
2628             Bruno Haible  <bruno@clisp.org>
2630         manywarnings: Add support for C++.
2631         * build-aux/g++-warning.spec: New file.
2632         * m4/manywarnings-c++.m4: New file.
2633         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
2634         redirects to manywarnings-c++.m4.
2635         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
2637 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2639         git-version-gen: another fix for tags with "-"
2640         * build-aux/git-version-gen: Improve fix for tags containing "-".
2641         Suggested by Markus Armbruster in:
2642         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
2644 2017-08-06  Bruno Haible  <bruno@clisp.org>
2646         warnings, manywarnings: Add support for multiple languages, not just C.
2647         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
2648         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
2649         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
2650         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
2651         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
2652         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
2653         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
2654         of the current language. If C++ is the current language, modify
2655         WARN_CXXFLAGS instead of WARN_CFLAGS.
2656         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
2657         gl_MANYWARN_ALL_GCC.
2658         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
2660 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
2662         git-version-gen: Fix for tags containing '-'
2664         Really old versions of git-describe (before v1.5.0, Feb 2007)
2665         don't have the number of commits in their long format output,
2666         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
2667         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
2668         recognizes both patterns, and normalizes the old format to the new one.
2670         Unfortunately, this normalization code gets confused when the tag
2671         contains '-'.  Reproducer:
2673             $ git-tag -m test v0.2-rc1
2674             $ build-aux/git-version-gen .tarball-version; echo
2675             build-aux/git-version-gen: WARNING: git rev-list failed
2676             UNKNOWN
2678         We take exact tag "v0.2-rc1" for the old format, extract the presumed
2679         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
2680         commits since tha tag.  Fails, because tag "v0.2" does not exist.
2682         * git-version-gen: We could perhaps drop support for versions from
2683         more than a decade ago.  But tightening the pattern match is easy
2684         enough, so do that.  Still breaks when you use version tags ending in
2685         something matching -g????, but you arguably get what you deserve then.
2687 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
2689         valgrind-tests: use ls, and cache
2690         * m4/valgrind-tests.m4: Test ls, not bash.
2691         Problem reported by Reuben Thomas.
2692         Also, cache the result so that it can be overridden.
2694 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
2696         manywarnings: port to 64-bit GCC builds of Emacs
2697         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
2698         object size rather than hardwiring 2147483647.  This is needed to
2699         build GNU Emacs, which has one conditional (and used
2700         only-in-theory) call to malloc with a literal greater than
2701         2147483647.
2703 2017-08-04  Bruno Haible  <bruno@clisp.org>
2705         Relax the license of some modules with no runtime code.
2706         * modules/std-gnu11 (License): Set to 'unlimited'.
2707         * modules/c99 (License): Likewise.
2708         Reported by Reuben Thomas <rrt@sc3d.org>.
2709         * modules/d-ino (License): Set to 'LGPL'.
2710         * modules/host-os (License): Likewise.
2711         * modules/longlong (License): Likewise.
2713 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
2715         renameat2: port to RHEL 7 + NFS
2716         * lib/renameat2.c (renameat2) [SYS_renameat2]:
2717         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
2718         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
2720 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2722         renameat2: port to non-renameat platforms
2723         Problem reported for MSVC-2015 by Gisle Vanem in:
2724         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
2725         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
2726         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
2728 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2730         manywarnings: port to 32-bit GCC bug
2731         Problem reported by Pino Toscano in:
2732         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
2733         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
2734         not 2**63 - 1, to work around the following GCC bug:
2735         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
2737 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2739         backupfile: new function to validate backup suffix
2740         * lib/backupfile.c (set_simple_backup_suffix): New function.
2741         (backupfile_internal): Use it.
2743         canonicalize: fix EOVERFLOW commentary
2744         Problem reported by Bruno Haible in:
2745         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
2746         * lib/canonicalize.c (canonicalize_filename_mode):
2747         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
2749         Don't interpret EOVERFLOW to mean nonexistence
2750         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
2751         may be EOVERFLOW; this is likely more useful than reporting the
2752         stat errno.
2753         * lib/glob.c (link_stat): Rename from link_exists2_p and
2754         return -1/0 instead of 0/1.  Caller changed.
2755         * lib/glob.c (link_exists_p):
2756         * lib/renameat2.c (rename_noreplace, renameat2):
2757         * lib/tempname.c (try_nocreate):
2758         If errno == EOVERFLOW then the directory entry exists, so do not
2759         act as if it does not exist.
2761         backup-rename: new module
2762         It is like backupfile, except it avoids some race conditions,
2763         and it does not output to stderr or exit.
2764         * MODULES.html.sh: Add backup-rename.
2765         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
2766         * modules/backup-rename: New files.
2767         * lib/backupfile.c: Turn this into an internals file, which
2768         contains code common to backupfile and backup_rename.  Include
2769         backupfile-internal.h instead of backupfile.h.  Do not include
2770         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
2771         renameat2.h and fcntl.h.
2772         (BACKUP_NOMEM): New constant.
2773         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
2774         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
2775         (backupfile_internal): Rename from find_backup_file_name.
2776         Support new arg RENAME.
2777         (backup_args, backup_types, get_version, xget_version):
2778         Move to lib/backup-find.c.
2779         * lib/backupfile.h (backup_file_rename): New decl.
2780         * modules/backupfile (Files): Add lib/backup-internal.h,
2781         lib/backup-find.c.
2782         (Depends-on): Add dirfd, fcntl, renameat2.
2783         (lib_SOURCES): Add backup-find.c.
2785         renameat2: port better to older Solaris
2786         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
2787         Add goto to use a label, to silence picky compilers.
2789         fts-tests: port to gcc -Wwrite-strings
2790         * tests/test-fts.c (base, base_d): New static vars.
2791         (argv, remove_tree, main): Use them.
2793 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2795         relocatable-lib{,-lgpl}: improve documentation
2796         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
2797         Various other updates.
2799 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
2800             Bruno Haible  <bruno@clisp.org>
2802         relocatable-lib{,-lgpl}: add Valgrind suppressions
2803         * lib/relocatable.valgrind: New file.
2804         * modules/relocatable-lib (Files): Add relocatable.valgrind.
2805         * modules/relocatable-lib-lgpl: Likewise.
2807 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2809         relocatable: Make the license on the sources the GPL.
2810         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
2811         LGPL, which was a special case so that the relocatable source files
2812         could be used without gnulib-tool, to GPL. They can still be used under
2813         the LGPL, using the --lgpl option to gnulib-tool.
2815 2017-07-30  Bruno Haible  <bruno@clisp.org>
2817         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
2818         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
2819         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
2820         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
2821         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
2823 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2825         faccessat: document AT_SYMLINK_NOFOLLOW issue
2826         * doc/posix-functions/faccessat.texi: Modernize platform list.
2827         Document AT_SYMLINK_NOFOLLOW limitation.
2829         renameat2: port to Solaris 10
2830         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
2831         with AT_SYMLINK_NOFOLLOW (which is not portable).
2832         (renameat): Undef before using, to avoid endless recursion when
2833         the replacement renameat calls renameat2 which calls the
2834         replacement renameat.
2835         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
2836         * modules/renameat2 (Depends-on): Remove faccessat.
2837         * modules/renameat-tests (test_renameat_LDADD):
2838         * modules/renameat2-tests (test_renameat2_LDADD):
2839         Remove $(LIB_EACCESS).
2841         renameat2: new module
2842         Although the Linux syscall renameat2 is not in glibc (yet?), it is
2843         useful to have access to its RENAME_NOREPLACE flag.
2844         * MODULES.html.sh (func_all_modules): Add renameat2.
2845         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
2846         * modules/renameat2-tests, tests/test-renameat2.c: New files.
2847         * lib/renameat.c (renameat): Move most of the implementation
2848         to renameat2, and just call renameat2.
2849         * modules/renameat (Files): Remove lib/at-func2.c.
2850         (Depends-on): Depend only on renameat2.
2851         (Include): Remove <fcntl.h>.
2852         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
2853         since renameat (via renameat2) might use faccessat.
2855 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
2857         vc-list-files: Adjust the script to support git worktrees
2858         * build-aux/vc-list-files: Require existence, not directory.
2860 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2862         doc: bring MODULES.html.sh up to date
2863         Somehow a few months ago we stopped updating MODULES.html.sh.
2864         I don’t recall explicitly deciding this, so I updated it now.
2865         Alternatively I suppose we could remove it.
2866         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
2867         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
2868         truncate, utime, utime-h, windows-stat-inodes,
2869         windows-stat-override, windows-stat-timespec, year2038.  Sort.
2871 2017-07-26  Jim Meyering  <meyering@fb.com>
2873         fprintftime: fix build-break caused by recent renaming
2874         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
2875         "strftime.c".
2876         * modules/fprintftime: Depend directly on nstrftime.
2878 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2880         regex: work with GCC7's -Werror=implicit-fallthrough=
2881         * lib/regex_internal.h (FALLTHROUGH): New macro.
2882         * lib/regcomp.c (peek_token_bracket, parse_expression):
2883         * lib/regexec.c (check_node_accept): Use it.
2885 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2887         fts: simplify fts_build
2888         * lib/fts.c (fts_build): Simplify, and be lazier about
2889         calling leaf_optimization.
2891         fts: three levels of leaf optimization
2892         * lib/fts.c (enum leaf_optimization): New type with three values.
2893         (S_MAGIC_AFS): New macro.  Sort them.
2894         (leaf_optimization): Rename from leaf_optimization_applies, and
2895         return enum leaf_optimization instead of bool.  All uses changed.
2896         Add cases for unknown type and for AFS.
2897         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
2899         fts: cache dirent_inode_sort_may_be_useful too
2900         * lib/fts.c (struct dev_type): New struct.
2901         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
2902         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
2903         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
2904         Now takes FTSENT const *, not int.  All uses changed.  Use
2905         filesystem_type to cache.
2906         (link_count_optimize_ok): Remove.  Caller changed to use
2907         leaf_optimization_applies, which now uses shared cache.
2909         fts: introduce MIN_DIR_NLINK
2910         * lib/fts.c (MIN_DIR_NLINK): New constant.
2911         Use it instead of 2, whenever we are talking about link counts.
2913         fts: nlink_t signedness fixups
2914         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
2915         so that root need not be a special case later.
2916         (fts_read): Remove now-redundant test for fts_level.
2917         Do not assume that nlink_t is signed.
2918         (fts_build): Remove useless decrement of nlinks.
2919         (fts_stat): Avoid unlikely signed integer overflow later, if
2920         nlink_t is signed.
2922         fts-tests: new module
2923         * modules/fts-tests, tests/test-fts.c: New files.
2925 2017-07-23  Bruno Haible  <bruno@clisp.org>
2927         Rename module 'strftime' to 'nstrftime'.
2928         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
2929         * lib/nstrftime.c: Renamed from lib/strftime.c.
2930         * modules/nstrftime: Renamed from modules/strftime.
2931         (Files, Makefile.am): Update.
2932         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
2933         Fix comment.
2934         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
2935         (Files, Makefile.am): Update.
2936         * modules/strftime: New file, an obsolete indirection.
2937         * doc/posix-functions/strftime.texi: Update reference.
2938         * config/srclist.txt: Update info.
2939         * NEWS: Mention the change.
2941 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
2943         malloca: Silence a warning from clang's memory sanitizer.
2944         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
2945         (freea): Use it.
2947 2017-07-18  Bruno Haible  <bruno@clisp.org>
2949         host-cpu-c-abi: Fix detection of MIPS ABI.
2950         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
2951         ABI, not the CPU instruction set.
2953 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2955         explicit_bzero: new module
2956         The explicit_bzero function has been added to glibc.
2957         This module is intended to supports its use in GNU programs.
2958         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
2959         * m4/explicit_bzero.m4, modules/explicit_bzero:
2960         New files.
2961         * doc/gnulib.texi (Glibc string.h): Link to new doc.
2962         * lib/string.in.h (explicit_bzero): Declare.
2963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
2964         * modules/string (string.h): Substitute its vars.
2966 2017-07-16  Bruno Haible  <bruno@clisp.org>
2968         threadlib: Support static linking.
2969         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
2970         set gl_cv_have_weak to 'no'.
2972 2017-07-16  Bruno Haible  <bruno@clisp.org>
2974         unicase/locale-language: Fix link dependencies.
2975         * modules/unicase/locale-language (Link): New section.
2976         * modules/unicase/locale-language-tests (Makefile.am): Link
2977         test-locale-language program with $(LIBTHREAD).
2979 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2981         sys_socket: Add support for OpenVMS.
2982         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
2983         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
2985 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2987         sys_resource: Add support for OpenVMS.
2988         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
2989         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
2991 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2992             Bruno Haible  <bruno@clisp.org>
2994         math: Add support for OpenVMS.
2995         * lib/math.in.h [__VMS]: Include <fp.h>.
2996         * doc/posix-headers/math.texi: Mention OpenVMS issues.
2998 2017-07-15  Bruno Haible  <bruno@clisp.org>
3000         getdtablesize: Add minimal support for OpenVMS.
3001         Reported by John E. Malmberg <wb8tyw@qsl.net>.
3002         * modules/getdtablesize (Description): Fix.
3003         * lib/getdtablesize.c: Fix comment.
3004         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
3005         getdtablesize() function, even though the test fails.
3006         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
3007         limitation on OpenVMS.
3009 2017-07-13  Bruno Haible  <bruno@clisp.org>
3011         Revisit cross-compilation guesses.
3012         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
3014 2017-07-13  Bruno Haible  <bruno@clisp.org>
3016         Improve cross-compilation guesses for native Windows.
3017         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
3018         Windows.
3019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
3020         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
3021         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3022         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
3023         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
3024         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3025         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3026         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3027         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3028         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3029         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3030         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
3031         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3032         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3033         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
3034         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3035         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
3036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3037         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3038         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3039         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3040         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3041         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
3042         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
3043         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
3044         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3045         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3046         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3047         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3048         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
3049         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3051         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3052         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
3053         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
3054         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
3055         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3056         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3057         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3058         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3059         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3060         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3061         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
3062         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
3063         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3064         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
3065         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
3066         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
3067         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3068         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
3069         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3070         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
3071         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
3072         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
3073         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
3074         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
3075         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
3076         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3077         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
3078         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3080         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3081         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3082         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3083         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3085         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3086         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3087         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
3088         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
3089         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3090         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3091         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3092         * m4/regex.m4 (gl_REGEX): Likewise.
3093         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3094         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
3095         gl_FUNC_REMAINDERF_WORKS): Likewise.
3096         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
3097         gl_FUNC_REMAINDERL_WORKS): Likewise.
3098         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3099         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3101         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3103         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3104         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3105         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3106         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
3107         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3108         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
3109         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3110         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3111         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3112         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3113         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3114         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3115         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3116         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3117         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3118         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3119         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3120         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3121         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3122         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3123         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3124         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3125         Likewise.
3126         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3127         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
3128         Windows. Enable also on Autoconf 2.70.
3129         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3130         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3131         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3132         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
3133         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3134         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
3135         for native Windows.
3136         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3137         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
3139 2017-07-13  Bruno Haible  <bruno@clisp.org>
3141         Improve cross-compilation guesses for native Windows.
3142         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
3143         Windows.
3144         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
3145         memchr.m4.
3146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3148 2017-07-13  Bruno Haible  <bruno@clisp.org>
3150         Improve cross-compilation guesses for native Windows.
3151         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
3152         native Windows.
3153         (gl_FUNC_FFLUSH): Update accordingly.
3154         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
3155         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3157 2017-07-11  Bruno Haible  <bruno@clisp.org>
3159         More systematic m4 quoting and indentation.
3160         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
3161         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3162         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3164         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3165         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
3166         gl_WINSIZE_IN_PTEM): Likewise.
3167         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
3168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3169         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3170         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
3171         Correct indentation.
3172         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3173         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3174         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
3175         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3176         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3179 2017-07-10  Bruno Haible  <bruno@clisp.org>
3181         round, roundf: Avoid compiler warning in configure test.
3182         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
3183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3185 2017-07-10  Bruno Haible  <bruno@clisp.org>
3187         getlogin tests: Avoid #ifdefs when sharing code between modules.
3188         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
3189         * modules/getlogin-tests (Files): Likewise. Remove
3190         tests/test-getlogin_r.c.
3191         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
3192         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
3193         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
3194         getlogin().
3196 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3198         getlogin: don’t assume one name per uid
3199         Problem reported by Wolfgang F. Muthmann (Bug#27640).
3200         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
3201         (ttyname): Remove test.
3202         * modules/getlogin_r-tests (ttyname): Remove test.
3203         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
3204         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
3205         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
3206         getlogin rather than getlogin_r.  This avoids code duplication.
3207         (main): Use isatty and fstat rather than ttyname and stat.
3208         Use getpwnam instead of getpwuid, to be portable to test platforms
3209         that have multiple login names for the same uid.
3211 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
3212             Bruno Haible  <bruno@clisp.org>
3214         glob: Fix more memory leaks.
3215         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
3216         returning.
3217         Reported by Tim Rühsen.
3219 2017-07-10  Bruno Haible  <bruno@clisp.org>
3221         Make sure $host and $host_os are defined when used.
3222         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
3223         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
3224         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3225         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3226         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3227         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
3228         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3229         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
3230         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3231         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3232         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
3233         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
3234         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3235         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
3236         m4_ifdef block.
3238 2017-07-09  Bruno Haible  <bruno@clisp.org>
3240         *printf: Fix cross-compilation guess for Solaris.
3241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
3242         2010-12-21.
3244 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
3245             Bruno Haible  <bruno@clisp.org>
3247         vasnprintf: port to macOS 10.13
3248         Problem reported by comex in:
3249         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
3250         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
3252 2017-07-06  Bruno Haible  <bruno@clisp.org>
3254         imaxdiv tests: Fix logic.
3255         * tests/test-imaxdiv.c (main): Use == instead of =.
3256         Reported by Coverity.
3258 2017-07-06  Bruno Haible  <bruno@clisp.org>
3260         uninorm/filter: Fix use-after-free bug.
3261         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
3262         sortbuf == filter->sortbuf invariant.
3263         Reported by Coverity.
3265 2017-07-06  Bruno Haible  <bruno@clisp.org>
3267         glob: Fix more memory leaks.
3268         * lib/glob.c (glob): Free dirname before returning.
3269         Reported by Coverity and Tim Rühsen.
3271 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3273         parse-datetime: fix uninit var bug
3274         Reported by Bruno Haible in:
3275         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
3276         * lib/parse-datetime.y (parse_datetime2): Do not use
3277         uninitialized.
3279 2017-07-05  Bruno Haible  <bruno@clisp.org>
3281         doc: Update for MSVC 14.
3282         * doc/posix-headers/*.texi: Add info about MSVC 14.
3283         * doc/posix-functions/*.texi: Likewise.
3284         * doc/pastposix-functions/*.texi: Likewise.
3285         * doc/glibc-headers/*.texi: Likewise.
3286         * doc/glibc-functions/*.texi: Likewise.
3288 2017-07-05  Bruno Haible  <bruno@clisp.org>
3290         sched: Fix build failure on native Windows (regression from 2017-06-19).
3291         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
3293 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
3295         stdioext: Port to OpenVMS.
3296         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
3297         * lib/fpending.c (fpending): Remove non-working VMS specific code.
3298         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
3299         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
3300         * lib/fpurge.c (fpurge): Likewise.
3301         * lib/freadable.c (freadable): Likewise.
3302         * lib/freadahead.c (freadahead): Likewise.
3303         * lib/freading.c (freading): Likewise.
3304         * lib/freadptr.c (freadptr): Likewise.
3305         * lib/freadseek.c (freadseek): Likewise.
3306         * lib/fseeko.c (fseeko): Likewise.
3307         * lib/fseterr.c (fseterr): Likewise.
3308         * lib/fwritable.c (fwriteable): Likewise.
3309         * lib/fwriting.c (fwriting): Likewise.
3311 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
3313         glob: Declare variables at the very start of their scope.
3314         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
3315         its separate scope, so the functions will compile on Haiku.
3317 2017-07-01  Bruno Haible  <bruno@clisp.org>
3319         logbl: Work around a glibc bug on PowerPC64LE.
3320         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
3321         numbers.
3322         * doc/posix-functions/logbl.texi: Update.
3324 2017-06-29  Bruno Haible  <bruno@clisp.org>
3326         stat, fstat: Compile stat-w32.c only on platforms that need it.
3327         Suggested by Paul Eggert.
3328         * modules/stat (configure.ac): Request stat-w32.o only on native
3329         Windows.
3330         * modules/fstat (configure.ac): Likewise.
3332 2017-06-25  Bruno Haible  <bruno@clisp.org>
3334         stat: Improve last change.
3335         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
3337 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3339         stat: port to xlc 12.01
3340         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
3341         12.01 complains "Compilation unit is empty."
3343 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3345         xalloc-oversized: port to icc
3346         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
3347         __builtin_mul_overflow if ICC is defined, as this results in
3348         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
3349         20170213.
3351 2017-06-19  Bruno Haible  <bruno@clisp.org>
3353         classpath: Avoid including config.h twice, as it produces warnings.
3354         Reported by John E. Malmberg <wb8tyw@gmail.com>.
3355         * lib/classpath.h: Conditionalize the include of config.h.
3357 2017-06-19  Bruno Haible  <bruno@clisp.org>
3358             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
3360         sched: Fix compilation failure on OpenVMS.
3361         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
3362         test whether <pthread.h> exists and defines struct sched_param.
3363         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
3365 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3367         diffseq: port to GCC 7 with --enable-gcc-warnings
3368         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
3369         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
3370         not complain about big_snake being defined but not used.
3372 2017-06-15  Bruno Haible  <bruno@clisp.org>
3374         gettext-h: Update theoretical condition for use of variable size arrays.
3375         Reported by Paul Eggert.
3376         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
3377         to include the theoretical condition for availability of variable size
3378         arrays, if we could trust the value of __STDC_VERSION__.
3380 2017-06-12  Bruno Haible  <bruno@clisp.org>
3382         Relicense some modules under LGPLv2+.
3383         Daiki Ueno's approval is in
3384         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
3385         * modules/uniwidth/base (License): Change to LGPLv2+.
3386         * modules/uniwidth/width (License): Likewise.
3388 2017-06-11  Bruno Haible  <bruno@clisp.org>
3390         localename: Fix test failure on DragonFly BSD.
3391         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
3392         like FreeBSD.
3394 2017-06-11  Bruno Haible  <bruno@clisp.org>
3396         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
3397         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
3398         * lib/float.in.h: Likewise.
3399         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
3401 2017-06-11  Bruno Haible  <bruno@clisp.org>
3403         gnulib-tool: Clean up after autotools.
3404         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
3405         useless directory left over by the Autotools.
3407 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
3409         getopt-posix: port to glibc 2.25.90
3410         Problem reported by Daniel P. Berrange in:
3411         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
3412         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
3413         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
3414         #undef if __GETOPT_PREFIX is defined.
3416 2017-06-11  Bruno Haible  <bruno@clisp.org>
3418         strtod-obsolete: Fix license.
3419         * modules/strtod-obsolete (License): Change to LGPL.
3421 2017-06-10  Jim Meyering  <meyering@fb.com>
3423         maint: update to work with GCC7's -Werror=implicit-fallthrough=
3424         * lib/savewd.c (FALLTHROUGH): Define.
3425         (savewd_save, savewd_restore): Use this, rather than a comment,
3426         whenever one switch case falls through into the next.
3428 2017-06-08  Bruno Haible  <bruno@clisp.org>
3430         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
3431         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
3432         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
3433         case.
3435 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3437         doc: remove robots, add prereqs
3438         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
3439         builds.  Simon's robot site does not seem to be up, so remove
3440         mentions of it for now.
3442 2017-06-08  Bruno Haible  <bruno@clisp.org>
3444         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
3445         * gnulib-tool (func_symlink_target): New function, extracted from
3446         func_symlink.
3447         (func_symlink, func_symlink_if_changed): Use it.
3449 2017-06-08  Bruno Haible  <bruno@clisp.org>
3451         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
3452         * gnulib-tool (func_ln_s): Determine cp_src correctly.
3454 2017-06-07  Bruno Haible  <bruno@clisp.org>
3456         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
3457         Reported by John E. Malmberg <wb8tyw@gmail.com> in
3458         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
3459         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
3460         override, pass 2 arguments to getcwd, not 3.
3462 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3464         same-inode: port better to VMS 8.2 and later
3465         Problem reported by John E. Malmberg in:
3466         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
3467         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
3468         Use the usual POSIX definition.
3469         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
3471 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3473         error: fix POSIX violation for va_end
3474         Problem reported by Bruno Haible in:
3475         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
3476         * lib/error.c (error_tail): Do not call va_end here.
3477         (error, error_at_line): Call it here instead.
3479 2017-05-28  Bruno Haible  <bruno@clisp.org>
3481         c-strtod: Make it usable in C++ mode.
3482         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
3484 2017-05-25  Jim Meyering  <meyering@fb.com>
3486         quotearg: fix compilation failure due to FALLTHROUGH misuse
3487         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
3488         macro back to /* fall through */ comment.  The macro can apply only
3489         to a following case statement.  Reported by Assaf Gordon.
3491 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3493         intprops: port to recent icc
3494         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
3495         but does not support __builtin_add_overflow etc.
3496         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
3497         Define to 0.
3499 2017-05-23  Karl Berry  <karl@freefriends.org>
3501         * config/srclist.txt (iconv.m4): sync broken, comment out
3502         until (hopefully) the next gettext release.
3504 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3506         Remove repeated words in comments.
3508 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
3510         fallthrough: reinstate a FALLTHROUGH instance in quotearg
3511         quotearg.c: Reinstate this instance which is significant
3512         when the if branch is not taken.
3514 2017-05-21  Bruno Haible  <bruno@clisp.org>
3516         gnulib-tool: Add options to create hard links.
3517         * gnulib-tool (func_usage): Document options --hardlink,
3518         --local-hardlink, --more-hardlinks.
3519         (func_symlink): Renamed from func_ln.
3520         (func_symlink_if_changed): Renamed from func_ln_if_changed.
3521         (func_hardlink): New function.
3522         (copymode, lcopymode): New variables.
3523         (symbolic, lsymbolic): Remove variables.
3524         (Options): Implement options --hardlink, --local-hardlink,
3525         --more-hardlinks.
3526         (func_should_link): Renamed from func_should_symlink. Set copyaction.
3527         (func_add_file, func_update_file): Update invocation of
3528         func_should_link. Invoke func_hardlink when appropriate.
3529         (func_import): Update comments.
3530         (func_create_testdir): Update invocation of func_should_link. Invoke
3531         func_hardlink when appropriate.
3532         Finally, invoke 'git update-index --refresh' to mitigate the effects of
3533         the hard links on git.
3535 2017-05-20  Bruno Haible  <bruno@clisp.org>
3537         argp: Simplify bit manipulation.
3538         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
3539         on a signed integer type.
3541 2017-05-20  Bruno Haible  <bruno@clisp.org>
3543         Avoid wrong configure results with gcc -fsanitize=address.
3544         This completes the work done on 2016-02-06 on this topic.
3545         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
3546         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3548         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3549         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
3550         returning.
3551         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3552         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3553         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3554         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3555         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3556         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3557         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
3558         free allocated memory before returning.
3559         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3560         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
3561         objects before returning.
3562         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
3563         returning.
3565 2017-05-20  Bruno Haible  <bruno@clisp.org>
3567         gnulib-tool: Don't create hard links between gnulib and its testdirs.
3568         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
3570 2017-05-20  Bruno Haible  <bruno@clisp.org>
3572         argp, tsearch tests: Fix file list.
3573         * modules/argp-tests (Files): Add tests/macros.h.
3574         * modules/tsearch-tests (Files): Likewise.
3576 2017-05-20  Bruno Haible  <bruno@clisp.org>
3578         getopt-posix tests: Remove redundant include.
3579         * tests/test-getopt.h: Don't include "macros.h". It's already included
3580         by tests/test-getopt-main.h.
3582 2017-05-19  Jim Meyering  <meyering@fb.com>
3584         dfa: two small simplifications
3585         * lib/dfa.c (build_state): Avoid repeating longer expressions.
3587 2017-05-18  Jim Meyering  <meyering@fb.com>
3589         fallthrough: update for GCC 7/8
3590         * lib/quotearg.c (FALLTHROUGH): New macro.
3591         Use it whenever one switch case falls through into the next,
3592         replacing "/* Fall through */" comments.  This exposed one
3593         instance of an unwarranted "fall through" comment: unwarranted
3594         because it preceded a "goto" label not a case statement.
3595         * lib/freopen-safer.c (freopen_safer): Likewise.
3596         * lib/fts.c (leaf_optimization_applies): Likewise.
3597         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3598         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
3599         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
3600         tests/macros.h for the definition.
3601         * tests/test-argp.c (group1_parser): Likewise.
3602         * tests/test-getopt.h (getopt_loop): Likewise.
3604 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3606         argp: fix shift bug
3607         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
3608         behavior on shift overflow, caught by gcc -fsanitize=undefined.
3610         argp: fix pointer-subtraction bug
3611         * lib/argp-help.c (hol_append): Don’t subtract pointers to
3612         different arrays, as this can run afoul of -fcheck-pointer-bounds.
3613         See the thread containing Bruno Haible’s report in:
3614         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
3616 2017-05-19  Bruno Haible  <bruno@clisp.org>
3618         printf-posix tests: Avoid test failure with "gcc --coverage".
3619         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3620         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
3621         than 5000000.
3622         * tests/test-fprintf-posix2.c (main): Likewise.
3624 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3626         closeout: don’t close stderr when sanitizing
3627         * NEWS: Document this.
3628         * lib/closeout.c (__has_feature): New macro, if not already defined.
3629         (SANITIZE_ADDRESS): New constant.
3630         (close_stdout): Don’t close stderr if sanitizing addresses.
3632 2017-05-19  Bruno Haible  <bruno@clisp.org>
3634         get-rusage-data tests: Avoid failure on Linux/glibc.
3635         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
3636         on glibc systems.
3638 2017-05-18  Bruno Haible  <bruno@clisp.org>
3640         localename: Include necessary header files on Cygwin.
3641         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
3642         where NL_LOCALE_NAME is defined.
3644 2017-05-18  Bruno Haible  <bruno@clisp.org>
3646         gettext: Update macros from gettext git.
3647         * m4/intldir.m4: Require Autoconf >= 2.60.
3648         * m4/progtest.m4: Fix typos in copyright notice.
3650 2017-05-18  Bruno Haible  <bruno@clisp.org>
3652         copy-file tests: Fix link error (regression from 2017-05-01).
3653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3654         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
3655         $(LIB_CLOCK_GETTIME).
3657 2017-05-18  Bruno Haible  <bruno@clisp.org>
3659         unicase/special-casing: Fix incompatibility with gperf-3.0.4
3660         (regression from 2017-02-13).
3661         * lib/unicase/special-casing.in.h: Renamed from
3662         lib/unicase/special-casing.h.
3663         * modules/unicase/special-casing (Files): Add
3664         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
3665         (Makefile.am): Add rule for generating unicase/special-casing.h.
3666         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
3667         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
3668         not "special-casing.h".
3669         * lib/unicase/u*.c: Likewise.
3671 2017-05-17  Bruno Haible  <bruno@clisp.org>
3673         README: Don't ask people to read a TeXinfo file.
3674         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3675         * README: Tell people how to read the HTML formatted manual.
3677 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3679         parse-datetime: Fix memleak
3680         * lib/parse-datetime.y (parse_datetime2): Cleanup on
3681         localtime_rz() failure.
3683 2017-05-16  Bruno Haible  <bruno@clisp.org>
3685         javacomp: Fix handle leak.
3686         Found by Coverity.
3687         * lib/javacomp.c (get_classfile_version): Close fd before returning.
3689 2017-05-16  Bruno Haible  <bruno@clisp.org>
3691         relocate: Make it easier to reclaim allocated memory.
3692         * lib/relocatable.h (relocate2): New declaration/macro.
3693         * lib/relocatable.c (relocate2): New function.
3694         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
3695         relocate2 function.
3696         * lib/localcharset.c (relocate2): Define fallback.
3697         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
3698         allocated memory.
3699         * lib/javaversion.c (relocate2): Define fallback.
3700         (javaexec_version): Invoke relocate2 instead of relocate. Free the
3701         allocated memory.
3703 2017-05-16  Bruno Haible  <bruno@clisp.org>
3705         relocate: Simplify EMX specific code.
3706         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
3707         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
3709 2017-05-16  Bruno Haible  <bruno@clisp.org>
3711         sigpipe tests: Fix file list.
3712         * modules/sigpipe-tests (Files): Add tests/macros.h.
3714 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3716         manywarnings: update for GCC 7
3717         * build-aux/gcc-warning.spec:
3718         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
3719         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
3720         requires a non-comment fallthrough attribute.  This is a bit
3721         cleaner than the comment versions.
3722         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
3723         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
3724         Use it whenever one switch case falls through into the next.
3725         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
3726         Use FALLTHROUGH macro.
3728 2017-05-15  Bruno Haible  <bruno@clisp.org>
3730         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
3731         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
3732         @ALLOCA@, not @LTALLOCA@.
3734 2017-05-15  Bruno Haible  <bruno@clisp.org>
3736         sys_select: Avoid "was expanded before it was required" warning.
3737         * modules/sys_select (configure.ac): Require, not invoke,
3738         gl_HEADER_SYS_SELECT.
3740 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3742         gnulib-tool: improve GNU Make debugging
3743         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
3744         Report autoconf diagnostics when it fails, in the output makefile.
3746 2017-05-14  Bruno Haible  <bruno@clisp.org>
3748         stat-time tests: Improve comment.
3749         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
3751 2017-05-14  Bruno Haible  <bruno@clisp.org>
3753         same-inode: Adapt for windows-stat-inodes.
3754         * lib/same-inode.h: Include <sys/types.h>.
3755         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
3756         * modules/same-inode (Depends-on): Add sys_types.
3758 2017-05-14  Bruno Haible  <bruno@clisp.org>
3760         windows-stat-inodes: New module.
3761         * m4/windows-stat-inodes.m4: New file.
3762         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
3763         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
3764         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
3765         (_GL_WINDOWS_STAT_INODES): New macro.
3766         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
3767         (GetFileInformationByHandleExFunc): New variable.
3768         (initialize): Initialize it.
3769         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
3770         st_ino appropriately.
3771         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
3772         a fallback, because it does not provide st_dev and st_ino values.
3773         * modules/fstat (Depends-on): Add 'verify'.
3774         * modules/windows-stat-inodes: New file.
3775         * doc/windows-stat-inodes.texi: New file.
3776         * doc/gnulib.texi: Include it.
3777         * doc/posix-headers/sys_stat.texi: Mention the new module.
3779 2017-05-14  Bruno Haible  <bruno@clisp.org>
3781         stat-time tests: Workaround for native Windows.
3782         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
3783         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
3784         New variables.
3785         (initialize_filenames): New function.
3786         (main): Invoke it.
3787         (cleanup, prepare_test): Update.
3789 2017-05-14  Bruno Haible  <bruno@clisp.org>
3791         stat-time: Adapt for windows-stat-timespec.
3792         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
3793         entire st_ctim field.
3795 2017-05-13  Jim Meyering  <meyering@fb.com>
3797         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
3798         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
3799         file that uses the assume macro, claiming that verify.h is unused.
3801 2017-05-13  Bruno Haible  <bruno@clisp.org>
3803         Use symbolic values for _WIN32_WINNT.
3804         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
3805         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3807 2017-05-13  Bruno Haible  <bruno@clisp.org>
3809         year2038: New module.
3810         * m4/year2038.m4: New file.
3811         * modules/year2038: New file.
3812         * doc/year2038.texi: New file.
3813         * doc/gnulib.texi: Include it.
3815 2017-05-13  Bruno Haible  <bruno@clisp.org>
3817         largefile: Simplify.
3818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
3819         of _GL_WINDOWS_64_BIT_ST_SIZE.
3821 2017-05-13  Bruno Haible  <bruno@clisp.org>
3823         largefile: Improve and document.
3824         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
3825         the mingw headers already define 'stat' appropriately.
3826         * modules/largefile (Description): Clarify.
3827         * doc/largefile.texi: New file.
3828         * doc/gnulib.texi: Include it.
3829         * doc/posix-headers/sys_types.texi: Update.
3831 2017-05-13  Bruno Haible  <bruno@clisp.org>
3833         truncate: New module.
3834         * lib/unistd.in.h (truncate): New declaration.
3835         * lib/truncate.c: New file.
3836         * m4/truncate.m4: New file.
3837         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
3838         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
3839         REPLACE_TRUNCATE.
3840         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
3841         HAVE_TRUNCATE, REPLACE_TRUNCATE.
3842         * modules/truncate: New file.
3843         * tests/test-unistd-c++.cc (truncate): Test signature.
3844         * doc/posix-functions/truncate.texi: Mention the new module.
3846         * tests/test-truncate.c: New file.
3847         * modules/truncate-tests: New file.
3849 2017-05-13  Bruno Haible  <bruno@clisp.org>
3851         windows-stat-timespec: New module.
3852         * modules/windows-stat-timespec: New file.
3853         * m4/windows-stat-timespec.m4: New file.
3854         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
3855         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
3856         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
3857         fields st_atim, st_mtim, st_ctim.
3858         (st_atime, st_mtime, st_ctime): Define as macros.
3859         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
3860         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
3861         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
3862         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
3863         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
3864         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
3865         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3866         FILETIME to 'struct timespec', not 'time_t'.
3867         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3868         FILETIME to 'struct timespec', not 'time_t'.
3869         * lib/stat-time.h (STAT_TIMESPEC): Define also if
3870         _GL_WINDOWS_STAT_TIMESPEC.
3871         * doc/windows-stat-timespec.texi: New file.
3872         * doc/gnulib.texi: Include it.
3874 2017-05-13  Bruno Haible  <bruno@clisp.org>
3876         windows-stat-override: New module.
3877         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
3878         definition. Define GNULIB_defined_struct_stat.
3879         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
3880         link error if this symbol is used and the corresponding module is not
3881         in use.
3882         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
3883         GNULIB_OVERRIDES_STRUCT_STAT.
3884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
3885         GNULIB_OVERRIDES_STRUCT_STAT.
3886         * modules/sys_stat (Makefile.am): Substitute
3887         GNULIB_OVERRIDES_STRUCT_STAT.
3888         * modules/windows-stat-override: New file.
3890 2017-05-13  Bruno Haible  <bruno@clisp.org>
3892         fstat: Fix module dependency conditions.
3893         * modules/fstat (Depends-on): Fix typo.
3895 2017-05-13  Bruno Haible  <bruno@clisp.org>
3897         stat, fstat: Complete removal of old native Windows code.
3898         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
3899         * lib/fstat.c: Likewise.
3900         * lib/stat-w32.c: Likewise.
3902 2017-05-13  Bruno Haible  <bruno@clisp.org>
3904         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
3905         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
3907 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3909         getopt-posix: port to mingw
3910         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
3911         Problem reported by Daniel P. Berrage in:
3912         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
3914 2017-05-11  Bruno Haible  <bruno@clisp.org>
3916         gettimeofday: Increase precision on mingw.
3917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
3918         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
3919         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
3920         GetSystemTimePreciseAsFileTime based implementation always.
3921         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
3922         mingw.
3924 2017-05-11  Bruno Haible  <bruno@clisp.org>
3926         poll: Fix confusion between SOCKETs and FDs on native Windows.
3927         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
3928         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
3930 2017-05-11  Bruno Haible  <bruno@clisp.org>
3932         doc: Clarify doc about socket functions on native Windows.
3933         This reworks doc that was added on 2008-09-29.
3934         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
3935         clearer wording.
3936         * doc/posix-functions/accept.texi: Use clearer wording.
3937         * doc/posix-functions/bind.texi: Likewise.
3938         * doc/posix-functions/connect.texi: Likewise.
3939         * doc/posix-functions/getpeername.texi: Likewise.
3940         * doc/posix-functions/getsockname.texi: Likewise.
3941         * doc/posix-functions/getsockopt.texi: Likewise.
3942         * doc/posix-functions/ioctl.texi: Likewise.
3943         * doc/posix-functions/listen.texi: Likewise.
3944         * doc/posix-functions/recv.texi: Likewise.
3945         * doc/posix-functions/recvfrom.texi: Likewise.
3946         * doc/posix-functions/send.texi: Likewise.
3947         * doc/posix-functions/sendto.texi: Likewise.
3948         * doc/posix-functions/setsockopt.texi: Likewise.
3949         * doc/posix-functions/shutdown.texi: Likewise.
3950         * doc/posix-functions/socket.texi: Likewise.
3952 2017-05-10  Bruno Haible  <bruno@clisp.org>
3954         poll: Fix link error on native Windows.
3955         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
3957 2017-05-10  Bruno Haible  <bruno@clisp.org>
3959         time: Fix missing initialization of HAVE_TIMEZONE_T.
3960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
3961         here...
3962         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
3963         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
3964         gl_HEADER_SYS_TIME_H_DEFAULTS.
3965         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
3966         (configure.ac): Remove useless quoting.
3968 2017-05-10  Bruno Haible  <bruno@clisp.org>
3970         Implement a way to opt out from MSVC support, part 2.
3971         * modules/msvc-inval (Include): Document recommended idiom.
3972         * modules/msvc-nothrow (Include): Likewise.
3974         Implement a way to opt out from MSVC support.
3975         This is useful for Emacs.
3976         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
3977         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
3978         * lib/error.c: Likewise.
3979         * lib/fcntl.c: Likewise.
3980         * lib/flock.c: Likewise.
3981         * lib/fstat.c: Likewise.
3982         * lib/fsync.c: Likewise.
3983         * lib/ioctl.c: Likewise.
3984         * lib/isapipe.c: Likewise.
3985         * lib/lseek.c: Likewise.
3986         * lib/nonblocking.c: Likewise.
3987         * lib/poll.c: Likewise.
3988         * lib/select.c: Likewise.
3989         * lib/sockets.h: Likewise.
3990         * lib/sockets.c: Likewise.
3991         * lib/stdio-read.c: Likewise.
3992         * lib/stdio-write.c: Likewise.
3993         * lib/utimens.c: Likewise.
3994         * lib/w32sock.h: Likewise.
3995         * lib/w32spawn.h: Likewise.
3996         * tests/test-cloexec.c: Likewise.
3997         * tests/test-dup-safer.c: Likewise.
3998         * tests/test-dup2.c: Likewise.
3999         * tests/test-dup3.c: Likewise.
4000         * tests/test-fcntl.c: Likewise.
4001         * tests/test-pipe.c: Likewise.
4002         * tests/test-pipe2.c: Likewise.
4003         * lib/ftruncate.c: Likewise.
4004         (chsize_nothrow): Renamed from chsize.
4005         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
4006         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4007         * lib/close.c: Likewise.
4008         * lib/dup.c: Likewise.
4009         * lib/fclose.c: Likewise.
4010         * lib/raise.c: Likewise.
4011         * tests/test-fgetc.c: Likewise.
4012         * tests/test-fputc.c: Likewise.
4013         * tests/test-fread.c: Likewise.
4014         * tests/test-fwrite.c: Likewise.
4015         * lib/getdtablesize.c: Likewise.
4016         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
4017         * lib/isatty.c: Don't include msvc-inval.h if
4018         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4019         Include <io.h> as an alternative to msvc-nothrow.h.
4020         * lib/read.c: Likewise.
4021         * lib/write.c: Likewise.
4022         * lib/dup2.c: Likewise.
4023         (dup2_nothrow): New function.
4024         (ms_windows_dup2): Use it.
4025         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
4026         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
4027         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4028         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4029         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
4030         * m4/read.m4 (gl_FUNC_READ): Likewise.
4031         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
4032         * doc/windows-without-msvc.texi: New file.
4033         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
4034         section.
4036 2017-05-10  Bruno Haible  <bruno@clisp.org>
4038         wait-process: Adjust native Windows support.
4039         * lib/wait-process.c: Use the usual condition for recognizing a native
4040         Windows platform.
4042 2017-05-10  Bruno Haible  <bruno@clisp.org>
4044         doc: New chapter "Native Windows Support".
4045         * doc/gnulib.texi (Native Windows Support): New chapter.
4046         * doc/windows-libtool.texi: Small wording changes.
4047         * doc/windows-sockets.texi: Small wording and formatting changes.
4049 2017-05-10  Bruno Haible  <bruno@clisp.org>
4051         doc: Move section "Library version handling".
4052         * doc/gnulib.texi: Move section "Library version handling"
4053         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
4055 2017-05-10  Bruno Haible  <bruno@clisp.org>
4057         doc: Move section "Running self-tests under valgrind".
4058         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
4059         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
4061 2017-05-10  Bruno Haible  <bruno@clisp.org>
4063         doc: New chapter "Build Infrastructure Modules".
4064         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
4066 2017-05-10  Bruno Haible  <bruno@clisp.org>
4068         Prepare for reordering sections in the manual.
4069         * doc/gnulib.texi: Move several sections to separate files. Include
4070         these files.
4071         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
4072         * doc/obsolete.texi: Likewise.
4073         * doc/extra-tests.texi: Likewise.
4074         * doc/transversal.texi: Likewise.
4075         * doc/namespace.texi: Likewise.
4076         * doc/check-version.texi: Likewise.
4077         * doc/windows-sockets.texi: Likewise.
4078         * doc/windows-libtool.texi: Likewise.
4079         * doc/licenses-texi.texi: Likewise.
4080         * doc/build-automation.texi: Likewise.
4081         * doc/c-locale.texi: Likewise.
4083 2017-05-10  Bruno Haible  <bruno@clisp.org>
4085         Fix instructions how to update manual on www.gnu.org.
4086         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
4088 2017-05-09  Bruno Haible  <bruno@clisp.org>
4090         tzset: Expand comment about TZ problem on native Windows.
4091         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
4092         Paul Eggert.
4093         * lib/ctime.c (rpl_ctime): Likewise.
4094         * lib/localtime.c (rpl_localtime): Likewise.
4095         * lib/mktime.c (mktime): Likewise.
4096         * lib/strftime-fixes.c (rpl_strftime): Likewise.
4097         * lib/wcsftime.c (rpl_wcsftime): Likewise.
4099 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4101         intprops: don’t depend on ‘verify’
4102         Problem reported by Ævar Arnfjörð Bjarmason in:
4103         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
4104         * lib/intprops.h: Do not include verify.h, and move compile-time
4105         checks from here ...
4106         * tests/test-intprops.c (main): ... to here, if they’re not here
4107         already.  Check widths of other standard integer types.
4108         * modules/intprops (Depends-on): Remove ‘verify’.
4110 2017-05-07  Bruno Haible  <bruno@clisp.org>
4112         utimens: On native Windows, support 100ns resolution also if fd < 0.
4113         * lib/utime.in.h: Include <time.h>.
4114         (_gl_utimens_windows): New declaration.
4115         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
4116         (utime): Invoke it.
4117         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
4118         instead of utime.
4119         * modules/utime (Depends-on): Add 'time'.
4121 2017-05-07  Bruno Haible  <bruno@clisp.org>
4123         utimens: Improve error code on native Windows.
4124         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
4125         error code EACCES, not EINVAL.
4127 2017-05-07  Bruno Haible  <bruno@clisp.org>
4129         utime: Handle more Windows error codes.
4130         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
4131         Based on explanations by Billy O'Neal.
4133 2017-05-05  Bruno Haible  <bruno@clisp.org>
4135         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
4136         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
4137         union.
4138         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
4139         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
4140         value of cipher->IV.
4142 2017-05-05  Bruno Haible  <bruno@clisp.org>
4144         wctype-h-c++-tests: Update.
4145         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
4147 2017-05-05  Bruno Haible  <bruno@clisp.org>
4149         wchar-c++-tests: Update.
4150         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
4152 2017-05-05  Bruno Haible  <bruno@clisp.org>
4154         utime-h-c++-tests: New module.
4155         * tests/test-utime-h-c++.cc: New file.
4156         (utime): Declare, missing since 2017-04-30.
4157         * modules/utime-h-c++-tests: New file.
4159 2017-05-05  Bruno Haible  <bruno@clisp.org>
4161         unistd-c++-tests: Update.
4162         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
4163         (read): Declare, missing since 2011-04-15.
4164         (sethostname): Declare, missing since 2011-12-03.
4166 2017-05-05  Bruno Haible  <bruno@clisp.org>
4168         time-c++-tests: Update.
4169         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
4170         (localtime, gmtime): Declare, missing since 2017-04-30.
4171         (ctime): Declare, missing since 2017-04-30.
4172         (strftime): Declare, missing since 2017-04-30.
4173         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
4174         2015-07-24.
4176 2017-05-05  Bruno Haible  <bruno@clisp.org>
4178         sys_resource-c++-tests: New module.
4179         * tests/test-sys_resource-c++.cc: New file.
4180         (getrusage): Declare, missing since 2012-04-13.
4181         * modules/sys_resource-c++-tests: New file.
4183 2017-05-05  Bruno Haible  <bruno@clisp.org>
4185         strings-c++-tests: New module.
4186         * tests/test-strings-c++.cc: New file.
4187         (ffs): Declare, missing since 2011-07-12.
4188         * modules/strings-c++-tests: New file.
4190 2017-05-05  Bruno Haible  <bruno@clisp.org>
4192         string-c++-tests: Update.
4193         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
4194         (ffsll): Declare, missing since 2011-07-15.
4196 2017-05-05  Bruno Haible  <bruno@clisp.org>
4198         stdlib-c++-tests: Update.
4199         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
4200         2011-10-18.
4201         (ptsname_r): Declare, missing since 2011-11-07.
4202         (qsort_r): Declare, missing since 2014-08-29.
4203         (random, srandom, initstate, setstate): Declare, missing since
4204         2012-01-14.
4205         (secure_getenv): Declare, missing since 2013-02-05.
4207 2017-05-05  Bruno Haible  <bruno@clisp.org>
4209         stdio-c++-tests: Update.
4210         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
4212 2017-05-05  Bruno Haible  <bruno@clisp.org>
4214         signal-h-c++-tests: Update.
4215         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
4217 2017-05-05  Bruno Haible  <bruno@clisp.org>
4219         math-c++-tests: Update.
4220         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
4221         (fma): Declare, missing since 2011-10-17.
4222         (fmal): Declare, missing since 2011-10-17.
4224 2017-05-05  Bruno Haible  <bruno@clisp.org>
4226         locale-c++-tests: Update.
4227         * tests/test-locale-c++.cc (localeconv): Declare, missing since
4228         2012-03-25.
4230 2017-05-05  Bruno Haible  <bruno@clisp.org>
4232         inttypes-c++-tests: New module.
4233         * tests/test-inttypes-c++.cc: New file.
4234         (strtoimax): Declare, missing since 2012-01-05.
4235         (strtoumax): Declare, missing since 2012-01-05.
4236         * modules/inttypes-c++-tests: New file.
4238 2017-05-05  Bruno Haible  <bruno@clisp.org>
4240         dirent-c++-tests: Update.
4241         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
4242         (rewinddir): Declare, missing since 2011-09-13.
4243         (dirfd): Declare, missing since 2010-03-08.
4245 2017-05-04  Bruno Haible  <bruno@clisp.org>
4247         argp: Fix mistake in 2017-04-23 commit.
4248         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
4249         assume that strerror_r returns 'int', not 'char *'.
4251 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
4253         argp: Fix typo.
4254         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
4256 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4258         utimens: port to Emacs + MS-Windows
4259         Skip the new MS-Windows-specific code if Emacs.
4260         * lib/utimens.c [EMACS_CONFIGUATION]:
4261         Avoid new MS-Windows-specific code.
4262         (USE_SETFILETIME): New macro.
4263         (fdutimens): Use it.
4265 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
4267         tzset: update doc for TZ problems on MS-Windows
4268         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
4269         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
4270         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
4271         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
4272         * doc/posix-functions/wcsftime.texi:
4273         Mention some issues with TZ under MS-Windows.
4275 2017-05-01  Bruno Haible  <bruno@clisp.org>
4277         copy-file: Fix build error on mingw.
4278         * modules/copy-file (Depends-on): Add 'close'.
4280 2017-05-01  Bruno Haible  <bruno@clisp.org>
4282         tzset: Work around TZ problem on native Windows.
4283         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
4284         Windows, set REPLACE_TZSET to 1.
4285         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
4286         invoke '_tzset' instead of 'tzset'.
4287         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
4289         * modules/time_rz (Depends-on): Add tzset.
4290         * lib/time_rz.c (tzset): Remove fallback definition.
4291         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
4293 2017-05-01  Bruno Haible  <bruno@clisp.org>
4295         mktime: Fix dependencies.
4296         * modules/mktime (Depends-on): Add 'time'.
4298 2017-05-01  Bruno Haible  <bruno@clisp.org>
4300         New module 'localtime-buffer', split off from module 'gettimeofday'.
4301         * lib/localtime-buffer.h: New file.
4302         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
4303         * lib/time.in.h (tzset): New declaration.
4304         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
4305         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
4306         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
4307         moved to lib/localtime-buffer.c or lib/tzset.c.
4308         * m4/localtime-buffer.m4: New file.
4309         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
4310         HAVE_TZSET, REPLACE_TZSET.
4311         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
4312         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
4313         gl_LOCALTIME_BUFFER_NEEDED.
4314         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
4315         since 2007-01-18.
4316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
4317         tzset.
4318         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
4319         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
4320         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
4321         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
4322         * modules/localtime-buffer: New file.
4323         * modules/time (Depends-on): Remove 'gettimeofday'.
4324         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
4325         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
4326         * modules/tzset (Description): Enable hyperlink to POSIX spec.
4327         (Files): Add lib/tzset.c.
4328         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
4329         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
4330         gl_TIME_MODULE_INDICATOR.
4331         * modules/gettimeofday (Depends-on): Add localtime-buffer.
4333 2017-05-01  Bruno Haible  <bruno@clisp.org>
4335         copy-file: Preserve sub-second time stamps.
4336         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
4337         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
4338         transport the time stamps from the original file to the destination
4339         file.
4340         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
4341         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
4342         utime-h.
4344 2017-05-01  Bruno Haible  <bruno@clisp.org>
4346         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
4347         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
4348         also on MSVC.
4349         Reported by Eli Zaretskii <eliz@gnu.org>.
4351 2017-05-01  Bruno Haible  <bruno@clisp.org>
4353         wchar: Fix compilation error with the original mingw.org mingw.
4354         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4355         <stddef.h> instead.
4356         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
4357         gl_WCTYPE_H.
4358         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
4359         gl_TYPE_WINT_T_PREREQ instead.
4360         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
4361         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
4362         Reported by Eli Zaretskii <eliz@gnu.org>.
4364 2017-04-30  Bruno Haible  <bruno@clisp.org>
4366         utimecmp: Add support for native Windows.
4367         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
4369 2017-04-30  Bruno Haible  <bruno@clisp.org>
4371         utimens: Add support for native Windows.
4372         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
4373         (fdutimens): Provide a native Windows implementation, like utime.c with
4374         added tv_nsec support.
4375         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
4376         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
4378 2017-04-30  Bruno Haible  <bruno@clisp.org>
4380         wcsftime: New module.
4381         * lib/wchar.in.h (wcsftime): New declaration.
4382         * lib/wcsftime.c: New file.
4383         * m4/wcsftime.m4: New file.
4384         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
4385         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
4386         HAVE_WCSFTIME, REPLACE_WCSFTIME.
4387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
4388         HAVE_WCSFTIME, REPLACE_WCSFTIME.
4389         * modules/wcsftime: New file.
4390         * doc/posix-functions/wcsftime.texi: Mention the new module.
4392 2017-04-30  Bruno Haible  <bruno@clisp.org>
4394         strftime-fixes: New module.
4395         * lib/time.in.h (strftime): New declaration.
4396         * lib/strftime-fixes.c: New file.
4397         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
4398         (gl_FUNC_STRFTIME): Remove macro.
4399         * m4/strftime-fixes.m4: New file.
4400         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
4401         REPLACE_STRFTIME.
4402         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
4403         REPLACE_STRFTIME.
4404         * modules/strftime-fixes: New file.
4405         * doc/posix-functions/strftime.texi: Mention the new module.
4407 2017-04-30  Bruno Haible  <bruno@clisp.org>
4409         mktime: Work around TZ problem on native Windows.
4410         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
4411         from the native Windows workaround.
4412         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
4413         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
4414         'guessing no'.
4415         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
4416         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
4417         NEED_MKTIME_WINDOWS.
4418         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
4419         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
4420         NEED_MKTIME_INTERNAL.
4421         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
4422         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
4423         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
4424         not REPLACE_MKTIME.
4425         * doc/posix-functions/mktime.texi: Mention the native Windows
4426         workaround.
4428 2017-04-30  Bruno Haible  <bruno@clisp.org>
4430         localtime: New module.
4431         * lib/time.in.h (localtime): Declare also if requested by module
4432         'localtime'.
4433         * lib/localtime.c: New file.
4434         * m4/localtime.m4: New file.
4435         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
4436         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
4437         * modules/localtime: New file.
4438         * doc/posix-functions/localtime.texi: Mention the new module.
4440 2017-04-30  Bruno Haible  <bruno@clisp.org>
4442         ctime: New module.
4443         * lib/time.in.h (ctime): New declaration.
4444         * lib/ctime.c: New file.
4445         * m4/ctime.m4: New file.
4446         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
4447         REPLACE_CTIME.
4448         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
4449         * modules/ctime: New file.
4450         * doc/posix-functions/ctime.texi: Mention the new module.
4452 2017-04-30  Bruno Haible  <bruno@clisp.org>
4454         gettimeofday: Provide higher resolution on native Windows.
4455         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
4456         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
4457         (initialize): Initialize it.
4458         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
4459         'struct timeval'. Don't use _ftime().
4460         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
4461         <sys/timeb.h> and _ftime.
4463 2017-04-30  Bruno Haible  <bruno@clisp.org>
4465         Document the problem with the Cygwin environment variable TZ.
4466         * doc/posix-functions/tzset.texi: Add note about TZ.
4467         * doc/posix-functions/ctime.texi: Likewise.
4468         * doc/posix-functions/localtime.texi: Likewise.
4469         * doc/posix-functions/mktime.texi: Likewise.
4470         * doc/posix-functions/strftime.texi: Likewise.
4471         * doc/posix-functions/wcsftime.texi: Likewise.
4472         * doc/pastposix-functions/ftime.texi: Likewise.
4474 2017-04-30  Bruno Haible  <bruno@clisp.org>
4476         utime-tests: New module.
4477         * tests/test-utime.c: New file, based on tests/test-utimens.h.
4478         * tests/test-utimens-common.h: Include <sys/stat.h>.
4479         * modules/utime-tests: New file.
4481 2017-04-29  Bruno Haible  <bruno@clisp.org>
4483         utime: New module.
4484         * lib/utime.in.h: Add comment for snippets.
4485         (utime): New declaration.
4486         * lib/utime.c: New file.
4487         * m4/utime.m4: New file.
4488         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
4489         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
4490         REPLACE_UTIME.
4491         * modules/utime-h (Depends-on): Add snippets.
4492         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
4493         Insert snippets.
4494         * modules/utime: New file.
4495         * doc/posix-functions/utime.texi: Mention the new module.
4497 2017-04-29  Bruno Haible  <bruno@clisp.org>
4499         utime-h: Modernize handling of 'struct utimbuf'.
4500         * lib/utime.in.h: Include next <utime.h> if it exists.
4501         (utimbuf): Define to _utimbuf on native Windows.
4502         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
4503         Set UTIME_H on native Windows.
4504         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
4505         * modules/utime-h (Depends-on): Add include_next.
4506         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
4507         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
4509         * lib/utimens.c (utimbuf): Remove fallback definition.
4510         * m4/utimens.m4 (gl_UTIMENS): Don't require
4511         gl_CHECK_TYPE_STRUCT_UTIMBUF.
4512         * m4/utimbuf.m4: Remove file.
4513         * modules/utimens (Files): Remove m4/utimbuf.m4.
4515 2017-04-29  Bruno Haible  <bruno@clisp.org>
4517         Make use of module 'utime-h'.
4518         * modules/copy-file (Depends-on): Add utime-h.
4519         * lib/copy-file.c: Assume that <utime.h> exists.
4520         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
4522         * modules/utimens (Depends-on): Add utime-h.
4523         * lib/utimens.c: Assume that <utime.h> exists.
4525 2017-04-29  Bruno Haible  <bruno@clisp.org>
4527         utime-h: New module.
4528         * m4/utime_h.m4: New file.
4529         * lib/utime.in.h: New file.
4530         * modules/utime-h: New file.
4531         * doc/posix-headers/utime.texi: Mention the new module.
4533         * tests/test-utime-h.c: New file.
4534         * modules/utime-h-tests: New file.
4536 2017-04-30  Bruno Haible  <bruno@clisp.org>
4538         Fix a few typos.
4539         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
4540         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
4541         * doc/posix-functions/fstat.texi: Fix a plural typo.
4542         * doc/posix-functions/stat.texi: Likewise.
4543         * m4/include_next.m4: Update comments.
4545 2017-04-29  Bruno Haible  <bruno@clisp.org>
4547         error: Fix mistake in 2017-04-23 commit.
4548         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
4549         assume that strerror_r returns 'int', not 'char *'.
4551 2017-04-29  Bruno Haible  <bruno@clisp.org>
4553         stat: Fix time_t values and other problems on native Windows platforms.
4554         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
4555         implementations of stat().
4556         * lib/stat.c: Include filename.h instead of dosname.h. Include
4557         malloca.h, stat-w32.h.
4558         (is_unc_root): New function.
4559         (rpl_stat): New implementation for native Windows. Remove
4560         REPLACE_FUNC_STAT_DIR code.
4561         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
4562         Don't define REPLACE_FUNC_STAT_DIR.
4563         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
4564         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
4565         (Depends-on): Remove dosname. Add filename, malloca.
4566         (configure.ac): Also compile lib/stat-w32.c.
4568 2017-04-29  Bruno Haible  <bruno@clisp.org>
4570         fstat: Fix time_t values on native Windows platforms.
4571         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
4572         * lib/stat-w32.h: New file.
4573         * lib/stat-w32.c: New file.
4574         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
4575         stat-w32.h instead.
4576         (fstat_nothrow): Remove function.
4577         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
4578         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
4579         always.
4580         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
4581         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
4582         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
4583         (configure.ac): Also compile lib/stat-w32.c.
4585 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4587         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
4588         Problem reported by Assaf Gordon and Gavin Smith in:
4589         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
4590         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
4591         #define this, too.
4593 2017-04-29  Bruno Haible  <bruno@clisp.org>
4595         strerror_r-posix: Fixes for MSVC 14.
4596         * lib/strerror_r.c: Include <stdarg.h>.
4597         (strerror_r): Provide error messages for errno values 100...140.
4598         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
4600 2017-04-28  Bruno Haible  <bruno@clisp.org>
4602         noreturn: New module.
4603         * lib/noreturn.h: New file.
4604         * modules/noreturn: New file.
4605         * tests/test-noreturn.c: New file.
4606         * modules/noreturn-tests: New file.
4607         * tests/test-noreturn-c++.cc: New file.
4608         * modules/noreturn-c++-tests: New file.
4610 2017-04-27  Bruno Haible  <bruno@clisp.org>
4612         wctype-h: Fix compilation error with the original mingw.org mingw.
4613         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
4614         HAVE_CRTDEFS_H.
4615         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
4616         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4617         <stddef.h> instead.
4618         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
4620 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4622         nap.h: Fix compilation on non windows platforms
4623         * tests/nap.h: Move misplaced endif.
4625 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4626         and Paul Eggert  <eggert@cs.ucla.edu>
4628         time_rz: fix heap buffer overflow vulnerability
4629         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
4630         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
4631         whether there is enough buffer space available, thus avoiding
4632         the problematic promotion of signed to unsigned causing an invalid
4633         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
4634         the start of the buffer.
4635         * tests/test-parse-datetime.c (main): Add a test case written by
4636         Paul Eggert, which overwrites enough of the heap so that
4637         standard glibc will fail with "free(): invalid pointer"
4638         without the patch applied.
4640 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4642         xalloc: add missing integer overflow check
4643         * lib/xalloc.h (x2nrealloc): Also check for multiplication
4644         overflow when P is null.
4646 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4648         parse-datetime: make it standalone
4649         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
4650         (_GL_ATTRIBUTE_FORMAT): New macro.
4651         These are needed to get './gnulib-tool --test parse-datetime' to work.
4653 2017-04-23  Bruno Haible  <bruno@clisp.org>
4655         nap.h: Port to native Windows.
4656         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
4657         use nap_fd instead. On native Windows, close and reopen nap_fd.
4658         (nap_works): Don't compare the ctimes, because on native Windows, these
4659         are the creation times.
4660         (nap): Update.
4662 2017-04-23  Bruno Haible  <bruno@clisp.org>
4664         nap.h: Fix logic.
4665         * tests/nap.h (nap): Avoid signed integer overflow in loop.
4667 2017-04-23  Bruno Haible  <bruno@clisp.org>
4669         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
4670         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
4671         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
4672         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
4673         * lib/argp-help.c (__argp_failure): Likewise.
4675 2017-04-23  Bruno Haible  <bruno@clisp.org>
4677         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
4678         * m4/strerror_r.m4: Revert changes since 2016-10-16.
4679         * lib/strerror_r.c: Likewise.
4681 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4683         Target a C99 subset, not a C89 subset
4684         For many years Gnulib has targeted C89 and has resisted using C99
4685         features, as some Gnulib-using programs still wanted to target
4686         C89.  As this no longer seems to be the case, relax the porting
4687         requirements to allow some C99 features.  This is merely a change
4688         to the documentation, to give other Gnulib developers a chance to
4689         weigh in on the topic.
4690         * doc/extern-inline.texi (extern inline):
4691         * doc/gnulib-readme.texi (Portability guidelines):
4692         * doc/gnulib-tool.texi (Initial import):
4693         * doc/gnulib.texi (Header files):
4694         Modernize to talk about C99 and C11 instead of C89 and C99.
4695         * doc/gnulib-readme.texi (Portability guidelines):
4696         Now a section, not merely a subsection, so that it
4697         can be split up.  Modernize a bit.
4698         (C language versions, C99 features assumed)
4699         (C99 features avoided):
4700         New sections.
4702 2017-04-23  Bruno Haible  <bruno@clisp.org>
4704         doc: New section "Modules that modify the way other modules work".
4705         * doc/gnulib.texi (Modules that modify the way other modules work): New
4706         section.
4708 2017-04-23  Bruno Haible  <bruno@clisp.org>
4710         stat-time: Update comments.
4711         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
4712         * tests/test-utimens-common.h: Add reference regarding st_ctime on
4713         Windows.
4715 2017-04-01  Bruno Haible  <bruno@clisp.org>
4717         glob: Fix more memory leaks.
4718         * lib/glob.c (glob): Free allocated memory before returning.
4719         Reported by Coverity via Tim Rühsen.
4721 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4723         poll: improve fast check for out-of-range NFD
4724         * lib/poll.c: Do not include intprops.h.
4725         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
4726         * modules/poll (Depends-on): Remove intprops.
4728         ftoastr: cite a newer paper
4729         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
4730         instead of Loitsch 2010.
4732 2017-04-22  Bruno Haible  <bruno@clisp.org>
4734         poll: Enable argument check also in the Windows implementation.
4735         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
4736         Reported by Paul Eggert.
4738 2017-04-22  Bruno Haible  <bruno@clisp.org>
4740         getlogin_r: Work around bug in Mac OS X 10.12.
4741         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
4742         bug.
4743         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
4744         given size minus 1, call getlogin_r a second time, on a larger buffer.
4745         * modules/getlogin_r (Depends-on): Add malloca.
4746         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
4748 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4750         parse-datetime: fix %z and prefer signed int
4751         %z problem reported by Pádraig Brady in:
4752         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
4753         While fixing it, I decided to prefer signed ints to size_t, as
4754         they are less error-prone (e.g., ubsan catches overflow).
4755         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
4756         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
4757         counts, since signed integers make for better debugging.
4758         (date): Don’t assume %z works in printf formats.
4759         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
4760         sizes of buffers known to be small, e.g., because we’re using snprintf.
4761         (parse_datetime2): Simplify call to debug_mktime_not_ok.
4763 2017-04-22  Bruno Haible  <bruno@clisp.org>
4765         *printf: Work around rounding bug on Mac OS X.
4766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
4767         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
4768         Mac OS X and FreeBSD.
4769         * doc/glibc-functions/*printf.texi: Likewise.
4771 2017-04-22  Bruno Haible  <bruno@clisp.org>
4773         vasnprintf tests: Avoid warnings.
4774         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
4775         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
4776         test.
4778 2017-04-22  Bruno Haible  <bruno@clisp.org>
4780         sys_file tests: Avoid warning.
4781         * tests/test-sys_file.c (main): Add a default clause to the switch
4782         statement.
4784 2017-04-22  Bruno Haible  <bruno@clisp.org>
4786         sethostname: Update doc.
4787         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
4788         Mac OS X.
4790 2017-04-22  Bruno Haible  <bruno@clisp.org>
4792         quotearg tests: Avoid warnings.
4793         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
4794         false.
4796 2017-04-22  Bruno Haible  <bruno@clisp.org>
4798         poll: Enable argument check.
4799         * lib/poll.c: Include intprops.h.
4800         (poll): Check value of nfd correctly.
4801         * modules/poll (Depends-on): Add intprops.
4803 2017-04-22  Bruno Haible  <bruno@clisp.org>
4805         get-rusage-data: Avoid warnings on Mac OS X.
4806         * lib/get-rusage-data.c: On Mac OS X, don't define
4807         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
4808         (get_rusage_data) [Mac OS X]: Just return 0.
4810 2017-04-22  Bruno Haible  <bruno@clisp.org>
4812         xbinary-io: Fix build error.
4813         * modules/xbinary-io (Depends-on): Add gettext-h.
4814         * lib/xbinary-io.c: Include gettext.h and define _().
4815         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4816         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
4818 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4820         parse-datetime: overflow and debug cleanups
4821         This long patch was triggered by this bug report from Ruediger Meier:
4822         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
4823         I fixed the bug he noted, then found some others nearby, and then
4824         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
4825         up some of the code to follow GNU standards while I was at it.
4826         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
4827         use c_isdigit.
4828         (EPOCH_YEAR): Remove; unused.
4829         (TM_YEAR_BASE): Now an enum rather than a macro.
4830         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
4831         time zone offset, since timezones now are in terms of seconds and
4832         not minutes.
4833         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
4834         appropriate.  Verify that intmax_t is wide enough.
4835         (time_overflow, time_zone_str): New functions, used to deal
4836         more reliably with overflow.
4837         (dbg_printf): Add printf attribute, to help catch integer width errors.
4838         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
4839         (%union, to_hour, yylex, parse_datetime2):
4840         Use intmax_t instead of long int and/or long_time_t.
4841         All uses changed.
4842         (DBGBUFSIZE): Move earlier.
4843         (relative_time, set_hhmmss, parser_control):
4844         Just use int for nanoseconds and for time zones; that’s wide enough.
4845         (parser_control): Use bool for members like year_seen that can
4846         be booleans instead of counters.  All uses changed.
4847         Remove debug_default_input_timezone; no longer needed.
4848         All uses removed.
4849         (apply_relative_time): Return a bool overflow flag.
4850         All uses changed to check for overflow.
4851         (apply_relative_time, zone, date, relunit, relunit_snumber)
4852         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
4853         Check for integer overflow portably.
4854         (str_days): Use just int for N, as it’s wide enough.
4855         Prefer 2D char arrays to arrays of char * when it looks like
4856         2D is a win on typical platforms.
4857         Prefer snprintf to strncpy/strncat, for simplicity;
4858         all buffers are smaller than INT_MAX so this is safe.
4859         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
4860         (debug_print_current_time): Don’t assume tv_nsec is of type long,
4861         as this is not true on x32.  Output "." before any nanoseconds.
4862         (debug_print_current_time, parse_datetime2):
4863         Output local zones using a more-consistent format.
4864         (debug_print_current_time, date, parse_datetime2):
4865         (main) [TEST]:
4866         Don’t assume time_t is the same width as long.
4867         (print_rel_part): New function, replacing ...
4868         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
4869         (debug_print_relative_time): Use bool for boolean.
4870         (local_zone): dsts_seen now counts only tDST instances.
4871         (date): Fix printf of size_t to use %z.  Do not assume numeric
4872         tokens have negative values merely because the context suggests
4873         a syntax with "-" separating tokens.
4874         (time_zone_hhmm): Return bool success indicator, which checks for
4875         overflow.  Store result into PC->time_zone instead.  All callers
4876         changed.
4877         (tm_year_str): New function.  Return a bool success indicator and
4878         store the result into a buffer.  All callers changed.  Output the
4879         numerically correct string even if adding 1900 to the year would
4880         overflow.
4881         (to_tm_year): New function, replacing the old to_year.  All
4882         callers changed.
4883         (tm_diff): Sync with glibc.
4884         (lookup_word): Use to_uchar instead of doing it by hand.
4885         (TZBUFSIZE): Now local to the only function that needs it.
4886         (debug_strfdatetime): Simplify now that time zones are int seconds.
4887         (debug_strfdate): Work even if tm_year + 1900 would overflow.
4888         (get_effective_timezone): Remove.  All uses removed.
4889         (parse_datetime2): Use fprintf in pieces instead of snprintfing
4890         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
4891         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
4892         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
4893         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
4894         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
4895         * modules/parse-datetime (Depends-on): Add inttypes.
4897 2017-04-21  Bruno Haible  <bruno@clisp.org>
4899         gettext-h: Avoid -Wundef warning.
4900         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
4901         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4902         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
4904 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
4906         error: Avoid "function declaration isn't a prototype" warning.
4907         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
4909 2017-04-21  Bruno Haible  <bruno@clisp.org>
4911         vasnprintf: Fix for MSVC 14.
4912         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
4913         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
4914         of !HAVE_SNPRINTF_RETVAL_C99.
4916 2017-04-21  Bruno Haible  <bruno@clisp.org>
4918         mbrtowc tests: Fix test failures on MSVC 14.
4919         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
4920         behaviour for invalid input.
4922 2017-04-21  Bruno Haible  <bruno@clisp.org>
4924         mbsinit: Fix for MSVC 14.
4925         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
4926         implementation that is in sync with mbrtowc.c. On other platforms, use
4927         an adequate ad-hoc implementation.
4929 2017-04-21  Bruno Haible  <bruno@clisp.org>
4931         Fix test-mbrtowc5.sh failure on native Windows.
4932         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
4933         "C".
4935 2017-04-21  Bruno Haible  <bruno@clisp.org>
4937         Avoid accidental use of native Windows APIs on Cygwin.
4938         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
4939         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
4940         * lib/localename.c (WINDOWS_NATIVE): Likewise.
4942 2017-04-20  Bruno Haible  <bruno@clisp.org>
4944         Remove red warnings from the generated MODULES.html.
4945         * modules/fcntl (Description): Disambiguate function references.
4946         * modules/getcwd-lgpl (Description): Likewise.
4947         * modules/hostent (Description): Likewise.
4948         * modules/servent (Description): Likewise.
4949         * modules/tempname (Description): Likewise.
4951 2017-04-20  Bruno Haible  <bruno@clisp.org>
4953         verify tests: Fix spurious failure with parallel make.
4954         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
4955         EXTRA_PROGRAMS.
4956         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
4957         * tests/test-verify-try.c: New file.
4958         * modules/verify-tests (Files): Add it.
4959         (EXTRA_PROGRAMS): Add test-verify-try.
4960         (MOSTLYCLEANFILES): Update accordingly.
4961         Reported by Adam James Stewart <ajstewart@anl.gov>.
4963 2017-04-18  Bruno Haible  <bruno@clisp.org>
4965         vma-iter: Fix compilation error on Solaris 7.
4966         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
4967         like on IRIX, OSF/1.
4968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4970 2017-04-18  Bruno Haible  <bruno@clisp.org>
4972         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
4973         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
4974         included.
4975         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
4976         <sys/procfs.h>.
4977         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
4978         <sys/procfs.h> cannot be included.
4979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4981 2017-04-18  Bruno Haible  <bruno@clisp.org>
4983         getopt-gnu: Add comments.
4984         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
4985         * modules/getopt-gnu (configure.ac): Likewise.
4987 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
4989         regex: port better to Solaris 10
4990         Solaris 10 <locale.h> includes <libintl.h>, which #defines
4991         gettext, and this causes a double #define.
4992         Problem reported by Gavin Smith in:
4993         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
4994         * lib/regex_internal.h (gettext): #undef before #defining.
4996 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4998         intprops: improve comments
4999         * lib/intprops.h: Improve and shorten commentary.
5000         For the record, if we ever run into a pedantic compiler that
5001         behaves differently from GCC when converting an out-of-range value
5002         to a signed integer, we can work around the problem with something
5003         like the following code, where UCT is the signed counterpart of T
5004         (UCT is sometimes narrower than UT) and all callers are changed
5005         accordingly:
5006         #if __SUNPRO_C <= 0x5120
5007         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5008            ((t) ((ut) (a) op (ut) (b)))
5009         #else
5010         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5011            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
5012             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
5013                + TYPE_MINIMUM (t)) \
5014             : (t) (uct) ((ut) (a) op (ut) (b)))
5015         #endif
5017 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5019         intprops: try to avoid tickling similar bugs
5020         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
5021         needs to be the same width as T; it can be wider.
5022         Change callers so that UT is at least as wide as unsigned int,
5023         as I suspect that this is less likely to run into compiler bugs.
5025         intprops: port to Oracle Studio 12.3 x86
5026         Problem reported by Gavin Smith in:
5027         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
5028         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5029         Convert unsigned to signed via the usual rather than the standard way,
5030         to avoid a compiler bug in Oracle Studio 12.3 x86.
5032 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5034         getopt: prefer - to _ in new file names
5035         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
5036         * lib/getopt-core.h: Rename from lib/getopt_core.h.
5037         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
5038         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
5039         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
5040         All uses changed.
5042         getopt: port recent getopt changes to macOS
5043         Problem reported by Harald Maier (Bug#26398).
5044         The macOS C compiler uses __nonnull for its own purposes and that
5045         clashes with glibc's __nonnull.
5046         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
5047         * lib/getopt_cdefs.in.h (__nonnull): Remove.
5048         * lib/getopt_core.h (getopt):
5049         * lib/getopt_ext.h (getopt_long, getopt_long_only):
5050         Use _GL_ARG_NONNULL, not __nonnull.
5051         * lib/unistd.in.h: Move snippet hooks to before where the getopt
5052         .h files are included, so that _GL_ARG_NONNULL is defined in time.
5053         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
5054         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
5056 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5058         getopt-gnu: omit some duplicate code
5059         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
5060         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
5061         gnulib-tool already does this.
5062         * modules/getopt-gnu (configure.ac): Omit code duplicated from
5063         getopt-posix, which we depend on.
5065         getopt-posix: use angle-bracket include
5066         * lib/getopt1.c: Include <config.h>, not "config.h".
5068 2017-04-06  Zack Weinberg  <zackw@panix.com>
5070         getopt: annotate files with relationship to glibc
5072         As the final act in this patchset, adjust the message at the top of
5073         each file to indicate which files are synced with glibc.  (This has
5074         already been done for most of the headers.)
5076         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
5077         Mention in top-of-file boilerplate that these files are shared
5078         between glibc and gnulib.
5081         getopt: split up getopt.in.h and eliminate __need_getopt
5083         Over in glibc, all of the __need macros are being phased out in favor
5084         of small headers that declare only the necessary components, as this
5085         is much simpler and less prone to bugs.  As getopt is shared with
5086         glibc, gnulib needs to do the same for __need_getopt.
5088         __need_getopt is misnamed; what it really means is "we want only the
5089         getopt features specified in POSIX, not the GNU extensions".  glibc
5090         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
5091         these files can be shared verbatim with gnulib.  The portability
5092         wrapper, on the other hand, they have renounced altogether; glibc's
5093         getopt.h will no longer be shared with gnulib at all.  In exchange,
5094         certain glibc-specific quirks (having to do with __posix_getopt) no
5095         longer need appear in gnulib's headers at all.
5097         This patch merges getopt_core.h and getopt_ext.h from glibc, and
5098         splits up the current gnulib-side portability wrapper into three
5099         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
5100         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
5101         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
5102         unistd.in.h just use them.  All new files are clearly marked with
5103         whether they are shared with glibc.
5105         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
5106         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
5107         with glibc, and ...
5108         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
5109         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
5110         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
5111         instead of defining __need_getopt and including the full getopt.h.
5113         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
5114         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
5115         * modules/getopt-posix (Files): Add new headers and sort list.
5116         (Depends-on): No longer need snippet/arg-nonnull.
5117         (Makefile.am): Generate getopt_cdefs.h.
5120         getopt: better handling of ambiguous options
5122         glibc's getopt uses alloca to construct a linked list of possibilities
5123         for an "ambiguous" long option.  In gnulib, malloc should be used
5124         instead.  Providing for both cases complicates things a fair bit.
5126         This patch rewrites ambiguous-option handling to use a boolean vector
5127         instead of a linked list.  There is then only one allocation that
5128         might need freeing; in glibc it can honor __libc_use_alloca as usual,
5129         and in gnulib we define __libc_use_alloca to always be false, so we
5130         don't need ifdefs in the middle of the function.  This should also be
5131         slightly more efficient in the normal case of long options being fully
5132         spelled out -- I think most people aren't even aware they _can_
5133         sometimes abbreviate long options.
5135         One interesting consequence is that the list of possibilities is now
5136         printed in exactly the order they appear in the list of long options,
5137         instead of the first possibility being shuffled to the end.
5139         (The patch looks bigger than it really is because there's a fair bit
5140         of reindentation and code rearrangement.)
5142         * lib/getopt.c: When used standalone, define __libc_use_alloca
5143         as always false and alloca to abort if called.
5144         (process_long_option): Rewrite handling of ambiguous long options
5145         to use a single boolean vector, not a linked list; use
5146         __libc_use_alloca to decide whether to allocate this using alloca.
5149         getopt: refactor long-option handling
5151         There were two copies of the bulk of the code to handle long options.
5152         Now there is only one.
5154         This change temporarily removes the logic to avoid using alloca when
5155         standalone; the next patch in the series will restore it.
5157         * lib/getopt.c (process_long_option): New function split out
5158         from _getopt_internal_r.
5159         (_getopt_internal_r): Replace both copies of the long-option
5160         processing code with calls to process_long_option.
5163         getopt: tidy up _getopt_initialize a bit
5165         _getopt_data.__posixly_correct is completely redundant to
5166         _getopt_data.__ordering, and some work that logically belongs in
5167         _getopt_initialize was being done by _getopt_internal_r, making the
5168         code harder to understand.
5170         As a side effect, getenv will no longer be called if the first
5171         character of the options string is '+' or '-', which is probably a
5172         Good Thing.  (Perhaps we should have a flag character that
5173         specifically asks for the permutation behavior?)
5175         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
5176         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
5177         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
5180         getopt: merge from glibc: repetition reduction
5182         The definitions of the entry point functions 'getopt' and
5183         '__posix_getopt' can be made substantially less repetitive with a
5184         helper macro.
5186         While I was merging the const-correctness changes from gnulib into
5187         glibc I noticed there are still some unnecessary casts in
5188         _getopt_internal_r.
5190         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
5191         a macro.  Consistently cast 'argv' to 'char **' when calling
5192         _getopt_internal.
5193         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
5196         getopt: clean up error reporting
5198         getopt can print a whole bunch of error messages, and when used
5199         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
5200         cancellation point and getopt isn't, and also applying fprintf to a
5201         stream in wide-character mode is not allowed.  So every single error
5202         reporting case has an #ifdef _LIBC block in which it calls internal
5203         libc functions instead.  The counterpart patch series in glibc makes
5204         it possible to simplify all of that down to a set of #defines at the
5205         top of the file; core code is written as if it is safe to just call
5206         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
5207         call any *other* stdio functions.)
5209         * lib/getopt.c: When _LIBC is defined, define fprintf to
5210         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
5211         to _IO_funlockfile.  When neither _LIBC nor
5212         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
5213         funlockfile as no-ops.
5214         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
5215         standalone error-printing code can now be used for libc as well.
5216         Add an flockfile/funlockfile pair around one case where the error
5217         message is printed in several chunks.  Don't use fputc.
5220         getopt: fix fencepost error in ambiguous-W-option handling
5222         getopt_long contains an undocumented (AFAICT) feature in which, if you
5223         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
5224         treated as equivalent to '--foo'.  This is implemented with a partial
5225         second copy of the code for handling long options, and that code
5226         increments optind one too many times when recovering from an ambiguous
5227         abbreviated option, which can cause the main loop to walk past the end
5228         of argv and crash.
5230         I discovered this while writing a test case that tries to exercise all
5231         of getopt's error reporting paths; I wouldn't be surprised to learn
5232         that this feature is never used by real applications.
5234         * lib/getopt.c (_getopt_internal_r): Don't increment
5235         d->optind a second time when reporting ambiguous -W options.
5238         getopt: clean up getopt.c and getopt1.c file headers
5240         In getopt.c, there is no need to include wchar.h at all, and it is
5241         safe nowadays to assume that stdlib.h does declare getenv (several
5242         other gnulib modules make this assumption).
5244         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
5245         by using "" inclusions consistently, and there is no actual need to
5246         include stdlib.h (except in the #ifdef TEST block, where it should be
5247         unconditional), nor to provide a backup definition of NULL at all.
5249         * lib/getopt1.c: Simplify #ifdeffage at top of file.
5250         Move inclusion of stdlib.h to #ifdef TEST block and make
5251         unconditional.  Do not define NULL.
5252         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
5253         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
5254         * modules/getopt-gnu, modules/getopt-posix: Don't call
5255         gl_PREREQ_GETENV.
5258         getopt: harmonize comments with glibc
5260         The comments explaining how the behavior of 'getopt' varies depending
5261         on whether it's the standalone version and whether there are special
5262         characters at the beginning of the options string were inconsistent
5263         between gnulib and glibc, and also out of sync with the code.
5265         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
5268         getopt: remove USE_NONOPTION_FLAGS
5270         getopt includes code to parse an environment variable named
5271         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
5272         in decimal); but all of it has been #ifdefed out since 2001, with no
5273         official way to turn it back on.
5275         According to commentary in glibc's config.h.in, bash version 2.0
5276         set this environment variable to indicate argv elements that were
5277         the result of glob expansion and therefore should not be treated
5278         as options, but the feature was "disabled later" because "it
5279         caused problems".  According to bash's CHANGES file, "later" was
5280         release 2.01; it gives no more detail about what the problems
5281         were.
5283         Version 2.0 of bash was released on the last day of 1996, and version
5284         2.01 in June of 1997.  Twenty years later, I think it is safe to
5285         assume that this environment variable isn't coming back.
5287         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
5288         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
5289         __libc_argc and __libc_argv externs, which were only used by
5290         #ifdef USE_NONOPTION_FLAGS blocks.
5293         getopt: tabify, in preparation for merge with glibc
5295         glibc sticks to the GNU default of indenting with a mix of
5296         8-column tabs and spaces; make the gnulib copy match.
5298         getopt.h is not included because it is *not* going to be merged in its
5299         present form.
5301         * getopt.c, getopt1.c, getopt_int.h: Tabify.
5303 2017-04-02  Bruno Haible  <bruno@clisp.org>
5305         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
5306         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
5307         like it was done in modules/relocatable-lib on 2011-05-21 and in
5308         modules/relocatable-prog on 2011-08-15.
5309         Reported by Reuben Thomas <rrt@sc3d.org>.
5311 2017-03-31  Bruno Haible  <bruno@clisp.org>
5313         glob: Fix invalid free() call.
5314         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
5315         static storage to home_dir.
5316         Reported by Coverity via Tim Rühsen.
5318 2017-03-31  Bruno Haible  <bruno@clisp.org>
5320         glob: Fix memory leaks.
5321         * lib/glob.c (glob): Free allocated memory before returning.
5322         Reported by Coverity via Tim Rühsen.
5324 2017-03-31  Bruno Haible  <bruno@clisp.org>
5326         md5, sha1, sha256, sha512: Add comments regarding correctness.
5327         * lib/md5.h (buflen): Add comments regarding range.
5328         * lib/sha1.h (buflen): Likewise.
5329         * lib/sha256.h (buflen): Likewise.
5330         * lib/sha512.h (buflen): Likewise.
5331         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
5332         * lib/sha1.c (sha1_process_bytes): Likewise.
5333         * lib/sha256.c (sha256_process_bytes): Likewise.
5334         * lib/sha512.c (sha512_process_bytes): Likewise.
5335         Reported by Coverity via Tim Rühsen.
5337 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5339         getopt: merge from glibc
5340         This does not change anything substantial; it merely simplifies
5341         hypothetical merges back to glibc.
5342         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
5343         Change copyright notice to match what is in glibc.
5344         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
5345         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
5346         __open_memstream rather than open_memstream and __glibc_likely
5347         instead of __builtin_expect.
5348         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
5350 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5352         dfa: make [0-9] faster in non-C locales
5353         Problem reported by John P. Linderman (Bug#26193).
5354         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
5355         If both ends of the range are ASCII digits, do not worry about
5356         multi-character collating sequences and the like.  Be consistent
5357         about using isalpha as a precondition for setbit_case_fold_c.
5359 2017-03-19  Bruno Haible  <bruno@clisp.org>
5361         lock: Fix compilation error with HP-UX IA64 cc.
5362         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
5363         weak on non-glibc platforms.
5365 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5367         stdalign: tweak version# and test for HP-UX IA64
5368         Problems reported by Bruno Haible in:
5369         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
5370         * lib/stdalign.in.h (_Alignas):
5371         * m4/stdalign.m4 (gl_STDALIGN_H):
5372         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
5373         used octal (as that is how they document it), but it is decimal in
5374         practice now and the ancient implementations no longer matter.
5375         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
5377 2017-03-19  Bruno Haible  <bruno@clisp.org>
5379         vma-iter: Add support for Solaris.
5380         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
5381         approach.
5382         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
5383         * lib/get-rusage-as.c: Update comment about Solaris.
5384         * lib/get-rusage-data.c: Likewise.
5386 2017-03-19  Bruno Haible  <bruno@clisp.org>
5388         vma-iter: Prefer HP-UX specific API on HP-UX.
5389         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
5390         * lib/vma-iter.h: Update.
5391         Just in case HP-UX ever implements mquery().
5393 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
5395         stdalign: restore previous behavior for HP-UX IA64
5396         See Bruno Haible's email in:
5397         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5398         which cites p 150 of a manual saying that 'aligned' works on Itanium.
5399         * lib/stdalign.in.h (_Alignas):
5400         Assume the '061200' applies to Itanium, not to PA-RISC.
5401         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
5403 2017-03-17  Bruno Haible  <bruno@clisp.org>
5405         stat-time, timespec: Support use of the header files in C++ mode.
5406         * lib/stat-time.h: Add "C" linkage declaration.
5407         * lib/timespec.h: Likewise.
5409 2017-03-17  Bruno Haible  <bruno@clisp.org>
5411         stdalign: Make it work with HP-UX cc.
5412         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
5413         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
5414         for HP-UX cc.
5416 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
5418         flexmember: try to detect HP-UX 11.31 cc bug
5419         Problem reported by Bruno Haible in:
5420         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5421         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5422         Attempt to detect bug in HP-UX 11.31 cc.
5424 2017-03-16  Bruno Haible  <bruno@clisp.org>
5426         stdint: Fix test compilation failure with HP-UX 11 cc.
5427         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
5428         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
5429         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
5430         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
5432 2017-03-14  Bruno Haible  <bruno@clisp.org>
5434         gnulib-tool: Don't produce a tests directory with only snippet .h files.
5435         * gnulib-tool (func_modules_transitive_closure_separately): If
5436         testsrelated_modules ends up with no "real" modules, aside from
5437         modules with applicability 'all', set it to empty.
5439 2017-03-14  Bruno Haible  <bruno@clisp.org>
5441         vma-iter: Add support for HP-UX.
5442         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
5443         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
5444         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
5445         * lib/get-rusage-as.c: Update comment about HP-UX.
5446         * lib/get-rusage-data.c: Likewise.
5447         (get_rusage_data): Use get_rusage_data_via_setrlimit.
5449 2017-03-14  Bruno Haible  <bruno@clisp.org>
5451         limits-h: Make it work with HP-UX cc.
5452         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
5453         defined.
5455 2017-03-14  Bruno Haible  <bruno@clisp.org>
5457         Fix test failures on DragonFlyBSD.
5458         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
5459         * tests/test-select.h (test_bad_fd): Likewise.
5460         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
5462 2017-03-14  Bruno Haible  <bruno@clisp.org>
5464         freadahead: Silence warning on DragonFlyBSD.
5465         * lib/freadahead.c (__sreadahead): Declare ourselves.
5467 2017-03-14  Bruno Haible  <bruno@clisp.org>
5469         vma-iter: Add comment about AIX.
5470         * lib/vma-iter.c: Add comment about why this module is not implemented
5471         on AIX.
5473 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5475         snippets: move unadjusted snippet sources to lib
5476         Problem reported by Michal Privoznik in:
5477         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
5478         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
5479         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
5480         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
5481         * lib/unused-parameter.h: Rename from
5482         build-aux/snippet/unused-parameter.h.
5483         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
5484         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
5485         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
5486         * modules/snippet/c++defs (Files:, CXXDEFS_H):
5487         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
5488         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
5489         Adjust to file renamings.
5491 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
5493         gnulib-tool: don't automatically distribute files from top/
5494         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
5495         not distribute top/README-release by default, don't distribute files
5496         from top/ unconditionally.
5497         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
5498         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
5500 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5502         gnulib-tool: fix typo in comment output
5503         * gnulib-tool (func_import): Fix typo with previous change.
5505         snippets: work around GNU Make 3.82 VPATH
5506         When using 'gnulib-tool --gnu-make' on Emacs, and building
5507         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
5508         an out-of-source (VPATH) build failed because the sans-copyright
5509         snippet file was not built before the file that used it.
5510         Presumably this is some sort of VPATH thing.  Work around the
5511         problem by using the original snippet, i.e., don’t bother to
5512         remove its copyright notice.
5513         * modules/snippet/_Noreturn, modules/snippet/link-warning:
5514         Don’t assume Automake in comments.  Omit long-incorrect comment.
5515         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
5516         (MOSTLYCLEANFILES):
5517         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
5518         (MOSTLYCLEANFILES):
5519         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
5520         (MOSTLYCLEANFILES):
5521         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
5522         (MOSTLYCLEANFILES):
5523         Remove.
5524         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
5525         * modules/snippet/c++defs (CXXDEFS_H):
5526         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
5527         * modules/snippet/warn-on-use (WARN_ON_USE_H):
5528         Don’t bother to remove the copyright notice; just use the
5529         original snippet as-is.
5531 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
5533         gnulib-tool: minor --gnu-make fixups
5534         * gnulib-tool (func_emit_lib_Makefile_am):
5535         Remove useless code that was a blind alley during implementation.
5536         Problem reported by Thien-Thi Nguyen in:
5537         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
5538         (func_import): Note the "--gnu-make" option in the output comment.
5540 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
5542         gnulib-tool: new option --gnu-make
5543         This is for applications like GNU Emacs that use GNU Make
5544         features instead of Automake.
5545         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
5546         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
5547         Do not assume Automake.
5548         * gnulib-tool (func_determine_path_separator)
5549         (func_modules_transitive_closure, func_update_file)
5550         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
5551         (func_import): Add support for --gnu-make.
5553 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
5555         gnulib-common.m4: avoid aclocal.m4 bloat
5556         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
5557         Hide AM_PROG_AR from aclocal, so that aclocal does not
5558         install irrelevant macro definitions into aclocal.m4.
5560 2017-03-10  Bruno Haible  <bruno@clisp.org>
5562         vma-iter: Let callers know about error.
5563         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
5564         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
5566 2017-03-05  Bruno Haible  <bruno@clisp.org>
5568         Fix value of LD for 64-bit compilers on AIX.
5569         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
5570         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
5572 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
5574         dtotimespec: simplify
5575         * lib/dtotimespec.c (dtotimespec): Simplify.
5577 2017-03-04  Bruno Haible  <bruno@clisp.org>
5579         test-calloc-gnu: Reenable test also for GCC 7.
5580         * tests/test-calloc-gnu.c (eight): New function.
5581         (main): Don't skip test; use eight() instead.
5583 2017-03-04  Jim Meyering  <meyering@fb.com>
5585         test-calloc-gnu: port to GCC7
5586         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
5587         that attempts to calloc more than SIZE_MAX bytes, because GCC7
5588         and newer would detect that at compilation time.
5590 2017-03-04  Bruno Haible  <bruno@clisp.org>
5592         tests: Avoid compiler warning about uses of null_ptr.
5593         * tests/null-ptr.h: New file.
5594         * tests/test-canonicalize.c: Include null-ptr.h.
5595         (null_ptr): Remove function.
5596         * tests/test-canonicalize-lgpl.c: Likewise.
5597         * tests/test-memmem.c: Likewise.
5598         * tests/test-ptsname_r.c: Likewise.
5599         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
5600         * modules/canonicalize-lgpl-tests: Likewise.
5601         * modules/memmem-tests: Likewise.
5602         * modules/ptsname_r-tests: Likewise.
5603         Reported by Jim Meyering.
5605 2017-03-03  Bruno Haible  <bruno@clisp.org>
5607         doc: Mention Mac OS X deficiencies regarding semaphores.
5608         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
5609         * doc/posix-functions/sem_destroy.texi: Likewise.
5610         * doc/posix-functions/sem_getvalue.texi: Likewise.
5612 2017-03-03  Bruno Haible  <bruno@clisp.org>
5614         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
5615         Reported by Assaf Gordon <assafgordon@gmail.com> via
5616         Pádraig Brady <P@draigBrady.com>.
5617         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
5618         semaphores.
5619         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
5620         (atomic_int_semaphore): New macro.
5622 2017-02-28  Bruno Haible  <bruno@clisp.org>
5624         perror tests: Tweak for z/OS.
5625         Reported by Daniel Richard G. <skunk@iskunk.org>.
5626         * tests/test-perror.sh: Don't fail z/OS style perror output.
5628 2017-02-26  Bruno Haible  <bruno@clisp.org>
5630         nproc: Refactor large function.
5631         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
5632         from num_processors.
5633         (num_processors): In this function, only deal with OMP.
5635 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5637         nproc: adjust handling of OpenMP environment variables
5638         to match the return value from omp_get_num_threads(), i.e.:
5639          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
5640          - Treat 0 as an invalid value and ignore
5641         Also remove the call to omp_get_num_threads() because
5642         it's ineffective without the omp pragmas in place.
5643         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
5644         so that it can be ignored.
5645         (num_processors): Honor OMP_THREAD_LIMIT even without
5646         OMP_NUM_THREADS being set.  Also fix a typo in the environment
5647         variable being checked, from the previous recent commit.
5649 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5651         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
5652         * lib/nproc.c (parse_omp_threads): A new function refactored
5653         from num_processors() to support parsing both of the
5654         above environment variables.
5655         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
5656         to accurately reflect the current OpenMP nesting level.
5657         Also support the OMP_THREAD_LIMIT environment variable
5658         to limit the max value determined from OMP_NUM_THREADS.
5659         * modules/nproc: Depend on minmax header.
5660         Suggested by Oliver Heimlich.
5662 2017-02-25  Bruno Haible  <bruno@clisp.org>
5664         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
5665         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
5667 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5669         ftoastr: port to -Wdouble-promotion
5670         Work around -Wdouble-promotion false alarm in recent GCCs.
5671         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
5672         (ftoastr_snprintf, FTOASTR): Use it.
5674 2017-02-21  Bruno Haible  <bruno@clisp.org>
5676         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
5677         Reported by Rene Saavedra <rennes@openmailbox.org> in
5678         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
5679         * lib/glthread/lock.h: On glibc systems without
5680         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
5681         implementation of rwlocks.
5682         * lib/glthread/lock.c: Likewise.
5684 2017-02-20  Bruno Haible  <bruno@clisp.org>
5686         lock tests: Fix build failure on z/OS.
5687         Reported by Daniel Richard G. <skunk@iskunk.org>.
5688         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
5689         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
5690         exist.
5692 2017-02-19  Bruno Haible  <bruno@clisp.org>
5694         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
5695         This helps when CC=clang.
5696         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
5697         of /usr/bin/gcc.
5699         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
5700         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
5702 2017-02-19  Bruno Haible  <bruno@clisp.org>
5704         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
5705         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
5706         --with-tests --single-configure is specified.
5708 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5710         users.txt: Update links, use HTTPS where possible
5711         * users.txt: Updated to HTTPS where possible,
5712         fixed some links to new locations.
5714 2017-02-16  Bruno Haible  <bruno@clisp.org>
5716         xbinary-io: Fix inlining.
5717         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
5719 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5721         xbinary-io: rename from xsetmode
5722         This patch is taken from suggestions by Bruno Haible in:
5723         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
5724         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
5725         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
5726         not ENOTTY, when it is an inappropriate device.
5727         * lib/binary-io.h (SET_BINARY): Resurrect.
5728         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
5729         (xset_binary_mode_error): Rename from xsetmode_error.
5730         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
5731         (xset_binary_mode): Rename from xsetmode.
5732         All uses changed.
5733         * modules/xbinary-io: Rename from modules/xsetmode.
5734         Update file names.
5735         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
5736         * NEWS: Update to match revised behavior.
5738 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5740         tests: Adjust to recent SET_BINARY change
5741         * tests/test-binary-io.c (main):
5742         * tests/test-binary-io.sh: Remove test for SET_BINARY.
5743         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
5744         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
5745         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
5747         xsetmode: new module
5748         This is to fix a problem noted by Eric Blake.
5749         Code was using xfreopen to change files to binary mode, but this
5750         fails for stdout when in append mode.  Such code should use
5751         xsetmode instead.
5752         * NEWS: Document incompatible changes to binary-io module.
5753         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
5754         New function.
5755         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
5756         (set_binary_mode): New function, which also checks for tty.
5757         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
5759 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5761         headers: fix begin-end typos
5762         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
5763         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
5765         selinux-h: port to PGI 16.10
5766         * lib/se-selinux.in.h: Don't assume that include_next skips over
5767         duplicate -I DIR options.
5769         argp: port to PGI 16.10
5770         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
5772 2017-02-13  Darshit Shah  <darnir@gnu.org>
5774         unicase: Update function protoype to match definition.
5775         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
5776         uses 'size_t' as the datatype for the 'len' parameter in the functions
5777         it generates. Update the prototype specified here to match the newly
5778         generated function.
5780 2017-02-12  Bruno Haible  <bruno@clisp.org>
5782         times test: Avoid gcc warnings on Linux/x32.
5783         * tests/test-times.c (main): Really cast printf arguments from clock_t
5784         to 'long int'.
5786 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5788         glob: port better to emscripten
5789         Problem reported by Bruno Haible in:
5790         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
5791         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
5793 2017-02-11  Bruno Haible  <bruno@clisp.org>
5795         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
5796         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
5797         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
5798         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
5799         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
5800         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
5801         Distinguish hppa64 from hppa.
5803 2017-02-10  Bruno Haible  <bruno@clisp.org>
5805         search: Don't assume that tsearch() exists if 'VISIT' is defined.
5806         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
5807         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
5808         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
5810 2017-02-09  Bruno Haible  <bruno@clisp.org>
5812         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
5813         * doc/gnulib.texi (Libtool and Windows): Recommend
5814         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
5815         Reported by Reuben Thomas <rrt@sc3d.org>.
5817 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5819         stddef-tests: port to SIZE_MAX <= INT_MAX
5820         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
5821         Do not assume that INT_MAX < SIZE_MAX.
5823 2017-02-01  Bruno Haible  <bruno@clisp.org>
5825         lock tests: Fix link error.
5826         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
5827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5829 2017-01-31  Bruno Haible  <bruno@clisp.org>
5831         lock: Fix link error (regression from 2017-01-05).
5832         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
5833         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
5834         pthread_rwlockattr_destroy weak.
5835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5837 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5839         Port to PGI 16.10 x86-64
5840         This patch fixes one real bug in gl_anylinked_list2.h, along with
5841         some minor glitches that are not bugs.  It does not silence PGI’s
5842         thousands of bogus warnings when compiling test-intprops.c.
5843         Fortunately, the warnings do not cause a failure.
5844         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
5845         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
5846         My goodness, PGI goes back a long ways - this predates C89!
5847         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
5848         For example, ASYNCSAFE (const void *) should expand to
5849         ‘const void *volatile’, not to ‘volatile const void *’.
5850         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
5851         * lib/verify.h (verify) [!__GNUC__]:
5852         Use shorter albeit meaningless string to bypass silly compiler limits.
5853         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
5854         * tests/nan.h (NaNf, NaNd, NaNl):
5855         Use static functions to avoid misguided compiler diagnostics.
5856         Is there some reason we don’t use static functions on all platforms?
5858 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
5860         parse-datetime: handle timezones reentrantly
5861         This API change was prompted by a report by Pádraig Brady in:
5862         https://bug.debian.org/851934#10
5863         To help fix the bug, make parse_datetime2 more reentrant.
5864         * NEWS: Document this incompatible change.
5865         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
5866         Add two arguments, the timezone and the timezone name.
5867         All callers changed.  If TZ="..." is specified, use it for
5868         calculating defaults.
5869         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
5870         this code should be usable in a library.
5871         (mktime_ok, get_effective_timezone):
5872         Accept timezone arg too.  All callers changed.
5873         (get_tz): Remove.
5874         (get_effective_timezone): Check for failures.
5876 2017-01-20  Eric Blake  <eblake@redhat.com>
5878         localename: port to cygwin 2.6
5879         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
5880         Cygwin.
5881         * modules/localename (Depends-on): Add extensions, since
5882         NL_LOCALE_NAME() is not visible without it.
5884 2017-01-17  Pádraig Brady  <P@draigBrady.com>
5886         parse-datetime: fix dependence on AC_PROG_SED
5887         * modules/parse-datetime: Use `sed` directly like all other modules.
5888         Reported by J William Piggott
5890 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
5892         intprops: update doc URLs
5893         * doc/intprops.texi (Integer Range Overflow): Update URLs.
5895 2017-01-16  Bruno Haible  <bruno@clisp.org>
5897         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
5898         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
5899         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
5900         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
5901         distinguish s390 and s390x.
5902         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
5903         * NEWS: Mention the change regarding 'armel'.
5905 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5907         localeinfo: case_folded_counterparts and WEOF
5908         * NEWS: Document this.
5909         * lib/localeinfo.c (case_folded_counterparts):
5910         First arg is now wint_t, not wchar_t.  This generalizes the
5911         function to also work on WEOF, where it returns 0.
5913         dfa: port to gcc -fsanitize=undefined
5914         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
5915         as this runs afoul of gcc -fsanitize=undefined.
5917 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
5919         strftime: %z is -00 if unknown
5920         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
5921         the caller's responsibility to set 'negative_number'.  All uses changed.
5922         (__strftime_internal): Put '-' before a zero UTC offset if the time
5923         zone abbreviation starts with "-", which is the recently-introduced
5924         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
5925         * tests/test-strftime.c: Test for this.
5927 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5929         dfa: port to older GCC
5930         Problem reported by Assaf Gordon in:
5931         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
5932         * modules/c99: New module.  This merely attempts to use the latest
5933         C version, which should be enough to solve this particular problem.
5934         The idea is to document which Gnulib modules assume C99 or later.
5935         * modules/dfa (Depends-on): Add it.
5937 2017-01-10  Bruno Haible  <bruno@clisp.org>
5939         Update DEPENDENCIES.
5940         * DEPENDENCIES: List only https URLs. Update recommended version for
5941         autoconf, automake, gperf.
5943 2017-01-10  Jim Meyering  <meyering@fb.com>
5945         maint.mk: enforce spelling of "timestamp" (i.e., no space)
5946         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5947         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
5949 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5951         dfa: minor simplification with emptyset
5952         * lib/dfa.c (build_state): Simplify by using emptyset.
5954 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5956         dfa: shrink constraints from 4 bits to 3
5957         * lib/dfa.c (newline_constraint, letter_constraint)
5958         (other_constraint, prev_newline_dependent)
5959         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
5960         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
5961         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
5962         Constraints need only 3 bits, not 4.  Using smaller integers
5963         shrinks the code a bit and makes grep a tad faster on x86-64.
5965         dfa: omit unnecessary ptrdiff_t check
5966         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
5967         overflow, since xnmalloc does that now.
5969         dfa: omit unnecessary allocation
5970         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
5971         an all-zero follow set works just fine.
5973         dfa: omit unused local
5974         * lib/dfa.c (build_state): Fix up recent change.
5976         maint: remove stray .texi files
5977         Although these were superseded by other files like
5978         doc/posix-functions/ctime.texi, the old files were not removed.
5979         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
5981 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
5983         getprogname: fix port to IRIX
5984         * lib/getprogname.c (getprogname) [__sgi]:
5985         Don't dump core if malloc returns NULL.
5987         dfa: fix reallocation bug when matching newlines
5988         Problem reported for sed by S. Gilles (Bug#25390).
5989         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
5990         (dfastate): Reallocate before moving any newline transition ...
5991         (build_state): ... instead of reallocating here, where it is too late.
5993 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5995         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
5996         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
5998 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6000         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
6001         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
6003 2017-01-07  Bruno Haible  <bruno@clisp.org>
6005         stdioext: Port to Minix 3.2 and newer.
6006         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
6007         * lib/fseeko.c (fseeko): Likewise.
6008         Reported by Nelson Beebe via Paul Eggert.
6010 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6012         getprogname: port to IRIX
6013         * lib/getprogname.c (getprogname): Port to IRIX.
6014         Based on an idea by Bastien Roucariès at:
6015         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
6016         via code from Bruno Haible at:
6017         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6019         localename-tests: port to NetBSD 7
6020         Problem reported by Nelson H. F. Beebe.
6021         * tests/test-localename.c:
6022         Test newlocale and uselocale only if both exist.
6024         glob, intprops, xalloc: work around Clang bug
6025         Work around LLVM bug 16404, which is still not fixed.
6026         https://llvm.org/bugs/show_bug.cgi?id=16404
6027         Problem reported by Nelson H. F. Beebe.
6028         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
6029         Remove.
6030         * lib/glob.c (size_add_wrapv):
6031         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
6032         * lib/xalloc-oversized.h (xalloc_oversized):
6033         Do not use overflow builtins if Clang.
6035         dfa: fix 'return' typo
6036         Problem reported by Nelson H. F. Beebe.
6037         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
6039 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6041         parse-datetime: fix generated paths for coverage files
6042         * modules/parse-datetime: Adjust the paths for parse-datetime.y
6043         within parse-datetime.c, so that gcc generates appropriate .gcno
6044         files, allowing lcov to proceed without error.  Previously it
6045         would error trying to find "lib/lib/parse-datetime.y".
6047 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6049         maint.mk: support parallel execution of coverage
6050         * top/maint.mk (coverage): Run dependencies serially,
6051         thus supporting parallel processing of each one,
6052         particularly build-coverage, which builds and runs tests.
6054 2017-01-05  Bruno Haible  <bruno@clisp.org>
6056         lock tests: Prefer semaphore over mutex.
6057         * tests/test-lock.c (USE_SEMAPHORE): New constant.
6058         (struct atomic_int, init_atomic_int, get_atomic_int_value,
6059         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
6060         Suggested by Torvald Riegel <triegel@redhat.com>.
6062 2017-01-05  Bruno Haible  <bruno@clisp.org>
6064         lock: Provide guarantee to avoid writer starvation for rwlocks.
6065         The rationale is: 1) Read-preferring read-write locks are prone to
6066         writer starvation if the number of reader threads multiplied by the
6067         percentage of time they have the lock held is too high. 2) Write-
6068         preferring read-write locks are the only reliable way to avoid this.
6069         3) There have been reports of 'test-lock' hanging on glibc systems
6070         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
6071         and glibc indeed implements read-preferring rwlocks by default, see
6072         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
6073         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
6074         * m4/pthread_rwlock_rdlock.m4: New file.
6075         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6076         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
6077         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6078         of rwlock initialization on glibc systems without
6079         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6080         of rwlocks altogether on non-glibc systems without
6081         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6082         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
6083         * lib/glthread/lock.c [USE_POSIX_THREADS]
6084         (glthread_rwlock_init_for_glibc): New function.
6085         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
6086         comment.
6087         [USE_PTH_THREADS]: New implementation of rwlocks.
6088         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
6089         readers.
6090         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
6091         (Depends-on): Add 'extensions'.
6092         * tests/test-rwlock1.c: New file.
6093         * lock-tests (Files): Add it.
6094         (Depends-on): Add usleep.
6095         (Makefile.am): Add test-rwlock1 to the tests.
6097 2017-01-05  Bruno Haible  <bruno@clisp.org>
6099         thread: Fix pth port.
6100         * lib/glthread/thread.h (pth_init): Declare weak.
6101         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
6102         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
6103         function.
6105 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
6107         parse-datetime: fix debug message on lone year number
6108         Input dates such as
6109           date -d "Apr 11 22:59:00 2011"
6110         are parsed as date (Apr 11, with default year 2016), then time, then a
6111         number (2011). Based on the combination of previously seen tokens,
6112         'digits_to_date_time' determines 2011 to be a year value.
6113         This fixes the debug messages to correctly show the updated year.
6114         Before:
6115             $ date --debug -d 'Apr 11 22:59:00 2011'
6116             date: parsed date part: (Y-M-D) 2016-04-11
6117             date: parsed time part: 22:59:00
6118             date: parsed number part: today/this/now
6119         After:
6120             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
6121             date: parsed date part: (Y-M-D) 2016-04-11
6122             date: parsed time part: 22:59:00
6123             date: parsed number part: year: 2011
6124         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
6125         'debug_year_seen' member fields.
6126         (digits_to_date_time): Update 'year_seen' as needed.
6127         (debug_print_current_time): Inform about year updates.
6128         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
6130         parse-datetime: fix local timezone debug messages
6131         "Local timezones" are strings that affect only DST relative to the
6132         default timezone. The debug messages in parse-datetime.y printed
6133         wrong information when encountering local timezones.
6134         Examples:
6135         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
6136              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
6137              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
6138         When the default timezone relates to the zone strings, EET/EEST are
6139         parsed as local timezones (tLOCAL_ZONE), and only change the DST
6140         value (0/1, respectively):
6141              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
6142              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
6143         * lib/parse-datetime.y (debug_print_current_time): If local timezone
6144         was seen, inform about DST change, don't print actual timezone.
6145         (debug_strfdatetime): If local timezone was seen, use default timezone
6146         (and adjust as needed) instead of using incorrect timezone.
6147         (parse_datetime2): Use correct time-zone source string, and adjust
6148         default timezone as needed.
6150         parse-datetime: add debug warning about DST changes
6151         Incorrect date arithmetic due to daylight saving time (DST) are a
6152         common (false) bug report in coreutils.
6153         Detect two such cases and print a warning:
6154         1. year/month/day adjustments (performed on 'struct tm'),
6155            where 'mktime' returns a different isdst value.
6156         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
6157            where the result of 'localtime(3)' on the value will return a
6158            different isdst value.
6159         Note: DST changes could be harmless or unnoticeable.
6160         Examples (with 'TZ=America/New_York'):
6161         Unnoticeable: result is 2016-Dec-14
6162            $ date -d '2016-06-15 EDT + 6 months' +%b
6163            Dec
6164         Unnoticeable: result is 2016-Dec-15 11:00:00
6165            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
6166            2016-12-15
6167         This is unexpected:
6168            $ date -d '2016-06-01 EDT + 6 months' +%F
6169            2016-11-30
6170         The new debug warnings will show:
6171            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
6172            ...
6173            date: warning: daylight saving time changed after date adjustment
6174            ...
6175         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
6176         print an appropriate warning message.
6178         parse-datetime: add debug warning about date arithmetic
6179         Date arithmetic are done directly on the fields of 'struct tm',
6180         which can result in invalid dates. Normalization with 'mktime(3)'
6181         will then produce a different date - which might cause unexpected
6182         results.
6183         Examples:
6184           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
6185           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
6186         Note that date normalization is not inherently wrong and not rejected,
6187         as it has legitimate uses:
6188           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
6189         If the user asked to adjust months but 'mday' changed,
6190         or user asked to adjust years but 'month' changed - warn about it.
6191             $ ./src/date --debug -d '2016-10-31 - 1 month'
6192             ...
6193             date: warning: when adding relative months/years, \
6194                            it is recommended to specify the 15th of the month
6195             ...
6196             date: warning: month/year adjustment resulted in shifted dates:
6197             date:      adjusted Y M D: 2016 09 31
6198             date:    normalized Y M D: 2010 10 01
6199             ...
6200         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
6201         a warning message. Improve recommendation of when to use 15 of the
6202         month or noon for date arithmetic.
6204         parse-datetime: fix debug message of relative part after timezone
6205         Relative part (e.g '+8 days') after a timezone string was not
6206         reported (was only reported after a timezone number). Due to the
6207         parser's structure, timezone strings with numbers were handled
6208         separately.
6209         before:
6210              # Timezone number + relative part: OK
6211              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
6212              ...
6213              date: parsed relative part: -8 day(s)
6214              # Timezone string + relative part: missing
6215              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
6216              [ missing message ]
6217         After: messages are printed in both cases.
6218         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
6220         parse-datetime: fix incorrect debug message on lone number
6221         A lone number is an absolute value, not a relative time part.
6222         before:
6223            $ date --debug -d '20130101'
6224            date: parsed number part: today/this/now
6225         After:
6226            $ ./src/date --debug -d '20130101'
6227            date: parsed number part: (Y-M-D) 2013-01-01
6228         * lib/parse-datetime.y ('item'/'number' tokens): Call
6229         'debug_print_current_time' instead of 'debug_print_relative_time'.
6231 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6233         doc: modernize for C11 etc.
6234         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
6235         for C11, MinGW, etc.  This responds to Paul Smith's question in:
6236         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
6238         dfa: prefer functions to FETCH_WC macro
6239         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
6240         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
6241         wint_t result into DFA->lex.wctok instead of to a separate arg.
6242         All callers changed.  Move more local decls closer to where
6243         they're used.
6245         dfa: narrow more local var scopes
6246         * lib/dfa.c: Move more local decls to be more local.
6248         dfa: remove duplicate assignment
6249         Problem reported by Bruno Haible in:
6250         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
6251         * lib/dfa.c (parse_bracket_exp): Simplify.
6253 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6255         dfa: simplify constraint-dependency checking
6256         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
6257         (prev_other_constraint): Remove.
6258         (prev_newline_dependent, prev_letter_dependent):
6259         Simplify, to avoid an unnecessary bitwise AND operation.
6261         dfa: prefer functions and constants to macros
6262         * lib/dfa.c: Prefer constants to macros where either will do.
6263         (streq, isasciidigit, newline_constraint)
6264         (letter_constraint, other_constraint, succeeds_in_context)
6265         (prev_newline_constraint, prev_letter_constraint)
6266         (prev_other_constraint, prev_newline_dependent)
6267         (prev_letter_dependent, accepting, accepts_in_context):
6268         Now static functions instead of function-like macros.
6269         Use lower-case names accordingly.  All uses changed.
6271         dfa: narrow more local var scopes
6272         * lib/dfa.c: Move some more local decls down to nearer where
6273         they're needed.
6275 2016-12-31  Jim Meyering  <meyering@fb.com>
6277         dfa: narrow the scope of many local variables
6278         * lib/dfa.c: Now that we are no longer constrained to c89, move
6279         declarations of many variables (often indices) "down" into the
6280         scope(s) where used or to the point of definition.  This is a
6281         no-semantic-change diff.
6283 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6285         version-etc: new year
6286         * build-aux/gendocs.sh (version):
6287         * doc/gendocs_template:
6288         * doc/gendocs_template_min:
6289         * doc/gnulib.texi:
6290         * lib/version-etc.c (COPYRIGHT_YEAR):
6291         Update copyright dates by hand in templates and the like.
6292         * all files: Run 'make update-copyright'.
6294 2016-12-31  Eric Blake  <eblake@redhat.com>
6296         do-release-commit-and-tag: avoid shell syntax error
6297         * build-aux/do-release-commit-and-tag (curr_br): $branch can
6298         contain spaces when rebasing.
6300         maint.mk: hoist gnulib_dir definition earlier
6301         * top/maint.mk (gnulib_dir): Move near top of file.
6303 2016-12-31  Jim Meyering  <meyering@fb.com>
6305         maint.mk: do not always evaluate intprops-related shell
6306         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
6307         using gnulib_dir undefined (gnulib_dir is defined later in the
6308         file, which will be fixed separately), and besides, there is no
6309         need to incur the cost of this shell invocation for every single
6310         use of this .mk file.  Reported by Eric Blake in
6311         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
6313 2016-12-30  Jim Meyering  <meyering@fb.com>
6315         maint.mk: improve sc_prohibit_intprops_without_use
6316         * top/maint.mk (_intprops_names): Don't hard-code the list of
6317         symbol names.  Instead, derive it on the fly.
6319 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6321         dfa: shorten sbit, success
6322         * lib/dfa.c (struct regex_syntax.sbit):
6323         (struct dfa.success): Use char, not int, for array elements, since
6324         they are all in the range 0..7.
6326         dfa: simplify multibyte_prop etc.
6327         This follows up on a change made when dfa.c was in grep, namely grep
6328         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
6329         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
6330         That earlier simplification allows for some more simplification
6331         and trimming down here.
6332         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
6333         (struct lexer_state): New mamber brack.
6334         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
6335         since they must be in the range 0..3 now.
6336         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
6337         the brack member now supersedes them.
6338         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
6339         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
6340         (dfaparse): Remove unnecessary initializations of already-0 storage.
6341         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
6342         (dfassbuild): No need to clear sup->mbcsets.
6344         dfa: minor performance tweak
6345         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
6347         dfa: wrap charclass inside a struct
6348         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
6349         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
6350         about 5% faster, where list.txt is generated by 'aspell dump
6351         master | head -n 100000 >list.txt'.  See Bug#22239.
6352         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
6353         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
6354         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
6355         Adjust to this, e.g., by using charclass * rather than charclass.
6356         All callers changed as needed.
6357         (copyset): Remove.  All uses changed to simple assignment.
6358         (parse_bracket_exp): Use zeroset instead of memset.
6360 2016-12-30  Jim Meyering  <meyering@fb.com>
6362         maint.mk: update list of intprops.h symbol names
6363         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
6364         This avoids a false failure of the sc_prohibit_intprops_without_use
6365         rule in grep.
6367 2016-12-29  Eric Blake  <eblake@redhat.com>
6369         getopt: fix parallel test failure
6370         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
6371         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
6372         * tests/test-getopt-main.h (main): Use different file names
6373         in case test-getopt-gnu and test-getopt-posix run in parallel.
6375 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6377         xalloc: x2nrealloc check for ptrdiff_t overflow
6378         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
6379         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
6381 2016-12-24  Bruno Haible  <bruno@clisp.org>
6383         lock test: Fix performance problem on multi-core machines.
6384         * tests/test-lock.c (USE_VOLATILE): New macro.
6385         (struct atomic_int): New type.
6386         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
6387         functions.
6388         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
6389         as 'struct atomic_int'.
6390         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
6391         reclock_checker_thread, test_recursive_lock): Use the new functions.
6392         Reported by Eric Blake in
6393         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
6394         and by Pádraig Brady in
6395         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
6397 2016-12-19  Bruno Haible  <bruno@clisp.org>
6399         vma-iter: Fix endless loop on 64-bit Windows.
6400         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
6401         'unsigned long'.
6403 2016-12-19  Bruno Haible  <bruno@clisp.org>
6405         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
6406         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
6407         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
6408         Invoke gt_TYPE_WINT_T instead.
6409         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
6410         * modules/stdint (Files): Add m4/wint_t.m4.
6411         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6412         * modules/wctype-h (Makefile.am): Likewise.
6413         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
6414         not only on MSVC.
6415         * lib/wctype.in.h (wint_t): Likewise.
6417 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6419         getopt-posix-tests: fix Makefile typo
6420         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
6421         Fix typo: the last ‘_’ was missing in the name.
6422         I suspect that the typo explains this build failure:
6423         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
6424         although I can’t reproduce the problem on Solaris 10 sparc.
6426 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6428         dfa: improve worst-case 'replace' performance
6429         See my note in Bug#22357#71.
6430         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
6431         (merge_constrained): New function, which is like
6432         the old 'merge' function, except with a new argument C2.
6433         Simplify the body by avoiding the need for different sections
6434         of code depending on whether one input is exhausted.
6435         (merge): Use the new function.
6436         (delete): Return the constraint of the deleted position,
6437         not the entire position.  Caller changed.
6438         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
6440 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6442         dfa: performance improvement for removal of epsilon closure
6443         See Bug#22357#32.
6444         * lib/dfa.c (delete): Use binary search to find deleted index.
6445         (replace): New function.  It replaces a position with the followed set.
6446         (epsclosure): Replace it with a new algorithm.  Update caller.
6448 2016-12-18  Bruno Haible  <bruno@clisp.org>
6450         Split tests for getopt-posix and getopt-gnu.
6451         * tests/test-getopt-posix.c: New file.
6452         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
6453         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
6454         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
6455         GNULIB_TEST_GETOPT_GNU.
6456         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
6457         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
6458         (Makefile.am): Test test-getopt-posix instead of test-getopt.
6459         * modules/getopt-gnu-tests: New file.
6460         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
6462 2016-12-18  Bruno Haible  <bruno@clisp.org>
6464         posix-modules: Add options for specific platforms.
6465         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
6466         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
6467         Invoke func_tmpdir. Filter out the excludes.
6469 2016-12-18  Bruno Haible  <bruno@clisp.org>
6471         getopt: Fix link error for users of getopt() in <unistd.h>.
6472         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
6473         __need_getopt is defined. Undefine all macros before defining them.
6474         * modules/getopt (Include): Clarify that including <unistd.h> is also
6475         OK.
6476         * tests/test-getopt.c: Add comment.
6478 2016-12-17  Bruno Haible  <bruno@clisp.org>
6480         getaddrinfo tests: Avoid compilation error on MSVC.
6481         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
6482         getaddrinfo on native Windows.
6484 2016-12-17  Bruno Haible  <bruno@clisp.org>
6486         getlogin, getlogin_r: Fix link errors on MSVC.
6487         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
6488         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
6489         (Link): New section.
6490         * modules/getlogin_r (Files): Add m4/getlogin.m4.
6491         (configure.ac): Require gl_LIB_GETLOGIN.
6492         (Link): New section.
6493         * NEWS: Mention the new link requirements.
6494         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
6495         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
6497 2016-12-17  Bruno Haible  <bruno@clisp.org>
6499         Un-deprecate the 'progname' module.
6500         * NEWS: Describe the appropriate use-cases of 'progname' versus
6501         'getprogname'. Based on discussion summary at
6502         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
6504 2016-12-17  Bruno Haible  <bruno@clisp.org>
6506         Reorganize NEWS a bit.
6507         * NEWS: Move some not so important changes away from section
6508         "Important Notes".
6510 2016-12-17  Bruno Haible  <bruno@clisp.org>
6512         tanhf: Avoid redefinition error on MSVC.
6513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
6514         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
6515         may be defined as an inline function.
6516         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
6517         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
6519 2016-12-17  Bruno Haible  <bruno@clisp.org>
6521         tanf: Avoid redefinition error on MSVC.
6522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
6523         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
6524         may be defined as an inline function.
6525         * modules/math (Makefile.am): Substitute REPLACE_TANF.
6526         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
6528 2016-12-17  Bruno Haible  <bruno@clisp.org>
6530         sqrtf: Avoid redefinition error on MSVC.
6531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
6532         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
6533         may be defined as an inline function.
6534         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
6535         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
6537 2016-12-17  Bruno Haible  <bruno@clisp.org>
6539         sinhf: Avoid redefinition error on MSVC.
6540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
6541         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
6542         may be defined as an inline function.
6543         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
6544         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
6546 2016-12-17  Bruno Haible  <bruno@clisp.org>
6548         sinf: Avoid redefinition error on MSVC.
6549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
6550         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
6551         may be defined as an inline function.
6552         * modules/math (Makefile.am): Substitute REPLACE_SINF.
6553         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
6555 2016-12-17  Bruno Haible  <bruno@clisp.org>
6557         logf: Avoid redefinition error on MSVC.
6558         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
6559         may be defined as an inline function.
6561 2016-12-17  Bruno Haible  <bruno@clisp.org>
6563         log10l: Avoid redefinition error on MSVC.
6564         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
6565         may be defined as an inline function.
6567 2016-12-17  Bruno Haible  <bruno@clisp.org>
6569         log10f: Avoid redefinition error on MSVC.
6570         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
6571         may be defined as an inline function.
6573 2016-12-17  Bruno Haible  <bruno@clisp.org>
6575         hypotl: Avoid redefinition error on MSVC.
6576         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
6577         may be defined as an inline function.
6579 2016-12-17  Bruno Haible  <bruno@clisp.org>
6581         hypotf: Avoid redefinition error on MSVC.
6582         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
6583         may be defined as an inline function.
6585 2016-12-17  Bruno Haible  <bruno@clisp.org>
6587         fmodl: Avoid redefinition error on MSVC.
6588         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
6589         may be defined as an inline function.
6591 2016-12-17  Bruno Haible  <bruno@clisp.org>
6593         fmodf: Avoid redefinition error on MSVC.
6594         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
6595         may be defined as an inline function.
6597 2016-12-17  Bruno Haible  <bruno@clisp.org>
6599         expf: Avoid redefinition error on MSVC.
6600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
6601         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
6602         may be defined as an inline function.
6603         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
6604         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
6606 2016-12-17  Bruno Haible  <bruno@clisp.org>
6608         coshf: Avoid redefinition error on MSVC.
6609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
6610         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
6611         may be defined as an inline function.
6612         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
6613         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
6615 2016-12-17  Bruno Haible  <bruno@clisp.org>
6617         cosf: Avoid redefinition error on MSVC.
6618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
6619         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
6620         may be defined as an inline function.
6621         * modules/math (Makefile.am): Substitute REPLACE_COSF.
6622         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
6624 2016-12-17  Bruno Haible  <bruno@clisp.org>
6626         atan2f: Avoid redefinition error on MSVC.
6627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
6628         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
6629         may be defined as an inline function.
6630         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
6631         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
6633 2016-12-17  Bruno Haible  <bruno@clisp.org>
6635         atanf: Avoid redefinition error on MSVC.
6636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
6637         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
6638         may be defined as an inline function.
6639         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
6640         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
6642 2016-12-17  Bruno Haible  <bruno@clisp.org>
6644         asinf: Avoid redefinition error on MSVC.
6645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
6646         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
6647         may be defined as an inline function.
6648         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
6649         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
6651 2016-12-17  Bruno Haible  <bruno@clisp.org>
6653         acosf: Avoid redefinition error on MSVC.
6654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
6655         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
6656         may be defined as an inline function.
6657         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
6658         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
6660 2016-12-17  Bruno Haible  <bruno@clisp.org>
6662         Avoid redefinition errors on MSVC.
6663         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
6664         the function may be defined as an inline function.
6665         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
6666         the function may be defined as an inline function.
6668 2016-12-17  Bruno Haible  <bruno@clisp.org>
6670         Avoid redefinition errors on MSVC.
6671         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
6672         * lib/unistd.in.h: Include <stdio.h> when necessary.
6674 2016-12-17  Bruno Haible  <bruno@clisp.org>
6676         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
6677         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
6678         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6679         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
6680         WINT_MAX.
6682 2016-12-17  Bruno Haible  <bruno@clisp.org>
6684         Avoid autoconf warning.
6685         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
6686         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
6688 2016-12-17  Bruno Haible  <bruno@clisp.org>
6690         fpending: Revert workaround against Emacs bug.
6691         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
6692         The Emacs bug is fixed by Eli Zaretskii in
6693         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
6695 2016-12-17  Bruno Haible  <bruno@clisp.org>
6697         getlogin_r tests: Port to mingw.
6698         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
6699         regression introduced on 2014-05-19.
6701 2016-12-17  Bruno Haible  <bruno@clisp.org>
6703         getlogin: Port to newer mingw.
6704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
6705         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
6706         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
6707         HAVE_GETLOGIN.
6708         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
6709         HAVE_GETLOGIN.
6710         * doc/posix-functions/getlogin.texi: Mention the issue.
6711         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
6712         regression introduced on 2014-05-14.
6714 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6716         builtin-expect: improve port to IBM XL C
6717         Problem reported for z/OS by Daniel Richard G. in:
6718         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
6719         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6720         Test for <builtins.h> directly.
6722         builtin-expect: port to IBM XL C
6723         Problem reported for z/OS by Daniel Richard G. in:
6724         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
6725         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6726         Also allow __builtin_expect defined via a standard include file.
6728         regex: fix dependency
6729         Problem reported by Bruno Haible in:
6730         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
6731         * modules/regex: Depend on builtin-expect.
6733         builtin-expect: new module
6734         Fix fnmatch to use it.
6735         Problem reported for z/OS by Daniel Richard G.
6736         * lib/fnmatch.c (__builtin_expect):
6737         * lib/glob.c (__builtin_expect):
6738         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
6739         * lib/memmem.c (__builtin_expect) [!_LIBC]:
6740         * lib/scandir.c (__builtin_expect):
6741         * lib/strstr.c (__builtin_expect) [!_LIBC]:
6742         Remove macro; config.h now does this.
6743         * lib/gl_anytreehash_list1.h (add_to_bucket):
6744         * lib/regex_internal.h (BE):
6745         Assume __builtin_expect.
6746         * m4/builtin-expect.m4, modules/builtin-expect: New files.
6747         * modules/avltreehash-list, modules/fnmatch, modules/glob:
6748         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
6749         * modules/scandir, modules/strstr-simple:
6750         Depend on builtin-expect.
6752 2016-12-15  Bruno Haible  <bruno@clisp.org>
6754         init.sh: Add possibility to not delete temporary files.
6755         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
6756         to yes, don't erase the temporary directory.
6758 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6760         regex: fix integer-overflow bug in never-used code
6761         Problem reported by Clément Pit–Claudel in:
6762         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
6763         * lib/regex_internal.h: Include intprops.h.
6764         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
6765         behavior on integer overflow.
6766         * modules/regex (Depends-on): Add intprops.
6768         fpending: fix port to MinGW on Emacs
6769         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
6770         Problem reported by Eli Zaretskii in:
6771         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
6772         Is Plan 9 still a valid porting target, anyway?
6774 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6776         safe-alloc: use xalloc-oversized
6777         * lib/safe-alloc.c: Include xalloc-oversized.h.
6778         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
6779         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
6781         xalloc: do not exceed PTRDIFF_MAX
6782         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
6783         xalloc_oversized check, since objects larger than PTRDIFF_MAX
6784         bytes have pointer-subtraction problems.
6786         malloca: do not exceed PTRDIFF_MAX
6787         * lib/malloca.h: Include xalloc-oversized.
6788         (nmalloca): Use xalloc_oversized instead of rolling our own.
6789         * modules/malloca (Depends-on):
6790         * modules/relocatable-prog-wrapper (Depends-on):
6791         Add xalloc-oversized.
6793         quotearg: pacify GCC better
6794         * modules/quotearg (Depends-on): Add minmax, stdint.
6795         * lib/quotearg.c: Include minmax.h, stdint.h.
6796         (nslots): Now int, as there seems little point to going to extra
6797         work merely to support the INT_MAX slot, which nobody ever uses.
6798         (quotearg_n_options): Redo size-overflow checks to pacify GCC
6799         and to catch (mostly-theoretical) ptrdiff_t problems too.
6800         This can be done via one comparison.
6802 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6804         xalloc-oversized: check for PTRDIFF_MAX too
6805         This avoids undefined behavior when subtracting pointers to
6806         objects containing more than PTRDIFF_MAX bytes.
6807         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
6808         Also return 1 if the result would exceed PTRDIFF_MAX>
6809         * modules/xalloc-oversized (Depends-on):
6810         Add stdint.
6812         dfa: fix glitches in previous commit
6813         Sorry, I don't know how I managed to commit the wrong version.
6814         * lib/dfa.c (MIN): Move up.
6815         (xpalloc): Now static.
6817         dfa: fix some unlikely integer overflows
6818         I found these while reviewing the recent Coverity-related fix.
6819         This patch changes part of dfa.c to prefer ptrdiff_t instead of
6820         size_t for object counts.  Using ptrdiff_t is the style typically
6821         used in Emacs; although it wastes a sign bit as sizes can never be
6822         negative, it makes -fsanitize=undefined more likely to catch
6823         integer overflows in index calculation, and nowadays the upside is
6824         typically more important than the downside.  Although perhaps the
6825         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
6826         of dfa.c already does, since it uses state_num which is signed),
6827         that is a bigger change and is not needed to fix the bugs I found.
6828         * lib/dfa.c: Include stdint.h and intprops.h.
6829         (TOKEN_MAX): New macro.
6830         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
6831         (charclass_index, parse_bracket_exp, addtok, insert, merge)
6832         (realloc_trans_if_necessary, free_mbdata):
6833         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
6834         This is safe because xpalloc checks that the sizes do not exceed
6835         either SIZE_MAX or PTRDIFF_MAX.
6836         (xpalloc): New function, mostly taken from Emacs.
6837         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
6838         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
6839         (charclass_index): Check for integer overflow in computing
6840         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
6841         added to it later.
6842         (alloc_position_set): Check for integer overflow.  On typical
6843         platforms this check has zero overhead, since the constant
6844         expression is false.
6845         (realloc_trans_if_necessary):
6846         Remove assertion, which I hope Coverity no longer needs.
6848         * modules/dfa (Depends-on): Add intprops, stdint.
6850 2016-12-12  Jim Meyering  <meyering@fb.com>
6852         dfa: add an assertion to avoid coverity false positive
6853         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
6854         warned that "newalloc1 - 2" could overflow.
6856 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
6858         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
6859         * dfa.h (DFA_CASE_FOLD): Remove.
6860         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
6862 2016-12-13  John W. Eaton  <gnu@jweaton.org>
6864         link: fix test to declare use of rename()
6865         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
6866         -Werror=implicit-function-declaration
6868 2016-12-12  Bruno Haible  <bruno@clisp.org>
6870         fpending: Port to native Windows with MSVC.
6871         * lib/fpending.c: Include stdio-impl.h.
6872         (__fpending): Include all known implementations. Err out if it's not
6873         ported.
6874         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
6875         * modules/fpending (Files): Add lib/stdio-impl.h.
6876         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
6878 2016-12-12  Bruno Haible  <bruno@clisp.org>
6880         stdioext: Port to native Windows with MSVC.
6881         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
6882         (struct _gl_real_FILE): New type.
6883         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
6884         Windows.
6885         * lib/fbufmode.c (fbufmode): Add code for native Windows.
6886         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
6887         other SystemV derived implementations.
6888         * lib/fpurge.c (fpurge): Likewise.
6889         * lib/freadable.c (freadable): Likewise.
6890         * lib/freadahead.c (freadahead): Likewise.
6891         * lib/freading.c (freading): Likewise.
6892         * lib/freadptr.c (freadptr): Likewise.
6893         * lib/freadseek.c (freadptrinc): Likewise.
6894         * lib/fseeko.c (fseeko): Likewise.
6895         * lib/fseterr.c (fseterr): Likewise.
6896         * lib/fwritable.c (fwritable): Likewise.
6897         * lib/fwriting.c (fwriting): Likewise.
6898         Reported by Gisle Vanem <gvanem@yahoo.no>.
6900 2016-12-11  Jim Meyering  <meyering@fb.com>
6902         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
6903         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
6904         to work with most shells, but not with the one provided by many
6905         Solaris 10 systems, so running configure with such a /bin/sh evokes
6906         e.g., "./configure: syntax error at line 33602: `(' unexpected".
6907         Reported by Assaf Gordon in
6908         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
6910 2016-12-10  Bruno Haible  <bruno@clisp.org>
6912         threadlib: Optimize out runtime test on Solaris >= 10.
6913         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
6914         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
6915         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
6917 2016-12-10  Bruno Haible  <bruno@clisp.org>
6919         stdint: Update doc about Solaris 9.
6920         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
6922 2016-12-09  Bruno Haible  <bruno@clisp.org>
6924         c-ctype tests: Fix link error on Solaris 9.
6925         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
6926         Reported at <https://savannah.gnu.org/bugs/?46827>.
6928 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6930         dfa: fix performance bug that recomputes trans
6931         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
6932         25 on-demand changes.  The bug caused build_state to reset all
6933         d->trans elements to -2 even when d->trans was already non-null.
6934         Use C99 style decls after statements in this function.
6936         same-inode: port to MinGW
6937         Here st_ino is always 0, so change the definition of SAME_INODE so
6938         that 1 means the two files are the same, 0 with st_ino != 0 means
6939         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
6940         reported by Bruno Haible (Bug#25146).
6941         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
6942         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
6944 2016-12-04  Bruno Haible  <bruno@clisp.org>
6946         javacomp-script: Support Java 7 and 8.
6947         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
6948         target-version 1.7, 1.8.
6950 2016-12-02  Daiki Ueno  <ueno@gnu.org>
6952         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
6953         GPLv2" rewriting.
6955 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
6957         * gnulib-tool (func_import): Adhere to the license guideline when
6958         rewriting the license text to "LGPLv3+ or GPLv2":
6959         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
6961 2016-12-02  Bruno Haible  <bruno@clisp.org>
6963         localcharset: Avoid theoretical buffer overrun.
6964         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
6965         return value from setlocale if it would lead to a buffer overrun.
6967 2016-12-01  Bruno Haible  <bruno@clisp.org>
6969         Relicense some modules under LGPLv2+.
6970         Kevin Cernekee's approval is in
6971         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
6972         * modules/fseterr (License): Change to LGPLv2+.
6973         * modules/mbchar (License): Likewise.
6974         * modules/mbiter (License): Likewise.
6975         * modules/mbsnlen (License): Likewise.
6976         * modules/wcwidth (License): Likewise.
6978 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6980         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
6981         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
6982         OS/2 kLIBC.
6984 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6986         alphasort, scandir: Port to OS/2 kLIBC
6987         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
6988         declaration.
6989         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
6991 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6993         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
6994         * lib/relocatable.c (relocate): Do not touch pathname if it is started
6995         with '/@unixroot'.
6997 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6999         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
7000         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
7001         OS/2 kLIBC unless TCPV40HDRS is defined.
7003 2016-11-29  Jim Meyering  <meyering@fb.com>
7005         dfa: avoid new infinite loop
7006         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
7007         * lib/dfa.c (dfastate): When constructing a new state table, we could
7008         initially declare that we had found a match, and later find that
7009         constraints eliminate that possibility, yet continue to use the
7010         now stale "matched" indicator.  That would lead to an infinite loop.
7011         The solution is to update "matched" when necessary.
7012         Introduced by commit v0.1-983-g403adf1.
7014 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7016         dfa: avoid match middle in multibyte character
7017         * lib/dfa.c (transit_state): If fails in matching single byte characters
7018         on a state including period expression in non-UTF8 multibyte locales,
7019         skip trailing bytes.
7020         (dfa_supported): Revert previous change.
7022 2016-11-27  Jim Meyering  <meyering@fb.com>
7024         dfa: avoid false match in non-UTF8 multibyte locales
7025         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
7026         as "not supported" so that callers will resort to using regex-based
7027         matcher.  This will surely hurt performance, but correctness trumps
7028         performance here, and the affected locales are less and less relevant,
7029         these days.  See grep's bug report https://bugs.gnu.org/24975.
7031 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
7033         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
7034         * lib/ptsname_r.c: Include the appropriate headers.
7035         [__sun]: Delete sys/sysmacros.h include.
7036         [_AIX || __osf__]: Likewise.
7037         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
7039 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7041         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
7042         * lib/md4.c (md4_process_bytes): The existing define is made internal
7043         in recent versions of glibc, so also use this new public define.
7044         * lib/md5.c (md5_process_bytes): Likewise.
7045         * lib/sha1.c (sha1_process_bytes): Likewise.
7046         * lib/sha256.c (sha256_process_bytes): Likewise.
7047         * lib/sha512.c (sha512_process_bytes): Likewise.
7049 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7051         maint: use a more standard return from mbrtowc test
7052         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
7053         from the test program as this often indicates an
7054         unhandled case in the test program.
7055         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
7056         (gl_MBRTOWC_SANITYCHECK): Likewise.
7057         (gl_MBRTOWC_NULL_ARG2): Likewise.
7058         (gl_MBRTOWC_NUL_RETVAL): Likewise.
7060 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7062         freopen: work around glibc bug with closed fd
7063         Work around glibc bug#15589, where freopen mishandles the case
7064         where stdin etc. are already closed.
7065         * doc/posix-functions/freopen.texi (freopen): Document the bug.
7066         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
7067         instead of __need_FILE, as the latter does not work with glibc.
7068         Include <fcntl.h>, for open flags.
7069         (rpl_freopen): Work around glibc bug.
7070         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
7071         * modules/freopen (Depends-on): Add fcntl-h.
7072         * tests/test-freopen.c (main): Test for bug.
7074 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7076         fnmatch: fix typo introduced on 2016-08-17
7077         This fixes the port to non-GCC compilers that lack __builtin_expect.
7078         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
7080         dfa: simplify with new function fillset
7081         * lib/dfa.c (fillset): New function.
7082         Use it for clarity when applicable.
7084         dfa: fix glitches with on-demand states
7085         Also, adjust commentary to better match new code.
7086         Some of these glitches predate the recent change.
7087         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
7088         only non-initial states.
7089         (dfastate): Rename locals to better match new roles.
7090         Move them into nested scopes if this is easy.
7091         Omit unnecessary calls to zeroset.
7092         Simplify test for whether to throw in the positions of state 0.
7093         Omit C99-ism (decl after statement) since Gawk still wants C89.
7094         (build_state): Omit unnecessary test and assignment.
7095         Fix some confusion that counted transition tables inaccurately
7096         and could cause a memory leak.
7097         (dfaexec_main): Redo to make it clearer to the compiler that
7098         -1 and -2 are the only negative state numbers here.
7100 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7102         dfa: addition of new state on demand
7103         * src/dfa.c (dfastate): Add argument UC, the current input character.
7104         Fill only a group including the character in transition table.
7105         (realloc_trans_if_necessary): Add the dummy state which means that a
7106         transition table is assigned but the next state is not assigned.
7107         (build_state): Return the next state.  All callers updated.
7108         (transit_state_singlebyte): If we get the dummy state,
7109         fill the transition table.
7110         (dfaexec_main): Handle the dummy state.
7111         (free_mbdata, dfafree): Consider the dummy state.
7113 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7115         srclist: sync with released gettext
7116         * config/srclist.txt: Set "release" option to the files under
7117         $GETTEXT.
7119 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7121         srclist: add "release" option
7122         * config/srclist.txt: Change the format so that the first column
7123         of each line points to the top-level directory of the source
7124         archive.
7125         * config/srclist-update: Accept "release" option that checks files
7126         from the most recently tagged revision in the source archive.
7128 2016-11-21  Bruno Haible  <bruno@clisp.org>
7130         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
7131         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7132         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
7133         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
7134         Inline and remove member function 'rpl ()' of the wrapper struct.
7136 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7138         dfa: fix logic typo
7139         Problem reported by Stephane Chazelas (Bug#24973).
7140         * lib/dfa.c (using_simple_locale): Fix typo that caused some
7141         non-simple locales like fr_FR to be treated as simple.
7143 2016-11-20  Jim Meyering  <meyering@fb.com>
7145         fix test driver leaks: exclude, malloc, realloc
7146         * tests/test-exclude.c (main): Fix trivial leak.
7147         * tests/test-malloc-gnu.c (main): Likewise.
7148         * tests/test-realloc-gnu.c (main): Likewise.
7149         With these changes, grep's tests are now leak free.
7150         I.e., running them with ASAN elicits no failure:
7151           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
7152             AM_LDFLAGS='-fsanitize=address -static-libasan' check
7154 2016-11-11  Bruno Haible  <bruno@clisp.org>
7156         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
7157         * modules/libunistring: (License): Change from LGPL to
7158         "LGPLv3+ or GPLv2".
7159         * modules/libunistring-optional: Likewise.
7160         * modules/unicase/*: Likewise.
7161         * modules/uniconv/*: Likewise.
7162         * modules/unictype/*: Likewise.
7163         * modules/unigbrk/*: Likewise.
7164         * modules/unilbrk/*: Likewise.
7165         * modules/uniname/*: Likewise.
7166         * modules/uninorm/*: Likewise.
7167         * modules/unistdio/*: Likewise.
7168         * modules/unistr/*: Likewise.
7169         * modules/uniwbrk/*: Likewise.
7170         * modules/uniwidth/*: Likewise.
7172 2016-11-12  Bruno Haible  <bruno@clisp.org>
7174         Relicense some modules under LGPLv2+.
7175         Paul Eggert's approval is in
7176         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
7177         Eric Blake's approval is in
7178         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
7179         Ludovic Courtès's approval is in
7180         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
7181         * modules/isnand-nolibm (License): Change to LGPLv2+.
7182         * modules/isnanf-nolibm (License): Likewise.
7183         * modules/isnanl-nolibm (License): Likewise.
7185 2016-11-19  Bruno Haible  <bruno@clisp.org>
7187         Relicense some modules under LGPLv2+.
7188         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
7189         modules/vasnprintf.
7190         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
7191         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
7192         All other significant changes to the files in lib/ of these modules
7193         are from me.
7194         * modules/memcmp2 (License): Change to LGPLv2+.
7195         * modules/amemxfrm (License): Likewise.
7196         * modules/fpieee (License): Likewise.
7197         * modules/fpucw (License): Likewise.
7198         * modules/frexp-nolibm (License): Likewise.
7199         * modules/frexpl-nolibm (License): Likewise.
7200         * modules/printf-frexp (License): Likewise.
7201         * modules/printf-frexpl (License): Likewise.
7202         * modules/printf-safe (License): Likewise.
7203         * modules/signbit (License): Likewise.
7205 2016-11-17  Bruno Haible  <bruno@clisp.org>
7207         Enable Unicode decoder safety unconditionally.
7208         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
7209         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
7210         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7211         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7212         * lib/unistr/u8-prev.c (u8_prev): Likewise.
7213         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
7214         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
7215         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
7216         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
7217         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
7218         * lib/unistr/u16-prev.c (u16_prev): Likewise.
7219         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
7220         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
7221         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
7222         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
7223         * lib/unistr/u32-prev.c (u32_prev): Likewise.
7224         * lib/unistr/u32-next.c (u32_next): Likewise.
7225         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
7226         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
7227         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7228         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
7229         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
7230         CONFIG_UNICODE_SAFETY tests unconditionally.
7231         * tests/unistr/test-u32-mblen.c (main): Likewise.
7232         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
7233         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
7234         * tests/unistr/test-u32-next.c (main): Likewise.
7235         * tests/unistr/test-u32-strmblen.c (main): Likewise.
7236         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
7237         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
7238         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
7239         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
7240         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7241         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
7242         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
7243         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7244         * lib/unistr/u16-check.c (u16_check): Update comment.
7245         * NEWS: Mention the changes that callers should be aware of.
7247 2016-11-19  Bruno Haible  <bruno@clisp.org>
7249         relocatable-prog-wrapper: Fix breakage on Cygwin.
7250         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
7251         (Depends-on): Remove intprops.
7252         * lib/relocwrapper.c: Update dependency tree.
7253         (strerror): Undefine.
7254         * build-aux/install-reloc (func_create_wrapper): Do not compile
7255         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
7257 2016-11-19  Bruno Haible  <bruno@clisp.org>
7259         strerror: Make it compile in C++ mode.
7260         * lib/strerror.c (strerror): Ignore the return value of memcpy().
7262 2016-11-15  Pedro Alves  <palves@redhat.com>
7264         sys_time: add gnulib::timeval for C++
7265         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
7266         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
7267         timeval macro.
7269 2016-11-14  Pedro Alves  <palves@redhat.com>
7271         snippet/c++defs: fix real-floating arg functions in C++ mode
7272         Also, define isfinite, isinf, isnan, signbit in the gnulib
7273         namespace instead of in the global namespace.
7274         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
7275         (_GL_END_NAMESPACE): New.
7276         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
7277         (isfinite, isinf, isnan, signbit) [__cplusplus &&
7278         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
7279         instead of in the global namespace.
7280         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
7281         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
7282         of in the global namespace.
7284 2016-11-13  Jim Meyering  <meyering@fb.com>
7286         strftime: don't use __THROW
7287         Each use of __THROW would provoke this from gcc-7-to-be:
7289           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
7290             on unit local functions [-Wattributes]
7291           static int iso_week_days (int, int) __THROW;
7292           ^~~~~~
7293         * lib/strftime.c (__THROW): Don't define.
7294         Remove each use of __THROW.
7295         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
7296         (tm_diff, iso_week_days, __strftime_internal): Likewise.
7298 2016-11-14  Paul Eggert  <eggert@union>
7300         obstack: port to gcc -fcheck-pointer-bounds
7301         Problem found by 'make check' failure on bleeding-edge coreutils
7302         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
7303         6.2.0-5ubuntu12), configured via "./configure
7304         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
7305         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
7306         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
7307         New macro, copied from fts_.h.
7308         (struct _obstack_chunk.contents): Use it.
7310 2016-11-14  Eric Blake  <eblake@redhat.com>
7312         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
7313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
7314         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
7316 2016-11-14  Pádraig Brady  <P@draigBrady.com>
7318         strptime: fix compile error in recent change
7319         * lib/strptime.c (__strptime_internal): Fix ported code.
7321 2016-11-11  Bruno Haible  <bruno@clisp.org>
7323         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
7324         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
7325         (func_import): Extend determination of license_incompatibilities.
7326         (func_create_testdir): Extend table of license compatibility. Handle
7327         also the licenses GPLv3+, GPL, LGPLv3+.
7329 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7331         strftime: tune %q
7332         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
7334         Merge strftime.c changes from glibc
7335         This incorporates:
7336         2007-10-16 [BZ #5184] Add tzset_called argument
7337         2008-06-13 [BZ #6612] pass reference to tzset_called around
7338         2009-10-30 Implement Burmese language locale for Myanmar
7339         2010-01-09 Add support for XPG7 testing
7340         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
7341         2015-10-20 Convert miscellaneous function definitions to prototype style
7342         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
7343         it anyway and this lessens the difference between gnulib and glibc.
7344         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
7345         (__THROW): Define if standard headers do not.
7346         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
7347         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
7348         Declare with __THROW.
7349         (__strftime_internal): Rename from strftime_case_. Add arg for
7350         whether tzset is called.  All uses changed.  Call tzset at most
7351         once.  Allow %OC, for Burmese.
7352         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
7353         Don't assume values are in range.
7355 2016-11-12  Eric Blake  <eblake@redhat.com>
7357         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
7358         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
7359         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
7360         different value.
7362 2006-11-12  Pedro Alves  <palves@redhat.com>
7364         Fix gnulib C++ namespace support and std::frexp
7365         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
7366         _GL_CXXALIASWARN.
7368 2006-11-12  Pedro Alves  <palves@redhat.com>
7370         GNULIB_NAMESPACE::func need not pull in rpl_func
7371         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7372         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
7373         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
7374         struct instead of a function pointer.
7376 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
7378         manywarnings: fix -Wno-missing-field-initializers detection
7379         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
7380         to be independent of -Wunused-variable.  I.E. ensure the latter
7381         warning doesn't occur so that detection of the former is accurate.
7383 2016-11-05  Pádraig Brady  <pbrady@fb.com>
7385         strftime,strptime: support %q to represent the quarter
7386         * lib/strftime.c (strftime_case_): Add %q case.
7387         * lib/strptime.c (__strptime_internal): Likewise.
7388         * tests/test-strftime.c (quarter_test): A new test case.
7390 2016-11-03  Eric Blake  <eblake@redhat.com>
7392         bootstrap: Fix get_version() for AIX 5.3
7393         * build-aux/bootstrap (get_version): Factor out sed script, since
7394         indented comments choke AIX 5.3 sed.
7395         Reported-by: Michael Felt <aixtools@gmail.com>
7397 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
7399         intprops: port to older XL C
7400         Problem reported by Alexander Samoilov in:
7401         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
7402         http://savannah.nongnu.org/bugs/?49448
7403         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
7404         Define to 1 only for XL C 12.1 or later, since this bug
7405         occurs in XL C for AIX 6.0 but not in 12.1.
7407 2016-11-02  Pádraig Brady  <P@draigBrady.com>
7409         backupfile: initialize default suffix within the implementation
7410         * lib/backupfile.c (find_backup_file_name): Initialize the
7411         global variable here, to simplify usage, and to only call
7412         getenv() when needed.
7414 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7416         futimens: remove FIXME for old Linux kernels
7417         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
7418         this in 2012" FIXME, like that for utimensat.
7420         utimensat: remove FIXME for old Linux kernels
7421         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
7422         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
7423         this in 2012" FIXME, by assuming the file system bug is absent
7424         unless demonstrated to be present.  We no longer need to worry
7425         about Linux kernel 2.6.32 when building with newer kernels.
7427 2016-10-16  Bruno Haible  <bruno@clisp.org>
7429         qsort_r: Fix macrology for platforms that lack the function.
7430         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
7431         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
7432         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
7433         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
7434         not exist.
7435         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
7436         the function exists.
7437         * modules/qsort_r: Add comments.
7439 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7441         sys_types: fix Texinfo typos
7442         * doc/glibc-functions/gnu_dev_major.texi:
7443         * doc/glibc-functions/gnu_dev_makedev.texi:
7444         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
7446 2016-10-26  John David Anglin  <dave.anglin@bell.net>
7448         getprogname: port to HP-UX
7449         See Bug#24805.
7450         * lib/getprogname.c (getprogname) [__hpux]: Port.
7451         * tests/test-getprogname.c (STREQ) [__hpux]:
7452         Special-case for HP-UX limitations on program name length.
7454 2016-10-20  Bruno Haible  <bruno@clisp.org>
7456         Update doc about target platforms.
7457         * doc/gnulib-intro.texi (Target Platforms): Update list.
7459 2016-10-15  Bruno Haible  <bruno@clisp.org>
7461         opendir, readdir, closedir: Relicense under LGPLv2+.
7462         * modules/opendir (License): Change to LGPLv2+.
7463         * modules/readdir (License): Likewise.
7464         * modules/closedir (License): Likewise.
7466 2016-10-16  Bruno Haible  <bruno@clisp.org>
7468         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
7470         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
7471         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
7472         HAVE_DECL_STRERROR_R.
7474 2016-10-16  Bruno Haible  <bruno@clisp.org>
7476         Make the 'argp' module work without the 'error' module.
7477         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
7479 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
7481         diffseq: restore TOO_EXPENSIVE heuristic
7482         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
7483         (Bug#24715).  The simplest solution is to restore the
7484         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
7485         using a higher threshold to avoid Bug#16848 on smaller files.
7486         * lib/diffseq.h (struct context): Restore member too_expensive.
7487         (struct partition): Restore members lo_minimal, hi_minimal.
7488         (diag, compareseq): Restore arg find_minimal.  All uses changed.
7489         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
7490         1993 to make 'diff' run faster (but not as well) on large inputs,
7491         but use a threshold of 4096 instead of the old 256.
7492         * lib/fstrcmp.c (strcmp_bounded):
7493         * lib/git-merge-changelog.c (compute_differences):
7494         Adjust to diffseq.h changes.
7496 2016-10-22  Bruno Haible  <bruno@clisp.org>
7498         iconv: Avoid compilation error when bootstrapping GNU libiconv.
7499         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
7500         declaration yet, define ICONV_CONST to empty.
7502 2016-10-15  Bruno Haible  <bruno@clisp.org>
7504         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
7505         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
7506         module.
7508 2016-10-16  Bruno Haible  <bruno@clisp.org>
7510         system-quote tests: Avoid compiler warning on AIX.
7511         * tests/test-system-quote-child.c (fopen): Redefine like the system's
7512         <stdio.h> does.
7514 2016-10-16  Bruno Haible  <bruno@clisp.org>
7516         Fix some "gcc -Wall" warnings.
7517         * tests/test-ffsl.c (main): Use variable x, not i.
7518         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
7519         freopen.
7520         * tests/test-sethostname1.c (main): Explicitly ignore the return value
7521         of sethostname.
7523 2016-10-16  Bruno Haible  <bruno@clisp.org>
7525         gnulib-tool: Make --create-testdir on all modules work again.
7526         * gnulib-tool (func_create_testdir): Don't include the
7527         non-recursive-gnulib-prefix-hack module.
7529 2016-10-21  Daiki Ueno  <ueno@gnu.org>
7531         libunistring: change the maintainer to 'all'
7532         * modules/gen-uni-tables, modules/libunistring:
7533         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
7534         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
7535         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
7536         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
7537         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
7538         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
7539         * modules/uniwidth/*: Change the maintainer to 'all'.
7541 2016-10-16  Bruno Haible  <bruno@clisp.org>
7543         Simplify "configure: checking ..." messages.
7544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
7545         AC_MSG_NOTICE.
7546         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7548 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
7550         quotearg-tests: pacify gcc -Wall
7551         Problem reported by Bruno Haible in:
7552         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
7553         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
7554         * tests/test-quotearg.h: ... from here.
7556 2016-10-20  Pádraig Brady  <P@draigBrady.com>
7558         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
7559         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
7560         Needed on Centos <= 4.
7562 2016-10-20  Jim Meyering  <meyering@fb.com>
7564         printf.m4: fix a bug in detecting printf %j support
7565         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
7566         uintmax_t is defined in neither stdint.h nor inttypes.h.
7567         Before, this macro might have mistakenly set
7568         gl_cv_func_printf_sizes_c99=yes on such a system.
7569         Spotted by Zev Weiss.
7571 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7573         sched: substitute HAVE_SYS_CDEFS_H too
7574         Problem reported by Tom G. Christensen in:
7575         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
7576         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
7577         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
7579 2016-10-19  Pádraig Brady  <P@draigBrady.com>
7581         quotearg: never write beyond the returned length
7582         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
7583         scan of the string when we initially encounter a single quote when
7584         shell quoting, so that if we then switch to a more concise quoting method
7585         we will not have written beyond that returned length.
7586         This is significant for sh-quote, which has separate routines
7587         to determine the length and do the actual quoting.
7588         * tests/test-quotearg.h: Reinstate the buffer bounds checking
7589         now that we never write more than the returned length.
7591 2016-10-18  Bruno Haible  <bruno@clisp.org>
7593         getprogname tests: Avoid failure in packages that use libtool.
7594         * tests/test-getprogname.c (main): Strip "lt-" prefix.
7595         Based on a patch by Jim Meyering.
7597 2016-10-16  Bruno Haible  <bruno@clisp.org>
7599         getprogname: Fix test failure on Cygwin. Comments.
7600         * lib/getprogname.h: Add comments.
7601         * lib/getprogname.c: Add comments. Fix #elif indentation.
7602         * tests/test-getprogname.c (main): On Cygwin, expect a result without
7603         ".exe" suffix.
7605 2016-10-16  Bruno Haible  <bruno@clisp.org>
7607         Make sure the libunistring detection rejects older versions with a
7608         known bug.
7609         * modules/unistr/u8-strtok (configure.ac): Bump required version.
7610         * modules/unistr/u16-strtok (configure.ac): Likewise.
7611         * modules/unistr/u32-strtok (configure.ac): Likewise.
7613 2016-10-18  Bruno Haible  <bruno@clisp.org>
7615         sh-quote, system-quote: revert regression of unit test.
7616         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
7617         * tests/test-system-quote-main.c (check_one): Likewise.
7619 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7621         quotearg: fix stale tests
7622         * tests/test-quotearg.c [locale_results]: Add the missing str7
7623         entries to the expected results.
7624         * tests/test-system-quote-main.c (check_one): Don't enforce that we
7625         don't write beyond the returned length, since that's no longer the
7626         case if we switch to a more concise quoting style.
7627         * tests/test-sh-quote.c (check_one): Likewise.
7628         (main): Adjust for the new more concise quoting style.
7629         Reported by Bruno Haible.
7631 2016-10-16  Jim Meyering  <meyering@fb.com>
7633         non-recursive-gnulib-prefix-hack: fix inconsequential typo
7634         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
7635         to "$1".  This macro is always invoked with $1 == lib.
7636         Spotted by Bruno Haible
7638 2016-10-16  Bruno Haible  <bruno@clisp.org>
7640         Fix a test crash.
7641         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
7642         fails.
7644 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7646         test-limits-h: suppress -Woverlength-strings
7647         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
7649 2016-10-15  Bruno Haible  <bruno@clisp.org>
7651         gettime, timespec, utimens: Relicense under LGPL.
7652         * modules/gettime (License): Change to LGPL.
7653         * modules/timespec (License): Likewise.
7654         * modules/utimens (License): Likewise.
7656 2016-10-14  Bruno Haible  <bruno@clisp.org>
7657             Pádraig Brady  <P@draigBrady.com>
7659         canonicalize-lgpl: Support the case path_max > INT_MAX.
7660         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
7661         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
7663 2016-10-13  Jim Meyering  <meyering@fb.com>
7665         getprogname: IBM z/OS: avoid NULL-dereference
7666         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
7667         upon strdup failure.
7669 2016-10-12  Jim Meyering  <meyering@fb.com>
7671         test-stdint: use _GL_VERIFY rather than "verify" for some tests
7672         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
7673         and an abbreviated diagnostic rather than verify with the full one,
7674         because the full-length strings would evoke warnings from gcc with
7675         -Woverlength-strings.
7677 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7679         stdint: port SIZE_MAX to glibc s390
7680         Problem reported by Eric Blake in:
7681         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
7682         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
7683         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
7684         correct type, if possible.
7686 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
7688         getprogname: port to IBM z/OS
7689         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
7691 2016-10-11  Jim Meyering  <meyering@fb.com>
7693         maint: remove stray space after "." in AC_DEFINE comment.
7694         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
7695         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7697 2016-10-05  Jim Meyering  <meyering@fb.com>
7699         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7700         * lib/long-options.c (parse_long_options): Add a break statement
7701         to avoid this new warning/failure:
7702         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7703           --create-testdir --dir=/t/x --with-tests --test long-options
7704         ../../gllib/long-options.c: In function 'parse_long_options':
7705         ../../gllib/long-options.c:66:12: error: this statement may \
7706           fall through [-Werror=implicit-fallthrough]
7707                    (*usage_func) (EXIT_SUCCESS);
7708                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7710 2016-10-05  Jim Meyering  <meyering@fb.com>
7712         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7713         Testing this module would fail when using GCC 7 like this:
7714         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7715           --dir=/tmp/x --with-tests --test utimecmp
7716         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7717         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7718           [-Werror=bool-operation]
7719                          time_t s = src_s & ~ (res == 2 * BILLION);
7720                                             ^
7721         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7722           [-Werror=bool-operation]
7723                src_s &= ~ (res == 2 * BILLION);
7724                         ^
7725         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7726         Instead, make it explicit that we intend to apply it to 0 or 1.
7728 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7730         dfa: save memory for states
7731         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
7732         states if dfa has a lot of caches.
7734 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
7736         wchar, wctype-h: fix for MinGW 3.22.2
7737         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
7738         special invocation, to fix issues with MinGW 3.22.2 wchar.h
7739         when included from <string.h>.
7740         * lib/wctype.in.h [__MINGW32__]: Add special invocation
7741         convention for MinGW 3.22.2, to solve issues with their
7742         wctype.h when included from <ctype.h>.
7744 2016-10-05  Jim Meyering  <meyering@fb.com>
7746         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7747         * lib/long-options.c (parse_long_options): Add a break statement
7748         to avoid this new warning/failure:
7749         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7750           --create-testdir --dir=/t/x --with-tests --test long-options
7751         ../../gllib/long-options.c: In function ‘parse_long_options’:
7752         ../../gllib/long-options.c:66:12: error: this statement may \
7753           fall through [-Werror=implicit-fallthrough]
7754                    (*usage_func) (EXIT_SUCCESS);
7755                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7757         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7758         Testing this module would fail when using GCC 7 like this:
7759         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7760           --dir=/tmp/x --with-tests --test utimecmp
7761         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7762         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7763           [-Werror=bool-operation]
7764                          time_t s = src_s & ~ (res == 2 * BILLION);
7765                                             ^
7766         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7767           [-Werror=bool-operation]
7768                src_s &= ~ (res == 2 * BILLION);
7769                         ^
7770         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7771         Instead, make it explicit that we intend to apply it to 0 or 1.
7773 2016-10-03  Pádraig Brady  <P@draigBrady.com>
7775         quotearg: minimize shell quoting using double quotes
7776         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
7777         quote in encountered then use double quotes (c style quoting)
7778         when possible, as it simplifies the quoting.
7779         * tests/test-quotearg-simple.c: Add test cases.
7780         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
7781         for the fact we now may write beyond the returned length.
7783 2016-10-02  Jim Meyering  <meyering@fb.com>
7785         vasnprintf.c: avoid spurious warning from GCC 7
7786         The presence of cpp directives renders this "FALLTHROUGH" comment
7787         ineffective, so does not suppress the -Wimplicit-fallthrough warning
7788         from GCC 7 built from git on 2016-10-02.
7789         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
7790         directives, so that it takes effect once again.  This is clearly
7791         not a proper change, and I will revert it once this bug is fixed:
7792         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
7794 2016-10-01  Jim Meyering  <meyering@fb.com>
7796         getprogname: correct the test for a __progname variable
7797         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
7798         and AC_LINK_IFELSE to check for a global __progname.  If found,
7799         define HAVE_VAR___PROGNAME.
7800         * lib/getprogname.c (getprogname): Reflect the new name of the
7801         feature- checked preprocessor symbol:
7802         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
7804 2016-09-28  Jim Meyering  <meyering@fb.com>
7806         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
7807         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
7808         fall-through case with a /* fallthrough */ comment.
7810         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
7811         * lib/dfa.c (dfassbuild): Mark the end of this case with a
7812         /* fallthrough */ comment.
7814         getprogname: avoid __progname vs program_invocation_short_name pitfall
7815         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
7816         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
7817         not with Fedora 24's glibc-2.23.1-10.
7818         * lib/getprogname.c (__progname): Move this declaration down...
7819         (getprogname): ... into the #elif block where used, and make it
7820         explicitly "extern".
7822         getprogname: port to OpenBSD 5.1
7823         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
7824         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
7825         * modules/getprogname (configure.ac): Move most of this code...
7826         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
7827         increment serial number, and add a test for __progname.
7828         https://bugs.gnu.org/24562
7829         Reported by Nelson H. F. Beebe.
7831 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7833         sched: port to GCC 6.2.1 on macOS Sierra
7834         Problem reported by Denis Davydov in:
7835         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
7836         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
7837         Include <sys/cdefs.h> before <sched.h>.
7838         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
7839         so that we needn’t worry about the sched.h include bug here.
7840         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
7841         and include it before <sched.h> if it exists, when
7842         checking for <sched.h>.
7844         tests/init.sh: port Alpine fix to AIX 7.1
7845         * tests/init.sh (compare_): When attempting to use diff -U3,
7846         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
7847         diff -u not outputting a space after leading '+', as the users
7848         of 'compare' should not be that picky about its output format.
7849         In the AIX 7.1 case, return with diff exit status (or with 2 if
7850         trouble), instead of some random nonzero exit status.
7851         * tests/test-init.sh (test_compare): Remove space after leading
7852         '+', so that AIX 7.1 'diff' passes the test.
7854 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7856         nl_langinfo: pacify GCC
7857         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
7858         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
7860         stdint: also set GL_GENERATE_LIMITS_H
7861         Problem reported by Jim Meyering in:
7862         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
7863         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
7865         limits-h, stdint: Don't assume extensions, fix typo
7866         * m4/limits-h.m4 (gl_LIMITS_H):
7867         * m4/stdint.m4 (gl_STDINT_H):
7868         Don't assume AC_USE_SYSTEM_EXTENSIONS.
7869         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
7870         reported by Jim Meyering in:
7871         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
7873 2016-09-21  Jim Meyering  <meyering@fb.com>
7875         getprogname: port to AIX
7876         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
7877         and strdup to obtain a short program name string.  Using code from
7878         Bruno Haible and an idea from Bastien ROUCARIÈS, in
7879         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7880         Assaf Gordon reported that this new file would fail to compile on
7881         AIX-7.1 32bit.
7883 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7885         extensions: fix typo in comment
7886         * m4/extensions.m4: Sync from Autoconf master.
7888         stdint: support new _WIDTH macros
7889         * doc/posix-headers/stdint.texi: Document this.
7890         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
7891         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
7892         support for INTMAX_WIDTH, etc. as well as for support for just C99.
7893         * modules/stdint (Depends-on): Add limits-h.
7894         (Makefile.am): Substitute HAVE_C99_STDINT_H.
7895         * modules/stdint-tests (Depends-on): Add extensions, so that
7896         INTMAX_MAX etc. are defined.
7897         * tests/test-stdint.c: Verify the new macros.
7899         limits-h: new module
7900         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
7901         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
7902         * doc/posix-headers/limits.texi: Document new module.
7903         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
7904         * modules/limit-h-tests, tests/test-limits-h.c: New files.
7906         stdio: don't redefine __USE_MINGW_ANSI_STDIO
7907         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
7908         if it is already defined.  Apparently GNU Emacs relies on this.  See:
7909         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
7911 2016-09-15  Eric Blake  <eblake@redhat.com>
7913         sys_types: avoid glibc 2.25 warnings about major()
7914         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
7915         older autoconf.
7916         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
7917         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
7918         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
7919         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
7921         mountlist: include sysmacros.h for glibc
7922         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
7923         AC_HEADER_MAJOR.
7924         * lib/mountlist.c (includes): Use correct headers.
7926 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
7928         extensions: port to more ISO C TSes
7929         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
7930         master, to add support for more recent ISO C TRs and TSes.
7932 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7934         intprops: new macro TYPE_WIDTH
7935         * lib/intprops.h (TYPE_WIDTH): New macro.
7936         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
7937         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
7938         * lib/parse-datetime.y (parse_datetime2):
7939         Use it.
7941         extensions: port to recent ISO C TRs
7942         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7943         Sync from Autoconf master, to add support for recent ISO C TRs.
7944         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
7945         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
7946         the MinGW option is not an extension.
7948 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
7950         dfa: port to Solaris 9
7951         Problems reported by Tom G. Christensen in:
7952         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
7953         * modules/dfa (Depends-on): Add isblank.
7954         * modules/dfa-tests (dfa_match_aux_LDADD):
7955         Rename from test_stat_LDADD, to fix typo.
7956         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
7958 2016-09-10  Jim Meyering  <meyering@fb.com>
7960         strverscmp: avoid link failure on OS X
7961         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
7962         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
7964 2016-08-16  Jim Meyering  <meyering@fb.com>
7966         dfa: new module, importing grep's DFA matcher
7967         Since grep's DFA matcher is now being used by two gnulib-enabled
7968         projects, grep and sed, it makes sense to version-control its
7969         sources and unit tests in one place: here.
7970         * modules/dfa: New module.
7971         * modules/dfa-tests: New file.
7972         * lib/dfa.c: New file, from grep.
7973         * lib/dfa.h: Likewise.
7974         * lib/localeinfo.c: Likewise.
7975         * lib/localeinfo.h: Likewise.
7976         * tests/dfa-match-aux.c: Likewise.
7977         * tests/dfa-invalid-char-class.sh: Likewise.
7978         * tests/dfa-match.sh: Likewise, with minor changes.
7979         * MODULES.html.sh (Misc): Add "dfa" to this list.
7981 2016-09-09  Jim Meyering  <meyering@fb.com>
7983         getprogname-tests: don't depend on assert-h
7984         * modules/getprogname-tests (Depends-on): Remove assert-h.
7985         It was not needed, and in fact would cause build failure for
7986         coreutils on some systems.  Reported by Assaf Gordon in https:
7987         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
7989 2016-09-07  Jim Meyering  <meyering@fb.com>
7991         getprogname-tests: work also when EXEEXT is nonempty
7992         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
7993         * tests/test-getprogname.c (main): Use it.
7994         Suggested by Gisle Vanem.
7996 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
7998         getprogname: fix errors in previous change
7999         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
8000         s/program_invocation_name/base/
8001         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
8003 2016-09-08  Pádraig Brady  <P@draigBrady.com>
8005         parse-datetime: restrict debug output to input string
8006         * lib/parse-datetime.y (parse_datetime2): If we parse
8007         all of the input but determine it's invalid, ensure
8008         we don't output the now invalid input pointer.
8009         This issue was seen with `date -d 'now +1'`.
8011 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8013         flexmember: new macro FLEXALIGNOF
8014         * lib/flexmember.h: Include <stddef.h>, for offsetof.
8015         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
8016         this macro.  Update comments.
8018 2016-09-07  Jim Meyering  <meyering@fb.com>
8020         getprogname: port to systems with __argv (mingw, msvc)
8021         * lib/getprogname.c (getprogname): Include "dirname.h" and use
8022         last_component: more general than open coding it with hard-coded "/".
8023         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
8024         * modules/getprogname (Depends-on): Add dirname-lgpl.
8025         (configure.ac): Check for __argv in <stdlib.h>.
8026         * modules/getprogname-tests: New file.
8027         * tests/test-getprogname.c: New file.
8028         Suggested by Gisle Vanem in
8029         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
8031 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8033         flexmember: port better to GCC + valgrind
8034         With a char[] flexible array member in a struct with nontrivial
8035         alignment, GCC-generated code can access past the end of the
8036         array, because GCC assumes there are padding bytes to get the
8037         struct aligned.  So the common idiom of malloc (offsetof (struct
8038         s, m), n) does not properly allocate an n-byte trailing member, as
8039         malloc’s argument should be the next multiple of alignof (struct s).
8040         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8041         Although C11 apparently permits this GCC optimization (i.e., there
8042         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
8043         See the thread containing:
8044         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
8045         * lib/flexmember.h: New file.
8046         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
8047         * lib/localename.c, lib/time_rz.c:
8048         Include flexmember.h.
8049         * lib/fnmatch_loop.c (struct patternlist):
8050         * lib/localename.c (struct hash_node):
8051         Use FLEXIBLE_ARRAY_MEMBER.
8052         * lib/fnmatch_loop.c (EXT):
8053         * lib/fts.c (fts_alloc):
8054         * lib/glob.c (glob_in_dir):
8055         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
8056         * lib/localename.c (gl_lock_define_initialized):
8057         * lib/time_rz.c (tzalloc):
8058         Use FLEXSIZEOF instead of offsetof.
8059         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8060         Check that the size of the struct can be taken.
8061         * modules/flexmember (Files): Add lib/flexmember.h.
8062         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
8063         Add flexmember.
8065 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8067         getprogname: port to Solaris 10
8068         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
8069         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
8070         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
8072         stdalign: correct mistake in alignof doc
8073         Problem reported by Joseph Myers in:
8074         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
8075         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
8076         alignof(S) where S is a structure containing a flexible array
8077         member.  The Gnulib substitute does not support this, but C11 does.
8079 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8081         main.mk: remove sc_program_name, since there is no more need to
8082         use set_program_name in tools (getprogname is enough for most
8083         of the cases).
8084         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
8085         * top/maint.mk (sc_program_name): Remove.
8087 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8089         Port tests away from progname, since modules that need the
8090         program name already depend on getprogname.
8091         * modules/acl-tests (Depends-on): Remove progname.
8092         * modules/argmatch (Depends-on): Likewise.
8093         * modules/argmatch-tests (Depends-on): Likewise.
8094         * modules/argp-tests (Depends-on): Likewise.
8095         * modules/argp-version-etc-tests (Depends-on): Likewise.
8096         * modules/array-list-tests (Depends-on): Likewise.
8097         * modules/array-oset-tests (Depends-on): Likewise.
8098         * modules/avltree-list-tests (Depends-on): Likewise.
8099         * modules/avltree-oset-tests (Depends-on): Likewise.
8100         * modules/avltreehash-list-tests (Depends-on): Likewise.
8101         * modules/carray-list-tests (Depends-on): Likewise.
8102         * modules/copy-file-tests (Depends-on): Likewise.
8103         * modules/exclude-tests (Depends-on): Likewise.
8104         * modules/fchownat-tests (Depends-on): Likewise.
8105         * modules/fdopendir-tests (Depends-on): Likewise.
8106         * modules/filenamecat-tests (Depends-on): Likewise.
8107         * modules/fstatat-tests (Depends-on): Likewise.
8108         * modules/fstrcmp-tests (Depends-on): Likewise.
8109         * modules/linked-list-tests (Depends-on): Likewise.
8110         * modules/linkedhash-list-tests (Depends-on): Likewise.
8111         * modules/mkdirat-tests (Depends-on): Likewise.
8112         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
8113         * modules/nonblocking-socket-tests (Depends-on): Likewise.
8114         * modules/obstack-printf-tests (Depends-on): Likewise.
8115         * modules/openat-tests (Depends-on): Likewise.
8116         * modules/parse-datetime-tests (Depends-on): Likewise.
8117         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
8118         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
8119         * modules/quotearg-simple-tests (Depends-on): Likewise.
8120         * modules/quotearg-tests (Depends-on): Likewise.
8121         * modules/rbtree-list-tests (Depends-on): Likewise.
8122         * modules/rbtree-oset-tests (Depends-on): Likewise.
8123         * modules/rbtreehash-list-tests (Depends-on): Likewise.
8124         * modules/spawn-pipe-tests (Depends-on): Likewise.
8125         * modules/system-quote-tests (Depends-on): Likewise.
8126         * modules/uniname/uniname-tests (Depends-on): Likewise.
8127         * modules/uninorm/nfc-tests (Depends-on): Likewise.
8128         * modules/uninorm/nfd-tests (Depends-on): Likewise.
8129         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
8130         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
8131         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
8132         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
8133         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
8134         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
8135         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
8136         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
8137         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
8138         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
8139         * modules/unlinkat-tests (Depends-on): Likewise.
8140         * modules/version-etc-tests (Depends-on): Likewise.
8141         * modules/xalloc-die-tests (Depends-on): Likewise.
8142         * modules/xmemdup0-tests (Depends-on): Likewise.
8143         * modules/xprintf-posix-tests (Depends-on): Likewise.
8144         * modules/xvasprintf-tests (Depends-on): Likewise.
8145         * tests/test-argmatch.c: Do not include progname.h.
8146         (main) Stop calling set_program_name.
8147         * tests/test-argp-version-etc.c: Likewise.
8148         * tests/test-argp.c: Likewise.
8149         * tests/test-argv-iter.c: Likewise.
8150         * tests/test-array_list.c: Likewise.
8151         * tests/test-array_oset.c: Likewise.
8152         * tests/test-avltree_list.c: Likewise.
8153         * tests/test-avltree_oset.c: Likewise.
8154         * tests/test-avltreehash_list.c: Likewise.
8155         * tests/test-carray_list.c: Likewise.
8156         * tests/test-copy-acl.c: Likewise.
8157         * tests/test-copy-file.c: Likewise.
8158         * tests/test-exclude.c: Likewise.
8159         * tests/test-fchownat.c: Likewise.
8160         * tests/test-fdopendir.c: Likewise.
8161         * tests/test-filenamecat.c: Likewise.
8162         * tests/test-fstatat.c: Likewise.
8163         * tests/test-fstrcmp.c: Likewise.
8164         * tests/test-linked_list.c: Likewise.
8165         * tests/test-linkedhash_list.c: Likewise.
8166         * tests/test-mkdirat.c: Likewise.
8167         * tests/test-nonblocking-pipe-main.c: Likewise.
8168         * tests/test-nonblocking-socket-main.c: Likewise.
8169         * tests/test-obstack-printf.c: Likewise.
8170         * tests/test-openat.c: Likewise.
8171         * tests/test-parse-datetime.c: Likewise.
8172         * tests/test-pipe-filter-gi1.c: Likewise.
8173         * tests/test-pipe-filter-gi2-main.c: Likewise.
8174         * tests/test-pipe-filter-ii1.c: Likewise.
8175         * tests/test-pipe-filter-ii2-main.c: Likewise.
8176         * tests/test-quotearg-simple.c: Likewise.
8177         * tests/test-quotearg.c: Likewise.
8178         * tests/test-rbtree_list.c: Likewise.
8179         * tests/test-rbtree_oset.c: Likewise.
8180         * tests/test-rbtreehash_list.c: Likewise.
8181         * tests/test-sameacls.c: Likewise.
8182         * tests/test-set-mode-acl.c: Likewise.
8183         * tests/test-spawn-pipe-main.c: Likewise.
8184         * tests/test-system-quote-main.c: Likewise.
8185         * tests/test-unlinkat.c: Likewise.
8186         * tests/test-version-etc.c: Likewise.
8187         * tests/test-xalloc-die.c: Likewise.
8188         * tests/test-xfprintf-posix.c: Likewise.
8189         * tests/test-xmemdup0.c: Likewise.
8190         * tests/test-xprintf-posix.c: Likewise.
8191         * tests/test-xvasprintf.c: Likewise.
8192         * tests/uniname/test-uninames.c: Likewise.
8193         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8194         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8195         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8196         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8197         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8198         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8199         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8200         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8201         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8202         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8203         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8204         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8205         * tests/test-c-stack.c: (program_name): Do not define.
8206         (main): Do not set program_name.
8207         * tests/test-closein.c: Likewise.
8208         * tests/test-xstrtol.c: Likewise.
8209         * tests/test-yesno.c: Likewise.
8211 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8213         Port modules to use getprogname explicitly, instead of requiring
8214         progname to be used (or program_name to be provided).
8215         * lib/argmatch.c: Do not include progname.h.
8216         [TEST] (program_name): Do not define.
8217         [TEST] (main): Call getprogname instead of using program_name.
8218         * lib/c-stack.c: Do not include progname.h.
8219         (program_name): Do not define.
8220         (die): Call getprogname instead of using program_name.
8221         * lib/chdir-long.c: Do not include progname.h.
8222         [TEST_CHDIR] (main): Do not set program_name.
8223         * lib/error.c [!_LIBC]: Include progname.h.
8224         [!_LIBC] (program_name): Define using getprogname.
8225         * lib/euidaccess.c: Do not include progname.h.
8226         [TEST] (main): Do not set program_name.
8227         * lib/git-merge-changelog.c: Include getprogname.h instead of
8228         progname.h.
8229         (usage): Call getprogname instead of using program_name.
8230         (main): Likewise.  Stop calling set_program_name.
8231         * lib/group-member.c: Do not include progname.h.
8232         [TEST] (main): Do not set program_name.
8233         * modules/argmatch (Depends-on): Add getprogname.
8234         * modules/c-stack (Depends-on): Likewise.
8235         * modules/error (Depends-on): Likewise.
8236         * modules/git-merge-changelog (Depends-on): Likewise.
8237         Also remove progname.
8239 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
8241         * NEWS: Document the deprecation of the 'progname' module.
8243 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8245         getprogname: new module
8246         This provides a LGPL module for getting the name of the current
8247         program, using the same API found on *BSD systems.
8248         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
8249         * modules/getprogname: New files.
8250         * MODULES.html.sh (Misc): Add getprogname.
8252 2016-09-02  Jim Meyering  <meyering@fb.com>
8254         manywarnings: add -fno-common
8255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
8256         to the list.  Quoting the manual, "Compiling with -fno-common is
8257         useful on targets for which it provides better performance, or if
8258         you wish to verify that the program will work on other systems that
8259         always treat uninitialized variable declarations this way [putting
8260         it in the data section]."  If diffutils had been using this sooner,
8261         it would have prevented this duplicate declaration issue:
8262         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
8264 2016-08-31  Simon Josefsson  <simon@josefsson.org>
8266         parse-datetime: Fix typo.
8267         * lib/parse-datetime.y (parse_datetime2): Fix typo.
8269 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8271         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
8272         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
8273         GCC 5 and 6 that have __builtin_sub_overflow but not
8274         __builtin_sub_overflow_p.  With the recent changes, these
8275         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
8276         implementation than with INT_SUBTRACT_OVERFLOW implementation,
8277         since the former needs just one runtime comparison whereas the
8278         latter needs two.
8280         strverscmp: sync with glibc
8281         Although this doesn't exactly synchronize with glibc
8282         byte-for-byte, it makes the code behave the same as glibc.
8283         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
8284         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
8285         difference shouldn't matter in practical use.  All uses changed
8286         back to isdigit.
8287         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
8288         (next_state): Now unsigned char array; redo elements.
8289         (result_type): Now signed char array; redo elements.
8290         (__strverscmp): Fix glibc bug 9913 by using new states.
8291         * tests/test-strverscmp.c (main): Test glibc bug 9913.
8293 2016-08-29  Jim Meyering  <meyering@fb.com>
8295         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
8296         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
8297         similarly to how it was done to intprops.h.
8299 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8301         intprops.h: port recent changes to GCC 6.2.0
8302         * lib/intprops.h (__has_builtin): Move earlier.
8303         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
8304         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
8305         the last argument can be null.  All uses changed.
8306         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
8307         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8308         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
8309         and it's not clear which GCC versions it works for.
8310         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
8311         its definiens.
8313         intprops.h: use __typeof__ with GCC 7
8314         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
8315         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
8316         This avoids computing the expression's value (which might overflow!).
8318 2016-08-29  Jim Meyering  <meyering@fb.com>
8320         intprops.h, xalloc-oversized.h: work with gcc 7
8321         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
8322         __builtin_mul_overflow each accept a NULL pointer as the third
8323         argument.  However in gcc 7, that is no longer accepted.
8324         Instead, one must use the "_p"-suffixed names, with which, the
8325         third parameter is no longer a pointer.
8326         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
8327         the definition: not true for gcc 7 and subsequent.
8328         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
8329         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8330         Provide new definitions for gcc 7 and subsequent.
8331         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
8332         that works with gcc-7.
8334         intprops.h: fix missing-backslash problems
8335         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
8336         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
8338 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8340         intprops: fix paren typo on old platforms
8341         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
8342         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
8343         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
8344         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
8345         && !defined LLONG_MAX]:
8346         Remove stray paren.
8348         intprops: port to OpenVMS
8349         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
8350         * doc/posix-headers/limits.texi: Document the problem.
8351         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
8352         Define if not already defined.
8354 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
8356         parse-datetime: improve debug implementation
8357         Follow-up to commit 12ad79069 ("add optional debug printing").
8358         Improve parse-datetime's debug implementation: remove macros,
8359         replace global debug flag variable with a function parameter,
8360         use nstrftime for formatting.
8361         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
8362         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
8363         (parse_datetime2): New function, accepts 'flags' parameter, supporting
8364         debug flag. Existing interface 'parse_datetime' left unmodified.
8365         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
8366         (struct parser_control): add 'parse_datetime_debug' member variable.
8367         (parse_datetime): Call new function 'parse_datetime2' without debug.
8368         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
8369         pc.parse_datetime_debug variable as needed.
8370         (to_year): Accept new flags parameter, instead of using global variable.
8371         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
8372         use struct 'debug' variable instead of global variable.
8373         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
8374         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
8375         correspnding functions directly instead of using macros.
8376         * modules/parse-datetime: Add gnulib's strftime module.
8378 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
8380         c-strcase-tests: port to EBCDIC
8381         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
8382         which assume ASCII encoding semantics to run only in ASCII
8383         mode, as they fail in EBCDIC.
8385         sigpipe-tests: fix typo
8386         * tests/test-sigpipe.sh: C, not B.
8388 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8390         canonicalize-lgpl: fix errno after malloca fails
8391         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
8392         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
8393         * lib/canonicalize-lgpl.c (__realpath):
8394         Don't assume malloca sets errno on failure.
8396 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8398         strtod: port errno handling to z/OS
8399         * lib/strtod.c (strtod): Save and restore errno more reliably.
8401 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8403         strtod: port to z/OS
8404         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
8405         implementation.
8407 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8409         strtod: port to z/OS
8410         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
8411         implementation.
8413         regex, string: rename to avoid '__string'
8414         * lib/regex.h, lib/string.in.h: Do not use the identifier
8415         '__string', as it is effectively reserved by string.h on z/OS.
8417         c-strcase-tests, wcwidth-tests: depend on c-ctype
8418         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
8419         Add c-ctype.
8421 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8423         thread: port to z/OS
8424         * lib/glthread/thread.c, lib/glthread/thread.h:
8425         Rudimentary gl_thread support for z/OS.
8427         maint: port tests to z/OS errno behavior
8428         * tests/test-nonblocking-reader.h:
8429         * tests/test-nonblocking-writer.h:
8430         Accommodate z/OS errno code preferences. (I believe this should
8431         still be within spec; IBM is good at following the letter if not
8432         the spirit of such things.)
8434         maint: preprocessor changes to support z/OS
8435         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
8436         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
8437         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
8438         * tests/test-nonblocking-pipe.h:
8440         fclose, strstr-simple, wchar: port to z/OS
8441         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
8442         Changes to the Autoconf M4 code to support z/OS.  Note that
8443         fclose() is broken in a different way on z/OS than it is on other
8444         systems, thus the special-case in fclose.m4.
8446         iconv_open-utf-tests, iconv-tests: port to EBCDIC
8447         * tests/test-iconv-utf.c, tests/test-iconv.c:
8448         Added appropriately conditional #pragmas so that the test strings
8449         in test-iconv-utf.c are correctly interpreted in ASCII instead of
8450         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
8451         addressed in a more portable way by simply rewriting all the ASCII
8452         literal characters as octal escapes, but then you would lose the
8453         partial readability that the strings have now. Also, iconv_open()
8454         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
8456         c-strcase-tests, wcwidth-tests: port to EBCDIC
8457         * tests/test-c-strcasecmp.c: Include c-ctype.h.
8458         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
8459         * tests/test-wcwidth.c: Likewise.
8461 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8463         stdbool: don't require _Bool for C++
8464         Problem reported by David Seifert in:
8465         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
8466         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
8467         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
8468         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
8469         stricter about checking that bool and _Bool are compatible in C.
8471 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
8473         getdelim: remove dependency on realloc-posix
8474         * lib/canonicalize-lgpl.c (alloc_failed)
8475         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
8476         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
8477         Use __set_errno where needed, for consistency.
8478         * lib/getdelim.c (alloc_failed): New function.
8479         (getdelim): Use it.
8481 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
8483         parse-datetime: add optional debug printing
8484         Print parsing information, warnings, and errors to stderr.
8485         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
8486         * lib/parse-datetime.y:
8487         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
8488         (PROGRESS*): Same as DEBUG, for progress reporting.
8489         (dbg_printf): Print message to stderr, with 'date' prefix.
8490         (struct parser_control): Add 'debug_*_seen' variables.
8491         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
8492         (debug_print_current_time, debug_print_relateive_time): Prints the
8493         current/relative date/time value of parser_control.
8494         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
8495         (to_year): Warn about 2-digit year parsing.
8496         (yylex):   Warn about unrecognized words.
8497         (get_effective_timezone): Returns current timezone in minutes.
8498         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
8499         clearly and unambigiously as possible.
8500         (debug_mktime_not_ok): Print detailed information about failed
8501         date/time values.
8502         (parse_datetime): Add DEBUG messages for failures, warnings. Add
8503         PROGRESS messages for status messages.
8504         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
8506 2016-08-06  Jim Meyering  <meyering@fb.com>
8508         tests/init.sh: exclude dash with bad "local" semantics
8509         * tests/init.sh (gl_shell_test_script_): Add a function to
8510         eliminate a shell like "dash" (unlike bash, zsh) that has
8511         surprising/risky "local var='...'" semantics.  Inspired by
8512         the problem and discussion in https://bugs.gnu.org/24116#11.
8514 2016-08-02  Ján Tomko  <jtomko@redhat.com>
8516         maint.mk: expand the prohibit_doubled_word regex
8517         This check has a static list of words that are checked for
8518         repetitions.  Expand it before running the perl script to
8519         avoid using expensive captures.  This decreases the cost
8520         for libvirt from 1.66s to 0.66s.
8521         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
8522         (sc_prohibit_doubled_word): Use it.
8524 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8526         useless-if-before-free: skip non-matching lines early
8527         * build-aux/useless-if-before-free: First match each line with the
8528         simple/quick /\bif\b/ and reject if there is no match. This often
8529         saves the cost of the much more involved regular expression.
8530         For libvirt, this decreases the cost from 1.44s to 1.02s.
8532 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8534         maint.mk: speed up sc_po_check
8535         sc_po_check would skip files based on their names, or on the
8536         existence of files with derived names. Rewrite it to use perl
8537         instead of shell to make the check faster.
8538         * top/maint.mk (perl_translatable_files_list_): Define.
8539         (sc_po_check): Use it.
8541 2016-07-30  Ján Tomko  <jtomko@redhat.com>
8543         maint.mk: speed up require_config_h_first
8544         Instead of spawning three processes per file,
8545         rewrite the check in perl and run it once for all the files.
8546         * top/maint.mk (perl_config_h_first_): Define.
8547         (sc_require_config_h_first): Use it in place of shell code.
8549 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8551         maint.mk: speed up sc_po_check
8552         sc_po_check would skip files based on their names, or on the
8553         existence of files with derived names. Rewrite it to use perl
8554         instead of shell to make the check faster.
8555         * top/maint.mk (perl_translatable_files_list_): Define.
8556         (sc_po_check): Use it.
8558 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8560         obstack: pacify GCC 6 with -Wnull-dereference
8561         Problem reported by Assaf Gordon in:
8562         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
8563         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
8564         Declare with __attribute_noreturn__.
8565         * lib/obstack.h (__attribute_noreturn__): New macro.
8567 2016-07-13  Eric Blake  <eblake@redhat.com>
8569         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
8570         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
8571         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
8573 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8575         doc: mention glibc SSIZE_MAX buglet
8576         * doc/posix-headers/limits.texi (limits.h): Document the bug.
8578 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
8580         printf-posix: Fix mingw build
8581         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
8582         expression for detecting C symbol prefixes but forgot to qoute square
8583         brackets in the command line arguments for grep.  That way when
8584         building with mingw the condition was false although it ought to be
8585         true instead.  In particular scenarios this led to the following
8586         compile error:
8588             Cannot export rpl_printf: symbol not found
8589             Cannot export rpl_scanf: symbol not found
8590             collect2: error: ld returned 1 exit status
8592         Fix this by properly quoting square brackets.
8594 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8596         mktime: call tzset as per POSIX
8597         Problem reported by Ludovic Courtès in:
8598         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
8599         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
8600         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
8602 2016-06-26  Pádraig Brady  <P@draigBrady.com>
8604         fts: handle readdir() errors
8605         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
8606         but also upon error when it will also set errno.  Therefore
8607         flag the error case from readdir().  We treat the case where
8608         no items are read the same as if the dir can't be accessed,
8609         i.e. by setting fts_errno to FTS_DNR.
8611 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8613         intprops: port better to GCC 7
8614         GCC 7 __builtin_add_overflow supports a new usage form, where the
8615         last argument is a null pointer, and which merely returns 1 if an
8616         overflow would occur.  This is a constant expression if all
8617         arguments are constants, and should generate faster code when code
8618         needs to be generated.
8619         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
8620         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8621         Use builtin operations if available.
8622         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
8623         operations are available, as it's almost surely faster.
8625 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8627         intprops-test: port to GCC 6
8628         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
8629         since the bug is not fixed in GCC 6.1.
8631 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8633         xalloc-oversized: port to GCC 7; fewer warnings
8634         GCC 7 will have a better way to deal with integer overflow.
8635         Plus, fix a warnings problem reported by Tim Ruehsen in:
8636         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
8637         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
8638         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
8639         For GCC 5, use __xalloc_oversized if both args are constants,
8640         or if pedantic.
8642 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8644         regex: port to Sun C
8645         Reported by Daiki Ueno.
8646         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
8647         __restrict, in prototype.  This fixes a problem I introduced in
8648         the 2016-02-19 merge from glibc.
8650 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8652         stdbool: Restore __bool_true_false_are_defined check
8653         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
8654         __bool_true_false_are_defined is still defined, even with C++11.
8656 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
8658         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
8659         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
8661 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8663         Use GCC_LINT, not lint
8664         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
8665         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
8666         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
8667         Document problem with lint and _Noreturn.
8668         * lib/diffseq.h (IF_LINT, IF_LINT2):
8669         * lib/fts.c (sccsid):
8670         * lib/getndelim2.c (IF_LINT):
8671         * lib/gl_anylinked_list2.h (gl_linked_iterator)
8672         (gl_linked_iterator_from_to):
8673         * lib/gl_anytree_list2.h (gl_tree_iterator)
8674         (gl_tree_iterator_from_to):
8675         * lib/gl_anytree_oset.h (gl_tree_iterator):
8676         * lib/gl_array_list.c (gl_array_iterator)
8677         (gl_array_iterator_from_to):
8678         * lib/gl_array_oset.c (gl_array_iterator):
8679         * lib/gl_carray_list.c (gl_carray_iterator)
8680         (gl_carray_iterator_from_to):
8681         * lib/idcache.c:
8682         * lib/inet_ntop.c (IF_LINT):
8683         * lib/regcomp.c (build_charclass_op, create_tree):
8684         * lib/regex_internal.c (re_acquire_state)
8685         (re_acquire_state_context):
8686         * lib/trigl.c (rcsid):
8687         * lib/trim.c (IF_LINT):
8688         * lib/vasnprintf.c (IF_LINT):
8689         * lib/verify.h (assume):
8690         Treat GCC_LINT like lint.
8692 2016-05-29  Bruno Haible  <bruno@clisp.org>
8694         secure_getenv: Port to many more platforms.
8695         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
8696         functions.
8697         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
8698         for non-BSD Unix platforms and for native Windows.
8699         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
8700         Prompted by a request from Nikos Mavrogiannopoulos.
8702 2016-05-27  Eric Blake  <eblake@redhat.com>
8704         canonicalize: Fix broken probe for realpath.
8705         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
8706         in logic introduced in 54615b95.
8708 2016-05-26  Eric Blake  <eblake@redhat.com>
8710         unsetenv: relax to LGPLv2+
8711         * modules/unsetenv (License): Match setenv license.
8713 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
8715         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
8716         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
8717         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
8718         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
8719         (commonarg, dirargs, dirs, infoarg, generate_ascii)
8720         (generate_html, generate_info, generate_tex, outdir)
8721         (source_extra, split, srcfile, texarg): Move above 'version'.
8722         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
8724 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8726         manywarnings: update for GCC 6.1
8727         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
8728         Add GCC 6.1 options that apply to C.
8729         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
8730         do not apply to C, are obsolescent, etc.
8732 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
8734         glob: size_t overflow checks
8735         * lib/glob.c (__has_builtin): New macro.
8736         (size_add_wrapv, glob_use_alloca): New static functions.
8737         (glob, glob_in_dir): Check for size_t overflow in several places,
8738         and fix some size_t checks that were not quite right.
8740         glob: don't assume INT_MAX < SIZE_MAX
8741         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
8742         latter is not portable to (probably theoretical) hosts where
8743         SIZE_MAX <= INT_MAX.
8745 2016-05-09  Bruno Haible  <bruno@clisp.org>
8747         Fix undefined behaviour in gettext.h.
8748         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
8749         pointer's value after the storage it points to has been freed.
8750         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
8751         Spotted by Coverity.
8753 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8755         git-version-gen: avoid undefined shift
8756         Problem reported by Mosè Giordano in:
8757         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
8758         * build-aux/git-version-gen: Avoid undefined behavior if invoked
8759         with --prefix or --fallback but without a later argument.  While
8760         we're at it, omit unnecessary quotes.
8762 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
8764         glob: merge glibc changes into lib/glob.c
8765         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
8766         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
8767         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
8768           struct dirent [BZ #19779]
8769         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
8770           callback gl_readdir
8771         2015-10-20 Convert miscellaneous function definitions to prototype style
8772         2015-10-20 Convert 113 more function definitions to prototype style
8773           (files with assertions)
8774         2015-06-12 Fix getlogin_r namespace (bug 18527).
8775         2014-02-10 Use glibc_likely instead __builtin_expect.
8776         2013-10-20 When glob pattern contains a trailing slash match only
8777           directories. Fixes bug 10278.
8778         2013-09-04 glob: silence -Wattribute warnings
8779         2013-06-07 Avoid use of "register" as optimization hint.
8780         2012-09-25 Use size_t instead of int for internal variables in glob
8781           (bug 14621)
8782         2011-07-20 Check for overflows in expressions
8783         2011-05-28 Remove unused variable
8784         2011-05-22 Add a few more alloca size checks
8785         2010-03-27 Whitespace fixes
8786         2010-03-27 Fix one more issue with the glob patch
8787         2010-03-24 Fix glob with empty pattern
8788         2008-05-27 Remove useless more "if" tests before "free"
8789         * modules/glob (Depends-on): Add stdint.
8791 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8793         mktime: port to stricter signed overflow checking
8794         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
8795         (long_int): Require width for INT_MAX * 3 * (seconds per year),
8796         instead of merely for INT_MAX * 2.  In practice platforms that
8797         do the latter also do the former.
8798         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
8799         (shr): New static function, replacing SHR.  All uses changed.
8800         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
8801         and TIME_T_MAX.  All uses changed.
8802         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8803         Use long_int, not time_t.
8804         (long_int_avg): New static function, replacing time_t_avg.
8805         All uses changed.  Round toward positive infinity, as that
8806         generates slightly better code.
8807         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
8808         by INT_ADD_WRAPV.
8809         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
8810         (convert_time): New static function.
8811         (ranged_convert): Use it
8812         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
8813         Use simpler test for loop exit.
8814         (__mktime_internal): Store negative of guessed offset, to simplify
8815         overflow checking.  Remove no-longer-needed test for small time_t
8816         overflows.
8818         mktime: speed up DEBUG_MKTIME benchmarks
8819         Call tzset just once, at the start, rather than for every test
8820         case.  This lets us measure the CPU cost of mktime as opposed to
8821         that of tzset.  This is relevant when TZ is not set and glibc is
8822         being used.  This speeds up tests by a factor of 40 on my Fedora
8823         23 x86-64 platform.
8824         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
8825         to call tzset and as a sanity check.  Later on, use localtime_r
8826         instead of localtime.
8828         mktime: resurrect DEBUG_MKTIME testing
8829         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
8830         Include <string.h>, for strcmp.
8832         mktime: simplify DEBUG_MKTIME
8833         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
8834         Simplify later usage accordingly.
8836         Port mktime_internal offset to unsigned time_t
8837         This avoids some assumptions about wraparound arithmetic on
8838         signed integer overflow.
8839         * lib/mktime-internal.h (mktime_offset_t): New type.
8840         (mktime_internal): Use it in decl.
8841         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
8843         * lib/mktime.c (__mktime_internal, localtime_offset):
8844         * lib/timegm.c (timegm): Use it.
8845         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
8846         (gl_FUNC_MKTIME): Require it.
8848 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8850         xstrtol: prohibit monstrosities like "1bB"
8851         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
8852         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
8853         "B" only if the first suffix needs a base.
8854         * tests/test-xstrtol.sh: Test this.
8856 2016-04-21  Pádraig Brady  <P@draigBrady.com>
8858         xstrtod: reinstate setting of *result upon ERANGE
8859         * lib/xstrtod.c (XSTRTOD): The user may decide to use
8860         the returned limits upon ERANGE, so allow and document that.
8862 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
8864         xstrtod: modify *result only if no errors
8865         * lib/xstrtod.c (XSTRTOD).
8867 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8869         btowc: document problems in C locale
8870         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
8871         with mbrtowc.  See: http://bugs.gnu.org/23269#32
8873 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8875         mktime: improve integer overflow checking
8876         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
8877         (WRAPV): Remove; no longer needed.
8878         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
8879         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
8880         Remove.  Use intprops.h defns instead.
8881         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
8882         Use bool for Boolean, for clarity.
8883         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
8884         detect integer overflow.
8885         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
8887         intprops: check two's complement assumption
8888         Suggested by Eric Blake in:
8889         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
8890         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
8891         short, int, long, and (if available) long long are two's complement.
8892         * modules/intprops (Depends-on): Add 'verify'.
8894         intprops, mktime, strtol: assume two's complement
8895         These macros were not portable to every conforming C11 ones'
8896         complement platform.  It's not worth the hassle of porting to some
8897         platforms that use ones' complement or signed magnitude, as such
8898         platforms are almost purely theoretical nowadays and porting even
8899         to some of them makes the code harder to review for little
8900         practical benefit.  Problem reported by Florian Weimer in:
8901         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
8902         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
8903         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
8904         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
8905         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
8906         (TYPE_SIGNED_MAGNITUDE):
8907         Remove.  All uses rewritten to assume two's complement, which is
8908         all we can reasonably test nowadays anyway.
8909         * top/maint.mk (_intprops_names): Remove the removed macros.
8911 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8913         stdint: port to strict C11 left shift
8914         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
8915         Pacify clang -Wshift-negative-value, which should be an issue only
8916         on clang setups where stdint.h does not conform to C11 or to C++11.
8917         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
8919 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8921         mbrtowc: work around glibc bug#19932
8922         Fix mbrtowc so that it never returns -1 in the C locale,
8923         as this conflicts with a future version of POSIX
8924         http://austingroupbugs.net/view.php?id=663#c2738
8925         and causes problems with GNU grep: http://bugs.gnu.org/23234
8926         See glibc bug 19932:
8927         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
8928         * doc/posix-functions/mbrlen.texi (mbrlen):
8929         * doc/posix-functions/mbrtowc.texi (mbrtowc):
8930         Document the glibc bug.
8931         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
8932         Include hard-locale.h, locale.h.
8933         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
8934         if the bug is possible.
8935         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
8936         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
8937         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
8938         * modules/mbrtowc (Depends-on): Add hard-locale.
8939         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
8940         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
8941         * tests/test-mbrtowc5.sh: New file.
8943 2016-04-03  Pedro Alves  <palves@redhat.com>
8945         stdint: detect good enough pre-C++11 stdint.h in C++ mode
8946         When gnulib is configured in C++ mode for a system with a working C99
8947         implementation of stdint.h that predates C++11, gnulib ends up
8948         substituting stdint.h anyway.  This works on most targets, but on e.g.,
8949         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
8950         MinGW is LLP64.  Instead of trying to detect the right types, detect
8951         good-enough-pre-C++11 stdint.h and in such case define
8952         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
8953         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
8954         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
8955         conforms to C99.  If it does, check whether it hides symbols
8956         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
8957         does, define those macros in config.h.
8959 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
8961         argp: merge changes from glibc
8962         Among other things, this should fix problems found by a Coverity
8963         scan and reported by Andrei Borzenkov:
8964         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
8965         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
8966         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
8967         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
8968         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
8969         * lib/argp.h:
8970         Merge changes from glibc.
8971         * tests/test-argp-2.sh: Adjust to match new behavior.
8973 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8975         stddef: support configuring with g++
8976         Problem reported by Ángel González in:
8977         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
8978         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
8979         Do not define if _GCC_MAX_ALIGN_T is defined.
8981 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8983         test-framework-sh: minor cleanups
8984         * tests/init.sh (testdir_prefix_): Output a trailing newline,
8985         since strictly speaking POSIX requires this.
8986         (setup_): Do not use the variable 'fail', as that makes the
8987         trace output harder to read ('fail' is typically used by
8988         tests to mean the test failed).  Treat // portably.
8989         Check that new directory is not merely a sibling of the tmp dir.
8990         Avoid unnecessary invocation of tr.
8992         test-framework-sh: revert port to NetBSD 7.0
8993         It was a false alarm; I misinterpreted Assaf Gordon's report.
8994         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8995         Restore.
8996         (test_dir_): Adjust to mktempd_ change.
8997         (mktempd_): Restore 2nd arg.  Use -t again.
8998         (base_template_, template_, nx_): Resurrect old code.
9000         Port better to Alpine Linux
9001         Its diff implementation does not support -c, but does support -U3.
9002         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9003         * tests/init.sh (diff_opt_): New var.
9004         (compare_): Prefer diff -U3 to diff -c to plain diff.
9006 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9008         test-framework-sh: port to NetBSD 7.0
9009         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9010         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9011         Remove.  All uses removed.
9012         (test_dir_): Adjust to mktempd_ change.
9013         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
9014         (base_template_, template_, nx_): Simplify by hardcoding.
9016 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9018         gitlog-to-changelog: suppress ignored chatter
9019         * build-aux/gitlog-to-changelog: Do not warn about skipping
9020         an SHA if it would have been ignored anyway.
9022 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
9024         setlocale: add "sv" to Windows language table
9025         * lib/setlocale.c (language_table) [W32]: Add "sv".
9026         Reported in <https://savannah.gnu.org/bugs/?44588>.
9028 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9030         sys_select: port to new Cygwin
9031         Problem reported by Ken Brown in:
9032         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
9033         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
9034         diagnostics.
9036 2016-03-17  Jim Meyering  <meyering@fb.com>
9038         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
9039         * tests/test-userspec.c (main): Remove unnecessary braces and fix
9040         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
9041           test-userspec.c:176:9: error: statement is indented as if it were \
9042             guarded by... [-Werror=misleading-indentation]
9043                    {
9044                    ^
9045           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
9046                  if (!diag && !T[i].result)
9047                  ^~
9049 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
9051         time_rz: port to clang -Wunused-const-variable
9052         * lib/time_rz.c (TZ): Remove.  All uses removed.
9054         std-gnu11: improve clang support
9055         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
9056         2016-03-15 Also try clang
9057         2016-03-15 Port C11 and C++11 testing to clang
9059         select: port more to Intel 2016.1.150 compiler
9060         Problem reported by Balázs Hajgató in:
9061         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
9062         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
9064 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9066         select: try to port to 2016.1.150 compiler
9067         Problem reported by Balázs Hajgató in:
9068         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
9069         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
9070         POSIX specifies 'restrict'.
9072 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9074         localename-tests: memory allocation fixes
9075         * tests/test-localename.c (test_locale_name)
9076         (test_locale_name_thread): Don't call freelocale on a locale
9077         that was the base of a successful newlocale, as that
9078         results in a double free.  Problem reported by Assaf Gordon.
9079         (test_locale_name_thread): Free saved names after use, to pacify
9080         gcc -fsanitize=address.
9082 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9084         intprops: make .h file license match module
9085         * lib/intprops.h: Change the license wording to match glibc format.
9086         This is what is in modules/intprops anyway.  See:
9087         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
9089 2016-03-08  Eric Blake  <eblake@redhat.com>
9091         acl: fix missing return on Cygwin
9092         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
9093         fall off end of function. Fixes http://bugs.gnu.org/22949
9095 2016-03-05  Bruno Haible  <bruno@clisp.org>
9097         extern-inline: port to PGI CC
9098         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
9099         keyword 'inline'.
9100         Reported by Adam James Stewart in:
9101         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
9103 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9105         signbit: port back to pre-C++11 GCC
9106         * lib/math.in.h (signbit): Do previous change only if
9107         __cplusplus < 201103.  See Jonathan Wakely in:
9108         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
9110 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
9112         mountlist: recognize autofs-mounted remote file systems, too
9113         Originally reported at: https://bugzilla.redhat.com/1309247
9114         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
9115         "-hosts" because it is used by autofs to mount remote file systems.
9117 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9119         signbit: port to C++ with GCC 6
9120         * lib/math.in.h (signbit) [__cplusplus]:
9121         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
9122         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
9124         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
9126         regex: make it closer to libc
9127         Make Idx a signed type, rather than possibly unsigned.
9128         The unsignedness was not really buying us anything, since the code
9129         overflows for other reasons before getting to PTRDIFF_MAX.  Making
9130         it signed allows us to use -1 and -2 with abandon, like libc does,
9131         thus lessening the number of differences between gnulib and libc.
9132         Also, it should help avoid gratuitous warnings like the one
9133         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
9134         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
9137         regex: merge patches from libc
9139         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
9140         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
9141         Convert miscellaneous function definitions to prototype style.
9142         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
9143         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
9144         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
9145         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
9146         (re_search_internal):
9147         Convert to prototype-style function definition.
9148         Use internal_function for internal functions.
9150 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
9152         stdalign: port to older HP and IBM cc
9153         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
9154         C compilers, by checking their version numbers.  These version
9155         numbers appear in MariaDB and in Qt code that dates way back and
9156         that conditiionally uses the 'aligned' attribute.
9158 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9160         stdalign: port to clang 3.7.0
9161         Problem reported by Herbert J. Skuhra in:
9162         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
9163         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
9164         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
9165         https://llvm.org/bugs/show_bug.cgi?id=26547
9167 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9169         readdir_r: now obsolescent
9170         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
9171         * lib/mountlist.c (read_file_system_list): Add a FIXME.
9173 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9175         misc: port better to gcc -fsanitize=address
9176         Without these patches, ./configure CFLAGS='-fsanitize=address'
9177         would compute incorrect values.  This patch fixes some (but not all)
9178         test failures with recent glibc, with this configuration.
9179         * m4/acl.m4 (gl_ACL_GET_FILE):
9180         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
9181         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
9182         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
9183         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
9184         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9185         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9186         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
9187         * m4/getline.m4 (gl_FUNC_GETLINE):
9188         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
9189         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
9190         * m4/regex.m4 (gl_REGEX):
9191         * m4/strndup.m4 (gl_FUNC_STRNDUP):
9192         * tests/test-calloc-gnu.c (main):
9193         * tests/test-duplocale.c (main):
9194         * tests/test-getgroups.c (main):
9195         * tests/test-getline.c (main):
9196         * tests/test-inttostr.c (main):
9197         * tests/test-localename.c (test_locale_name)
9198         (test_locale_name_thread, test_locale_name_environ)
9199         (test_locale_name_default):
9200         * tests/test-regex.c (main):
9201         * tests/test-setlocale1.c (main):
9202         * tests/test-stat.h (test_stat_func):
9203         Free heap-allocated storage before exiting.
9204         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
9205         Don't match *_foo symbols inserted by AddressSanitizer.
9206         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
9208 2016-02-02  Jim Meyering  <meyering@fb.com>
9210         verify-tests: also remove stray test-verify.Tpo
9211         * modules/verify-tests (Makefile.am): Arrange for "make clean"
9212         to remove the test-verify.Tpo file that is left behind by
9213         the automake-generated rule upon compilation failure.
9214         Otherwise, that .Tpo file would cause a failed "make distcheck"
9215         at least for grep.
9217 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9219         std-gnu11: new module
9220         This makes it easier for applications to prefer C11 and C++11
9221         to older variants, when compiling C and C++ code.
9222         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
9223         a nontrivial chunk of GPLed Autoconf source code.
9224         * COPYING: Mention the m4/*.m4 copyright situation.
9225         * MODULES.html.sh (std-gnu11): New module.
9226         * m4/std-gnu11.m4, modules/std-gnu11: New files.
9228 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9230         get-permissions, strftime: fix grammar in comments
9231         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
9232         some grammar fixes Alan Mackenzie made to GNU Emacs.
9234 2016-01-25  Daiki Ueno  <ueno@gnu.org>
9236         gettext: mark as obsolete
9237         Suggested by Paul Eggert in:
9238         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
9239         * modules/gettext (Status): Mark as obsolete.
9240         (Notice): Suggest to use 'gettext-h' instead.
9241         * modules/gettext-h (Description): Suggest GNU gettext, instead of
9242         the 'gettext' module.
9244 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9246         gnulib-tool: don't give up on ln -s so easily
9247         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
9248         because an earlier one failed.  The targets could be on different
9249         file systems.  Problem reported by KO Myung-Hun in:
9250         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
9252         closedir: fix OS/2-related typos
9253         Problem reported by KO Myung-Hun in:
9254         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
9255         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
9256         in the last couple of changes.
9258 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
9260         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
9261         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
9262         copying a directory.
9264 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9266         regex: treat [x] as x if x is a unibyte encoding error
9267         Problem reported by Aharon Robbins in:
9268         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
9269         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
9270         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
9272         closedir, dirfd, opendir: port to OpenSolaris 5.10
9273         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
9274         * m4/dirfd.m4 (gl_FUNC_DIRFD):
9275         * m4/opendir.m4 (gl_FUNC_OPENDIR):
9276         Don't use ${word##pat} substitution, as it doesn't work in
9277         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
9278         http://bugs.gnu.org/22443#11
9280 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9282         bootstrap: use American spelling
9283         * build-aux/bootstrap: Honor American spelling.
9285 2016-01-22  Karl Berry  <karl@freefriends.org>
9287         * doc/posix-functions/localtime.texi,
9288         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
9290 2016-01-21  Bruno Haible  <bruno@clisp.org>
9292         hash-pjw-bare: fix comment
9293         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
9295         wcwidth: Replace also on OpenBSD 5.8
9296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
9297         * doc/posix-functions/wcwidth.texi: Update.
9299 2016-01-20  Pádraig Brady  <P@draigBrady.com>
9301         gnu-web-doc-update: fix addition of new files
9302         If there were already added (emnpty) dirs,
9303         then cvs aborts the add with the message:
9304           cvs [add aborted]: there is a version in <./dirname> already
9305         * build-aux/gnu-web-doc-update: Add directories separately
9306         to the addition of files, to avoid the above issue
9307         impacting the addition of files.
9309 2016-01-19  Daiki Ueno  <ueno@gnu.org>
9311         utimens-tests: avoid pulling gettext .m4 files
9312         Although this is not the right fix to the original problem:
9313         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
9314         it makes it possible again for consumer projects to use arbitrary
9315         version of gettext, through the steps described at:
9316         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
9317         See here for details:
9318         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
9319         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
9320         'gettext'.
9321         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
9322         'gettext'.
9324 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9326         regex: pacify static checkers
9327         Problem and draft fix reported by Aharon Robbins in:
9328         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9329         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
9330         Clear memory to pacify static checkers.
9332         regex: fix [ diagnostic
9333         Problem and fix reported by Aharon Robbins in:
9334         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9335         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
9337         regex: fix memory leaks
9338         Problem and draft fix reported by Aharon Robbins in:
9339         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9340         * lib/regcomp.c (build_range_exp, build_charclass_op)
9341         * lib/regex_internal.c (re_dfa_add_node):
9342         Fix memory leak on failure.
9344 2016-01-18  Pádraig Brady  <P@draigBrady.com>
9346         fts: don't unconditionally use leaf optimization for NFS
9347         NFS st_nlink are not accurate on all implementations,
9348         leading to aborts() if that assumption is made.
9349         See <https://bugzilla.redhat.com/1299169>
9350         * lib/fts.c (leaf_optimization_applies): Remove NFS from
9351         the white list, and document the issue.
9353 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9354             KO Myung-Hun  <komh@chollian.net>
9356         gnulib-tool: don't assume ln -s works
9357         * gnulib-tool (func_ln_s): New function.
9358         (func_ln): Use it.
9360 2016-01-15  KO Myung-Hun  <komh@chollian.net>
9362         utimes: detect utimes() correctly on OS/2 kLIBC
9363         utimes() of OS/2 kLIBC has some limitations.
9364         1. OS/2 itself supports a file date since 1980 year in local time.
9365         2. OS/2 itself supports only even seconds for a file time.
9366         3. utimes() of OS/2 kLIBC does not work on an opened file.
9367         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
9368         * doc/posix-functions/utimes.texi: Document the above limitations of
9369         utimes() on OS/2 kLIBC.
9371 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9372             KO Myung-Hun  <komh@chollian.net>
9374         openat_proc_name: port to OS/2 kLIBC
9375         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
9376         instead of /proc/self/fd.
9377         * lib/openat-proc.c (openat_proc_name):
9378         Don't assume file name length is less than INT_MAX.
9379         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
9381 2016-01-14  KO Myung-Hun  <komh@chollian.net>
9383         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
9384         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
9385         definitions of intptr_t and uintptr_t (which use int and unsigned)
9386         to avoid clashes with declarations of system functions like sbrk.
9387         * lib/stdint.in.h (intptr_t, uintptr_t): Check
9388         _INTPTR_T_DECLARED before defining them.
9390         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
9391         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
9392         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
9393         Declare on kLIBC.
9394         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
9395         fd associated with dirp.
9396         (_gl_register_dirp_fd): New. Register fd associated with dirp to
9397         dirp_fd_list.
9398         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
9399         (dirfd): Implemented for kLIBC.
9400         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
9401         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
9402         succeeds.
9403         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
9404         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9405         (REPLACE_DIRFD): Define to 1 if replaced.
9406         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
9407         * modules/closedir (Depends-on): Add dirfd.
9408         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
9409         condition.
9410         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
9411         * modules/opendir (Depends-on): Add dirfd.
9413         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
9414         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
9415         * lib/dup.c (dup_nothrow): New.
9416         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
9417         (klibc_dup2): New.
9418         * lib/fcntl.c (klibc_fcntl): New.
9419         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
9420         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
9421         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
9422         fd.
9424         pipe_filter_ii_execute: port to OS/2 kLIBC
9425         Pipes on kLIBC do not support O_NONBLOCK like Win32.
9426         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
9427         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
9428         Reuse Win32 code on OS/2 kLIBC.
9429         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
9430         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
9432         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
9433         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
9434         static inline function.  The implementation of wcwidth in wcwidth.c
9435         causes a "conflicting types" error.
9436         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
9438         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
9439         spawn() on OS/2 kLIBC is not silly like one on Windows
9440         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
9441         empty string on OS/2 kLIBC.
9443         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
9444         On OS/2 kLIBC, select() works only on sockets.
9445         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
9447         binary-io: don't put fd in binary mode if it is a console on EMX
9448         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
9449         a console on EMX.
9451 2016-01-15  Pádraig Brady  <P@draigBrady.com>
9453         doc: mention unfixed issues with unsupported localtime() values
9454         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
9455         returns nonsense for localtime(2^56).
9456         * doc/posix-functions/localtime_r.texi: Likewise.
9458 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9460         doc: mention setlocale() issues on OpenBSD
9461         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
9462         never fails, and the need to check categories individually.
9464 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9466         sig2str: list all signals on FreeBSD >= 7
9467         FreeBSD >= 7 is contravening POSIX by not defining NSIG
9468         to the maximal statically defined signal value.
9469         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
9470         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
9471         where available, even when NSIG is defined.
9473 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9475         acl-permissions: port to USE_ACL==0 platforms
9476         I ran into this problem when building bleeding-edge GNU Emacs
9477         with gcc -fsanitize=address on Fedora 23.  On this platform
9478         the ACL library does not pass the 'configure' test and Emacs
9479         then does not build due in part to what appear to be typos in the
9480         ACL part of Gnulib.
9481         * lib/acl-internal.c (free_permission_context):
9482         * lib/acl-internal.h (struct permission_context):
9483         Test whether USE_ACL is nonzero, not whether it is defined.
9485 2016-01-12  Martin Sebor  <msebor@redhat.com>
9487         mktime: rename macro to avoid glibc clash
9488         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
9489         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
9491 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
9493         Port "$@" to OpenIndiana ksh93
9494         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
9495         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
9496         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
9497         bug long-dead shells, so remove the workaround.
9498         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
9499         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
9500         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
9501         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
9502         Use "$@" instead of ${1+"$@"}.
9504         Port Universal Time settings to strict POSIX
9505         * build-aux/announce-gen, build-aux/bootstrap:
9506         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
9507         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
9508         * build-aux/gnupload, build-aux/mkinstalldirs:
9509         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
9510         * build-aux/update-copyright, build-aux/useless-if-before-free:
9511         * build-aux/vc-list-files, tests/test-strftime.c:
9512         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
9513         but POSIX says the behavior of TZ="UTC" is undefined.
9515 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9517         msvc-inval: fix problem with unset shell var
9518         Problem reported by Karl Berry in:
9519         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
9520         * modules/msvc-inval (Depends-on):
9521         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
9522         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
9524 2016-01-01  Pádraig Brady  <P@draigBrady.com>
9526         tests: for compare_(), use cmp -s where available
9527         * tests/init.sh (compare_): Only fall back to cmp without
9528         the POSIX defined -s option, where this is not available.
9530 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9532         version-etc: new year
9533         * build-aux/gendocs.sh (version):
9534         * doc/gendocs_template:
9535         * doc/gendocs_template_min:
9536         * doc/gnulib.texi:
9537         * lib/version-etc.c (COPYRIGHT_YEAR):
9538         Update copyright dates by hand in templates and the like.
9539         * all files: Run 'make update-copyright'.
9541 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9543         human: fix output buffer overrun by 1
9544         * lib/human.c (human_readable): Fix off-by-one typo in buffer
9545         calculation that could lead to a one-byte buffer overrun.
9547 2015-12-28  Daiki Ueno  <ueno@gnu.org>
9549         maint: fix operator precedence in mbrtowc test
9550         This is a fix for test breakage introduced by commit 45228d96; the
9551         equality expression must be parenthesized when negated with '!',
9552         otherwise we always get:
9554           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
9556         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
9557         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9559 2015-12-23  James Youngman  <jay@gnu.org>
9561         regexprops-generic: update from regex.h
9562         * doc/regexprops-generic.texi: update by running the regexprops binary
9563         from findutils (the command line is 'regexprops "Regular Expressions"
9564         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
9565         gnulib with GNU grep had made this document out-of-date.
9567 2015-12-23  Pádraig Brady  <P@draigBrady.com>
9569         strftime-tests: avoid false failure on OS X
9570         * tests/test-strftime.c (struct localtime_rz_test): Add an
9571         ahistorical member which is used to warn rather than fail
9572         when tm_isdst isn't set for such entries.  This is the case for
9573         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
9575 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
9577         fts: ensure leaf optimization is used for NFS
9578         NFS provides usable dirent.d_type but not necessarily for all entries
9579         of large directories.  See <https://bugzilla.redhat.com/1252549>
9580         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
9582 2015-12-20  Pádraig Brady  <P@draigBrady.com>
9584         fts: enable leaf optimization for XFS
9585         XFS provides usable dirent.d_type only for DT_DIR,
9586         but the noleaf optimization still applies.
9587         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
9589 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9591         intprops: comment fix
9592         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
9593         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
9595         intprops-test: work around GCC bug 68971
9596         Problem reported by Pádraig Brady in:
9597         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
9598         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
9599         (main): Add a case that better tests 64-bit long in this area.
9601 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
9603         gnulib-tool: allow multiple --local-dir usage
9604         * gnulib-tool: Use --local-dir to construct compound
9605         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
9606         PATH_SEPARATOR early.
9607         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
9608         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
9609         func_determine_path_separator because that needs to be detected
9610         earlier now.
9611         (func_determine_path_separator): New function.
9612         (func_path_foreach, func_path_foreach_inner): New functions.
9613         (func_path_prepend, func_path_append): Likewise.
9614         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
9615         (func_lookup_file, func_all_modules): Use new functions to work
9616         with local_gnulib_path.
9617         (func_modules_in_dir, func_exists_module): New callbacks for
9618         func_path_foreach.
9619         (func_exists_module, func_get_tests_module): Likewise.
9620         (func_is_local_file, func_should_symlink): New helper methods.
9621         (func_add_file, func_update_file): Use new func_should_symlink
9622         instead, DRY.
9623         (func_reconstruct_cached_local_gnulib_path): New helper.
9624         (func_reconstruct_cached_dir): New callback.
9625         (func_import): The cached_local_gnulib_dir renamed to
9626         cached_local_gnulib_path similarly to local_gnulib_dir.
9627         Use new func_reconstruct_cached_local_gnulib_path.
9628         (func_count_relative_local_gnulib_path): New sub-method.
9629         (func_create_testdir): Use func_should_symlink, DRY.
9630         (func_create_megatestdir): Use new functions to work with
9631         local_gnulib_path correctly.
9632         (func_append_local_dir): New helper.
9634 2015-12-08  Pádraig Brady  <P@draigBrady.com>
9636         fix freadptr to work with ungetc on all uClibc configs
9637         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
9638         where GNU coreutils cut(1) generates invalid output on uClibc
9639         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
9640         * lib/freadptr.c (freadptr): Return NULL if there are
9641         ungotten chars.  In this case freadseek() will iterate
9642         again to process the ungotten character.
9644 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9646         xalloc-oversized: improve performance with GCC 5
9647         * lib/xalloc-oversized.h (xalloc_oversized):
9648         Improve performance with GCC 5 by using __builtin_mul_overflow.
9650 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9652         intprops: new public macro EXPR_SIGNED
9653         Emacs can use this macro, so make it public.
9654         * doc/intprops.texi (Arithmetic Type Properties): Rename from
9655         'Integer Type Determination', since some of these macros apply
9656         to non-integer types.  Clarify what kinds of constant expressions
9657         these macros return.  Say when the arguments can be non-integers.
9658         Mention newly published macro EXPR_SIGNED.
9659         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
9660         make it public.  All uses changed.
9662         intprops: fix typo in clang port
9663         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
9664         '__builtin_add_overflow' that is not caught by compiler.
9666 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9668         test-timespec: fix typo in previous change
9669         * tests/test-timespec.c (main): Fix typo that reduced test quality.
9671         timespec-sub: fix overflow bug; add tests
9672         * lib/timespec-add.c (timespec_add):
9673         * lib/timespec-sub.c (timespec_sub):
9674         Work even if time_t is narrower than int (a theoretical
9675         possibility).  Redo code for a bit more clarity.
9676         * lib/timespec-sub.c (timespec_sub):
9677         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
9678         * modules/timespec-tests, tests/test-timespec.c: New files.
9680         intprops-test: suppress -Woverlength-strings
9681         Problem reported by Pádraig Brady in:
9682         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
9683         It is not worth the hassle to port this test to compilers that
9684         cannot handle long strings in diagnostics.
9685         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
9687 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9689         quotearg: add quotearg_n_style_colon()
9690         This quotes with default options of the specified style,
9691         but with quoting enabled for instances of ':'.
9692         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
9693         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
9695 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9697         intprops: revise _WRAPV macros, revert _OVERFLOW
9698         The incompatible changes to the _OVERFLOW macros were too much of
9699         a hassle in practice, so revert them.  Instead, change the new
9700         _WRAPV macros to make them closer in behavior to GCC 5's new
9701         builtin_add_overflow etc. functions.  No other software was using
9702         these newly-added macros yet, so this should be OK.
9703         * NEWS: Revert previous change, since the incompatible change
9704         has been reverted, and nobody used the incompatible version.
9705         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
9706         Document revised behavior.
9707         (Integer Range Overflow): Adjust example to match above revisions.
9708         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
9709         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
9710         these can be used in integer constant expressions again.
9711         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
9712         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
9713         needed.
9714         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9715         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9716         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
9717         Remove, as they did not seem that useful.
9718         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
9719         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
9720         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
9721         Support new semantics.
9722         (__has_builtin): New macro, if not alreay defined.
9723         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
9724         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9725         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9726         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9727         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
9728         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
9729         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
9730         New macros.
9731         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
9733 2015-11-03  Jim Meyering  <meyering@fb.com>
9735         intprops: add parentheses for when OP has precedence lower than "-"
9736         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
9737         "a OP b" must be parenthesized for when OP is like "<<", which has
9738         lower precedence than the following "-". Reported by Pádraig Brady.
9740 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9742         quotearg: constify get_quoting_style parameters
9743         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
9744         * lib/quotearg.c (get_quoting_style): Likewise.
9746 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9748         quotearg: add support for $'' shell escaping
9749         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
9750         items and descriptions.
9751         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
9752         above types by quoting like "shell", but using $'...' syntax
9753         for non printable characters, which should provide unambiguous
9754         printable output for any input.
9755         * tests/test-quotearg-simple.c: Update accordingly.
9757 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9759         maint: use a more standard return from mbrtowc test
9760         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
9761         from the test program as this is non standard and often
9762         indicates an unhandled case in the test program.
9763         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9765 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9767         intprops: add WRAPV and const flavors for GCC 5
9768         If available, use GCC 5's builtin functions for efficient integer
9769         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
9770         and safely compute the low-order bits of the correct answer.
9771         A downside of these efficient functions is that they cannot be
9772         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
9773         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
9774         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
9775         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
9776         Document the changes.
9777         (Wraparound Arithmetic): New section.
9778         (Integer Range Overflow):
9779         Put this subsection last, since it's least useful.
9780         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
9781         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
9782         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
9783         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9784         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9785         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
9786         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9787         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
9788         New macros.
9789         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9790         Generate calls to GCC builtins if available, for speed.
9791         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9792         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9793         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9794         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
9795         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
9796         (CHECK_QUOTIENT, CHECK_REMAINDER):
9797         Test WRAPV and CONST flavors (when available) too.
9799 2015-10-30  Pádraig Brady  <P@draigBrady.com>
9801         doc: use extended timezone format in iso-8601 example
9802         * doc/parse-datetime.texi: The standard states that extended format
9803         is to be used consistently throughout.
9804         Note that lib/parse-datetime.y can handle either tz format.
9806 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9808         stdalign: port to Sun C 5.9
9809         * doc/posix-headers/stdalign.texi: Document this.
9810         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
9811         __attribute__ ((__aligned__ (...))).
9813 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9815         time_rz: fix comment about tzalloc
9816         * lib/time_rz.c (tzalloc): Fix comment.
9818 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9820         stdalign: work around pre-4.9 GCC x86 bug
9821         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
9822         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
9823         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
9825 2015-10-18  Pádraig Brady  <P@draigBrady.com>
9827         maint.mk: sc_tight_scope: remove extraneous expressions
9828         * top/maint.mk (tight_scope): This is not really required since
9829         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
9830         that matches all nm entries.  But it does remove extraneous entries
9831         that may be confusing or cause issue in future maintenance.
9833 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9835         time_rz: return NULL if localtime_r fails
9836         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
9837         while still attempting to pacify bleeding-edge GCC.
9839         fts: port to C11 alignof
9840         * doc/posix-headers/stdalign.texi (stdalign.h):
9841         Document the C11 restriction.
9842         * lib/fts.c: Include stddef.h, for max_align_t.
9843         (fts_alloc): Align using max_align_t, not FTSENT.
9844         * modules/fts (Depends-on): Add stddef.
9846 2015-10-18  Jim Meyering  <meyering@fb.com>
9848         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
9849         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
9850         would see this:
9852         lib/time_rz.c: In function 'localtime_rz':
9853         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
9854           [-Werror=nonnull]
9855                    if (tm && !save_abbr (tz, tm))
9856                        ^
9858         That was complaining about "tm" because it is a parameter that was
9859         declared with the __nonnull__ attribute.
9860         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
9861         result of localtime_r.
9863 2015-10-17  Jim Meyering  <meyering@fb.com>
9865         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
9866         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
9867         name-extraction regexp mistakenly used \S+, and would mistakenly
9868         extract "*F" from "extern int *F()" rather than the desired "F".
9869         Use \w+ instead.
9871 2015-10-17  Jim Meyering  <meyering@fb.com>
9873         maint.mk: sc_tight_scope: factor and support OS X
9874         * top/maint.mk (_gl_tight_scope): Address three issues:
9875         - factor out four instances of code that wraps a string in "^...$"
9876         - allow nm-reported symbol names to have an optional leading "_"
9877         - add "main" to the list of ignored variable names, because on os x,
9878         "main" has nm-reported type "S" in the variable-checking section.
9880 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
9882         safe-alloc-tests: fix typo in license header
9883         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
9885 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
9887         copy-file: fix mem leak in error case
9888         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
9889         upon error opening or performing I/O to the src and dest files.
9891 2015-10-15  Mike Frysinger  <vapier@chromium.org>
9893         localename: control langinfo.h inclusion
9894         This header is only used to work around buggy behavior in old
9895         versions of glibc, so do not include it all the time.  Otherwise
9896         we get build failures on systems that do not provide langinfo.h.
9897         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
9898         in the source later on.
9899         The patch was originally submitted to gettext as:
9900         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
9902 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9904         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
9905         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
9906         * lib/u64.c, lib/unistd.c:
9907         Append 'typedef int dummy;', to pacify compilers that are picky
9908         about empty translation units.
9910 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
9912         accept4-tests: fix to avoid non portable flags
9913         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
9914         as they are the only documented ones, and passing others may trigger
9915         EINVAL (seen on FreeBSD 10.1-RELEASE).
9916         * doc/glibc-functions/accept4.texi: Mention that we don't provide
9917         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
9919 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
9921         gnulib-tool: fix tests of 'extensions' module
9922         This complements f8fe25fab60e3c687a124 commit.
9923         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
9924         emitting of initial gl_EARLY macros.
9925         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
9926         replaced with func_emit_pre_early_macros call.
9928 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9930         unicase/locale-language: fix typo in utf-8 cookie
9931         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
9932         Problem reported by Zbigniew Jędrzejewski-Szmek.
9934 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9936         xalloc: do not worry about GCC 5 warning on 32 bit
9937         * lib/xalloc.h: Revert previous change.
9938         I found a better way to fix this in coreutils.
9940 2015-10-02  Pádraig Brady  <P@draigBrady.com>
9942         xalloc: avoid GCC 5.1 warning on 32 bit
9943         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
9944         xalloc_oversized(), which was seen to give this warning
9945         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
9946         when simplifying conditional".
9948 2015-10-02  Daiki Ueno  <ueno@gnu.org>
9950         uniname/uniname-tests: avoid compiler warnings
9951         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
9952         unused local variables.
9953         (test_alias_lookup): Fix alias name display in failure cases.
9955 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9957         c-ctype: do not worry about EBCDIC + char signed
9958         Drop support for EBCDIC with char being signed, as this breaks too
9959         many programs.  Problem reported by Ben Pfaff in:
9960         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
9961         * lib/c-ctype.h: Verify that we are not using EBCDIC with
9962         char being signed.
9963         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
9964         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
9965         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
9966         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
9967         * tests/test-c-ctype.c (test_all):
9968         Simplify by assuming standard char values cannot be negative.
9969         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
9971 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9973         c-ctype: port better to z/OS EBCDIC
9974         Problems reported by Daniel Richard G. in:
9975         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
9976         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
9977         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
9978         (_C_CTYPE_OTHER_CNTRL): New macro.
9979         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
9980         from SCHAR_MIN, as the functions are defined only from values
9981         promoted from char or from unsigned char, not necessarily from
9982         signed char.
9984 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
9986         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
9988         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
9989         and ARFLAGS variables.  Doing this unconditionally could break
9990         later Automake's AM_PROG_AR invocation (at least it's
9991         AC_CHECK_TOOLS call to detect correct 'ar' binary).
9993         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
9994         Amsterdam Compiler Kit, so make the previous code to have effects
9995         only on ACK, and rather automatically call the Automake's
9996         AM_PROG_AR as soon as possible to decide other cases.
9998         References:
9999         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
10001         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
10002         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
10003         is possible, keep setting AR/ARFLAGS to reasonable defaults.
10004         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
10005         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
10006         'extensions' module is used.
10007         * modules/extensions (configure.ac-early): Remove as this snippet
10008         is added to gnulib-comp.m4 earlier anyway.
10010 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10012         sockets: MS Windows initalization fixes
10013         Problem reported by Test User in:
10014         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
10015         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
10016         Correct the endianness.
10017         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
10018         number mismatch, not just on <.  Cleanup before any such failure.
10020 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
10022         gc: fix detection of installed libgcrypt version
10023         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
10024         at least as recent as 1.4.4.  The previously used macro is not
10025         available now, since modules were removed in version 1.6.0.
10027 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10029         c-ctype: rewrite to use inline functions
10030         This simplifies maintenance, since it makes for just one
10031         implementation of each function, letting the compiler have the fun
10032         of optimization.  In practice this works well nowadays with GCC.
10033         E.g., c_isascii might need only three instructions even though the
10034         source code lists every ASCII character individually in a large
10035         switch statement.
10036         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
10037         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
10038         * NEWS: Document the API change.
10039         * lib/c-ctype.c: Drastically simplify, since this now just expands
10040         inline functions.
10041         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
10042         (C_CTYPE_INLINE): New macro.
10043         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
10044         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
10045         Verify that either ASCII or EBCDIC is being used.
10046         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
10047         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
10048         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
10049         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
10050         New private macros.
10051         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
10052         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
10053         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
10054         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
10055         (c_tolower, c_toupper): When converting, return the unsigned char,
10056         as that is what z/OS does.
10057         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
10058         of some c-ctype.h macros.
10059         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
10060         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
10061         c_tolower promotion to be compatible with z/OS.
10063 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
10065         gitlog-to-changelog: trim only trailing whitespaces
10066         This is fix for --format regression introduced by commit
10067         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
10068         doubled %n string) had no effect anymore.  This format
10069         specification has been used e.g. by GNU paxuitils (commit
10070         edfd8bcc3).
10072         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
10073         newlines in commmit messages.
10075 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10077         Test that c_iscntrl agrees with iscntrl, etc.
10078         Suggested by Daniel Richard G. in:
10079         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
10080         * modules/c-ctype-tests (Depends-on): Add ctype.
10081         * tests/test-c-ctype.c: Include <ctype.h>.
10082         (NCHARS): New constant.
10083         (test_agree_with_C_locale): New function.
10084         (main): Use it.
10085         (test_all): Use named constants.
10087         c-ctype: improve c_isascii testing
10088         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
10089         Add a test to count the number of ASCII characters.
10091 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10093         savewd: remove SAVEWD_CHDIR_READABLE
10094         It was problematic in the light of file systems that ignore umask.
10095         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
10096         * NEWS: Document this.
10097         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
10098         successful, -1 (setting errno) on failure, rather than something
10099         more complicated than that.
10100         * lib/mkdir-p.c (make_dir_parents):
10101         Do not use SAVEWD_CHDIR_READABLE.
10102         * lib/savewd.c (savewd_chdir):
10103         Remove support for SAVEWD_CHDIR_READABLE.
10104         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
10106         c-ctype: port better to EBCDIC
10107         Problems reported by Daniel Richard G. in
10108         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
10109         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
10110         Include "verify.h".
10111         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
10112         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
10113         Define as enum constants with value false, if not defined, so that
10114         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
10115         code more portable, as both branches of the 'if' are compiled on
10116         all platforms.
10117         (C_CTYPE_EBCDIC): New constant.
10118         Verify that the character set is either ASCII or EBCDIC.
10119         (to_char): New static function.
10120         (c_isascii, c_iscntrl):
10121         Assume standard control-character assignments for EBCDIC.
10122         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
10123         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
10124         Rewrite to use 'if' instead of 'ifdef'.
10125         Use to_char if non-ASCII.  Prefer <= to >=.
10126         Prefer true and false to 1 and 0, for booleans.
10127         (c_iscntrl): Use 'if', not 'ifdef'.
10128         * modules/c-ctype (Depends-on): Add verify.
10129         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
10130         (to_char): New function.
10131         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
10133 2015-09-21  Pádraig Brady  <P@draigBrady.com>
10135         nanosleep: fix return code for interrupted replacement
10136         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
10137         that we return -1 in the case the call is interrupted by a signal,
10138         rather than the current value of 1.
10139         Diagnosed and tested by Daniel Richard G.
10141 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10143         Diagnose ERE '()|\1'
10144         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
10145         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
10146         track of the set of previously-completed subexpressions available
10147         before the first alternative, and restore this set just before
10148         parsing each subsequent alternative.  This lets us diagnose the
10149         invalid back-reference in the ERE '()|\1'.
10151         regex: merge patches from libc
10153         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
10154         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
10155         * lib/regex_internal.h:
10156         Include <libc-lock.h> instead of <bits/libc-lock.h>.
10158         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
10159         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
10160         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
10161         wcscoll.
10162         * lib/regexec.c (check_node_accept_bytes): Likewise.
10164         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10165         Fix regex wcrtomb namespace (bug 18496).
10166         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
10167         instead of wcrtomb.
10169         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10170         Fix regex wctype namespace (bug 18495).
10171         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
10172         instead of towlower.
10173         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
10174         instead of iswlower.  Call __towupper instead of towupper.
10175         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
10176         instead of iswalnum.
10178         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
10179         * lib/regcomp.c (parse_bracket_exp): Initialize type to
10180         COLL_SYM in a couple of places to avoid uninitialized variable
10181         wanings on tilegx gcc 4.8.2.
10183         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10184         * lib/regex_internal.h: Remove NOT_IN_libc.
10186         2014-11-17  Andreas Schwab  <schwab@suse.de>
10187         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
10189         2014-09-11  Roland McGrath  <roland@hack.frob.com>
10190         Move findidx nested functions to top-level.
10191         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
10192         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
10193         Pass new arguments to findidx.
10194         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
10195         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
10196         Don't #include it inside the function.  Pass new arguments to findidx.
10197         * lib/regex_internal.h:
10198         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
10199         (re_string_elem_size_at): Don't #include it inside the function.
10200         Pass new arguments to findidx.
10202         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10203         Check if DEBUG is defined in regex_internal.c
10204         * lib/regex_internal.c: Check if DEBUG is defined and is set.
10206 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
10208         ceill: detect buggy OpenBSD implementation
10209         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
10210         which returns zero for small values.  Discussed here:
10211         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
10213 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
10215         mountlist: add me_mntroot field on Linux machines
10216         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
10217         mount_entry so Linux machines based on /proc/self/mountinfo can
10218         distinguish between bind mounts and original mounts.  In reality bind
10219         mounts aren't treated differently than mountroot=/ mounts by the
10220         kernel, but the user often wants these bind mounts distinguished.
10221         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
10222         More details at https://pad.lv/1432871
10224 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
10226         doc: Describe to use multiple instances of gnulib
10227         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
10228         instances of gnulib with different modules can be used, for example one
10229         for a lib and another one for associated tools.
10231 2015-09-01  Pádraig Brady  <P@draigBrady.com>
10233         base32: mark function as __attribute__ const
10234         * lib/base32.h (isbase32): Mark __attribute__ const as
10235         suggested by GCC, and consistent with the base64 module.
10237 2015-08-20  Daiki Ueno  <ueno@gnu.org>
10239         gnulib-tool: don't transform binary files with sed
10240         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
10241         .mo and .class files.
10242         Reported by Denis Denisov.
10244 2015-08-10  Daiki Ueno  <ueno@gnu.org>
10246         gperf: respect silent rules
10247         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
10248         V_GPERF_0 for silent rules.
10249         * modules/iconv_open (Makefile.am): Use V_GPERF.
10250         * modules/unicase/locale-language (Makefile.am): Likewise.
10251         * modules/unicase/special-casing (Makefile.am): Likewise.
10252         * modules/unictype/category-byname (Makefile.am): Likewise.
10253         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
10254         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
10255         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
10256         * modules/unictype/property-byname (Makefile.am): Likewise.
10257         * modules/unictype/scripts (Makefile.am): Likewise.
10258         * modules/uninorm/composition (Makefile.am): Likewise.
10260 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
10262         Improve port of stdalign to C++11
10263         Problem reported by Sundaram in:
10264         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
10265         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
10266         (__alignas_is_defined): Define if C++11 or newer.
10268 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
10270         pmccabe2html: fix gawk regex escaping
10271         * build-aux/pmccabe2html: Add one more backslash to properly
10272         escape the gsub replacement value.  Fixes this error:
10273         gawk: ./build-aux/pmccabe2html:425: \
10274         warning: escape sequence `\&' treated as plain `&'
10276 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
10278         time_rz: port to pedantic memcpy
10279         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
10280         that reject memcpy (..., NULL, 0).
10282 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
10284         time_rz: port better to MinGW
10285         Don't change tzname, as this makes MinGW dump core (Bug#21020).
10286         Instead, store the tzname copy in the struct tm_zone object.
10287         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
10288         * lib/strftime.c [!_LIBC]:
10289         * lib/time_rz.c: Include time-internal.h.
10290         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
10291         name from *TZ rather than from TZNAME, doable because *TZ now has
10292         a tzname_copy member.
10293         * lib/time-internal.h: New file, with contents taken from
10294         lib/time_rz.c.  It's separate because strftime.c now accesses
10295         struct tm_zone members.
10296         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
10297         New member tzname_copy.
10298         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
10299         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
10300         Initialize tzname_copy member.
10301         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
10302         in tzname_copy member.
10303         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
10304         (restore_tzname): Remove; no longer needed.  All calls removed.
10305         * modules/time_rz (Files): Add lib/time-internal.h.
10307         time: port __need_time_t to MinGW
10308         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
10309         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
10311 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10313         strftime: fix newly-introduced bug on Solaris
10314         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
10315         consistently at the start, rather than doing some of the setup at
10316         the start and some in the %Z format spec.  This is cleaner, and
10317         works better with time_rz on platforms like Solaris where struct
10318         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
10319         mktime_z and localtime_rz can mess up the tzname cache.
10321         test-strftime: test for Solaris bug
10322         * modules/strftime-tests (Depends-on): Add strerror.
10323         * tests/test-strftime.c: Include <errno.h>.
10324         (posixtm_test): New function, containing the old 'main'.
10325         (struct tzalloc_test, struct localtime_rz_test): New types.
10326         (TZ, LT): New static vars.
10327         (tzalloc_test): New function.
10328         (main): Rewrite in terms of posixtm_test and tzalloc_test.
10330         time_rz: port to Solaris etc.
10331         Works around a tzname problem on platforms like Solaris that have
10332         tzname but not tm_zone, by setting tzname at the appropriate time
10333         and restoring it later.
10334         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
10335         New static vars.
10336         (save_abbr) [HAVE_TZNAME]: Set them.
10337         (revert_tz) [HAVE_TZNAME]: Clear or use them.
10338         (restore_tzname): New function.
10339         (localtime_rz, mktime_z): Use it.
10341         time_rz: now LGPL
10342         * modules/time_rz (License): Now LGPL, because strftime depends on it.
10344         time_rz: make a constant 'const'
10345         * lib/time_rz.c (local_tz): Now const.
10347         time_rz: fix off-by-one typo
10348         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
10350 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
10352         fprintftime, strftime: use timezone_t args
10353         * NEWS: Document the change.
10354         * lib/fprintftime.h (fprintftime):
10355         * lib/strftime.c (extra_args) [my_strftime]:
10356         * lib/strftime.h (nstrftime):
10357         Time zone arg is now of type timezone_t, not int.
10358         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
10359         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
10360         (my_strftime) [emacs && !my_strftime]:
10361         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
10362         Remove; Emacs doesn't need this any more.
10363         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
10364         fprintftime and nstrftime to call tzset.
10365         (ut) [!my_strftime]: Remove, replacing with ...
10366         (tz) [!my_stftime]: ... this new macro.  All uses changed.
10367         (strftime_case_): Use localtime_rz and mktime_z instead
10368         of localtime_r and mktime.
10369         * modules/fprintftime (Depends-on): Add time_rz.
10370         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
10371         * tests/test-strftime.c (main): Adjust to new nstrftime API.
10373         time_rz: new module
10374         * MODULES.html.sh: Add time_rz.
10375         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
10376         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
10377         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
10378         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
10379         New var HAVE_TIMEZONE_T (default 0).
10380         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
10381         New var GNULIB_TIME_RZ (default 0).
10382         * modules/time (time.h): Substitute the new vars.
10384         flexmember: license is now unlimited
10385         * modules/flexmember (License): Change to unlimited,
10386         since its only source file gives an unlimited license.
10388 2015-07-15  Eric Blake  <eblake@redhat.com>
10390         maint: update copyright paper procedures
10391         * config/srclist.txt: Drop outdated files.
10392         * doc/Copyright/conditions.txt: Update to latest.
10393         * doc/Copyright/assign.changes.manual: Delete.
10394         * doc/Copyright/assign.future.manual: Likewise.
10395         * doc/Copyright/assign.manual: Likewise.
10396         * doc/Copyright/assign.translation.manual: Likewise.
10397         * doc/Copyright/disclaim.changes.manual: Likewise.
10398         * doc/Copyright/disclaim.manual: Likewise.
10399         * doc/Copyright/disclaim.program: Likewise.
10401 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10403         localename: fix link error on Illumos
10404         Illumos defines __sun, but does not have getlocalename_l nor the
10405         equivalent.  This partially reverts commit 387c214.
10406         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
10407         available, as well as uselocale.
10408         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
10409         use getlocalename_l if it is not available.
10411 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10413         unistr/uN-strtok-tests: avoid a trivial leak
10414         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
10415         input and delim after the multibyte delimiter tests.
10417 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10419         file-has-acl, acl-permissions: fix HP-UX typos
10420         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
10421         * lib/file-has-acl.c (file_has_acl):
10422         * lib/set-permissions.c (context_acl_from_mode)
10423         (context_aclv_from_mode, set_acls):
10424         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
10425         They were introduced by the recent ACL changes.
10427         regex: match current GNU grep behavior
10428         These symbols have not matched GNU grep behavior for quite some time.
10429         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
10430         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
10431         Change to match current GNU behavior.
10432         Simplify by expressing it as differences from POSIX BREs and EREs.
10433         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
10435 2015-07-03  Jim Meyering  <meyering@fb.com>
10437         set-permissions.c: adjust acl_from_mode's cpp guard
10438         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
10439         directives identical to those guarding the sole use.
10440         Otherwise, on some systems, we'd get a warning about
10441         the function being defined but not used.
10442         Also, filter through cppi to correct misleading indentation
10443         of cpp directives.
10445 2015-07-03  Pádraig Brady  <P@draigBrady.com>
10447         tests: restrict shells to those that support 'local'
10448         The local keyword is very widely supported and used
10449         in tests in coreutils and grep at least.  Therefore
10450         restrict to testing with shells that support it.
10451         This mainly excludes /bin/sh on Solaris.
10452         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
10454 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
10455         and Daiki Ueno  <ueno@gnu.org>
10457         unistr/uN-strtok: handle multibyte delimiters
10458         Previously, uN_strtok moved PTR to the next unit to the token end.
10459         When DELIM contained a multibyte character, the new position could
10460         be a middle of a multibyte character.
10461         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
10462         after the token.
10463         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
10464         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
10465         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
10466         * modules/unistr/u8-strtok (Depends-on): Depend on
10467         unistr/u8-strmblen.
10468         * modules/unistr/u16-strtok (Depends-on): Depend on
10469         unistr/u16-strmblen.
10470         * modules/unistr/u32-strtok (Depends-on): Depend on
10471         unistr/u32-strmblen.
10472         * tests/unistr/test-u-strtok.h: New file.
10473         * tests/unistr/test-u8-strtok.c: New file.
10474         * tests/unistr/test-u16-strtok.c: New file.
10475         * tests/unistr/test-u32-strtok.c: New file.
10476         * modules/unistr/u8-strtok-tests: New file.
10477         * modules/unistr/u32-strtok-tests: New file.
10478         * modules/unistr/u16-strtok-tests: New file.
10480 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
10482         update-copyright: fix test failure with perl >= 5.22 (trivial)
10483         * build-aux/update-copyright: Escape a literal left curly bracket,
10484         required with perl >= 5.22
10486 2015-07-02  Daiki Ueno  <ueno@gnu.org>
10488         u{16,32}-strstr-tests: relax timeout condition
10489         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
10490         tests can take longer than 5 seconds to complete.
10491         Reported by Dagobert Michelsen in:
10492         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
10493         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
10494         seconds to 10 seconds.
10495         * tests/unistr/test-u32-strstr.c (main): Likewise.
10497 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
10499         gnulib-common.m4: change the ARFLAGS default to 'cr'
10500         In some GNU/Linux distributions people started to compile 'ar'
10501         binary with --enable-deterministic-archives (binutils project).
10502         That, however, in combination with previous autotools long time
10503         working default AR{_,}FLAGS=cru causes warnings on such
10504         installations:
10505         ar: `u' modifier ignored since `D' is the default (see `U')
10506         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
10507         set already.
10509 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
10511         selinux-h: avoid double free after *getfilecon()
10512         Originally reported by Ben Shelton on bug-tar:
10513         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
10514         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
10515         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
10516         param should be freed by freecon(3) (regardless the return value).
10518 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
10520         fix pty related tests issues on Windows (trivial)
10521         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
10522         however it's still present in tests/ subdirectory of the final project.
10523         Therefore avoid it to pass `make check`.
10524         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
10525         will just return -ENOSYS, so avoid this non applicable test allowing
10526         the build to proceed.
10528 2015-07-01  Pádraig Brady  <P@draigBrady.com>
10530         acl: fix definition of acl_from_mode on FreeBSD
10531         This was causing basic coreutils copy operations to fail
10532         with ENOTSUP or ENOENT error messages.
10533         * lib/acl-internal.h (acl_from_mode): Only define when
10534         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
10535         of acl_from_mode() defined in lib/set-permissions.c to
10536         be used on FreeBSD at least.
10537         * lib/set-permissions.c: Fix up comment spelling,
10538         and a redundant variable assignment; noticed in passing.
10540 2015-06-30  Pádraig Brady  <P@draigBrady.com>
10542         readutmp: port to FreeBSD >= 9
10543         * lib/readutmp.h: Map utmpxname() to setutxdb().
10544         With that coreutils who(1) and pinky(1) tests pass.
10546 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10548         mgetgroups: port to strict OS X
10549         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
10550         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
10551         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
10552         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
10554 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
10556         mgetgroups: port to strict OS X
10557         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
10558         Document the getgrouplist problem.
10559         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
10560         New macro.
10561         (mgetgroups): Use it.
10562         * m4/mgetgroups.m4 (gl_MGETGROUPS):
10563         Check for OS X signature for getgrouplist.
10565 2015-06-29  Jim Meyering  <meyering@fb.com>
10567         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
10568         It started like this when building coreutils' latest on OS X,
10569         invoking ./configure with a nonempty --cache=.cache:
10571           lib/linkat.c:46:42: error: operator '||' has no right operand
10572           lib/linkat.c: In function 'rpl_linkat':
10573           lib/linkat.c:330:27: error: #if with no expression
10575         Here's linkat.c's line 46:
10577           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
10579         Here's some context:
10581           $ grep linkat_nofoll .cache
10582           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
10583           $ grep LINKAT_SYM lib/config.h
10584           #define LINKAT_SYMLINK_NOTSUP
10586         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
10587         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
10588         but that violates a tenet of AC_CACHE_CHECK: it must
10589         have no side effect other than setting its cache variable.
10591         What happens is that when the cache is set, we'd skip the
10592         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
10593         defined to whatever value it happened to have in configure's
10594         environment.  In my case, it was not defined, so this later code:
10596           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
10597             [Define to 1 if linkat can create hardlinks to symlinks])
10599         would emit code with an empty RHS.
10601         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
10602         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
10604 2015-06-28  Jim Meyering  <meyering@fb.com>
10606         mountlist: avoid an unused-label warning on OS X
10607         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
10608         Building on OS X, I saw a warning about the "free_then_fail" label
10609         being unused.  Give it the _GL_UNUSED_LABEL attribute.
10611         error.c: correct printf-style format: %d -> %u
10612         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
10613         rather than %d, to match the type of "line_number", unsigned int.
10615 2015-06-25  Pádraig Brady  <P@draigBrady.com>
10617         fts: avoid reading beyond the heap allocation
10618         GCC 5.1.1 with -O2 and -fsanitize=address reports
10619         a read of size 4 from a heap object of size 3 is indeed invalid,
10620         though this may be due to incorrect padding assumptions by GCC, see:
10621         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
10622         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
10623         * modules/fts: Depend on stdalign.
10625 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10627         savedir: avoid undefined behavior in qsort call
10628         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10629         "runtime error: null pointer passed as argument 1,
10630          which is declared to never be null"
10631         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
10633 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10635         userspec: avoid undefined behavior in gettext call
10636         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10637         "runtime error: null pointer passed as argument 2,
10638          which is declared to never be null"
10639         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
10641 2015-06-20  Glenn Morris  <rgm@gnu.org>
10643         gitlog-to-changelog: improve gitmerge.el commits
10644         Let the Emacs ChangeLog generation process exclude "skipped"
10645         messages from merge commits (Bug#20717).
10646         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
10648 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10650         wchar: fix MinGW compilation warnings
10651         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
10652         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
10653         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
10655 2015-06-20  Daiki Ueno  <ueno@gnu.org>
10657         uniname/uniname-tests: use pristine data files
10658         For copyright and maintenance reasons, use the data files from UCD
10659         without modification.
10660         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
10661         (getfield): Remove.
10662         (aliases_count): New global variable.
10663         (fill_names): Skip comments and empty lines in the input.  Don't
10664         use getfield.
10665         (fill_aliases): Likewise.
10666         (main): Change the expected command line arguments to:
10667         NAMES... ["--" ALIASES...].
10668         * tests/uniname/test-uninames.sh: Adjust to the change in
10669         test-uninames.c.
10670         * tests/uniname/UnicodeDataNames.txt: Remove.
10671         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
10672         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
10673         file from Unicode 8.0.0.
10675 2015-06-19  Pádraig Brady  <P@draigBrady.com>
10677         linked-list, linkedhash-list: avoid compiler warnings
10678         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10679         -Werror=suggest-attribute=pure (from GCC 5.1.1).
10681 2015-06-19  Daiki Ueno  <ueno@gnu.org>
10683         libunistring: bump minimum version to 0.9.6
10684         * all modules depending on updated Unicode data: Regenerate.
10685         The modules are listed by a script that does:
10686         - for each file listed by: git show --oneline --name-only 705f4efc
10687           - deduce the containing modules, based on "Files:"
10688         - deduce the modules which depend on the containing modules, based
10689           on "Depends-on:"
10691 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10693         uniname/uniname: update to Unicode 8.0.0
10694         * lib/uniname/uninames.h: Regenerate.
10695         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
10696         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
10698 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10700         libunistring: update to Unicode 8.0.0
10701         * lib/gen-uni-tables.c (SIZEOF): New macro.
10702         (output_numeric): Increase the maximum number of fractions from
10703         128 to 160.  Increase the level3 value width from 7 bits to 8
10704         bits.  Use SIZEOF instead of a hard-coded integer.
10705         (output_blocks): Decrease the cut-off threshold from 0x30000 to
10706         0x28000.
10707         (fill_blocks): Increase the maximum number of blocks from 256 to
10708         384.  Use SIZEOF instead of a hard-coded integer.
10709         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
10710         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
10711         value width.
10712         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
10713         a new case added to LBP22.
10714         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
10715         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
10716         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
10717         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
10718         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
10719         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10720         lib/uniwidth/width.c.
10721         * all generated files under lib/uni* and tests/uni*: Regenerate.
10723 2015-06-16  Pádraig Brady  <P@draigBrady.com>
10725         gnu-web-doc-update: add --mirror to remove stale files
10726         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
10727         out of date files from the CVS server.  Since this is usually
10728         appropriate, a prompt is given when the option is not specified,
10729         along with the `cvs remove` command that would be run.
10731 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10733         acl-permissions: pacify -Wsuggest-attribute=const
10734         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
10735         * lib/acl-internal.h (free_permission_context):
10736         Declare with attribute const if ! (defined USE_ACL &&
10737         (HAVE_ACL_GET_FILE || defined GETACL)).
10739         fsync: document AIX misbehavior
10740         * doc/posix-functions/fsync.texi (fsync):
10741         Document failure on AIX with read-only file descriptor.
10743 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
10745         stdio: Don't redefine gets when using C++
10746         * lib/stdio.in.h (gets): Disable warning on C++.
10748 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10750         acl-permissions: port to AIX, C89 HP-UX
10751         Problems reported by Michael Felt.
10752         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
10753         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
10754         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
10755         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
10756         Add cast for AIX, whose system calls are declared to accept
10757         char * even though the arguments are really char const *.
10758         * lib/get-permissions.c (get_permissions):
10759         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
10760         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
10761         that broke a build.
10762         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
10763         Rework types to pacify xlc.
10765 2015-06-03  Pádraig Brady  <P@draigBrady.com>
10767         vasprintf-posix: avoid compiling vasnprintf where possible
10768         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
10769         module where not required.  For example on a GNU/Linux system
10770         when gnulib-tool is run with the --conditional-dependencies option.
10772 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10774         file-has-acl: fix build on Mac OS X 10
10775         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
10776         which has an incompatible 6 parameter getxattr() call.
10777         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
10778         call on Mac OS X >= 10.4.
10779         * doc/glibc-functions/fgetxattr.texi: Likewise.
10780         * lib/file-has-acl.c: Revert to more complete combined check.
10781         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
10782         Reported by Jack Howarth.
10784 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10786         prefix-gnulib-mk: remove no longer needed special case
10787         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
10788         continued lib_SOURCES lines are no longer present,
10789         so special case handling of such entries is not required.
10791 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10793         acl: don't depend on the deprecated qacl module
10794         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
10796 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10798         gnulib-tool: concatenate lib_SOURCES to a single line
10799         * gnulib-tool: Refactor the line merging sed logic,
10800         and use that to output a single lib_SOURCES line for each module.
10801         gnulib using projects often postprocess this output to prepend
10802         subdir paths to each item, and having a single line simplifies this
10803         processing allowing better decoupling from the gnulib-tool output.
10805 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
10807         pthread_sigmask: discount system version if a simple macro (trivial)
10808         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
10809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
10810         function to ensure it's available.
10812 2015-05-31  Pádraig Brady  <P@draigBrady.com>
10814         readlinkat: avoid OS X 10.10 trailing slash bug
10815         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
10816         has this bug.
10817         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
10818         that OS X 10.10 has this function.
10819         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
10820         as done for readlink().
10821         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
10822         trailing slash bug, and assume readlinkat() has the same issue.
10823         Also fix a typo where $gl_cv_decl_readlink_works was tested,
10824         rather than the correct $gl_cv_decl_readlinkat_works.
10826 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10828         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
10829         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
10830         module rewrite.
10832         acl-permissions: Fix build on Solaris and Cygwin
10833         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
10834         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
10835         ace_entries variables have moved into struct permission_context but
10836         they were still accessed as local variables here.
10838 2015-05-29  Pádraig Brady  <P@draigBrady.com>
10840         linkat: avoid OS X 10.10 trailing slash with symlink bug
10841         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
10842         causes the symlink to be dereferenced, and if it points
10843         to a non existent file, that file will be created as
10844         a hard link to "path1".
10845         This fixes a test failure in test-linkat.c.
10846         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
10847         this case.  The existing workaround in linkat.c for
10848         trailing slash issues, suffices for this case.
10849         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
10850         the list of platforms with trailing slash issues.
10852 2015-05-28  Pádraig Brady  <P@draigBrady.com>
10854         unlinkat: handle ignoring of ".." on Darwin 14
10855         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
10856         on Mac OS X 10.10, where it ignores paths with a trailing "..",
10857         so handle in the same manner.
10858         * m4/unlinkat.m4: Comment on this Darwin issue.
10859         * doc/posix-functions/unlink.texi: Update the latest version
10860         where the issue was seen.
10861         * doc/posix-functions/unlinkat.texi: Mention this issue.
10862         Fixes a test failure in test-unlinkat.c.
10864 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10866         qacl: split into qcopy-acl and qset-acl
10867         Emacs needs the former, but not the latter.
10868         * modules/acl-permissions: New file, containing most of the old qacl.
10869         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
10870         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
10871         * modules/qcopy-acl, modules/qset-acl: New files.
10872         * MODULES.html.sh (File system functions):
10873         Mention the new modules, and mention qacl while we're at it.
10875 2015-05-27  Glenn Morris  <rgm@gnu.org>
10877         gitlog-to-changelog: new option --ignore-line
10878         (This patch is imported from the GNU Emacs master.)
10879         This option ignores individual commit lines matching a pattern.
10880         * build-aux/gitlog-to-changelog: Add --ignore-line option.
10882 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
10884         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
10885         Implement get_permissions and set_permissions primitives for getting all
10886         the permissions of a file, storing them, and later setting them. (In the
10887         minimal case, the permissions consist only of a file mode.) Reimplement
10888         qset_acl and qcopy_acl based on these new primitives: this avoids code
10889         duplication and makes error handling more consistent.
10890         The Solaris and Cygwin code still uses duplicate code paths for setting
10891         a file mode while making sure that no acls exist and setting an explicit
10892         acl; this is no worse than before, but could be cleaned up.  The AIX
10893         code still doesn't read ACLs, it only makes sure that acls don't get in
10894         the way when setting a file mode.
10895         * lib/acl-internal.h (struct permission_context): New data structure.
10896         (get_permissions, set_permissions, free_permission_context): Declare.
10897         * lib/acl-internal.c (free_permission_context): New helper function.
10898         * lib/get-permissions.c (get_permissions): New helper function split off
10899         from qcopy_acl.
10900         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
10901         AIX, set a file's permissions based only on a file mode.
10902         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
10903         other platforms construct a temporary acl from the file mode and set
10904         that acl in the same way as setting an acl read from the source file.
10905         This should help avoid code duplication and inconsistent / buggy
10906         behavior.
10907         (set_acls): New helper function Split off from qcopy_acl.
10908         (chmod_or_fchmod): Moved here from qset-acl.c.
10909         (set_permissions): New helper function.
10910         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
10911         set_permissions.
10912         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
10913         * modules/qacl: Add get-permissions.c and set-permissions.c.
10915         file-has-acl: Split feature tests again (Bug#20667)
10916         * lib/file-has-acl.c: Instead of testing for
10917         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
10918         define them when needed.
10919         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
10920         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
10922 2015-05-27  Pádraig Brady  <P@draigBrady.com>
10924         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
10925         This avoids a conflict with "FORTIFY_SOURCE" variants
10926         of the string functions when they're replaced on NetBSD-6.0.1
10927         and Darwin-14.3.0 at least.
10928         * lib/string.in.h: Avoid including our "lib/string.h" while
10929         including the system <string.h>.
10931 2015-05-26  Eric Blake  <eblake@redhat.com>
10933         stdio: limit __gnu_printf__ witness to gcc 4.4+
10934         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
10935         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
10937         error: use correct printf attributes on mingw
10938         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
10940         inttypes: force correct mingw PRIdMAX even without <stdio.h>
10941         * modules/inttypes (Depends-on): Require extensions, so that mingw
10942         always uses GNU style inttypes.
10943         * lib/inttypes.in.h: On mingw, include <stdio.h>.
10945         stdio: fix probe on mingw under gcc 5.1
10946         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
10947         around new gcc preprocessor rules.
10949 2015-05-07  Glenn Morris  <rgm@gnu.org>
10951         gitlog-to-changelog: parse "Tiny-change"
10952         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
10953         "Copyright-paperwork-exempt".  (Bug#20324)
10955 2015-05-06  Pádraig Brady  <P@draigBrady.com>
10957         doc: document glibc posix_fallocate() issues
10958         * doc/posix-functions/posix_fallocate.texi: Mention the
10959         glibc efficiency problems and issues with NFS.
10961 2015-05-05  Karl Berry  <karl@freefriends.org>
10963         * build-aux/gendocs.sh (usage): document new css default
10964         for HTML (--htmlarg).
10966 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10968         extern-inline: no need for workaround in GCC 5.1
10969         * doc/extern-inline.texi (extern inline):
10970         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
10971         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
10972         around these bugs in GCC 5.1 and later.  Maybe in a decade or
10973         two we can remove these workarounds.
10975 2015-04-28  Pádraig Brady  <P@draigBrady.com>
10977         eealloc, pagealign_alloc, xalloc: avoid clang warnings
10978         Avoid [-Wunknown-attributes] warnings like:
10979         warning: unknown attribute '__alloc_size__' ignored
10980         * lib/xalloc.h: Don't use the __alloc_size__  attribute
10981         with clang, as support has been fully removed as of clang 3.5:
10982         https://github.com/llvm-mirror/clang/commit/c047507a
10983         * lib/eealloc.h: Likewise.
10984         * lib/pagealign_alloc.h: Likewise.
10986 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10988         tests: pacify GCC 5.1's stricter printf checking
10989         * tests/test-dirname.c (main):
10990         * tests/test-getaddrinfo.c (simple):
10991         * tests/test-getlogin.c (main):
10992         * tests/test-getndelim2.c (main):
10993         * tests/test-inttostr.c (CK):
10994         * tests/test-md5.c (main):
10995         * tests/test-read-file.c (main):
10996         * tests/test-sha1.c (main):
10997         Fix mismatches between printf format and value signedness.
10998         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
10999         Remove, as CAST_VAL always returned a value of type uintmax_t.
11001         fts: port to GCC 5.1 with --enable-gcc-warnings
11002         Without this fix, GCC 5.1 (correctly) warns about a subscript
11003         error on the fts_name component of FTSENT.  It's actually a
11004         flexible member, so define it that way on C99 or later hosts.
11005         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
11006         structure that now has a flexible array member.
11007         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
11008         (FTSENT): fts_name is now flexible on C99-or-later platforms.
11009         * modules/fts (Depends-on): Add flexmember.
11011 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11013         file-has-acl: port to CentOS 6
11014         Problem reported by Tom G. Christensen in:
11015         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
11016         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
11017         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
11018         HAVE_GETXATTR.
11019         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
11020         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
11021         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
11022         file-has-acl.c actually needs.
11024 2015-04-26  Pádraig Brady  <P@draigBrady.com>
11026         file-has-acl: always return false when ACLs aren't supported
11027         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
11028         change the GNU/Linux getxattr path, to transform "not supported"
11029         errors to a false return rather than an error.  This is handled
11030         within file_has_acl() due to the platform specific tests to
11031         determine if ACLs are not supported.
11033 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11035         gettext: propagate po/Makefile.in.in too
11036         * build-aux/po/Makefile.in.in: Copy from latest gettext.
11037         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
11038         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
11039         between Makefile.in.in and the gettext-runtime m4 files.
11041 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11043         file-has-acl: new module, split from acl
11044         And add a new module file-has-acl-tests to match.
11045         I ran into a problem with the recent changes to the acl module,
11046         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
11047         When using the fixed version with Emacs, I discovered that
11048         file-has-acl wasn't separated out well enough for Emacs (e.g., it
11049         had multiple libraries, but needed only one), so I fixed that too.
11050         * NEWS: Document this incompatible change.
11051         * modules/file-has-acl, modules/file-has-acl-tests: New files.
11052         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
11053         Initialize gl_need_lib_has_acl.
11054         (gl_FUNC_ACL): Require it.
11055         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
11056         Move the file-has-acl.c-relevant stuff to ...
11057         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
11058         use_xattrs = 0' typo, and omit some needless work.  Set
11059         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
11060         when gl_FUNC_ACL is called.
11061         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
11062         (Link): Remove $(LIB_HAS_ACL).
11063         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
11064         (check_PROGRAMS): Move stuff relevant to file-has-acl to
11065         modules/file-has-acl-tests.
11066         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
11068         manywarnings: add GCC 5.1 warnings
11069         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
11070         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
11071         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
11072         -Wsuggest-override, -Wuse-without-only.  Change
11073         -Wnormalized=... operands to match 5.1.
11074         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
11075         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
11076         -Wdiscarded-qualifiers, -Wformat-signedness,
11077         -Wincompatible-pointer-types, -Wint-conversion,
11078         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
11079         -Wshift-count-negative, -Wshift-count-overflow,
11080         -Wsizeof-array-argument, -Wsuggest-final-methods,
11081         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
11082         and add -Warray-bounds=2 as a special case.
11084 2015-04-21  Simon Josefsson  <simon@josefsson.org>
11086         doc: update FDL template to match FDL examples.
11087         * doc/alloca-opt.texi:
11088         * doc/alloca.texi:
11089         * doc/c-ctype.texi:
11090         * doc/c-strcase.texi:
11091         * doc/c-strcaseeq.texi:
11092         * doc/c-strcasestr.texi:
11093         * doc/c-strstr.texi:
11094         * doc/c-strtod.texi:
11095         * doc/c-strtold.texi:
11096         * doc/ctime.texi:
11097         * doc/error.texi:
11098         * doc/gcd.texi:
11099         * doc/gnulib-tool.texi:
11100         * doc/inet_ntoa.texi:
11101         * doc/intprops.texi:
11102         * doc/lib-symbol-visibility.texi:
11103         * doc/maintain.texi:
11104         * doc/parse-datetime.texi:
11105         * doc/quote.texi:
11106         * doc/regexprops-generic.texi:
11107         * doc/standards.texi: Remove spurious 'with' in FDL license
11108         template.
11110 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
11112         lstat: fix cross-compilation 'ln -s' problem
11113         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11114         Have the test program call 'symlink' rather than a separate
11115         script run 'ln -s'; this is more likely to work in
11116         cross-compilation environments.  Reported by Pavel Fedin in:
11117         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
11119 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
11121         gendocs.sh: default to a common CSS style sheet for HTML output
11122         * build-aux/gendocs.sh (htmlarg): Change default value.
11124 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
11126         gnulib-tool: output bold attribute more portably
11127         * gnulib-tool (func_show_module_list): Change hexadecimal
11128         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
11129         encoded numbers as arguments to `printf' is not portable,
11130         and is not claimed by POSIX.  This is the case with FreeBSD.
11132 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11134         qacl: Simplify HP-UX acl_nontrivial check
11135         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
11136         acl_nontrivial. Check if the acl has at most three entries instead (it must
11137         have exactly three entries according to the HP-UX documentation). Ignore
11138         uids and gids as long as an entry is either for a user (i.e., the owner),
11139         a group (i.e., the owning group), or others.
11140         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
11141         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
11143 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
11145         acl: On Linux, check for acls without libacl
11146         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
11147         library function to check for the presence of acls, avoiding a library.
11148         * lib/file-has-acl.c: Include xattr headers if we have them.
11149         (file_has_acl): On Linux, use getxattr().
11150         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
11151         file_has_acl(). Check for xattr headers and getxattr().
11153 2015-04-14  Ángel González  <keisial@gmail.com>
11155         tempname: avoid unused parameter warnings (trivial)
11156         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
11157         (try_nocreate): Likewise.
11159 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
11161         fseeko: fix build failure on NetBSD >= 6 (trivial)
11162         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
11163         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
11165 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11167         gitlog-to-changelog: port to MS-Windows
11168         * build-aux/gitlog-to-changelog (git_dir_option):
11169         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
11170         MS-Windows Perl.  Reported by Eli Zaretskii in:
11171         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
11173 2015-04-07  Karl Berry  <karl@gnu.org>
11175         gendocs: new option --tex for passing args to texi2dvi.
11176         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
11177         (TEXI2DVI): cut to just command name.
11178         (usage): mention new option, and update copyright.
11179         <generate_tex>: use it.
11181 2015-04-07  Karl Berry  <karl@gnu.org>
11183         * config/srclistvars.sh (GETTEXT): new definition.
11184         * config/srclist.txt: use it for gettext .m4 files.
11185         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
11186         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
11187         and continuing into April.
11189 2015-04-07  Daiki Ueno  <ueno@gnu.org>
11191         uniname/uniname-tests: fix failure due to alias
11192         Reported by Jack Howarth in:
11193         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
11194         * tests/uniname/test-uninames.c (name_has_alias): New function.
11195         (test_inverse_lookup): Exclude character name with valid alias,
11196         from randomly generated character names.
11197         (main): Fill unicode_aliases before calling test functions.
11199 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
11201         hash: remove deprecated hash_insert0 function
11202         * lib/hash.h (hash_insert0): Remove deprecated function.
11203         * lib/hash.c (hash_insert0): Likewise.
11205 2015-04-02  Pádraig Brady  <P@draigBrady.com>
11207         mountlist: remove dependency on libmount
11208         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
11209         directly, rather than depending on libmount, which has many
11210         dependencies due to its dependence on libselinux, as detailed at:
11211         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
11212         Note we restrict this to __linux__ as that's probably where this
11213         interface will remain.  If ever porting, it would be best
11214         to first pull the makedev() wrapper from coreutils to a gnulib module.
11215         Note also we don't add a getline dependency to the mountlist module,
11216         as all Linux versions are sufficient.
11218 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11220         stddef: port to pre-C11 GCC on x86
11221         On this platform, max_align_t should have an alignment of 8 even
11222         though the storage alignments of double, long, etc. max out at 4.
11223         Inspired by a comment of Andreas Schwab's here:
11224         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
11225         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
11226         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
11227         * tests/test-stddef.c: Test __alignof__ too, if available.
11229 2015-03-24  Pádraig Brady  <P@draigBrady.com>
11231         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
11232         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
11234 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
11236         yesno: make EOL optional in ENABLE_NLS case also (trival)
11237         * lib/yesno.c (yesno): Check for EOL before replacing.
11238         * tests/test-yesno.sh: Add a test case (test along with gettext).
11240 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
11242         fdopendir-tests: test it does not close its arg
11243         * tests/test-fdopendir.c (main): Test that fdopendir does not
11244         close its argument.  From a suggestion by David Grayson in:
11245         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
11247 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11249         gitlog-to-changelog: trim trailing white space
11250         * build-aux/gitlog-to-changelog (main):
11251         Trim trailing white space from commit message lines.
11252         This is helpful for processing the GNU Emacs repository,
11253         which dates back to 1985 and contains a lot of such lines.
11255         gitlog-to-changelog: new option --ignore-matching
11256         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
11257         Support new option --ignore-matching=PAT, which ignores all
11258         commit messages whose first line matches PAT.
11260 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11262         fdopendir: port better to MinGW
11263         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
11264         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
11265         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
11266         * modules/fdopendir (Depends-on): Add dirfd.
11268 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
11270         fdopendir: fix typo in comment
11271         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
11273 2015-03-09  Eric Blake  <eblake@redhat.com>
11275         error: document all entry points provided
11276         * doc/glibc-functions/error_print_progname.texi
11277         (error_print_progname): Mention the error module.
11278         * doc/glibc-functions/error_at_line.texi (error_at_line):
11279         Likewise.
11280         * doc/glibc-functions/error_message_count.texi
11281         (error_message_count): Likewise.
11282         * doc/glibc-functions/error_one_per_line.texi
11283         (error_one_per_line): Likewise.
11285 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
11287         vasnprintf: pacify clang 3.5.0
11288         Problem reported by Werner Lemberg in:
11289         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
11290         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
11291         The casts aren't needed, since the characters in question are ASCII.
11293 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11295         glob, etc.: port to MSVC v18 on MS-Windows 8.1
11296         * lib/dirent--.h (GNULIB_defined_opendir):
11297         * lib/dirent.in.h (GNULIB_defined_opendir)
11298         (GNULIB_defined_closedir):
11299         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
11300         #undef only if Gnulib defined it.
11302         poll: port to MSVC v18 on MS-Windows 8.1
11303         Problem reported by Gisle Vanem in:
11304         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
11305         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
11306         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
11307         Add sys_socket.
11309 2015-02-24  Pádraig Brady  <P@draigBrady.com>
11311         tests: support stderr verification with returns_()
11312         * tests/init.sh (returns_): Disable tracing for this wrapper
11313         function, so that stderr of the wrapped command is unchanged,
11314         allowing for verification of the contents.
11316 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
11318         passfd: avoid valgrind uninitalised data warning
11319         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
11320         to include just the fd we've initialized, rather than including
11321         the extra space used for alignment.
11323 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11325         uniwbrk/u32-wordbreaks-tests: fix copyright
11326         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
11328         dup2: doc and test for Android bug
11329         Reported by Kevin Cernekee in:
11330         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
11331         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11332         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
11334 2015-02-23  Kevin Cernekee  <cernekee@google.com>
11336         Replace dup2() on Android
11337         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
11338         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
11339         fails.  Using rpl_dup2() fixes this because it has an explicit test
11340         for this condition.
11342 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
11344         Android doesn't define RLIM_SAVED_*
11345         Portability problem reported by Kevin Cernekee in:
11346         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
11347         * doc/posix-headers/sys_resource.texi (sys/resource.h):
11348         Mention the portability problem.
11349         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
11350         Define if not defined.
11351         * m4/dup2.m4 (gl_FUNC_DUP2):
11352         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11353         Likewise.
11355 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11357         vasnprintf-posix-tests: use consistent test
11358         * tests/test-vasnprintf-posix.c (test_function):
11359         Use "<" in assert instead of "<=", for consistency with other tests.
11361 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11363         printf, isinf, etc.: noncanonical != NaN
11364         Do not require that isinf, printf, etc. treat noncanonical
11365         values as NaNs.  Instead, require only that they do not crash.
11366         Problem reported by Joseph Myers in:
11367         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
11368         * doc/posix-functions/dprintf.texi (dprintf):
11369         * doc/posix-functions/fprintf.texi (fprintf):
11370         * doc/posix-functions/isfinite.texi (isfinite):
11371         * doc/posix-functions/isinf.texi (isinf):
11372         * doc/posix-functions/isnan.texi (isnan):
11373         * doc/posix-functions/printf.texi (printf):
11374         * doc/posix-functions/snprintf.texi (snprintf):
11375         * doc/posix-functions/sprintf.texi (sprintf):
11376         * doc/posix-functions/vdprintf.texi (vdprintf):
11377         * doc/posix-functions/vfprintf.texi (vfprintf):
11378         * doc/posix-functions/vprintf.texi (vprintf):
11379         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11380         * doc/posix-functions/vsprintf.texi (vsprintf):
11381         Document this.
11382         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
11383         * m4/isinf.m4 (gl_ISINFL_WORKS):
11384         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
11385         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
11386         * tests/test-isfinite.c (test_isfinitel):
11387         * tests/test-isinf.c (test_isinfl):
11388         * tests/test-isnan.c (test_long_double):
11389         * tests/test-isnanl.h (main):
11390         * tests/test-snprintf-posix.h (test_function):
11391         * tests/test-sprintf-posix.h (test_function):
11392         * tests/test-vasnprintf-posix.c (test_function):
11393         * tests/test-vasprintf-posix.c (test_function):
11394 o       Test only that noncanonical values do not cause crashes, not that
11395         they are treated as NaNs.  In some cases this means a larger
11396         output buffer is needed.
11398 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
11400         fts: remove redundant close() (trivial)
11401         * lib/fts.c (fts_read): Remove redundant call to close().
11402         Spotted by coverity.
11404 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11406         getdtablesize: port better for Android
11407         Problem reported by Kevin Cernekee in:
11408         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
11409         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
11410         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
11411         Instead, just use getrlimit, taking care to avoid Cygwin bug.
11413         poll: fixes for large fds
11414         * lib/poll.c (poll): Don't check directly for NFD too large.
11415         Don't rely on undefined behavior in FD_SET when an arg exceeds
11416         FD_SETSIZE.  Always set revents afterwards, even if to zero.
11417         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
11418         as that makes the test a bit stricter.
11420 2015-02-19  Kevin Cernekee  <cernekee@google.com>
11422         fcntl: Fix cross compiling
11423         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
11424         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
11426 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11428         dup2, fcntl: cross-compile better for Android
11429         Problem reported by Kevin Cernekee in:
11430         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
11431         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
11432         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
11433         there's little need to cross-compile for older kernels nowadays.
11434         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
11435         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
11437 2015-02-18  Pádraig Brady  <P@draigBrady.com>
11439         getopt: don't crash on memory exhaustion
11440         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
11441         memory exhaustion.  In the _LIBC case we use alloca() as is
11442         already done in glibc, so we don't need to consider the separate
11443         error path in that awkward case.  Also fix a memory leak when
11444         ambiguous options are present.
11445         Reported by Tobias Stoeckmann
11447 2015-02-17  Mike Miller  <mtmiller@ieee.org>
11449         tempname: allow compilation with C++ (trivial)
11450         * lib/tempname.h [C++]: Specify extern "C" linkage.
11451         * lib/tempname.h (try_tempname):
11452         * lib/tempname.c (__try_tempname, __gen_tempname):
11453         Rename 'try' to 'tryfunc'.
11455 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11457         dup2, fcntl: port to AIX
11458         * m4/dup2.m4 (gl_FUNC_DUP2):
11459         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11460         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
11461         The former works on AIX 7.1 but the latter does not.
11462         Also, this may work better with Android; see:
11463         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
11465 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11467         getdtablesize, dup2, fcntl: port to Android
11468         Problem reported by Kevin Cernekee in:
11469         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
11470         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
11471         Mention that getdtablesize doesn't work on Android.
11472         * lib/getdtablesize.c: Use getrlimit substitute only if
11473         getdtablesize is declared.  This should suffice for Cygwin
11474         while not breaking Android.
11475         * m4/dup2.m4 (gl_FUNC_DUP2):
11476         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11477         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
11478         standardized but the latter is not, and sysconf works on Android.
11479         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
11480         Also check that getdtablesize is declared.
11481         This removes the need for a special case for Android.
11483 2015-02-16  Kevin Cernekee  <cernekee@google.com>
11485         localename: Implement gl_locale_name_thread_unsafe for Android
11486         * lib/localename.c: Android API level >= 21 supports two hardcoded
11487         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
11488         the internal __locale_t struct.
11490 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
11492         fts: avoid crash when a cycle is added while traversing
11493         This could be triggered by auto-mounting a recursive bind mount.
11494         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
11495         * lib/fts.c (fts_read): Avoid removing the original hash table item
11496         when leaving a directory that caused a cycle, and preserve the FTS_DC
11497         flag.
11499 2015-02-16  Daiki Ueno  <ueno@gnu.org>
11501         uniname/uniname: support character alias
11502         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
11503         Generate one-way mapping from aliases to codepoints in the
11504         generated tables.  Special case variation selectors to reduce
11505         table size.
11506         * lib/uniname/uniname.c (unicode_character_name): Special case
11507         variation selectors.
11508         (unicode_name_character): Special case variation selectors and
11509         their aliases.
11510         * lib/uniname/uninames.h: Regenerate.
11511         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
11512         * modules/uniname/uniname-tests (Files): Add
11513         tests/uniname/NameAliases.txt.
11514         * tests/uniname/test-uninames.c: Mark as static.
11515         (ALIASLEN): Define.
11516         (struct unicode_alias): New struct.
11517         (unicode_aliases): New variable.
11518         (fill_aliases): New function.
11519         (test_alias_lookup): New test function.
11520         (main): Run the 'test_alias_lookup' test if the second argument is
11521         given.
11522         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
11523         second argument.
11525 2015-02-11  Kevin Cernekee  <cernekee@google.com>
11527         Fix FILE struct compatibility with Android API level >= 21
11528         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
11529         __sferror.  Recent versions of Bionic's stdio.h no longer define
11530         __sferror.
11531         * lib/fbufmode.c: Likewise.
11532         * lib/fflush.c: Likewise.
11533         * lib/fpurge.c: Likewise.
11534         * lib/freadable.c: Likewise.
11535         * lib/freadahead.c: Likewise.
11536         * lib/freading.c: Likewise.
11537         * lib/freadptr.c: Likewise.
11538         * lib/freadseek.c: Likewise.
11539         * lib/fseeko.c: Likewise.
11540         * lib/fseterr.c: Likewise.
11541         * lib/fwritable.c: Likewise.
11543         Assume unbroken ungetc() on Android
11544         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
11545         test case passed when running on an Android host, and the code
11546         hasn't really changed since 2009.
11548         getdtablesize: Fix Android build
11549         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
11550         versions have this symbol in the .so library (at least 32-bit
11551         platforms) but are missing the declaration in the header file,
11552         causing the m4 logic to guess incorrectly.
11554         localename: Fix Android build
11555         * modules/localename (Depends-on): Add langinfo.
11557         getugroups: Fix Android build
11558         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
11559         functions.
11561         euidaccess: Fix Android build
11562         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
11563         AT_EACCESS gets declared.
11565         linkat_nofollow: Add fallback case for cross compiling
11566         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
11568         net_if: Handle content-free <net/if.h> system headers
11569         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
11570         struct if_nameindex.  If not, enable the replacement header.
11572         signal_h: Fix Android build
11573         * lib/signal.in.h: Add Android to the list of platforms that declare
11574         pthread_sigmask() in <pthread.h> instead of <signal.h>.
11576         duplocale: Fix Android build of duplocale-tests
11577         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
11578         is included by test-duplocale.c (but not by duplocale.c).
11579         * modules/duplocale-tests (configure.ac): Check for monetary.h.
11580         * tests/test-duplocale.c: Skip test if monetary.h is absent.
11581         * doc/posix-headers/monetary.texi: Add Android to the list of
11582         platforms missing monetary.h.
11584 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11586         tests: avoid recent -Werror=unused-variable regression in test-locale
11587         * tests/test-locale.c (main): Reference the variable to avoid the
11588         "unused variable" warning.
11590 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11592         maint: various whitespace cleanups in tempname
11593         * lib/tempname.c: Normalize spacing and line length.
11594         * lib/tempname.h: Likewise.
11595         * modules/tempname: Likewise.
11597 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11599         tests: provide returns_() to simplify exit status checking
11600         * tests/init.sh (returns_): A new function for use in tests,
11601         to allow for easier checking of return values, where you expect
11602         a command to exit with failure status.  By checking for a particular
11603         exit code, you don't hide any crashes for example.
11605 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11607         mountlist: only use libmount when specified
11608         There are currently many shared libs dependencies introduced by
11609         libmount with associated runtime and virt mem overhead.
11610         Therefore don't enable by default.
11611         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
11613 2015-02-08  Daiki Ueno  <ueno@gnu.org>
11615         uniname/unimame-tests: don't link with -lunistring
11616         * modules/uniname/uniname-tests (Makefile.am): Don't link against
11617         $(LIBUNISTRING).  Document the rationale why we need to
11618         conditionalize the test.
11620 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
11622         fstrcmp: don't assume strlen < INT_MAX
11623         * lib/fstrcmp.c: Include stddef.h and stdint.h.
11624         (uintptr_t): Remove, as we're now assuming stdint.
11625         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
11626         Prefer ptrdiff_t to int when the value could exceed INT_MAX
11627         if the input string is long.
11628         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
11629         uintptr_t to size_t when the underlying value is a pointer casted
11630         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
11631         * modules/fstrcmp (Depends-on): Add stdint.
11633         diffseq: prefer ptrdiff_t to ssize_t
11634         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
11635         ptrdiff_t is the natural type for signed indexes.
11636         On a few older platforms, ssize_t is narrower than size_t.
11638         xalloc: fix typo that suppressed warnings
11639         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
11640         This typo, introduced a couple of years ago, mistakenly suppressed
11641         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
11642         -Wmissing-declarations warnings.
11644         full-read: fix license notice typo
11645         * lib/full-read.h: Remove a stray line in the license notice.
11646         Reported by Sam Ellis in: http://bugs.gnu.org/19808
11648         crypto/gc: fix a -Wswitch warning
11649         Reported by Bruce Korb in:
11650         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
11651         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
11653 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11655         gnulib-tool: fix handling of patch(1) diagnostics
11656         * gnulib-tool: Send diagnostics from patch(1) to stderr,
11657         as otherwise gnulib-tool will reparse that output and attempt
11658         to lookup modules.
11660 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11662         bootstrap: exit immediately upon gnulib-tool failure
11663         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
11664         This was noticed when gnulib-tool exited early due to failure
11665         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
11666         but various confusing errors were then given as the build proceeded.
11668 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
11670         symlinkat: include all required header files
11671         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
11672         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
11673         Reported at https://savannah.gnu.org/bugs/index.php?44151
11674         and by Jack Howarth.
11676 2015-01-29  Pádraig Brady  <P@draigBrady.com>
11678         localename: support Solaris 12 and illumos
11679         * lib/localename.c (gl_locale_name_thread_unsafe): call
11680         getlocalename_l() on newer __sun platforms.
11681         Reported by Alexander Pyhalov.
11682         Fix suggested by Rich Burridge.
11684 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
11686         locale: fix tests on illumos (trivial)
11687         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
11688         so move from global scope to main().
11690 2015-01-24  Daiki Ueno  <ueno@gnu.org>
11692         unictype: avoid undefined left-shift behavior
11693         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
11694         gcc's -fsanitize=shift and running its tests triggered:
11695           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
11696             places cannot be represented in type 'int'
11697         Cast LHS to 'unsigned int' after integer promotion.
11698         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11699         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11701 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11703         libunistring: bump version of unitypes dependants
11704         Due to the header file search order, all the headers which depend
11705         on unitypes.h need to be generated, when the preinstalled
11706         libunistring is older.
11707         * modules/unicase/base (configure.ac): Bump minimum version to
11708         0.9.4.
11709         * modules/uniconv/base (configure.ac): Likewise.
11710         * modules/unilbrk/base (configure.ac): Likewise.
11711         * modules/uninorm/base (configure.ac): Likewise.
11712         * modules/unistdio/base (configure.ac): Likewise.
11713         * modules/unistr/base (configure.ac): Likewise.
11714         * modules/uniwbrk/base (configure.ac): Likewise.
11715         * modules/uniwidth/base (configure.ac): Likewise.
11717 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11719         unictype/category-none: fix link with libunistring
11720         Since _UC_CATEGORY_NONE is not a public symbol, it will be
11721         prefixed with "libstring_" when compiled as part of libunistring.
11722         To avoid undefined symbol at link time, increase the minimum
11723         version when the dependant modules are updated.
11724         * modules/unictype/category-none (configure.ac): Bump minimum
11725         version to 0.9.5.
11727 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11729         unitypes: fix build with installed libunistring
11730         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
11731         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
11732         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
11734 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11736         time: port to MinGW32 3.21
11737         Problem reported by Eli Zaretskii in:
11738         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
11739         * lib/time.in.h:
11740         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
11741         * modules/time (Depends-on):
11742         Fall back on unistd.h if the other include files don't define
11743         struct timespec.
11745         update-copyright: apply to self
11746         * build-aux/update-copyright: Fix copyright date.  How ironic!
11748 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11750         libunistring: update to Unicode 7.0.0
11751         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
11752         Manichaean names.
11753         * lib/unictype/joininggroup_name.h: Likewise.
11754         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
11755         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
11756         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
11757         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
11758         (fill_arabicshaping, joining_group_as_c_identifier): Support those
11759         enum values.
11760         (is_property_alphabetic): Accept newly added characters to
11761         cuneiform numeric signs.
11762         (is_property_default_ignorable_code_point): Reject U+0605.
11763         (FIELDLEN): Increase from 120 to 160.
11764         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
11765         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
11766         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
11767         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
11768         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
11769         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
11770         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
11771         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
11772         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
11773         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
11774         U+1E8D0..U+1E8D6.
11775         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
11776         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11777         lib/uniwidth/width.c.
11778         * all generated files under lib/uni* and tests/uni*: Regenerate.
11780 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11782         libunistring: update to Unicode 6.3.0
11783         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11784         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
11785         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
11786         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
11787         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
11788         Update WB5, WB9, WB10, WB13a, and WB13b.
11789         * tests/uniwbrk/test-uc-wordbreaks.c
11790         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
11791         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11792         (UC_BIDI_PDI): New enumeration values.
11793         (bidi_category_byname): Support those enum values.
11794         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
11795         dedicated property assigned.
11796         (is_property_case_ignorable): Check 0x0027.
11797         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11798         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11799         (output_wbp): Support those enum values.
11800         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11801         (UC_BIDI_PDI): New enumeration values.
11802         * lib/unictype/bidi_byname.gperf: Add those property names.
11803         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
11804         U+180E, U+1A1B, and U+2066..U+2069.
11805         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11806         lib/uniwidth/width.c.
11807         * all generated files under lib/uni* and tests/uni*: Regenerate.
11809 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11811         libunistring: update to Unicode 6.2.0
11812         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
11813         (unilbrk_table): Adjust table size.
11814         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11815         for LBP_RI.
11816         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
11817         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
11818         Normalize table index skipping ignored properties.
11819         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
11820         WBP_EXTEND and WBP_FORMAT, which are now computed without using
11821         the table.
11822         * lib/uniwbrk/wbrktable.h: Adjust table size.
11823         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
11824         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
11825         Support rule GB8a.
11826         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
11827         * tests/unigbrk/test-uc-is-grapheme-break.c
11828         (graphemebreakproperty_to_string): Support GBP_RI.
11829         * tests/uniwbrk/test-uc-wordbreaks.c
11830         (wordbreakproperty_to_string): Support WBP_RI.
11831         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
11832         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
11833         (output_lbp): Support LBP_RI.  Adjust some characters changed from
11834         LBP_AL to LBP_ID.
11835         (output_lbp): Support LBP_RI.
11836         (WBP_RI): New enumeration value.
11837         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11838         (output_wbp): Support WBP_RI.
11839         (GBP_RI): New enumeration value.
11840         (output_gbp_test, fill_org_gbp): Support GBP_RI.
11841         * all generated files under lib/uni* and tests/uni*: Regenerate.
11843 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11845         libunistring: update to Unicode 6.1.0
11846         * lib/gen-uni-tables.c (output_joining_group): Switch to
11847         3-level table to accommodate joining groups defined with higher
11848         codepoint value.  Since there are only 88 groups defined in
11849         Unicode 7.0.0, use 7-bit packed format for level3 entries.
11850         (get_lbp): Update for Unicode 6.1.0.
11851         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
11852         3-level table.
11853         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
11854         joining group name.
11855         * lib/unictype/joininggroup_name.h: Likewise.
11856         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
11857         (unilbrk_table): Adjust table size.
11858         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11859         for LBP_HL.
11860         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
11861         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
11862         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
11863         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
11864         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
11865         U+302E..U+302F.
11866         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11867         lib/uniwidth/width.c.
11868         * all generated files under lib/uni* and tests/uni*: Regenerate.
11869         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
11871 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11873         uniwbrk/u32-wordbreaks-tests: add conformance test
11874         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
11875         tests/uniwbrk/test-uc-wordbreaks.c,
11876         tests/uniwbrk/test-uc-wordbreaks.sh, and
11877         tests/uniwbrk/WordBreakTest.txt.
11878         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
11879         test-uc-wordbreaks to $(check_PROGRAMS), and define
11880         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
11881         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
11882         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
11884 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11886         uniwbrk: ignore Extended/Format characters at BOL not BOS
11887         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
11888         characters if the previous character property is one of
11889         WBP_NEWLINE, WBP_CR, and WBP_LF.
11891 2015-01-11  Jim Meyering  <meyering@fb.com>
11893         test-strstr.c: avoid a trivial leak
11894         * tests/test-strstr.c (main): Free haystack.
11896         update-copyright: recognize groff's \(co marker
11897         * build-aux/update-copyright (circle_c_re): Also accept
11898         uses of \(co, as found in gzip.1.
11900 2015-01-08  Pádraig Brady  <P@draigBrady.com>
11902         maint.mk: fix compatibility with OS X nm
11903         * top/maint.mk (_gl_tight_scope): Use the -g option to
11904         show exported items rather than the -e option which is
11905         ignored on all platforms except OS X where it gives an error.
11906         Reported by Assaf Gordon.
11908 2015-01-07  KO Myung-Hun  <komh@chollian.net>
11910         localcharset: improve charset detection on OS/2
11911         Use system codepage when appropriate.  Map OS/2 codepages to
11912         GNU canonical charset names if possible.
11913         * lib/config.charset: Don't output aliases if "$os" is os2*.
11914         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
11915         result for OS/2.
11916         (locale_charset) [OS2]: Use system codepage if codeset is omitted
11917         from the locale name which is neither "C" nor "POSIX".
11919 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
11921         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
11922         This reverts the last patch but one, as it shouldn't be needed now
11923         that the typo is fixed.
11924         * lib/count-leading-zeros.h (count_leading_zeros_ll):
11925         * lib/count-trailing-zeros.h:
11926         * lib/count-one-bits.h:
11927         Go back to using 64-bit intrinsics.
11929         count-leading-zeros: fix pragma typos
11930         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
11931         Fix typos in declaration of intrinsics when _MSC_VER.
11933 2015-01-06  Pádraig Brady  <P@draigBrady.com>
11935         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
11936         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
11937         intrinsics in this case.
11938         * lib/count-trailing-zeros.h: Likewise.
11939         * lib/count-one-bits.h: Likewise.
11941 2015-01-06  Daiki Ueno  <ueno@gnu.org>
11943         uniname/uniname: update to Unicode 7.0.0
11944         To accommodate new characters added since Unicode 5.1.0, this
11945         changes the internal representation of codepoint ranges.
11946         Previously, we grouped codepoint ranges by manually assigned 4-bit
11947         tag, which only allowed 16 groups.  This removes the limitation by
11948         switching to binary search on a table.  For the detail rationale
11949         and the benchmark results, see:
11950         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
11951         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
11952         to INDEX, as it no longer represents a codepoint.
11953         (range): New struct.
11954         (main): Switch to intervals list from a bit-pattern based
11955         classification.
11956         * lib/uniname/uninames.h: Regenerate.
11957         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
11958         * modules/uniname/base (configure.ac): Bump minimum version to
11959         0.9.5.
11960         * modules/uniname/uniname (configure.ac): Bump minimum version to
11961         0.9.5.
11963 2015-01-05  Eric Blake  <eblake@redhat.com>
11965         doc: update INSTALL from autoconf
11966         * doc/install.texi: Resync from autoconf.
11967         * doc/INSTALL: Reflect recent autoconf update.
11968         * doc/INSTALL.ISO: Likewise.
11969         * doc/INSTALL.UTF-8: Likewise.
11971         stdio: fix use of PRIdMAX on modern mingw
11972         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
11973         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
11974         to work with modern mingw.
11976 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
11978         pthread: detect git mingw builds with only partial pollution
11979         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
11980         pollution, as seen temporarily in Fedora 21.
11982 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11984         lib-symbol-versions: cache script check
11985         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
11986         Cache the check for linker version scripts.
11987         From a suggestion by Christophe Curis in:
11988         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
11990 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
11992         maint: fix grammar nits in propername (trivial change)
11993         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
11994         and use an adequate verb and tense.
11996 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
11998         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11999         * module/gendocs: Add 'doc/gendocs_template_min'.
12001         * build-aux/gendocs.sh: Change email addresses and upstream URLs
12002         from to Gnulib's.
12003         (scripturl, templateurl): Adjust accordingly.
12005 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12007         gendocs: copyright date and version fix
12008         Reported by Karl Berry in:
12009         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
12010         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
12011         Fix copyright date.
12012         * build-aux/gendocs.sh (scriptversion): Update.
12014 2015-01-01  Karl Berry  <karl@gnu.org>
12016         * doc/install.texi,
12017         * build-aux/mdate-sh,
12018         * build-aux/depcomp,
12019         * build-aux/config.guess,
12020         * build-aux/config.sub,
12021         * build-aux/ar-lib,
12022         * build-aux/compile: revert copyright updates (some from last
12023         year) in slaved files.
12025 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12027         version-etc: new year
12028         * doc/gnulib.texi:
12029         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
12030         * all files: Run 'make update-copyright'.
12032 2014-12-30  Pádraig Brady  <P@draigBrady.com>
12034         xstrtol: ensure errno is reset
12035         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
12036         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
12038         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
12040 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12042         utimens: fix dependency typo
12043         * modules/utimens (Depends-on): Remove 'assure'.
12044         This bug was introduced in the recent 'assure' patch.
12046 2014-12-22  Eric Blake  <eblake@redhat.com>
12048         docs: mention why libgen.h is bad
12049         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
12051 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12053         assure: new module
12054         This works better than 'assert' when compiling with -DNDEBUG,
12055         as it avoids some compiler diagnostics in that case.
12056         Reported by Norihiro Tanaka in:
12057         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
12058         * MODULES.html.sh (func_all_modules): Add 'assure'.
12059         * lib/assure.h, modules/assure: New files.
12060         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
12061         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
12062         Prefer 'assure' to 'assert'.
12063         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
12064         * modules/chdir-long, modules/cycle-check, modules/fchdir:
12065         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
12066         Depend on 'assure'.
12068 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
12070         stdalign: port better to HP compilers
12071         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
12072         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
12074         stdalign: work around Apple GCC 4.0 bug
12075         Reported by David Fang in:
12076         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
12077         * lib/stdalign.in.h (_Alignas):
12078         * m4/stdalign.m4 (gl_STDALIGN_H):
12079         Do not use aligned attribute with GCC 4.0 on Apple.
12081 2014-12-16  Pádraig Brady  <P@draigBrady.com>
12083         getcwd: fix test failure on OS X 10.9
12084         * m4/getcwd-path-max.m4: Avoid the replacement if it
12085         won't be effective due to the PATH_MAX limitation of lstat().
12086         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
12087         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
12088         for this case for use in tests, and also exclude this
12089         case when setting REPLACE_GETCWD.
12090         * tests/test-getcwd.c (test_long_name): Restrict the
12091         tested path length so that lstat() will not be passed
12092         a path greater than PATH_MAX.
12093         Also key a test condition on HAVE_OPENAT_SUPPORT rather
12094         than AT_FDCWD, since the latter is set unconditionally
12095         since Sep 2009 in commit 52c658e9.
12097 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
12099         parse-datetime: avoid a compiler warning with byacc (trivial)
12100         * lib/parse-datetime.y (yylex): Use the same prototype in the
12101         function definition as the declaration, to avoid a -Wstrict-prototypes
12102         warning seen when using byacc.
12104 2014-12-12  Daiki Ueno  <ueno@gnu.org>
12106         unicase/locale-language-tests: fix LOCALE_FR test
12107         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
12108         a French locale with traditional encoding.
12109         Reported by umerqayam in:
12110         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
12112 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12114         stddef: support C11's max_align_t
12115         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
12116         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
12117         Do not undef, as that might cause max_align_t to be defined twice.
12118         Instead, change use to check for _GL_STDDEF_WINT_T too.
12119         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
12120         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
12121         Check for max_align_t.
12122         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
12123         * modules/stddef-tests (Depends-on): Add stdalign.
12124         * tests/test-stddef.c: Test max_align_t.
12126 2014-12-11  Daiki Ueno  <ueno@gnu.org>
12128         unistd: fix iOS check conditional
12129         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
12130         as 0 or 1 in <TargetConditionals.h>, and the previous check always
12131         yielded true on non-iOS environment.
12132         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
12133         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
12134         they are defined.
12136 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
12138         posixtm: avoid compiler warning in a better way
12139         * lib/posixtm.c (IF_LINT): Remove.
12140         (year, posix_time_parse):
12141         Return true (not 0) if successful.  All callers changed.
12142         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
12144 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12146         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
12147         started with '/' on EMX.
12149 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12151         freopen: workaround freopen() on OS/2 kLIBC
12152         * lib/freopen.c (rpl_freopen): Workaround.
12153         * m4/freopen.m4: Add os2* case.
12155         get_shared_library_fullname: port to EMX
12156         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
12157         on EMX, respectively.
12158         (_DLL_InitTerm): New on EMX.
12159         (get_shared_library_fullname): Implement on EMX.
12161         find_executable: port to EMX
12162         * lib/progreloc.c (find_executable): Implement on EMX.
12164         sched: check struct sched_param in spawn.h as well
12165         * lib/sched.in.h: Include spawn.h on kLIBC.
12166         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
12168 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
12170         bootstrap: Allow perl modules in $buildreq
12171         * build-aux/bootstrap: Add case for perl modules.
12173 2014-12-08  Pádraig Brady  <P@draigBrady.com>
12175         apply _GL_ATTRIBUTE_PURE to some inline functions
12176         clang 3.4.2 flagged these inline functions as pure
12177         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
12178         * lib/sig-handler.h (get_handler): Likewise.
12179         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
12180         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
12182 2014-12-06  Pádraig Brady  <P@draigBrady.com>
12184         vasnprintf: fix potential use after free
12185         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
12186         flagged by clang-analyzer 3.4.2.
12188 2014-12-05  Pádraig Brady  <P@draigBrady.com>
12190         filevercmp, posixtm: avoid compiler warnings with -O3
12191         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
12192         * lib/posixtm.c: (IF_LINT): Define.
12193         (posix_time_parse): Use it to void a "may be used uninitialized"
12194         warning, seen only with -O3.
12196 2014-12-05  Bruno Haible  <bruno@clisp.org>
12198         Fix LDBL80_WORDS macro on big endian platforms.
12199         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
12200         LDBL80_WORDS macro.
12201         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12203         * tests/test-isfinite.c (test_isfinitel): Likewise.
12204         * tests/test-isinf.c (test_isinfl): Likewise.
12205         * tests/test-isnan.c (test_long_double): Likewise.
12206         * tests/test-isnanl.h (main): Likewise.
12207         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
12208         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
12209         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
12210         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
12211         Reported by Pádraig Brady.
12213 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
12215         git-version-gen: do not print new line characters
12216         * build-aux/git-version-gen: Use printf instead of echo and tr.
12218         gnulib-tool: recognize x:* as an absolute path
12219         * gnulib-tool (func_gnulib_dir): Add ?:* case.
12220         (func_relconcat): Likewise.
12222 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
12224         argp: avoid extraneous translation and mem leak with empty pre doc
12225         * lib/argp-help.c (argp_doc): Never translate the empty string,
12226         when "\v" is the first or last character of the string, as that
12227         has a reserved meaning to return the header info from a po file.
12228         This also fixes a small memory leak in the !post case.
12229         The issue can be seen with this command for example:
12230         LC_MESSAGES=en_US grub2-mknetdir --help
12232 2014-11-27  Daiki Ueno  <ueno@gnu.org>
12234         uniname/uniname-tests: skip if system's libunistring is used
12235         * modules/uniname/uniname-tests (Makefile.am): Skip test if
12236         uniname/uniname module is not compiled.
12238 2014-11-27  Pádraig Brady  <P@draigBrady.com>
12240         printf: fix configure check on big endian systems
12241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
12243 2014-11-22  Daiki Ueno  <ueno@gnu.org>
12245         pipe-filter-gi, pipe-filter-ii: port to AIX
12246         On AIX 7.1, 'select' is defined as static and cannot be referred
12247         to from inline function.
12248         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
12249         the definition...
12250         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
12251         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
12253 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12255         gitlog-to-changelog: add --until
12256         * build-aux/gitlog-to-changelog: Support new --until option.
12257         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
12259 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
12261         extern-inline: update commentary about GCC bugs
12262         * m4/extern-inline.m4: Add another GCC bug number to comments.
12264 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12266         gen-uni-tables: untabify
12267         * lib/gen-uni-tables.c: Untabify.
12269 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12271         gen-uni-tables: check out-of-range values added to 3-level tables
12272         * lib/gen-uni-tables.c (output_category, output_bidi_category)
12273         (output_joining_type, output_ident_category): Check out-of-range
12274         values added to 3-level tables.
12276 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12278         gen-uni-tables: utilize 'assert'
12279         * lib/gen-uni-tables.c: Include <assert.h>.
12280         (output_category, output_combclass, output_decimal_digit_test)
12281         (output_decimal_digit, output_digit_test, output_digit)
12282         (output_numeric, get_mirror_value, fill_properties)
12283         (fill_property30, is_property_alphabetic)
12284         (is_property_default_ignorable_code_point)
12285         (is_property_uppercase, is_property_lowercase)
12286         (is_property_cased, is_property_case_ignorable)
12287         (is_property_changes_when_lowercased, is_property_iso_control)
12288         (is_property_math, fill_arabicshaping, output_joining_group)
12289         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
12290         (output_wbp, fill_org_gbp, get_decomposition)
12291         (output_decomposition, fill_composition_exclusions)
12292         (debug_output_composition_tables, output_composition_tables)
12293         (redistribute_casefolding_rules, output_casing_rules): Use
12294         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
12295         reporting.
12297 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12299         gen-uni-tables: cosmetic improvements
12300         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
12301         variables specification.
12302         (is_outdigit): Remove unused function.
12304 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
12306         fcntl-h-tests: port to PA-RISC GNU/Linux
12307         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
12309 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12311         fts: port to C89
12312         Problem reported for MSVC 16 by Gisle Vanem in:
12313         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
12314         * lib/fts.c (fts_build): Avoid declaration before statement.
12316 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12318         unistd: port to iOS
12319         Problem reported by André Klitzing in:
12320         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
12321         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
12323 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12325         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
12326         Problem reported by Alan Modra in:
12327         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
12328         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
12329         Always cast the function arg, reverting this part of the previous
12330         change.
12332 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
12334         obstack: avoid potentially-nonportable function casts
12335         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
12336         Remove, replacing with ...
12337         (call_chunkfun, call_freefun): New static functions.
12338         All uses changed.  Avoid potentially-nonportable casts.
12339         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
12340         (_obstack_begin_worker): Omit last two args, since they
12341         rely on potentially-nonportable casts.  All callers changed.
12342         * lib/obstack.h (_OBSTACK_CAST): New macro.
12343         Use it everywhere the old API used a potentially-nonportable cast.
12344         The new API doesn't cast.
12345         (struct obstack): Use unions rather than requiring
12346         potentially-nonportable casts.
12347         (obstack_chunkfun, obstack_freefun): Return void.
12349 2014-11-03  Alan Modra  <amodra@gmail.com>
12351         obstack: fix macro return values
12352         * lib/obstack.h (obstack_next_free): Return void *.
12353         (obstack_1grow_fast, obstack_blank_fast): Return void.
12354         For __GNUC__ macros:
12355         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
12356         For !__GNUC__ macros:
12357         (obstack_make_room, obstack_grow, obstack_grow0)
12358         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
12360 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12362         obstack: do not assume system-supplied obstack is size_t safe
12363         * m4/obstack.m4: New file.
12364         * modules/obstack (Files): Add it.
12366         obstack: port to platforms that #define __alignof__
12367         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
12368         not if !_LIBC.  We don't know of any platforms that #define
12369         __alignof__, but it might be useful in tests.  Conversely,
12370         glibc assumes GCC.
12372 2014-11-03  Pádraig Brady  <P@draigBrady.com>
12374         linkat: don't unconditionally replace on GNU/Linux
12375         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
12376         was redundant for a few reasons.  It was present to support compiling
12377         on new systems but running on the old narrow window of Linux 2.6.1[67].
12378         It setup and cleaned up test files which weren't actually used.
12379         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
12380         implicit in the following check.
12382 2014-11-03  Pádraig Brady  <P@draigBrady.com>
12384         linkat: wrap to handle symlinks on OS X 10.10
12385         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
12386         but not usable because it doesn't support creating hardlinks
12387         to symlinks.  Therefore add a generic test for this capability
12388         and fallback to our emulation if linkat() fails with ENOTSUP.
12390 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12392         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
12393         * doc/posix-functions/open.texi (open):
12394         * doc/posix-functions/openat.texi (openat):
12395         Document that these functions do not set errno to ELOOP when
12396         a symlink is opened with O_NOFOLLOW.
12398 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12400         obstack: add NEWS entry for recent incompatible changes
12401         * NEWS: Describe recent changes.
12403 2014-10-30  Pádraig Brady  <P@draigBrady.com>
12405         mountlist: don't use libmount to decide on dummy/remote
12406         * lib/mountlist.c (read_file_system_list): Don't use the libmount
12407         routines to determine whether a file system is dummy or remote,
12408         as they're not currently compatible.  For example the remoteness
12409         is determined on file system type (for which the list seems incomplete),
12410         rather than simply checking for a ':' in the device name.
12411         Also libmount currently determines that 'tmpfs' is a dummy file system
12412         even though it has associated storage.
12414 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12416         obstack: prefer __alignof__ to alignof
12417         This is for portability to pre-4.7 GCC when compiling glibc.
12418         See Joseph S. Myers in:
12419         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
12420         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
12421         New macro, defined by including and using <alignof.h>.
12422         (MAX): New macro.
12423         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
12424         Do not use enums as they are not portable to some broken compilers.
12425         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
12427         obstack: prefer alignof to calculating alignments by hand
12428         * lib/obstack.c: Include <stdalign.h>.
12429         (struct fooalign): Remove.
12430         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
12431         * modules/obstack (Depends-on): Add stdalign.
12433 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
12435         obstack: use size_t alignments and check for overflow
12436         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
12437         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
12438         * lib/obstack.h (struct obstack.alignment_mask):
12439         Use _OBSTACK_SIZE_T, not int, for alignments.
12440         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
12441         overflows, e.g., when adding the alignment.
12443 2014-10-29  Alan Modra  <amodra@gmail.com>
12445         obstack: 64-bit obstack support, part 3
12446         This finally enables full 64-bit obstack support.  The glibc
12447         shared library specific code is removed from obstack.c too, and
12448         the error handling code conditionally compiled under control of
12449         another macro, _OBSTACK_NO_ERROR_HANDLER.
12450         * lib/obstack.h: Include string.h earlier.
12451         (_OBSTACK_INTERFACE_VERSION): Define.
12452         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
12453         * lib/obstack.c: Don't include shlib-compat.h.
12454         (OBSTACK_INTERFACE_VERSION): Delete.
12455         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
12456         glibc code is compatible with version 2.  Don't include stdio.h for
12457         __GNU_LIBRARY.
12458         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
12459         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
12460         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
12461         glibc shared library specific source.
12463         obstack: 64-bit obstack support, part 2
12464         This gets us 4G obstack support, without changing ABI
12465         compatibility, apart from possibly introducing some
12466         signed/unsigned comparison warnings in code that uses obstack.h.
12467         a) Replace "int" size parameters, return values, and macro local vars
12468            with _OBSTACK_SIZE_T, an "unsigned int" for now.
12469         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
12470         c) Make all obstack macros checking available room use obstack_room.
12471            "next_free + desired > chunk_limit" may wrap the lhs for chunks
12472            allocated near the top of memory.
12473         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
12474         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
12475         in place of "int" size parameters, return values and local vars.
12476         (_CHUNK_SIZE_T): Define.
12477         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
12478         union use an _OBSTACK_SIZE_T integer type.
12479         For __GNUC__ versions of the following macros...
12480         (obstack_room): Rename local var.
12481         (obstack_make_room): Use obstack_room.
12482         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
12483         obstack_int_grow, obstack_blank): Likewise.
12484         (obstack_finish): Use unsigned comparison when comparing aligned
12485         next_free against chunk_limit.
12486         (obstack_free): Cast OBJ to remove possible const qualifier.
12487         For !__GNUC__ versions of the following macros...
12488         (obstack_make_room): Use obstack_room.
12489         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
12490         obstack_int_grow, obstack_blank): Likewise.
12491         (obstack_finish): Use unsigned comparision when comparing aligned
12492         next_free against chunk_limit.
12493         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
12494         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
12495         _OBSTACK_SIZE_T.
12496         (_obstack_begin, _obstack_begin_1): Likewise.
12497         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
12498         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
12500         obstack: 64-bit obstack support, part 1
12501         a) Correct calls to alloc function, to use a size_t arg.  "long" is
12502            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
12503            and "size_t" 64 bits.
12504         b) Consolidate _obstack_begin and _obstack_begin1 code.
12505         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
12506         use "size_t" rather than "long".
12507         (_obstack_begin, _obstack_begin1): Likewise.
12508         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
12509         obstack_chunkfun): Update alloc function casts.
12510         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
12511         (chunkfun_type, freefun_type): New typdefs.
12512         (_obstack_begin_worker): Split out from ..
12513         (_obstack_begin, _obstack_begin_1): ..here.
12515         obstack: tidy part 2
12516         a) Don't be concerned about "not polluting the namespace with stddef.h
12517            symbols" in obstack.h, since gnulib string.h includes stddef.h
12518            anyway, and it seems unlikely that anyone would care.
12519         b) Don't roll our own slow memcpy in _obstack_newchunk.
12520         c) Rename obstack_free to _obstack_free.  This makes the naming
12521            consistent with other obstack functions and obviates the need for
12522            __obstack_free.  Ancient obstack.c defined both obstack_free and
12523            _obstack_free.  We continue to do that for _LIBC via an alias.
12524         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
12525            is clever, but nowadays gcc warns on undefined macros.  You'll get
12526            an undefined macro warning if simulating an old gcc with -U__GNUC__
12527            -U__GNUC_MINOR__ -D__GNUC__=1.
12528         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
12529         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
12530         (__obstack_free): Delete, update refs.
12531         (_obstack_free): Rename from obstack_free.
12532         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
12533         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
12534         * lib/obstack.c: Don't include stddef.h.
12535         (COPYING_UNIT): Delete.
12536         (_obstack_begin): Formatting fix.
12537         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
12538         (_obstack_free): Rename from __obstack_free, update alias.  Move
12539         undef of obstack_free to where it is needed.
12541         obstack: tidy part 1
12542         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
12543            to me, and result in overlong lines after later patches.
12544         b) Move error handling code, to avoid a forward declaration and to
12545            simplify later patches in this series.
12546         * lib/obstack.h (struct obstack <temp>): Rename fields of union
12547         and update all uses.
12548         * lib/obstack.c: Include stdlib.h earlier.
12549         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
12550         in file.
12551         (print_and_abort): Remove now redundant forward declaration.
12553 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12555         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
12556         Without this change, in bleeding-edge fileutils Autoconf complains
12557         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
12558         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
12559         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
12560         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
12562 2014-10-24  Daiki Ueno  <ueno@gnu.org>
12564         iconv: avoid false detection of non-working iconv
12565         The INBUF arguments of iconv can be either 'const char **'
12566         or 'char **'.  If CC is g++, the difference causes a compile error
12567         and thus leads to a false detection of non-working iconv.
12568         Reported by Eli Zaretskii and Werner LEMBERG in:
12569         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
12570         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
12571         iconv.  Bump serial number.
12573 2014-10-23  Pádraig Brady  <P@draigBrady.com>
12575         bootstrap: print more diagnostics for missing programs
12576         * build-aux/bootstrap: only suppress stderr when checking for
12577         alternative program names.  This supports programs issuing non
12578         standard error messages.
12580 2014-10-23  Pádraig Brady  <P@draigBrady.com>
12582         bootstrap: only update the gnulib submodule
12583         * build-aux/bootstrap: Restrict the "submodule update" command
12584         to the gnulib path.
12586 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12588         symlinkat: port to AIX 7.1
12589         * doc/posix-functions/symlinkat.texi (symlinkat):
12590         Mention AIX porting problem.
12591         * lib/symlinkat.c: Always include errno.h.
12592         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
12593         * lib/unistd.in.h (symlinkat): Add replacement machinery.
12594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
12595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
12596         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
12597         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
12598         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
12600         readlinkat: port to AIX 7.1
12601         * doc/posix-functions/readlink.texi (readlink):
12602         * doc/posix-functions/readlinkat.texi (readlinkat):
12603         Mention AIX porting problem.
12604         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
12605         New function.
12606         * lib/unistd.in.h (readlinkat): Add replacement machinery.
12607         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
12608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
12609         * modules/readlinkat (configure.ac): Also compile replacement
12610         if REPLACE_READLINKAT.
12611         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
12613 2014-10-12  Karl Berry  <karl@gnu.org>
12615         * doc/posix-functions/dirname.texi: remove spurious {.
12617 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
12619         basename, dirname: Improve documentation.
12620         * doc/posix-functions/basename.texi: Mention dirname module and
12621         base_name() function.
12622         * doc/posix-functions/dirname.texi: Mention dir_name() and
12623         mdir_name() functions.
12624         Suggested by Werner LEMBERG <wl@gnu.org>.
12626 2014-09-24  Jim Meyering  <meyering@fb.com>
12628         exclude: declare exclude_patopts static
12629         * lib/exclude.c (exclude_patopts): Declare static,
12630         to avoid triggering a -Wmissing-prototypes warning.
12631         The alternative (declaring it in the .h file) would
12632         require publicizing the private "struct patopts".
12634 2014-09-21  Werner Lemberg  <wl@gnu.org>
12636         dirname: support compilation with C++
12637         * lib/dirname.h: Add necessary C linkage declarations.
12639 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12641         qsort_r: include <config.h>
12642         Problem reported by Tom G. Christensen in:
12643         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
12644         * lib/qsort.c [!_LIBC]: Include <config.h> first.
12646 2014-09-16  Dylan Cali  <calid1984@gmail.com>
12648         avltree-list: avoid compiler warnings (trivial)
12649         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12650         -Werror=suggest-attribute=pure.
12651         * lib/gl_array_list.c: Likewise.
12652         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
12653         declaration to avoid -Werror=missing-prototypes.  This is not added
12654         to a header as only exported for tests.  Add (void) to the
12655         check_invariants() call to indicate we're discarding the result
12656         in this context which avoids -Werror=unused-value.  Note we don't
12657         use ignore_value here to avoid a dependency as we know we'll not
12658         be adding __attribute__((warn_unused_result)) to check_invariants().
12659         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
12661 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12663         qsort_r: new module, for GNU-style qsort_r
12664         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
12666 2014-09-15  Werner LEMBERG  <wl@gnu.org>
12668         strerror_r-posix: support compilation with C++
12669         * lib/strerror_r.c: Add necessary C linkage declarations.
12671 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
12673         fcntl-h: fix compilation with Intel C++ compiler (trivial)
12674         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
12676 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
12678         mountlist: use /proc/self/mountinfo when available
12679         Use libmount to propagate device IDs provided by Linux in
12680         /proc/self/mountinfo.  This will give more accurate output when
12681         using df in chroot'ed environments as the device IDs are not
12682         determined by stat() which may be inaccurate within the chroot.
12683         * lib/mountlist.c (read_file_system_list): Use the libmount routines
12684         from util-linux to parse "/proc/self/mountinfo" or fall back to
12685         standard getmntent() processing.
12686         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
12687         getmntent() is used, as is the case on GNU/Linux.
12689 2014-09-07  Eric Wong  <normalperson@yhbt.net>
12691         users.txt: add cmogstored
12692         cmogstored has used gnulib since the beginning in 2012 to support
12693         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
12695 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12697         Trivial change.
12698         * gnulib-tool: Use same options as build-aux/bootstrap to download
12699         PO files.
12701 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12703         Trivial change.
12704         * gnulib-tool: Fallback to wget when rsync of PO files fails.
12706 2014-09-04  Eric Blake  <eblake@redhat.com>
12708         maintainer-makefile: add syntax check for useless ';;'
12709         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
12711 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
12713         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
12714         Problem reported by Assaf Gordon in:
12715         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
12716         Apparently Ubuntu is doing some fancy link-time optimization
12717         that doesn't work with -lpthread but does work with -pthread.
12718         Work around the bug by preferring -pthread to -lpthread.
12719         * m4/pthread.m4 (gl_PTHREAD_CHECK):
12720         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
12721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12722         Treat -pthread like -lpthread.
12724 2014-09-04  Eric Blake  <eblake@redhat.com>
12726         error: drop spurious semicolon
12727         * lib/error.c (__error_at_line): Fix ';;'.
12729 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12731         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
12732         * m4/gnulib-common.m4 (AC_C_RESTRICT):
12733         Override AC_C_RESTRICT unconditionally.
12734         Update from autoconf, incorporating:
12735         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
12736         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
12738 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12740         manywarnings: add GCC 4.9 warnings
12741         Also, make it easier to maintain this in the future.
12742         * build-aux/gcc-warning.spec: Add -Wabi-tag,
12743         -Wconditionally-supported, -Wdelete-incomplete,
12744         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
12745         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
12746         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
12747         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
12748         only for older GCC versions that need them.  Handle
12749         -Wnormalized=nfc specially, so that the 'comm' command used
12750         for maintenance doesn't get confused.
12752 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12754         vasnprintf: fix bugs in width computation
12755         * lib/vasnprintf.c (VASNPRINTF):
12756         Rework previous change, which introduced a bug,
12757         to avoid the warning in a different way.
12758         Avoid undefined behavior if the width arg is less than -INT_MAX.
12759         Avoid unnecessary use of HAS_WIDTH local.
12761 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
12763         vasnprintf: Avoid signed/unsigned comparison warning.
12764         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
12765         compare end addr of generated string w/ maximum end addr.
12767 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12769         parse-datetime: Avoid pointer difference.
12770         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
12771         instead of calculating difference of pointers.  This removes an
12772         annoying warning, devoid of any use.
12774 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12776         qsort_r: new module, for GNU-style qsort_r
12777         This works even on FreeBSD, which has an incompatible qsort_r API.
12778         * MODULES.html.sh: Add it.
12779         * doc/glibc-functions/qsort_r.texi: It's now supported.
12780         * lib/qsort.c: New file, taken from glibc with minor changes
12781         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
12782         removed.
12783         * lib/qsort_r.c: New file, compiled only on FreeBSD.
12784         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
12785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
12786         * modules/qsort_r, modules/qsort_r-tests: New files.
12787         * modules/stdlib (Makefile): Set up its defaults.
12788         * tests/test-qsort_r.c: New file.
12790 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
12792         vla: new module
12793         GNU RCS can use this, mostly for documentation I expect.  See:
12794         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
12795         * MODULES.html.sh: Add vla.
12796         * lib/vla.h, modules/vla: New files.
12798 2014-08-07  Daiki Ueno  <ueno@gnu.org>
12800         localename: make gl_locale_name_thread really thread-safe on Windows
12801         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
12802         "glthread/lock.h".
12803         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
12804         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
12806 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
12808         getpass: don't assume struct termios
12809         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
12810         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
12811         * lib/getpass.c (getpass): Port to systems lacking struct termios.
12813         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
12814         Problem reported by Jonas 'Sortie' Termansen in:
12815         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
12816         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
12817         Implement via sysconf for platforms that lack getdtablesize.
12819         vararrays: modernize AC_C_VARARRAYS for C11
12820         This backports a change I recently made to Autoconf.
12821         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
12822         VLAs are not supported, as this is what C11 does.  The old macro
12823         HAVE_C_VARARRAYS is still defined if they are supported, but is
12824         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
12826 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
12828         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
12829         * build-aux/install-reloc (func_create_wrapper): Also wrap
12830         strerror-override, stat, stat.
12832 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
12834         sys_select: fix FD_ZERO problem on Solaris 10
12835         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
12836         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
12837         to expand to an expression that invoked memset without necessarily
12838         including <string.h>.  The problem was that the first include
12839         defined _SYS_TIME_H, causing the second include to short-circuit.
12840         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
12841         Also, fix what appears to be a cut-and-paste typo, by replacing
12842         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
12843         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
12845         accept: document Solaris 10 type glitch
12846         * doc/posix-functions/accept.texi (accept): Mention that
12847         Solaris 10 'accept' takes void * last arg, not socklen_t *.
12849 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
12851         extern-inline: port to FreeBSD, DragonFly
12852         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
12853         is present if either __DragonFly__ or __FreeBSD__ is defined.
12854         FreeBSD problem reported by Andrey Borzenkov in:
12855         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
12856         Also, worry about __APPLE__ only if __MACH__ is also defined,
12857         as this is more consistent with the rest of gnulib.
12858         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
12859         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
12861 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12863         regex: Make #if/#ifdef usage consistent for DEBUG
12864         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
12865         of the inconsistent usage of #if and #ifdef as that works with
12866         both Glibc and Gnulib's style.
12868 2014-07-31  Eric Blake  <eblake@redhat.com>
12870         openat-die: use _Noreturn markup
12871         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
12872         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
12873         _Noreturn.
12875 2014-07-30  Eric Blake  <eblake@redhat.com>
12877         test-open: port to cygwin, which lacks Fortify
12878         * tests/test-open.h (ALWAYS_INLINE): New macro.
12879         (__always_inline): Don't abuse internal symbol on non-glibc.
12881 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
12883         localename: Enforce declarations before statements.
12884         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
12885         first statement.
12887 2014-07-18  Jim Meyering  <meyering@fb.com>
12889         test-userspec: don't look up numeric user names
12890         * tests/test-userspec.c: I found a system for which getpwnam("0")
12891         returned a pointer to a non-root user's entry, and that made the
12892         test fail.
12893         (T): Prefix each numeric input with "+", to inhibit lookup.
12895 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
12897         localcharset, localename: MS-Windows support for non-default locales
12898         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
12899         falling back on the default system codepage, try extracting
12900         the codepage from what 'setlocale' returns.  This allows to
12901         take into account changes of the codeset due to non-default
12902         locale set by a previous call to 'setlocale'.
12903         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
12904         Define if not already defined.
12905         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
12906         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
12907         current locale by calling 'setlocale', then converting the
12908         locale name into LCID by calling 'get_lcid'.  This allows to
12909         take into account changes in the current locale from the
12910         default one, in contrast to GetThreadLocale.
12912 2014-07-14  Daiki Ueno  <ueno@gnu.org>
12914         announce-gen: avoid failure when Digest::SHA is installed
12915         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
12916         Digest::SHA1->new in print_checksums fails.
12917         * build-aux/announce-gen (digest_classes): New associative array
12918         for available message digest implementations.
12919         (print_locations): Use it.
12921 2014-07-13  Pádraig Brady  <P@draigBrady.com>
12923         gettext: revert "update macros to version 0.19"
12924         This reverts commit 9b9370ca, as it currently requires that
12925         developers of any project that explicitly uses the gettext module
12926         or implicitly uses it through the utimens-tests or
12927         futimens-tests modules, use gettext >= 0.19.
12928         However there are some stability and availablity issues with
12929         that version at present.  We can reinstate this soon, when stability
12930         is addressed and packages are more readily available.
12932 2014-07-12  Jim Meyering  <meyering@fb.com>
12934         regex: don't deref NULL upon heap allocation failure
12935         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
12936         failure in one more place.
12937         To trigger the segfault, configure grep -with-included-regex,
12938         build it, and run these commands:
12939         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
12940         I discovered this while replying to a private report from
12941         Jens Schleusener about excessive memory consumption by grep
12942         when using a regular expression like the one above.
12944 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12946         regex: fix memory leak in compiler
12947         Fix by Andreas Schwab in:
12948         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
12949         * lib/regcomp.c (parse_reg_exp): Deallocate partially
12950         constructed tree before returning error.
12952 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12954         announce-gen: avoid perl warnings
12955         * build-aux/announce-gen: add two minor checks to avoid
12956         "use of uninitialized value" warnings when command-line parameters are
12957         missing.
12959 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12961         localename: avoid -Wsuggest-attribute={const,pure} warnings
12962         * lib/localename.c (string_has): Tag internal function as pure.
12963         * lib/localename.h (gl_locale_name_default): Tag extern declaration
12964         as const when appropriate.
12966 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
12968         nl_langinfo: Fix last change.
12969         * lib/nl_langinfo.c (includes): Drop redundant include.
12971 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12973         error: Fix -Wundef warnings in glibc
12974         * lib/error.c [_LIBC]: Define default macros for
12975         glibc.
12976         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
12977         Check _LIBC before STRERROR_R_CHAR_P.
12979         error: Sync from glibc master
12980         * lib/error.c [_LIBC]: Remove INTUSE usage.
12981         (error_tail): Remove unused macro ALLOCA_LIMIT.
12982         Fix potential buffer overflow.  Fix potential NULL dereference
12983         in strcmp.
12985 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
12987         nl_langinfo: fix build under mingw
12988         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
12990 2014-07-09  Andrew D Warshall  <warshall@99main.com>
12992         mountlist: do not classify a bind-mounted dir entry as "dummy"
12993         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
12994         1-argument getmntent() (instead of assuming absence).
12996 2014-07-08  Eric Blake  <eblake@redhat.com>
12998         maint.mk: less syntax-check noise when SIGPIPE is ignored
12999         * top/maint.mk (_sc_header_without_use)
13000         (sc_require_config_h_first): Parse full list.
13002 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
13003             Paul Eggert  <eggert@cs.ucla.edu>
13005         nl_langinfo: CODESET on MS-Windows and more items from localeconv
13006         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
13007         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
13008         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
13009         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
13010         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
13011         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
13012         Include <stdio.h> if Microsoft Windows.
13013         Include <time.h> if !REPLACE_NL_LANGINFO.
13014         (ctype_codeset): New function, taken from rpl_nl_langinfo,
13015         and with improvements for Microsoft Windows.
13016         (rpl_nl_langinfo): Use it.
13017         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
13018         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
13019         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
13020         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
13021         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
13022         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
13023         corresponding values returned by 'localeconv'.  Compute the values
13024         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
13025         'strftime' with a suitable struct tm value.
13027 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13029         Bruno Haible has stepped down as maintainer.
13030         See Karl Berry in:
13031         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
13032         Daiki Ueno has volunteered to maintain libunistring; see:
13033         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
13034         * modules/gen-uni-tables, modules/libunistring:
13035         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
13036         * modules/unicase/base, modules/unicase/cased:
13037         * modules/unicase/empty-prefix-context:
13038         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
13039         * modules/unicase/locale-language, modules/unicase/special-casing:
13040         * modules/unicase/tocasefold, modules/unicase/tolower:
13041         * modules/unicase/totitle, modules/unicase/toupper:
13042         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
13043         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
13044         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
13045         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
13046         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
13047         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
13048         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
13049         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
13050         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
13051         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
13052         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
13053         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
13054         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
13055         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
13056         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
13057         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
13058         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
13059         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
13060         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
13061         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
13062         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
13063         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
13064         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
13065         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
13066         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
13067         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
13068         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
13069         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
13070         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
13071         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
13072         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
13073         * modules/unicase/ulc-casexfrm, modules/unicodeio:
13074         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
13075         * modules/uniconv/u16-conv-to-enc:
13076         * modules/uniconv/u16-strconv-from-enc:
13077         * modules/uniconv/u16-strconv-from-locale:
13078         * modules/uniconv/u16-strconv-to-enc:
13079         * modules/uniconv/u16-strconv-to-locale:
13080         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
13081         * modules/uniconv/u32-strconv-from-enc:
13082         * modules/uniconv/u32-strconv-from-locale:
13083         * modules/uniconv/u32-strconv-to-enc:
13084         * modules/uniconv/u32-strconv-to-locale:
13085         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
13086         * modules/uniconv/u8-strconv-from-enc:
13087         * modules/uniconv/u8-strconv-from-locale:
13088         * modules/uniconv/u8-strconv-to-enc:
13089         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
13090         * modules/unictype/bidicategory-all:
13091         * modules/unictype/bidicategory-byname:
13092         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
13093         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
13094         * modules/unictype/bidiclass-byname:
13095         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
13096         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
13097         * modules/unictype/block-all, modules/unictype/block-list:
13098         * modules/unictype/block-of, modules/unictype/block-test:
13099         * modules/unictype/category-C, modules/unictype/category-Cc:
13100         * modules/unictype/category-Cf, modules/unictype/category-Cn:
13101         * modules/unictype/category-Co, modules/unictype/category-Cs:
13102         * modules/unictype/category-L, modules/unictype/category-LC:
13103         * modules/unictype/category-Ll, modules/unictype/category-Lm:
13104         * modules/unictype/category-Lo, modules/unictype/category-Lt:
13105         * modules/unictype/category-Lu, modules/unictype/category-M:
13106         * modules/unictype/category-Mc, modules/unictype/category-Me:
13107         * modules/unictype/category-Mn, modules/unictype/category-N:
13108         * modules/unictype/category-Nd, modules/unictype/category-Nl:
13109         * modules/unictype/category-No, modules/unictype/category-P:
13110         * modules/unictype/category-Pc, modules/unictype/category-Pd:
13111         * modules/unictype/category-Pe, modules/unictype/category-Pf:
13112         * modules/unictype/category-Pi, modules/unictype/category-Po:
13113         * modules/unictype/category-Ps, modules/unictype/category-S:
13114         * modules/unictype/category-Sc, modules/unictype/category-Sk:
13115         * modules/unictype/category-Sm, modules/unictype/category-So:
13116         * modules/unictype/category-Z, modules/unictype/category-Zl:
13117         * modules/unictype/category-Zp, modules/unictype/category-Zs:
13118         * modules/unictype/category-all, modules/unictype/category-and:
13119         * modules/unictype/category-and-not, modules/unictype/category-byname:
13120         * modules/unictype/category-longname, modules/unictype/category-name:
13121         * modules/unictype/category-none, modules/unictype/category-of:
13122         * modules/unictype/category-or, modules/unictype/category-test:
13123         * modules/unictype/category-test-withtable:
13124         * modules/unictype/combining-class:
13125         * modules/unictype/combining-class-all:
13126         * modules/unictype/combining-class-byname:
13127         * modules/unictype/combining-class-longname:
13128         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
13129         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
13130         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
13131         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
13132         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
13133         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
13134         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
13135         * modules/unictype/digit, modules/unictype/joininggroup-all:
13136         * modules/unictype/joininggroup-byname:
13137         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
13138         * modules/unictype/joiningtype-all:
13139         * modules/unictype/joiningtype-byname:
13140         * modules/unictype/joiningtype-longname:
13141         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
13142         * modules/unictype/mirror, modules/unictype/numeric:
13143         * modules/unictype/property-all, modules/unictype/property-alphabetic:
13144         * modules/unictype/property-ascii-hex-digit:
13145         * modules/unictype/property-bidi-arabic-digit:
13146         * modules/unictype/property-bidi-arabic-right-to-left:
13147         * modules/unictype/property-bidi-block-separator:
13148         * modules/unictype/property-bidi-boundary-neutral:
13149         * modules/unictype/property-bidi-common-separator:
13150         * modules/unictype/property-bidi-control:
13151         * modules/unictype/property-bidi-embedding-or-override:
13152         * modules/unictype/property-bidi-eur-num-separator:
13153         * modules/unictype/property-bidi-eur-num-terminator:
13154         * modules/unictype/property-bidi-european-digit:
13155         * modules/unictype/property-bidi-hebrew-right-to-left:
13156         * modules/unictype/property-bidi-left-to-right:
13157         * modules/unictype/property-bidi-non-spacing-mark:
13158         * modules/unictype/property-bidi-other-neutral:
13159         * modules/unictype/property-bidi-pdf:
13160         * modules/unictype/property-bidi-segment-separator:
13161         * modules/unictype/property-bidi-whitespace:
13162         * modules/unictype/property-byname:
13163         * modules/unictype/property-case-ignorable:
13164         * modules/unictype/property-cased:
13165         * modules/unictype/property-changes-when-casefolded:
13166         * modules/unictype/property-changes-when-casemapped:
13167         * modules/unictype/property-changes-when-lowercased:
13168         * modules/unictype/property-changes-when-titlecased:
13169         * modules/unictype/property-changes-when-uppercased:
13170         * modules/unictype/property-combining:
13171         * modules/unictype/property-composite:
13172         * modules/unictype/property-currency-symbol:
13173         * modules/unictype/property-dash:
13174         * modules/unictype/property-decimal-digit:
13175         * modules/unictype/property-default-ignorable-code-point:
13176         * modules/unictype/property-deprecated:
13177         * modules/unictype/property-diacritic:
13178         * modules/unictype/property-extender:
13179         * modules/unictype/property-format-control:
13180         * modules/unictype/property-grapheme-base:
13181         * modules/unictype/property-grapheme-extend:
13182         * modules/unictype/property-grapheme-link:
13183         * modules/unictype/property-hex-digit:
13184         * modules/unictype/property-hyphen:
13185         * modules/unictype/property-id-continue:
13186         * modules/unictype/property-id-start:
13187         * modules/unictype/property-ideographic:
13188         * modules/unictype/property-ids-binary-operator:
13189         * modules/unictype/property-ids-trinary-operator:
13190         * modules/unictype/property-ignorable-control:
13191         * modules/unictype/property-iso-control:
13192         * modules/unictype/property-join-control:
13193         * modules/unictype/property-left-of-pair:
13194         * modules/unictype/property-line-separator:
13195         * modules/unictype/property-logical-order-exception:
13196         * modules/unictype/property-lowercase, modules/unictype/property-math:
13197         * modules/unictype/property-non-break:
13198         * modules/unictype/property-not-a-character:
13199         * modules/unictype/property-numeric:
13200         * modules/unictype/property-other-alphabetic:
13201         * modules/unictype/property-other-default-ignorable-code-point:
13202         * modules/unictype/property-other-grapheme-extend:
13203         * modules/unictype/property-other-id-continue:
13204         * modules/unictype/property-other-id-start:
13205         * modules/unictype/property-other-lowercase:
13206         * modules/unictype/property-other-math:
13207         * modules/unictype/property-other-uppercase:
13208         * modules/unictype/property-paired-punctuation:
13209         * modules/unictype/property-paragraph-separator:
13210         * modules/unictype/property-pattern-syntax:
13211         * modules/unictype/property-pattern-white-space:
13212         * modules/unictype/property-private-use:
13213         * modules/unictype/property-punctuation:
13214         * modules/unictype/property-quotation-mark:
13215         * modules/unictype/property-radical:
13216         * modules/unictype/property-sentence-terminal:
13217         * modules/unictype/property-soft-dotted:
13218         * modules/unictype/property-space:
13219         * modules/unictype/property-terminal-punctuation:
13220         * modules/unictype/property-test, modules/unictype/property-titlecase:
13221         * modules/unictype/property-unassigned-code-value:
13222         * modules/unictype/property-unified-ideograph:
13223         * modules/unictype/property-uppercase:
13224         * modules/unictype/property-variation-selector:
13225         * modules/unictype/property-white-space:
13226         * modules/unictype/property-xid-continue:
13227         * modules/unictype/property-xid-start:
13228         * modules/unictype/property-zero-width, modules/unictype/scripts:
13229         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
13230         * modules/unictype/syntax-c-whitespace:
13231         * modules/unictype/syntax-java-ident:
13232         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
13233         * modules/unigbrk/u16-grapheme-breaks:
13234         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
13235         * modules/unigbrk/u32-grapheme-breaks:
13236         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
13237         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
13238         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
13239         * modules/unigbrk/uc-is-grapheme-break:
13240         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
13241         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
13242         * modules/unilbrk/u16-width-linebreaks:
13243         * modules/unilbrk/u32-possible-linebreaks:
13244         * modules/unilbrk/u32-width-linebreaks:
13245         * modules/unilbrk/u8-possible-linebreaks:
13246         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
13247         * modules/unilbrk/ulc-possible-linebreaks:
13248         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
13249         * modules/uniname/uniname, modules/uninorm/base:
13250         * modules/uninorm/canonical-decomposition:
13251         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
13252         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
13253         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
13254         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
13255         * modules/uninorm/nfkc, modules/uninorm/nfkd:
13256         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
13257         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
13258         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
13259         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
13260         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
13261         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
13262         * modules/unistdio/base, modules/unistdio/u-printf-args:
13263         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
13264         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
13265         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
13266         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
13267         * modules/unistdio/u16-u16-sprintf:
13268         * modules/unistdio/u16-u16-vasnprintf:
13269         * modules/unistdio/u16-u16-vasprintf:
13270         * modules/unistdio/u16-u16-vsnprintf:
13271         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
13272         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
13273         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
13274         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
13275         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
13276         * modules/unistdio/u32-u32-asnprintf:
13277         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
13278         * modules/unistdio/u32-u32-sprintf:
13279         * modules/unistdio/u32-u32-vasnprintf:
13280         * modules/unistdio/u32-u32-vasprintf:
13281         * modules/unistdio/u32-u32-vsnprintf:
13282         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
13283         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
13284         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
13285         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
13286         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
13287         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
13288         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
13289         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
13290         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
13291         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
13292         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
13293         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
13294         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
13295         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
13296         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
13297         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
13298         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
13299         * modules/unistr/u16-check, modules/unistr/u16-chr:
13300         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
13301         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
13302         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
13303         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
13304         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
13305         * modules/unistr/u16-move, modules/unistr/u16-next:
13306         * modules/unistr/u16-prev, modules/unistr/u16-set:
13307         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
13308         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
13309         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
13310         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
13311         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
13312         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
13313         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
13314         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
13315         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
13316         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
13317         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
13318         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
13319         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
13320         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
13321         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
13322         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
13323         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
13324         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
13325         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
13326         * modules/unistr/u32-next, modules/unistr/u32-prev:
13327         * modules/unistr/u32-set, modules/unistr/u32-startswith:
13328         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
13329         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
13330         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
13331         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
13332         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
13333         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
13334         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
13335         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
13336         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
13337         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
13338         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
13339         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
13340         * modules/unistr/u8-check, modules/unistr/u8-chr:
13341         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
13342         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
13343         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
13344         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
13345         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
13346         * modules/unistr/u8-next, modules/unistr/u8-prev:
13347         * modules/unistr/u8-set, modules/unistr/u8-startswith:
13348         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
13349         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
13350         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
13351         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
13352         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
13353         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
13354         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
13355         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
13356         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
13357         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
13358         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
13359         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
13360         * modules/uniwbrk/base, modules/uniwbrk/table:
13361         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
13362         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
13363         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
13364         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
13365         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
13366         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
13367         * modules/uniwidth/width, modules/utf16-ucs4:
13368         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
13369         * modules/utf8-ucs4-unsafe:
13370         Change maintainer from Bruno Haible to Daiki Ueno.
13371         This is my guess at the libunistring modules; please feel free
13372         to fix if I guessed incorrectly.
13373         * modules/accept4, modules/acl, modules/acos, modules/acosf:
13374         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
13375         * modules/areadlink, modules/array-list, modules/array-mergesort:
13376         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
13377         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
13378         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
13379         * modules/binary-io, modules/bison-i18n, modules/btowc:
13380         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
13381         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
13382         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
13383         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
13384         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
13385         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
13386         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
13387         * modules/closedir, modules/concat-filename, modules/copy-file:
13388         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
13389         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
13390         * modules/csharpcomp-script, modules/csharpexec:
13391         * modules/csharpexec-script, modules/ctype, modules/diffseq:
13392         * modules/dprintf, modules/dprintf-posix, modules/dup:
13393         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
13394         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
13395         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
13396         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
13397         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
13398         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
13399         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
13400         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
13401         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
13402         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
13403         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
13404         * modules/findprog, modules/findprog-lgpl, modules/floor:
13405         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
13406         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
13407         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
13408         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
13409         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
13410         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
13411         * modules/freadable, modules/freadahead, modules/freadptr:
13412         * modules/freadseek, modules/freopen, modules/frexp:
13413         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
13414         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
13415         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
13416         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
13417         * modules/ftello, modules/full-read, modules/full-write:
13418         * modules/fwritable, modules/fwriteerror, modules/gcd:
13419         * modules/get-rusage-as, modules/get-rusage-data:
13420         * modules/getdtablesize, modules/getrusage, modules/gettext:
13421         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
13422         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
13423         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
13424         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
13425         * modules/iconv, modules/iconv-h, modules/iconv_open:
13426         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
13427         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
13428         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
13429         * modules/integer_length_ll, modules/ioctl, modules/isatty:
13430         * modules/isblank, modules/isnand, modules/isnand-nolibm:
13431         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
13432         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
13433         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
13434         * modules/javaexec, modules/javaexec-script, modules/javaversion:
13435         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
13436         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
13437         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
13438         * modules/lib-symbol-visibility, modules/libsigsegv:
13439         * modules/linked-list, modules/linkedhash-list, modules/list:
13440         * modules/localcharset, modules/locale, modules/localeconv:
13441         * modules/localename, modules/lock, modules/log, modules/log-ieee:
13442         * modules/log10, modules/log10-ieee, modules/log10f:
13443         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
13444         * modules/log1p, modules/log1p-ieee, modules/log1pf:
13445         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
13446         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
13447         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
13448         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
13449         * modules/logf, modules/logf-ieee, modules/login_tty:
13450         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
13451         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
13452         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
13453         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
13454         * modules/mbscspn, modules/mbsinit, modules/mbslen:
13455         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
13456         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
13457         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
13458         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
13459         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
13460         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
13461         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
13462         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
13463         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
13464         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
13465         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
13466         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
13467         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
13468         * modules/posix_spawn, modules/posix_spawn-internal:
13469         * modules/posix_spawn_file_actions_addclose:
13470         * modules/posix_spawn_file_actions_adddup2:
13471         * modules/posix_spawn_file_actions_addopen:
13472         * modules/posix_spawn_file_actions_destroy:
13473         * modules/posix_spawn_file_actions_init:
13474         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
13475         * modules/posix_spawnattr_getpgroup:
13476         * modules/posix_spawnattr_getschedparam:
13477         * modules/posix_spawnattr_getschedpolicy:
13478         * modules/posix_spawnattr_getsigdefault:
13479         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
13480         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
13481         * modules/posix_spawnattr_setschedparam:
13482         * modules/posix_spawnattr_setschedpolicy:
13483         * modules/posix_spawnattr_setsigdefault:
13484         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
13485         * modules/pow, modules/powf, modules/printf-frexp:
13486         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
13487         * modules/progname, modules/propername, modules/pselect:
13488         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
13489         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
13490         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
13491         * modules/read, modules/readdir, modules/readlink:
13492         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
13493         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
13494         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
13495         * modules/relocatable-script, modules/remainder:
13496         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
13497         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
13498         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
13499         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
13500         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
13501         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
13502         * modules/setlocale, modules/sh-quote, modules/shutdown:
13503         * modules/signal, modules/signbit, modules/sigpipe:
13504         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
13505         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
13506         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
13507         * modules/snippet/link-warning, modules/snippet/unused-parameter:
13508         * modules/snprintf, modules/snprintf-posix, modules/spawn:
13509         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
13510         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
13511         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
13512         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
13513         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
13514         * modules/streq, modules/strerror_r-posix, modules/striconv:
13515         * modules/striconveh, modules/striconveha, modules/strncat:
13516         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
13517         * modules/sublist, modules/sys_resource, modules/sys_utsname:
13518         * modules/sys_wait, modules/system-posix, modules/system-quote:
13519         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
13520         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
13521         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
13522         * modules/truncf, modules/truncf-ieee, modules/truncl:
13523         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
13524         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
13525         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
13526         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
13527         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
13528         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
13529         * modules/wait-process, modules/waitpid, modules/wcpcpy:
13530         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
13531         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
13532         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
13533         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
13534         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
13535         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
13536         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
13537         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
13538         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
13539         * modules/write, modules/xconcat-filename, modules/xlist:
13540         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
13541         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
13542         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
13543         * modules/y0, modules/y1, modules/yn:
13544         Remove Bruno Haible as maintainer; if he's the sole maintainer,
13545         change the maintainer to 'all'.  Let's hope someone volunteers.
13547 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
13549         mktime: merge #if/#ifdef usage from glibc
13550         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
13551         as that works with both Glibc's and Gnulib's style.
13552         See thread starting at Siddhesh Poyarekar's bug report at:
13553         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
13555 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
13557         git-version-gen: improve option descriptions
13558         * build-aux/git-version-gen: Mention that --prefix and --fallback
13559         have a mandatory argument.
13561 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
13563         regex: fix memory leak in compiler
13564         Fix by Andreas Schwab in:
13565         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
13566         * lib/regcomp.c (parse_expression): Deallocate partially
13567         constructed tree before returning error.
13569         regex: merge patch from libc
13570         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
13571         Combine __USE_BSD and __USE_SVID into __USE_MISC.
13572         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
13574 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13576         acl: port to gcc -Wredundant-decls
13577         From a request by Dmitry Antipov in:
13578         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
13579         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
13580         "#ifndef _GL_ACL_H".
13582 2014-06-11  Bruce Korb  <bkorb@gnu.org>
13583         Jim Meyering  <meyering@fb.com>
13585         parse-duration: eliminate 68-year duration limit
13586         * lib/parse-duration.c: Include "intprops.h".
13587         (TIME_MAX): Rename to MAX_DURATION and define to
13588         TYPE_MAXIMUM(time_t).
13589         * modules/parse-duration (Depends-on): Add intprops.
13590         Reported by Jonas 'Sortie' Termansen.
13592 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13594         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
13595         * modules/pthread (Depends-on): Add 'extensions', as it defines
13596         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
13597         (configure.ac-early): New section.
13598         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
13599         it is no longer needed.
13601 2014-06-14  Pádraig Brady  <P@draigBrady.com>
13603         pthread: define thread-safe macros on some platforms
13604         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
13605         for thread-safe operation on some platforms.
13607 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13609         regex: don't be multithreaded if USE_UNLOCKED_IO.
13610         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
13611         * lib/regex_internal.h: Do not use multithreaded version if
13612         USE_UNLOCKED_IO is defined.  This is a hack, but it works
13613         around a porting bug with coreutils 8.22 on AIX 7.1.
13615 2014-06-11  Daiki Ueno  <ueno@gnu.org>
13617         gettext: update macros to version 0.19
13618         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
13619         depend on gl_EXTERN_INLINE and drop support for older Bison
13620         versions.
13622 2014-06-10  Pádraig Brady  <P@draigBrady.com>
13624         select,poll: fix console handle check on windows 8
13625         lib/poll.c (IsConsoleHandle): Change from testing the lower
13626         2 bits of the handle to the more expensive but accurate syscall.
13627         lib/select.c: Likewise.
13629 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13631         select: fix waiting on anonymous pipes on MS-Windows
13632         * lib/select.c (rpl_select): Fall back to polling when select()
13633         indicates there is nothing to check, while due to the timeout not
13634         expiring, activity is indicated on one of the handles.
13635         Also clear the TIMEOUT argument if the timer does expire.
13637 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13639         times: fix to return non constant value on MS-Windows
13640         * lib/times.c (times): Don't use the process creation time,
13641         rather clock() which on windows returns the number of
13642         clock ticks since the process started.
13644 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
13646         isatty: fix to work on windows 8
13647         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
13648         2 bits of the handle to the more expensive but accurate syscall.
13650 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13652         maint: fix typo in fdl.texi
13653         * doc/fdl.texi: Fix typo (missing '@').
13654         Somehow this was in fdl.texi but not fdl-1.3.texi.
13656 2014-06-06  Ben Walton  <bdwalton@gmail.com>
13658         mountlist: avoid hasmntopt const type warning on solaris
13659         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
13660         with char * instead of const char *.  Passing the constant string
13661         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
13662         to avoid the warning.
13664 2014-06-04  Eric Blake  <eblake@redhat.com>
13666         maintainer-makefile: delete obsolete code
13667         * top/maint.mk (build_aux): Drop old code, as threatened.
13669         maintainer-makefile: avoid spurious error messages
13670         * top/maint.mk (syntax-check): Guard definition and use of
13671         $(shell) by whether Makefile is present.
13673 2014-06-03  Ben Walton  <bdwalton@gmail.com>
13675         rename: avoid unused-but-set-variable compiler warning
13676         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
13677         it is possible that dst_exists may be set but not used.  Mark it with
13678         the unused attribute to avoid compiler warnings.
13680 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13682         rename: mark a label as potentially unused
13683         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
13684         by marking the out label as potentially unused.
13685         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
13687 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13689         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
13690         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
13692 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13694         acl: apply pure attribute to two functions
13695         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
13696         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
13698 2014-06-01  Pádraig Brady  <P@draigBrady.com>
13700         gnulib-common.m4: add _GL_UNUSED_LABEL
13701         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
13702         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
13704 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
13706         dup2, fcntl, fcntl-h: port to AIX 7.1
13707         This fixes some porting problems discovered when testing the latest
13708         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
13709         in grep but it could be important for other applications.
13710         * doc/posix-functions/dup2.texi:
13711         * doc/posix-functions/fcntl.texi:
13712         * doc/posix-headers/fcntl.texi:
13713         Document AIX bugs.
13714         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
13715         Define to 0 if outside 'int' range.
13716         * m4/dup2.m4 (gl_FUNC_DUP2):
13717         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13718         Check for getdtablesize.  If it's available, test a value just
13719         outside its range instead of testing 1000000.  When cross-compiling,
13720         guess that AIX will fail this improved test.
13722 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13724         printf, config.rpath: Port to FreeBSD 10.
13725         Problem reported by Tijl Coosemans in:
13726         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
13727         * build-aux/config.rpath (hardcode_libdir_flag_spec)
13728         (hardcode_direct): Simplify FreeBSD configuration.
13729         (library_names_spec): Don't mishandle FreeBSD 10+.
13730         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
13731         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
13732         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
13733         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
13734         Don't mishandle FreeBSD 10+ when cross-compiling.
13736         ftoastr: work around compiler bug in IBM xlc 12.1
13737         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
13738         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
13739         around a compiler bug in IBM xlc 12.1.0.0: it complains
13740         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
13741         _GL_FLT_PREC_BOUND.'
13743 2014-05-30  Kieran Colford  <colfordk@gmail.com>
13745         valgrind-tests: fixed misleading help message
13746         * m4/valgrind-tests.m4: The help message generated by configure
13747         implied that valgrind was disabled by default, which it wasn't.
13748         Adjusted the help message using s/enable/disable/ to clarify.
13750 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
13752         isfinite, isinf, isnan tests: fix for little-endian PowerPC
13753         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
13754         first double of a PowerPC "double double" pair.
13755         * tests/test-isinf.c (test_isinfl): Likewise.
13756         * tests/test-isnan.c (test_long_double): Likewise.
13757         * tests/test-isnanl.h (main): Likewise.
13758         * tests/test-signbit.c (test_signbitl): Likewise.
13760 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13762         exclude-tests: port to AIX 7.1
13763         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
13764         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
13765         the regex code uses locks.
13767 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
13769         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
13770         Without this fix, Emacs would sometimes call sigprocmask instead
13771         of pthread_sigmask, which is a no-no in multithreaded applications.
13772         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
13773         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13774         Suppress check for pthread_sigmask working without -lpthread if
13775         the application always links with -lpthread.  Do not link with
13776         $LIBMULTITHREAD if gl_THREADLIB is not defined.
13777         * m4/timer_time.m4 (gl_TIMER_TIME):
13778         Require gl_THREADLIB only if it is defined.  Do not append
13779         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
13781 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
13783         gnulib-tool: wget translations using --no-verbose rather than --quiet
13784         This allows the user to see error messages if any (--quiet hides them)
13785         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
13787 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
13789         gnulib-tool: adjust translation wget to avoid a https redirection
13790         Context: http://translationproject.org/latest/gnulib redirects to
13791            https://translationproject.org/latest/gnulib/
13792         Rationale: if the user falls back to wget, she doesn't have rsync and
13793         is probably in a minimal build environment, where packages such as
13794         'ca-certificates' are missing as well, resulting in a failed (and
13795         difficult to detect since ignored) translation initial fetch.
13796         Consequently let's avoid https if possible, and add the missing
13797         trailing slash.  This also avoids an unnecessary 302 redirection.
13798         * gnulib-tool: Add trailing slash to gnulib URL.
13800 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13802         getlogin_r-tests: check return value rather than errno
13803         * tests/test-getlogin_r.c (main): As per POSIX we should be
13804         verifying the return value from getlogin_r() rather than errno.
13806 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13808         getlogin_r-tests: fix various issues in recent change
13809         * tests/test-getlogin_r.c: Include required headers that were
13810         missed in recent commit eec20b4e.
13811         Also consistently check the errno rather than the return value from
13812         getlogin_r as POSIX only specifies that non zero is returned on error.
13813         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
13815 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13817         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
13818         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
13819         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
13820         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
13821         * lib/spawn-pipe.c:
13822         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
13823         and then 'int open64(const char *, int, ...);', which means the
13824         declaration for 'open' gets lost if we later '#undef open'.
13825         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
13826         where the compilation reported the non-fatal error "In function
13827         'openat_proc_name' ... warning: implicit declaration of function
13828         'open'".  In this case the error is relatively harmless, but in
13829         other cases it might not be so minor.
13831 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13833         xalloc: don't potentially generate invalid code for xmemdup calls
13834         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
13835         this function can initialize the newly-allocated storage with new
13836         pointers, which means this function is not malloc-like.  See:
13837         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
13839 2014-05-19  Pádraig Brady  <P@draigBrady.com>
13841         getlogin_r-tests: avoid false failure under sudo/ssh etc.
13842         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
13843         changes from commit 97249cf29 to not depend on environment variables.
13845 2014-05-18  Pádraig Brady  <P@draigBrady.com>
13847         getlogin-tests: avoid false failure under cron
13848         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
13849         since that's not what's under test.  Centos 6 was seen to return
13850         EINVAL for ttyname() when run from cron.
13852 2014-05-16  Jim Meyering  <meyering@fb.com>
13854         mbrtowc.m4: fix a comment typo
13855         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
13856         emitted documentation string.
13858 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13860         mbrlen, mbrtowc: fix bug with empty input
13861         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
13862         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
13863         so this is mainly for documentation.
13864         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
13865         (gl_FUNC_MBRTOWC): Use it.
13866         * tests/test-mbrtowc.c (main): Test for the bug.
13868 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13870         doc: document mbrtowc and mbrlen problem with empty input
13871         * doc/posix-functions/mbrlen.texi (mbrlen):
13872         * doc/posix-functions/mbrtowc.texi (mbrtowc):
13873         Document portability problem when the input string is empty.  See:
13874         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
13876         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
13877         Problem reported by Eli Zaretskii in:
13878         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
13879         * doc/posix-functions/execl.texi (execl):
13880         * doc/posix-functions/execle.texi (execle):
13881         * doc/posix-functions/execlp.texi (execlp):
13882         * doc/posix-functions/execv.texi (execv):
13883         * doc/posix-functions/execve.texi (execve):
13884         * doc/posix-functions/execvp.texi (execvp):
13885         Mention spawn+exit problem on non-Cygwin Windows platforms.
13887 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
13889         getlogin-tests: avoid false failure under sudo/ssh etc.
13890         * modules/getlogin-tests (configure.ac): Check for ttyname().
13891         * tests/test-getlogin.c (main): Don't depend on environment variables
13892         to correlate with getlogin(), since sudo and ssh etc. can tamper
13893         with the LOGNAME and USER env vars.  Instead lookup the name from
13894         the uid associated with the stdin tty.
13896 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13898         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
13899         These were found when building the latest grep snapshot on IRIX 6.5.
13900         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
13901         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
13902         never used later.
13903         * lib/quotearg.c (quoting_options_from_style):
13904         * lib/xstrtol.c (__xstrtol):
13905         Use enum instead of 0, to pacify IRIX 6.5 cc.
13907 2014-04-18  Pádraig Brady  <P@draigBrady.com>
13909         gitlog-to-changelog: revert inclusion of git-log-fix file
13910         * build-aux/git-log-fix: Delete dummy file.
13911         * modules/gitlog-to-changelog: Don't reference (overwrite)
13912         the project specific git-log-fix file.
13914 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
13916         maint.mk: Relax the copyright check to cater for non FSF projects
13917         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
13918         to not require the "Free" suffix after the copyright years.
13920 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
13922         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
13923         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
13924         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
13925         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
13926         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
13928 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
13930         exclude: port to strict C99
13931         Strict C does not allow converting a function pointer to void *
13932         and vice versa.  Pass a pointer to a function pointer instead.
13933         * lib/exclude.c (add_exclude_file):
13934         Pass the address of the function pointer.
13935         (call_addfn): And deference the address here, to match.
13937 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
13939         regex: do not depend on malloc-gnu
13940         * modules/regex (Depends-on): Remove malloc-gnu.
13941         It's no longer needed, because of the 2012-12-29 patch
13942         "regex: port to hosts where malloc (0) == NULL".
13943         Reported by Nathan Kennedy in:
13944         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
13946 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
13948         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
13949         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
13950         * doc/posix-functions/expl.texi: Mention the workaround.
13952 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13954         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
13955         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
13956         size to be zero even when the pointer is nonnull.  This
13957         accommodates the use case where P is malloc (0) and *PN is 0 on a
13958         host where malloc (0) yields nonnull.
13960 2014-04-09  Eric Blake  <eblake@redhat.com>
13962         fts: avoid unnecessary strlen calls
13963         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
13965 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13967         fts: avoid unnecessary strlen calls
13968         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
13969         when that can be faster than strlen.
13971 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13973         fts: avoid unnecessary strlen calls
13974         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
13975         (fts_build): Store the length of the dp->d_name entry in a local variable
13976         instead of calling strlen() several times via the above, removed macro.
13977         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
13978         run by ~4%, yet this reduces the execution time by about a third if run
13979         via "ltrace -c rm -rf some-dir".
13981 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13983         obstack: Remove ancient NeXTSTEP gcc support conditional
13984         This change will ease merging with glibc.  The "#if ... __NEXT__"
13985         causes a warning with -Wundef which glibc now enables by default.
13986         Problem reported by Will Newton in
13987         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
13988         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
13989         so go with that.
13990         * lib/obstack.h (__extension__):
13992 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13994         obstack: merge with glibc changes
13995         * lib/obstack.c, lib/obstack.h: Merge from glibc.
13996         This is mostly indenting and commentary changes.
13997         Instances of 'register' have been removed.
13999 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14001         strftime: wrap macros in "do {...} while(0)"
14002         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
14003         this macro in "do {...} while(0)" to prevent false use as a
14004         single statement, e.g., in an un-braced "{}" else-block.
14005         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
14006         (strftime_case_): Remove 'else' after 'goto' - which was the
14007         only non-fatal, un-braced use of one of the above macros.
14008         Spotted by coverity (NESTING_INDENT_MISMATCH).
14010 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14012         modechange: avoid memory leaks for invalid octal modes
14013         * lib/modechange.c (mode_compile): During the parsing of
14014         notations like +40, free the 'mc' buffer for invalid mode
14015         strings like +17777 (greater than the maximum octal mode),
14016         =18 (bad octal mode characters) or u=1 ('affected' with
14017         octal modes).
14018         Reproducer, e.g.:
14019             $ valgrind --leak-check=full chmod +17777 file
14020         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
14021         add notations +40, 00440, etc.".
14022         Spotted by coverity (RESOURCE_LEAK).
14024 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14026         gitlog-to-changelog: include a dummy git-log-fix file
14027         Problem reported by Nathan Stratton Treadway in:
14028         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
14029         * build-aux/git-log-fix: New file.
14031 2014-03-13  Jim Meyering  <meyering@fb.com>
14033         gitlog-to-changelog: also include the file, git-log-fix
14034         * modules/gitlog-to-changelog (Files): Add git-log-fix.
14035         Reported by Assaf Gordon.
14037 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
14039         regex: port to OS X 10.8.5 en_US.UTF-8 locale
14040         This fixes a bug when ignoring case and when comparing the
14041         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
14042         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
14043         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
14044         titlecase letter is neither lowercase nor uppercase, but
14045         uppercasing the titlecase letter (via towupper) yields the
14046         uppercase letter, so the two letters should match when ignoring case.
14047         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
14048         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
14049         Don't test whether a character is lowercase before uppercasing it.
14051 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
14053         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
14054         This is basically one of the options Bruno Haible proposed in:
14055         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
14056         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
14057         * lib/stdint.in.h: Use it.
14058         * modules/stdint (Depends-on): Add sys_types.
14060 2014-02-26  Pádraig Brady  <P@draigBrady.com>
14062         parse-datetime: fix crash or infloop in TZ="" parsing
14063         * lib/parse-datetime.y (parse_datetime): Break out of the
14064         TZ="" parsing loop once the second significant " is found.
14065         Also skip over any subsequent whitespace to be consistent
14066         with the non TZ= case.
14067         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
14069 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14071         savedir: new symbol for fast-read version
14072         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
14073         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
14074         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
14075         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
14077 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14079         unistd: port readlink to Mac OS X 10.3.9
14080         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
14081         around self-include problem in Mac OS X 10.3.9 when combined with
14082         readlink module.  Problem reported by Klaus Zietler in
14083         <http://bugs.gnu.org/16825>.
14085 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14087         diffseq: remove TOO_EXPENSIVE heuristic
14088         Problem with diffutils reported by Vincent Lefevre in
14089         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
14090         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
14091         Although appropriate for circa-1993 hardware, these days the heuristic
14092         seems to be more trouble than it's worth.
14093         * lib/diffseq.h: Modernize citations.
14094         (struct context): Remove member too_expensive.
14095         All uses changed.
14096         (struct partition): Remove members lo_minimal, hi_minimal.
14097         All uses changed.
14098         (diag, compareseq): Remove arg find_minimal.  All uses changed.
14099         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
14100         1993 to make 'diff' run faster (but not as well) on large inputs.
14101         These days, computers are fast enough that it's typically better
14102         to run slower but more accurately.
14103         * lib/fstrcmp.c: Remove duplicate comment.
14104         * lib/fstrcmp.c (strcmp_bounded):
14105         * lib/git-merge-changelog.c (compute_differences):
14106         Adjust to diffseq.h changes.
14107         * NEWS: Document the change.
14109         savedir: simplify by using stpcpy
14110         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
14111         (streamsavedir): Use stpcpy instead.
14112         * modules/savedir (Depends-on): Add stpcpy.
14114 2014-02-21  Pádraig Brady  <P@draigBrady.com>
14116         spawn: fix link error on uclibc
14117         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
14118         to incorporate -lrt if needed (on uclibc for example).
14119         * modules/posix_spawn: Reference the substituted LIB.
14121 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
14122         timer: fix uClibc detection of threading
14123         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
14124         enabled in uClibc.
14126 2014-02-21  Eric Blake  <eblake@redhat.com>
14128         maintainer-makefiles: provide AC_PROG_SED for older autoconf
14129         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
14131 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14133         exclude: add support for posix regexps
14135         This commit adds support for POSIX extended regular expressions
14136         and fixes a long-standing memory leak (pattern buffer was never
14137         freed).  It also implements a new interface function to read
14138         exclude patterns from a FILE, which passes an additional parameter
14139         to its callback function, thereby allowing to preserve its state
14140         between invocations.
14142         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
14143         (pattern_buffer): New struct.
14144         (exclude): New member patbuf.
14145         (exclude_add_pattern_buffer): New function.
14146         (free_exclude_segment): Free regexps.
14147         (free_exclude): Free allocated pattern buffers.
14148         (exclude_patopts): New function.
14149         (file_pattern_matches): Use exclude_patopts.
14150         (add_exclude): support regexps.
14151         (add_exclude_fp): New function.
14152         (add_exclude_file): Rewrite using add_exclude_fp.
14153         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14154         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14155         (add_exclude_fp)
14156         (add_exclude_file): Rewrite using add_exclude_fp.
14157         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14158         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14159         (add_exclude_fp)
14160         (exclude_add_pattern_buffer): New prototypes.
14161         * modules/exclude: Depends on regex and filename.
14163 2014-02-20  Eric Blake  <eblake@redhat.com>
14165         maintainer-makefiles: use $(SED) for syntax check
14166         * modules/maintainer-makefile (configure.ac): Check for sane sed.
14167         * top/maint.mk: Change sed to $(SED).
14169 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
14170             Paul Eggert  <eggert@cs.ucla.edu>
14172         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
14173         Patch based on an idea by Dick Streefland in
14174         <https://savannah.gnu.org/patch/?7892>.
14175         * NEWS: Document this.
14176         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
14177         (direntry_t, comparison_function): New types.
14178         (direntry_cmp_name): New function.
14179         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
14180         (streamsavedir, savedir): New arg OPTION.
14181         (streamsavedir): Simplify memory allocation.
14182         (fdsavedir): Remove.
14183         * lib/savedir.h (enum savedir_option): New type.
14184         (streamsavedir, savedir): New arg OPTION.
14185         (fdsavedir): Remove.
14187 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14189         file-type: add support for doors and other less-common file types
14190         Problem with S_ISDOOR reported by Rich Burridge.
14191         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
14192         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
14193         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
14195 2014-01-23  Eric Blake  <eblake@redhat.com>
14197         pthread: work around winpthread header pollution on mingw
14198         * lib/time.in.h: Move pthread workarounds...
14199         * lib/pthread.in.h: ...here.
14200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
14201         detect macro pollution on mingw.
14202         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
14204 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14206         qacl: check for fchmod
14207         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
14208         and qset-acl.c both use HAVE_FCHMOD.
14210 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14212         fdopen-tests: port to Tru64
14213         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
14214         descriptor that is not open, as POSIX doesn't specify the
14215         resulting behavior and the test does not work on Tru64.
14216         Problem reported by Steven M. Schweda in:
14217         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
14219         stdalign: port to HP-UX compilers
14220         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
14221         if __HP_cc or __HP_aCC are nonzero.
14223 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14225         strtoimax: port to platforms lacking 'long long'
14226         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
14227         check whether strtoll is declared, which causes the C file to
14228         wrongly report an error.  Problem reported by Steven M. Schweda in:
14229         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
14230         * lib/strtoimax.c (strtoull):
14231         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
14232         (strtoll): Declare only if HAVE_LONG_LONG_INT.
14234 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
14236         relocatable-perl: fix texi syntax
14237         * doc/relocatable-maint.texi: Escape braces.
14239 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
14241         relocatable-perl: like relocatable-script, but for Perl scripts
14242         * build-aux/relocatable.pl.in: Add.
14243         * doc/relocatable-maint.texi: Add documentation.
14244         * modules/relocatable-perl: Add.
14246 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
14248         tests: fix export bug in previous patch
14249         Problem reported by Jim Meyering.
14250         * tests/init.sh (re_shell): New var, which is exported instead of
14251         re_shell_.
14253         tests: simplify porting to Solaris 10 /bin/sh
14254         Some test cases in 'grep' need a shell that groks '$(';
14255         export re_shell_ for their benefit.  Problem reported for 'grep'
14256         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
14257         * tests/init.sh (re_shell_): Export if it's used.
14259 2014-01-06  Eric Blake  <eblake@redhat.com>
14261         md5, sha1, sha256, sha512: support older autoconf
14262         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
14263         for autoconf < 2.63b.
14265         include_next: port to autoconf 2.63
14266         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
14268 2014-01-04  Jim Meyering  <meyering@fb.com>
14270         maint: add a gnulib-local rule to keep non-ascii out of .texi files
14271         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
14272         so that "make sc_maint" will ding anyone who puts non-ascii
14273         in any of gnulib's .texi files.
14275 2014-01-03  Jim Meyering  <meyering@fb.com>
14277         freadable, fwritable, fwriting: declare with the "pure" attribute
14278         * lib/freadable.h (freadable): Declare with the "pure" attribute.
14279         * lib/fwritable.h (fwritable): Likewise.
14280         * lib/fwriting.h (fwriting): Likewise.
14281         Suggested by Bruno Haible.
14283         maint.mk: adapt openat.h-include-without-use test
14284         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
14285         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
14286         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
14287         With this change, running "make sc_maint" in gnulib's top-level
14288         directory now passes for me.
14290 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14292         doc: use ASCII in .texi files where UTF-8 isn't needed
14293         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
14294         * doc/posix-functions/setkey.texi, doc/regex.texi:
14295         Use ASCII input, not UTF-8.
14297 2014-01-02  Jim Meyering  <meyering@fb.com>
14299         freading: declare with the "pure" attribute
14300         * lib/freading.h (freading): Declare with the "pure" attribute.
14302         manywarnings: remove -Wmudflap
14303         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
14304         it is no longer supported in gcc-4.9-to-be.
14306 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14308         relocatable-script: remove unused code
14309         Problem reported by Reuben Thomas in:
14310         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
14311         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
14313 2014-01-01  Jim Meyering  <meyering@fb.com>
14315         maint: fix public-submodule-commit to work with newer git
14316         * top/maint.mk (public-submodule-commit): Remove excess quoting.
14317         We were over-quoting the test arguments, and somewhere prior to
14318         version 1.8.5.2.229, git stopped removing those excess quotes,
14319         which made the test fail, since the unexpanded strings would
14320         always differ; using GIT_TRACE=1 confirmed that the git merge-base
14321         command wasn't even being run.
14323 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14325         doc: update main copyright year
14326         * doc/gnulib.texi: Update copyright date.
14328 2014-01-01  Eric Blake  <eblake@redhat.com>
14330         version-etc: new year
14331         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
14332         * all files: run 'make update-copyright'
14334 2013-12-24  Eric Blake  <eblake@redhat.com>
14336         passfd: give nicer error for recvfd at eof
14337         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
14338         * tests/test-passfd.c (main): Enhance test to cover this.
14340 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14342         gettimeofday: port recent C++ fix to Emacs
14343         Without this further patch, Emacs won't build due to
14344         the portcheck failing.  Also, this simplifies the patch a bit.
14345         * lib/time.in.h (localtime, gmtime): Don't replace unless
14346         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
14347         * lib/time.in.h (localtime, gmtime):
14348         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
14349         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14350         * modules/time (time.h):
14351         Don't worry about the possibility of localtime and gmtime
14352         being absent; they're present in all C libraries we know about.
14353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14354         Don't assume sys_time is present and has been initialized.
14355         Instead, use a hack that should work even if it hasn't been.
14356         Don't use a portcheck for gmtime or localtime; this supports
14357         the hack.
14358         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
14360 2013-12-17  John W. Eaton  <jwe@gnu.org>
14362         gettimeofday: fix C++ crosscompilation
14364         Never replace gmtime and localtime by macros when compiling with
14365         C++, this prevents <ctime> from being included.
14367         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
14368         define gmtime and localtime as preprocessor macros.  Instead
14369         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
14370         REPLACE_LOCALTIME substitutions.
14371         * lib/time.in.h: Declare gmtime and localtime when needed.
14372         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
14373         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
14374         * modules/time: Depend on gettimeofday, and substitute the above
14375         variables in time.h.
14377 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14379         qacl: port to Windows better
14380         See Eli Zaretskii in
14381         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
14382         * lib/file-has-acl.c (acl_access_nontrivial):
14383         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
14384         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
14386 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
14388         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
14389         * lib/gl_openssl.h: Cast void pointers to a specific type.
14391 2013-12-07  Pádraig Brady  <P@draigBrady.com>
14393         open-tests: fix build failure with -Werror=old-style-declaration
14394         * tests/test-open.h: Reorder the inline to avoid the issue.
14396 2013-12-07  Pádraig Brady  <P@draigBrady.com>
14398         md5, sha1, sha256, sha512: fix link error with partial libcrypto
14399         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
14400         init time, so that if early checks find crypto routines,
14401         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
14402         avoiding link failures.
14404 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14406         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
14407         This provides a new way to specify the default for
14408         gl_CRYPTO_CHECK, one that is reflected in the --help message.
14409         Emacs uses this, as well as the old way.
14410         This attempts to implement a suggestion by Pádraig Brady in
14411         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
14412         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
14413         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
14415         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
14416         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
14417         Add support for a new option, --with-openssl=auto, which causes
14418         the library to be used if available and silently ignored if not.
14419         Add support to allow configure.ac to specify its own
14420         default, by setting with_openssl_default before invoking gl_INIT.
14422 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14424         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
14425         Problem reported by Daiki Ueno in:
14426         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
14427         * tests/test-open.h (__always_inline):
14428         New macro, if not already defined.
14429         (test_open): Use it.
14431 2013-12-04  Eric Blake  <eblake@redhat.com>
14433         include_next: minimize code duplication
14434         * modules/include_next (Depends-on): Add absolute-header.
14435         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
14436         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
14438 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14440         getcwd: fix compile error in configure check
14441         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
14443 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14445         regex: suppress core dumps from detection code
14446         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
14447         to suppress core dumps that may well occur on glibc systems.
14448         These core dumps might not be cleaned up automatically, or could
14449         trigger some system core dump handling logic.
14451 2013-12-03  Pádraig Brady  <P@draigBrady.com>
14453         md5, sha1, sha256, sha512: support mandating use of openssl
14454         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
14455         description, to list the now 3 separate options.  also don't
14456         mention the default=no, since this is implicit given the option
14457         is described as --with-openssl rather than --without-openssl.
14458         If projects change the default they're free to document that.
14459         with --with-openssl[=yes] we now error out when the specified
14460         hash algorithm is not available in libcrypto.
14462 2013-12-03  Ivailo  <xakepa10@gmail.com>
14464         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
14465         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
14466         -Wformat-nonliteral checks, as these edge cases are part of the test.
14468 2013-12-03  Eric Blake  <eblake@redhat.com>
14470         regex: avoid glibc deadlock during configure
14471         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
14472         glibc bug 15078 in turn triggers bug 16159.
14473         Reported by Michal Privoznik.
14475 2013-12-02  Pádraig Brady  <P@draigBrady.com>
14477         md5, sha1, sha256, sha512: use openssl routines if available.
14478         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
14479         routines will be used if available, requiring apps to link @LIB_CRYPTO@
14480         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
14481         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
14482         in the standard system location.
14483         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
14484         * m4/sha256.m4: Likewise with SHA256.
14485         * m4/sha512.m4: Likewise with SHA512.
14486         * m4/md5.m4: Likewise with MD5.
14487         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
14488         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
14489         * lib/sha256.h: Likewise with SHA256.
14490         * lib/sha512.h: Likewise with SHA512.
14491         * lib/md5.h: Likewise with MD5.
14492         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
14493         * lib/sha256.c: Likewise with SHA256.
14494         * lib/sha512.c: Likewise with SHA512.
14495         * lib/md5.c: Likewise with MD5.
14496         * modules/crypto/sha1 (Link:): Add the new optional lib.
14497         (Depends-on:): Add dependency on extern-inline.
14498         * modules/crypto/sha256: Likewise.
14499         * modules/crypto/sha512: Likewise.
14500         * modules/crypto/md5: Likewise.
14501         * modules/crypto/sha1-tests: Reference the lib here too.
14502         * modules/crypto/md5-tests: Likewise.
14503         * modules/crypto/gc-des-tests: Likewise.
14504         * modules/crypto/gc-hmac-md5-tests: Likewise.
14505         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14506         * modules/crypto/gc-hmac-sha256-tests: Likewise.
14507         * modules/crypto/gc-hmac-sha512-tests: Likewise.
14508         * modules/crypto/gc-md5-tests: Likewise.
14509         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14510         * modules/crypto/gc-sha1-tests: Likewise.
14511         * modules/crypto/gc-tests: Likewise.
14512         * modules/crypto/hmac-md5-tests: Likewise.
14513         * modules/crypto/hmac-sha1-tests: Likewise.
14514         * modules/crypto/hmac-sha256-tests: Likewise.
14515         * modules/crypto/hmac-sha512-tests: Likewise.
14517 2013-11-29  RV1971  <rv1971@web.de>
14519         base64: (trivial) fix compilation regression on some compilers
14520         * lib/base64.c: Don't return the void function,
14521         instead split to a separate return statement.
14523 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14525         ignore-value: revert previous code change
14526         * lib/ignore-value.h (ignore_value): Use __extension__ and
14527         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
14528         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
14529         Change the comment to try to explain this better.
14531 2013-11-27  Pádraig Brady  <P@draigBrady.com>
14533         selinux-h: improve stub types and add more stub functions
14535         * lib/se-selinux.in.h: Change security_context_t to a typedef
14536         rather than a define, as it's a pointer type and so is better
14537         as a typedef to avoid issues declaring multiple variables
14538         with the comma operator.  Also add stub for string_to_security_class().
14539         * lib/se-context.in.h: Add stub functions for
14540         context_{type,range,role,user}_get().
14542 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14544         ignore-value: prefer GCC version back through 2.0
14545         The code didn't match the comments, so I did a bit of software
14546         archaeology.  GCC 2.0 seems to support __extension__ and
14547         __typeof__, so fix both code and comments to use 2.0.
14548         * lib/ignore-value.h (ignore_value): Use __extension__ and
14549         __typeof__ for GCC 2.0 through 3.3, too.
14551 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
14553         pty: Activate the signature wrapper of forkpty.
14554         The intended preprocessor macro HAVE_FORKPTY is
14555         never defined, yet `lib/forkpty.c' depends on it.
14557         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
14558         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
14559         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
14561 2013-11-18  Jim Meyering  <meyering@fb.com>
14562         and Paul Eggert  <eggert@cs.ucla.edu>
14564         quotearg: don't attempt to store 1 << 31 into an "int"
14565         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
14566         gcc's new -fsanitize=undefined and running its tests triggered some
14567         new test failures due to undefined behavior, all with this diagnostic:
14568           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
14569             cannot be represented in type int
14570         Rather than shifting "1" left to form a mask, shift the bits right and
14571         simply use "1" as the mask.
14573 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
14575         error: depend on stdio
14576         Problem reported by Nikos Mavrogiannopoulos in
14577         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
14578         * modules/error (Depends-on): Add stdio.
14580 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
14582         * doc/relocatable-maint.texi (Supporting Relocation): Improve
14583         wording.
14584         Reported by Reuben Thomas <rrt@sc3d.org>.
14586 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
14588         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
14589         New function and macro, to work around _DARWIN_C_SOURCE problem.
14590         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
14592 2013-11-11  Pádraig Brady  <P@draigBrady.com>
14594         base64: provide a fast path for encoding well sized buffers
14595         Avoid conditionals in the base64 encoding loop,
14596         which was seen to give 60% better throughput.
14597         * lib/base64.c (base64_encode_fast): A new function to be called
14598         when we don't want to NUL terminate, and we have enough space
14599         in the output to encode the given input.
14600         (base64_encode): Call the _fast() version when appropriate.
14601         Also remove a redundant mask with 0x3F on the first encoded byte.
14603 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14605         extern-inline: port better to OS X 10.9
14606         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
14607         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
14608         OS X 10.9, except for g++ where the bug is still present.
14609         See <http://trac.macports.org/ticket/41033>.
14611 2013-11-08  Eric Blake  <eblake@redhat.com>
14613         fpending: fix regression on DragonFly BSD
14614         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
14615         * lib/fpending.h (__fpending): Don't declare twice.
14616         Reported by GW in
14617         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
14619 2013-11-05  Jim Meyering  <meyering@fb.com>
14621         hash: relax license to LGPLv2+, for libguestfs
14622         * modules/hash (License): Change from GPL to LGPLv2+.
14624 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14626         intprops: port to Oracle Studio c99
14627         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
14628         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
14630 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14632         obstack: pacify HP C
14633         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
14634         warning "conversion from pointer to smaller integer" from HP
14635         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
14636         C89 or later nowadays, so cast to void instead of int.  Privately
14637         reported by H.Merijn Brand.  Also, change header to match glibc's,
14638         to make checking against glibc easier.
14640 2013-10-29  Jim Meyering  <meyering@fb.com>
14642         maint.mk: prefer gpgv2 over gpgv
14643         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
14644         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
14645         Reported by Gary Vaughan.
14647 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14649         isnan: port to VAX
14650         Reported by John Klos for NetBSD-5/VAX in
14651         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
14652         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
14653         (FUNC): Use it.
14655 2013-10-28  Jim Meyering  <meyering@fb.com>
14657         gnulib-tool: protect against CDPATH
14658         * gnulib-tool: Many "cd" built-in functions print a directory name
14659         to stdout when CDPATH is set, e.g.,
14660           $ bash -c 'CDPATH=/; cd tmp'
14661           /tmp
14662         Unset it, when possible.  Prompted by a comment from Bruce Korb.
14664         maint.mk: restore functionality removed by recent change...
14665         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
14666         the context of a shallow-cloned gnulib repository: "git describe"
14667         would fail in such a directory.  However, that change made it so
14668         the reported gnulib revision no longer includes the version number
14669         or a commit count, even when run from a full clone.
14670         * top/maint.mk (gnulib-version): Use the full "git describe"
14671         output when possible, e.g., the form above, rather than the
14672         abbreviated, no-tag, no-commit-count string, and fall back to
14673         using a 10-byte hash, rather than the default minimal-length
14674         hash prefix, since while the minimal-length one may be fine today,
14675         it is likely not to be unique for very long.
14677 2013-10-26  Jim Meyering  <meyering@fb.com>
14679         maint.mk: fix "release" target to build _version
14680         This fixes a bug in README-release whereby following the outlined
14681         steps, one would publish a tarball whose programs would report
14682         --version output not consistent with the package version number.
14683         This bug caused grep-2.15 to produce a grep program whose
14684         --version option made it print 2.14.56-1e3d rather than 2.15.
14685         * top/maint.mk (release): Making this target build "_version"
14686         ensures that the new version number is reflected in configure.
14688 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
14690         install-reloc: Support multi-binary installation.
14691         * build-aux/install-reloc: Support installing multiple programs in
14692         one invocation, as done by Automake starting with commit
14693         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
14694         Haible <bruno@clisp.org>, archived at
14695         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
14696         Reported by Sylvain <beuc@gnu.org>.
14698 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14700         selinux-h: Really build without selinux when library is missing.
14701         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
14702         continue without selinux, as already told in the warning message.
14704 2013-10-21  Jim Meyering  <meyering@fb.com>
14706         regex: also remove dependency on HAVE_WCSCOLL
14707         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
14709 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
14711         xfreopen: Fix typo. s/frepoen/freopen/
14712         * lib/xfreopen.c: Fix description.
14713         * modules/xfreopen: Likewise.
14715 2013-10-21  Jim Meyering  <meyering@fb.com>
14717         regex: don't depend on wcscoll
14718         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
14719         It is no longer used.
14721 2013-10-20  Jim Meyering  <meyering@fb.com>
14723         error: add the printf attribute to a static function
14724         * lib/error.c (error_tail): Add the printf attribute, to placate
14725         gcc's -Werror=suggest-attribute=format option.
14727 2013-09-30  Jim Meyering  <meyering@fb.com>
14729         fpending, obstack, strerror-override: use pure+const function attrs
14730         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
14731         * lib/obstack.c (_obstack_allocated_p): Likewise.
14732         * lib/obstack.h (_obstack_memory_used): Likewise.
14733         (_obstack_memory_used): Likewise.
14734         * lib/strerror-override.h (strerror_override): Declare with
14735         the "const" attribute.
14737 2013-10-18  Eric Blake  <eblake@redhat.com>
14739         extern-inline: make safe for -Wundef usage
14740         Reported by Vladimir 'phcoder' Serbinenko in
14741         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
14742         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
14744 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14746         mkfifo-tests, etc.: allow HP-UX 11.11 bug
14747         Problem reported by Daniel Richard G. in
14748         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
14749         * doc/posix-functions/mkfifo.texi (mkfifo):
14750         * doc/posix-functions/mkfifoat.texi (mkfifoat):
14751         * doc/posix-functions/mknod.texi (mknod):
14752         * doc/posix-functions/mknodat.texi (mknodat):
14753         Document the HP-UX 11.11 bug.
14754         * tests/test-mkfifo.h (test_mkfifo):
14755         Allow the HP-UX 11.11 bug.
14757 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14759         acl: allow cross-compilation to Gentoo
14760         Problem reported by Gabriel Marcano in
14761         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
14762         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
14763         test only whether it links.
14765 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14767         mgetgroups: remove dependency on realloc-gnu
14768         The dependency violates the comment in realloc-gnu, which
14769         says that tests can't depend on realloc-gnu; some tests depend
14770         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
14771         Problem reported by Daniel Richard G. in
14772         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
14773         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
14774         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
14775         not realloc-gnu.
14777 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14779         regex-tests: port to HP-UX 11.11
14780         Problem reported by Daniel Richard G. in
14781         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
14782         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
14784 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14786         verify: document some 'assume' pitfalls
14787         * doc/verify.texi (Compile-time Assertions):
14788         Mention that 'assume (E)' can sometimes slow things down.
14789         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
14791 2013-10-10  Eric Blake  <eblake@redhat.com>
14793         strtoumax: fix typo in previous commit.
14794         * modules/strtoumax (Depends-on): Fix typo.
14795         * modules/strtoimax (Depends-on): Likewise.
14797 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14799         strtoumax: port to Solaris 8
14800         This problem was introduced in the recent HP-UX patch.
14801         Reported by Tom G. Christensen in
14802         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
14803         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
14804         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
14806 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
14808         strtoimax, strtoumax: port to HP-UX 11.11
14809         Problem reported by Daniel Richard G. in
14810         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
14811         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
14812         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
14813         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
14814         REPLACE_STRTOUMAX.
14815         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
14816         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
14817         Replace the function if defined as a macro but not as a function.
14818         * modules/inttypes-incomplete (inttypes.h): Substitute
14819         REPLACE_STRTOUMAX.
14820         * modules/strtoumax (configure.ac): Replace strtoumax if
14821         REPLACE_STRTOUMAX.
14823 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14825         strtoimax: port to HP-UX 11.11
14826         Problem reported by Daniel Richard G.
14827         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
14828         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
14829         they might clash with inttypes.h.
14831 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14833         New module 'count-trailing-zeros'.
14834         * MODULES.html.sh: Mention it.
14835         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
14836         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
14837         * modules/count-trailing-zeros-tests:
14838         * tests/test-count-trailing-zeros.c:
14839         New files.
14841         count-leading-zeros: port to MSC; support types wider than 64 bits
14842         The ideas behind the MSC port are stolen from Emacs.
14843         * lib/count-leading-zeros.h:
14844         Don't include verify.h: it's no longer needed, as types wider than
14845         64 bits are now supported.
14846         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
14847         performance with MSC.  All uses changed.  Do not assume that TYPE
14848         has at most 64 bits.
14849         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
14850         All uses changed.  Fold the subtraction from 31 into the table.
14852         count-one-bits: port to MSC; support types wider than 64 bits
14853         The ideas behind the MSC port are stolen from Emacs.
14854         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
14855         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
14856         Don't include verify.h: it's no longer needed, as types wider than
14857         64 bits are now supported.
14858         (COUNT_ONE_BITS_GENERIC): New macro.
14859         (popcount_supported) [_MSC_VER]: New inline function.
14860         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
14861         performance with MSC.  All uses changed.  Do not assume that TYPE
14862         has at most 64 bits.
14863         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
14865 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
14867         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
14868         * lib/mountlist.c (read_file_system_list): fix leak of directory
14869         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
14871 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14873         tests: improve diagnostic when an assertion fails
14874         * tests/macros.h (ASSERT): Report the assertion that failed.
14876 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14878         verify: new macro 'assume'
14879         This is taken from Emacs, and should be generally useful.
14880         * doc/verify.texi (assume): Document it.
14881         * lib/verify.h (assume): New macro.
14882         (__has_builtin): Expand to 0 if not defined.
14884 2013-09-26  Eric Blake  <eblake@redhat.com>
14886         dup2, dup3: work around another cygwin crasher
14887         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
14888         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
14889         * tests/test-dup2.c (main): Likewise.
14890         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
14891         * lib/dup3.c (dup3): Likewise.
14892         * doc/posix-functions/dup2.texi (dup2): Document it.
14893         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14895         getdtablesize: work around cygwin issue
14896         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
14897         * modules/getdtablesize (configure.ac): Build replacement.
14898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
14899         * modules/unistd (Makefile.am): Expose the witness.
14900         * lib/unistd.in.h (getdtablesize): Declare replacement.
14901         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
14902         * tests/test-getdtablesize.c (main): Test it.
14903         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
14905 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
14907         pmccabe2html: escaping of special characters
14908         Escape all '<', '>', and '&' in HTML output.
14909         * build-aux/pmccabe2html (html_fnc): Call gsub()
14910         instead of sub() to capture all '<', '>', and '&'.
14911         Neither of '<' and '>' is special in a regexp,
14912         so first arguments to gsub() are corrected. Also,
14913         in replacement strings, ampersand must be escaped.
14914         Finally, '&' must be handled first, then '<' and '>'.
14916 2013-09-24  Eric Blake  <eblake@redhat.com>
14918         manywarnings: enable nicer gcc warning messages
14919         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
14920         some -f options for optimal warnings.
14922 2013-09-21  Jim Meyering  <meyering@fb.com>
14924         timespec: use the new TIMESPEC_RESOLUTION in a few more places
14925         * lib/timespec-add.c (timespec_add): Also replace 999999999
14926         with TIMESPEC_RESOLUTION - 1.
14927         * lib/timespec-sub.c (timespec_sub): Likewise.
14929 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14931         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
14932         Problem reported by Dagobert Michelsen via Eric Blake in
14933         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
14934         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
14935         not AC_COMPILE_IFELSE.
14937 2013-09-23  Eric Blake  <eblake@redhat.com>
14939         configmake: support new --runstatedir option
14940         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
14941         even if autoconf was too old to provide the command line option.
14942         * modules/configmake (Makefile.am): Propagate it to .h file.
14944 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14946         ctype, string: depend on extern-inline
14947         This is needed to complete the recent OS X fixes.
14948         Also, fix related documentation as suggested by Eric Blake.
14949         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14950         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
14951         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
14952         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
14953         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
14954         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
14955         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
14956         * doc/posix-functions/toupper.texi:
14957         List the 'ctype' gnulib module.
14958         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
14959         * doc/posix-functions/strncpy.texi:
14960         List the 'string' gnulib module.
14961         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
14962         Add string.
14963         * modules/ctype, modules/string (Depends-on): Add extern-inline.
14965 2013-09-19  Pádraig Brady  <P@draigBrady.com>
14967         userspec: support optional parameters to parse_user_spec()
14968         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
14969         then avoid group processing and treat the full spec as a user.
14970         (parse_with_separator): Allow the USERNAME and GROUPNAME to
14971         be optional params (NULL), in which case they're ignored.
14973 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14975         timespec: new function make_timespec, and new constants
14976         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
14977         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
14978         (make_timespec): New function.
14979         * lib/dtotimespec.c (dtotimespec):
14980         * lib/timespec-add.c (timespec_add):
14981         * lib/timespec-sub.c (timespec_sub):
14982         * lib/utimens.c (validate_timespec):
14983         * lib/utimensat.c (rpl_utimensat):
14984         Use these new constants and functions.
14986         stdio: OS X port of putc_unlocked + extern inline
14987         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
14988         * doc/posix-functions/putc_unlocked.texi:
14989         * doc/posix-functions/putchar_unlocked.texi:
14990         Document this portability problem.
14992         signal: OS X port of sigaddset etc. + extern inline
14993         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
14994         (sigismember): #undef on problematic Apple platforms.
14995         * doc/posix-functions/sigaddset.texi:
14996         * doc/posix-functions/sigdelset.texi:
14997         * doc/posix-functions/sigemptyset.texi:
14998         * doc/posix-functions/sigfillset.texi:
14999         * doc/posix-functions/sigismember.texi:
15000         Document this portability problem.
15002         extern-inline: do not always suppress extern inline on OS X
15003         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
15004         extern inline on Apple only if the particular compile-time
15005         configuration is known to have the problem.
15006         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
15007         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
15008         other Gnulib modules.
15010         extern-inline: document fixes for ctype and wctype macros
15011         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15012         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
15013         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
15014         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
15015         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
15016         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
15017         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
15018         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
15019         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
15020         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
15021         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
15022         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
15023         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
15024         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
15025         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
15026         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
15027         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
15028         * doc/posix-functions/strncpy.texi:
15029         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
15030         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
15031         Document that Gnulib fixes portability problems with these
15032         functions on OS X 10.8 and earlier when called from plain inline
15033         or extern inline functions.
15035 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
15037         fflush, freadahead, fseeko: Fix for Android
15038         Suggested by Bruno Haible in:
15039         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
15040         * lib/stdio-impl.h: Use local __sfileext definition.
15042 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
15044         pmccabe2html: Portability to other awk versions.
15045         The functions systime() and strftime() are available
15046         in Gawk only.  Properly close two HTML-tags 'style'
15047         and 'span'.
15048         * build-aux/pmccabe2html (BEGIN): Store timing
15049         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
15050         systime() in HTML_COMMENT.
15051         (html_header): Correctly close tag 'style'.
15052         (END): Replace strftime() by CHRONOS_TIME.  Close
15053         tag 'span' correctly, not as 'div'.
15055 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15057         getgroups: statement without effect
15058         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
15059         Change equality conditional to expected assignment.
15061 2013-09-09  Eric Blake  <eblake@redhat.com>
15063         glob: fix compilation
15064         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
15066 2013-09-07  Eric Blake  <eblake@redhat.com>
15068         glob: fix build for platforms without __THROW
15069         * lib/glob.in.h (__THROW): Add definition again.
15071 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
15073         regex-quote: fix buffer access out of bounds
15074         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
15075         * lib/regex-quote.c (regex_quote_spec_pcre):
15076         Fix typo that resulted in an out-of-bounds read.
15078 2013-09-04  Eric Blake  <eblake@redhat.com>
15080         glob: avoid -Wattribute warnings on glibc
15081         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
15082         __THROWNL, not __THROW, on static functions.
15083         * lib/glob.in.h (__THROW): Adjust...
15084         (__THROWNL): ...accordingly.
15086 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15088         headers: check that _GL_INLINE_HEADER_BEGIN is defined
15089         Suggested by Bruce Korb in:
15090         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
15091         * doc/extern-inline.texi (extern inline):
15092         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
15093         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
15094         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
15095         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
15096         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
15097         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
15098         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
15099         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
15100         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
15101         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
15102         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
15103         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
15104         * lib/xtime.h:
15105         Check that _GL_INLINE_HEADER_BEGIN is defined.
15107 2013-08-29  Pádraig Brady  <P@draigBrady.com>
15109         bootstrap: remove the --version requirement from ancillary tools
15110         * build-aux/bootstrap (check_exists): A new refactored function to
15111         determine if a command exists.
15112         (find_tool): Use the new function which does not require the
15113         --version option to be supported.
15114         (check_versions): Use the new function.
15116 2013-08-26  Simon Josefsson  <simon@josefsson.org>
15118         gc: support HMAC-SHA256 and HMAC-SHA512.
15119         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
15120         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
15121         functions.
15122         (gc_hmac_md5): Use symbolic constant.
15123         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
15124         (gc_hmac_sha256, gc_hmac_sha512): New functions.
15125         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
15126         * m4/sha256.m4: Protect against empty expansion.
15127         * m4/sha512.m4: Likewise.
15128         * lib/hmac-sha256.c: New file.
15129         * lib/hmac-sha512.c: Likewise.
15130         * m4/gc-hmac-sha256.m4: Likewise.
15131         * m4/gc-hmac-sha512.m4: Likewise.
15132         * m4/gc-sha256.m4: Likewise.
15133         * m4/gc-sha512.m4: Likewise.
15134         * modules/crypto/gc-hmac-sha256: Likewise.
15135         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15136         * modules/crypto/gc-hmac-sha512: Likewise.
15137         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15138         * modules/crypto/hmac-sha256: Likewise.
15139         * modules/crypto/hmac-sha256-tests: Likewise.
15140         * modules/crypto/hmac-sha512: Likewise.
15141         * modules/crypto/hmac-sha512-tests: Likewise.
15142         * tests/test-gc-hmac-sha256.c: Likewise.
15143         * tests/test-gc-hmac-sha512.c: Likewise
15144         * tests/test-hmac-sha256.c: Likewise.
15145         * tests/test-hmac-sha512.c: Likewise
15147 2013-08-24  Daiki Ueno  <ueno@gnu.org>
15149         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
15150         of AC_CHECK_DECLS.
15152 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15154         selinux-at: omit unnecessary include
15155         * lib/selinux-at.c: Don't include dosname.h; not needed, since
15156         this source file doesn't use its macros, and subsidiary files that
15157         use the macros already include it.
15159 2013-08-21  Eric Blake  <eblake@redhat.com>
15161         d-ino: avoid false negative on symlink
15162         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
15163         Reported by Stephane Chazelas.
15165 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
15167         bootstrap: port to OpenBSD sed
15168         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
15169         does not interpret `-' as a file argument to mean stdin.
15171 2013-08-15  Eric Blake  <eblake@redhat.com>
15173         warnings: minor optimization
15174         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
15176         warnings: check -Wfoo rather than -Wno-foo
15177         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
15178         -Wno-, test if the compiler recognizes the positive form instead.
15180 2013-08-15  Karl Berry  <karl@gnu.org>
15182         * config/srclist-update: add option "doclicense" to placate
15183         pulling *.texi files from Emacs.  Write terse usage
15184         documentation at the top.
15186 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
15188         xvasprintf-tests: port to GCC with hardening flags
15189         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
15190         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
15191         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
15193 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15195         fpending: port to recent Cygwin change to stdio_ext.h
15196         Reported by LRN in
15197         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
15198         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
15199         just declare __fpending unless it's a macro.
15200         A duplicate decl shouldn't hurt.
15201         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
15202         call compiles and links, instead of separately checking for
15203         decl and lib function.
15204         * modules/fpending (configure-ac):
15205         Adjust to fpending.m4's renaming of shell variable.
15207 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15209         sys_time: port to OpenBSD
15210         * lib/sys_time.in.h: Simply delegate to the system's header
15211         in the BSDish cases as well.  Problem reported by Mike Miller in
15212         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
15213         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
15214         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
15215         wider than time_t.
15217 2013-08-09  Pádraig Brady  <P@draigBrady.com>
15219         bootstrap: support checksum utils having -c but not --status
15220         * build-aux/bootstrap: Only look for sha1sum if updating po files.
15221         Add sha1 to the list of supported checksum utils since it's now
15222         supported through adjustments below.
15223         (update_po_files): Remove the use of --status
15224         in a way that will suppress all error messages, but since this is
15225         only used to minimize updates, it shouldn't cause an issue.
15226         Exit early if there is a problem updating the po file checksums.
15227         (find_tool): Remove the check for --version support as this
15228         is optional as per commit 86186b17.  Don't even check for the
15229         presence of the command as if that is needed, it's supported
15230         through configuring prerequisites in bootstrap.conf.
15231         Prompt that when a tool isn't found, one can define an environment
15232         variable to add to the hardcoded search list.
15234 2013-08-05  Jim Meyering  <meyering@fb.com>
15236         regex: port to non-glibc/lock-using systems
15237         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
15238         system with GNULIB_LOCK would fail due to absence of the
15239         included "glthread/lock.h".  This would affect any package
15240         for which the "lock" module is used only by the regex module,
15241         and not explicitly used.
15242         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
15243         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
15244         Add a dependency on the "lock" module.
15246 2013-07-20  Daiki Ueno  <ueno@gnu.org>
15248         localecharset: make locale_charset thread-safe on Mac OS X
15249         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
15250         instead of MB_CUR_MAX.
15252 2013-07-20  Daiki Ueno  <ueno@gnu.org>
15254         gettext: update to version 0.18.3
15255         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
15256         require AC_PROG_SED to allow user to specify custom sed command when
15257         generating en@quot PO file.
15259 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
15261         bootstrap: use correct source when copying build-aux files
15262         * build-aux/bootstrap (gnulib_extra_files): This variable is
15263         relative to upstream gnulib layout, not downstream.
15265 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15267         tmpdir: fix bug in VMS port
15268         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
15269         See Steven M. Schweda in
15270         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
15272 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15274         tmpdir: port to VMS, to // != /, and to long dirs
15275         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
15276         __secure_getenv, so that we're more like the glibc version.
15277         All uses changed.
15278         (path_search): Don't put slash after directory if __VMS.
15279         Problem reported by Steven M. Schweda in
15280         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
15281         Simplify code to add slash; no need for a loop.
15282         Do not remove trailing slash from "//".
15283         Do not assume dlen <= INT_MAX.
15285 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15287         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
15288         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
15289         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
15290         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
15292         accept4, dup3, pipe2: port to Cygwin
15293         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
15294         * lib/accept4.c (accept4) [O_BINARY]:
15295         * lib/dup3.c (dup3) [O_BINARY]:
15296         * lib/pipe2.c (pipe2) [O_BINARY]:
15297         Use set_binary_mode, not setmode.
15298         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
15299         * modules/binary-io (Depends-on): Remove module indicator.
15300         These last two bits undo the previous change to pipe2 and binary-io.
15302 2013-07-09  Pádraig Brady  <P@draigBrady.com>
15304         mountlist: add support for deallocating returned list entries
15305         * lib/mountlist.c (free_mount_entry): A new exported function
15306         to deallocate a mount list entry.
15307         (read_file_system_list): Refactor to use the new deallocation function.
15308         Suggested by Anton Ovchinnikov.
15310 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
15312         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
15313         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
15314         * lib/stdalign.in.h (_Alignas, _Alignof):
15315         Port to FreeBSD 9.1, and to C11 and C++11.
15316         (_Alignas): Also support ICC.
15317         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
15318         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
15320 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15322         fnmatch: don't goto over declaration
15323         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
15324         undefined behavior for goto over a declaration.
15325         Problem reported by Charlie Brown in
15326         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
15328         pipe2: decouple from binary-io a bit
15329         This is for Emacs, which needs pipe2 but not binary-io.
15330         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
15331         * modules/binary-io (Depends-on): Add module indicator.
15333 2013-07-03  Eric Blake  <eblake@redhat.com>
15335         mgetgroups: relax license to LGPLv2+
15336         * modules/getugroups (License): Change from GPLv3+.
15337         * modules/mgetgroups (License): Likewise.
15338         * modules/getgroups (License): Change from LGPLv3+.
15340         xalloc-oversized: relax license to LGPLv2+
15341         * modules/xalloc-oversized (License): Change from GPLv3+.
15343         nproc: relax license to LGPLv2+
15344         * modules/nproc (License): Change from LGPLv3+.
15346         bootstrap: honor --no-git
15347         * build-aux/bootstrap: Don't even try to use git when user is
15348         pointing to a static checkout.
15350 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
15352         ignore-value: port to gcc -pedantic
15353         * lib/ignore-value.h (ignore_value):
15354         Port to gcc -pedantic, by using __extension__.
15355         Reindent as per usual gnulib style nowadays.
15356         Simplify GCC version check.
15358 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15360         extern-inline: port to gcc -std=c89
15361         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
15362         Do not use __gnu_inline__ if pedantic and pre-C99.
15364 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
15366         doc: document extern-inline
15367         * doc/extern-inline.texi: New file.
15368         * doc/gnulib.texi (alloca-opt): Include it.
15369         * m4/extern-inline.m4: Move some comments to documentation,
15370         and others closer to what they describe.
15372         doc: chatter less
15373         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
15374         (updated-stamp): Use it.  This causes 'make' to output just
15375         one file name rather than zillions.
15377         fflush, fseeko: port to musl cross-compiles
15378         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
15379         on some implementation that (1) is not known to be buggy,
15380         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
15381         cross-compiled to so we can't easily check for lack of
15382         conformance.  This is for cross-compiling to musl.
15383         Reported by Rich Felker in
15384         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
15385         * m4/fclose.m4 (gl_FUNC_FCLOSE):
15386         * m4/fflush.m4 (gl_FUNC_FFLUSH):
15387         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
15388         Adjust to above change.
15389         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
15390         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
15391         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
15392         known not to work, or unknown.
15394 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15396         msvc-inval: port to mingw-w64
15397         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
15398         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
15399         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
15401 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
15403         getcwd-lgpl: port to Tru64
15404         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
15405         Problem reported by Steven M. Schweda in
15406         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
15408         tests: port large-fd POSIX spawn tests to OS X
15409         Problem reported by Daiki Ueno in
15410         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
15411         * tests/test-posix_spawn_file_actions_addclose.c:
15412         * tests/test-posix_spawn_file_actions_adddup2.c:
15413         * tests/test-posix_spawn_file_actions_addopen.c:
15414         Include <limits.h>, for OPEN_MAX, if available.
15415         (big_fd): New static function.
15416         (main): Use it.
15418 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
15420         tests/nap.h: use an adaptive delay to avoid ctime update issues
15421         The recent change in nap.h (5191133e) decreased the probability of lost
15422         races to about a third, however such problems could still be observed
15423         in virtual machines and openSUSE's OBS.
15424         Before, nap() detected the needed time once empirically and then used
15425         that delay (together with a small correction multiplier) in further
15426         calls.  This problem has been reported and discussed several times,
15427         including guesses about possible kernel issues:
15428         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
15429         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
15430         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
15431         http://bugs.gnu.org/12820
15432         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
15433         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
15434         Now, nap() avoids the race alltogether by verifying on a reference
15435         file whether a timestamp difference has happened.
15436         * tests/nap.h (nap_fd): Define file descriptor variable for the
15437         witness file.
15438         (nap_works): Change return value to bool.  Change passing
15439         the old file's status by value instead of by reference as this function
15440         does no longer update that timestamp; rename the function argument from
15441         st to old_st.  Remove the local variables cdiff and mdiff because that
15442         function now returns true/false instead of the precise delay.
15443         (guess_delay): Remove function.
15444         (clear_tmp_file): Add new function to close and unlink the witness file.
15445         (nap): Instead of re-using the delay which has been calculated during
15446         the first call, avoid the race by actually verifying that a timestamp
15447         difference can be observed on the current file system.  Use an adaptive
15448         approach for the delay to minimize execution time.  Assert that the
15449         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
15450         = 2^31 - 1 = 2.1s.
15451         Use atexit to call clear_tmp_file when the process terminates.
15453 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15455         sig2str: port to C++
15456         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
15457         Reported by Daniel J Sebald in
15458         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
15460 2013-05-30  Eric Blake  <eblake@redhat.com>
15462         docs: mention cygwin shortcoming in <sys/un.h>
15463         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
15465         vasnprintf: silence mingw compiler warning
15466         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
15468 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15470         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
15471         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
15472         This fixes a porting bug I recently reintroduced in regex, and
15473         some other instances that I discovered while testing the fix.
15474         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
15475         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
15476         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
15477         with an empty argument if this is a pedantic pre-C99 GCC.
15478         * lib/verify.h: Do not use _Static_assert if this is a pedantic
15479         pre-C11 GCC.
15481         regex: adapt to locking regime instead of depending on pthread
15482         Instead of depending on pthread, adapt to whatever thread
15483         modules are in use.  Problem reported by Ludovic Courtès in
15484         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
15485         and by Mats Erik Andersson in
15486         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
15487         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
15488         Support either the 'lock' module, or the 'pthread' module, or
15489         no module.
15490         (lock_lock, lock_unlock): New macros.
15491         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
15492         * modules/lock, modules/pthread (configure.ac): Add module indicator.
15493         * modules/regex (Depends-on): Remove pthread.
15495 2013-05-22  Eric Blake  <eblake@redhat.com>
15497         getgroups: document portability issues
15498         * doc/glibc-functions/initgroups.texi (initgroups): Mention
15499         multithread safety.
15500         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
15501         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
15502         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
15503         getugroups.
15504         * doc/posix-functions/getgroups.texi (getgroups): Mention
15505         multithread safety and mgetgroups.
15507 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
15509         test-lchown, test-chown: also skip test if chown fails with EPERM
15510         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
15511         skip this test, to handle FAT file systems.
15512         * tests/test-chown.h (test_chown): Likewise.
15514 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15516         regex: fix dfa race in multithreaded uses
15517         Problem reported by Ludovic Courtès in
15518         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
15519         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
15520         New macros.  All uses of __libc_lock_define, __libc_lock_init
15521         changed to use the first two of these.
15522         (__libc_lock_lock, __libc_lock_unlock): New macros, for
15523         non-glibc platforms.
15524         (struct re_dfa_t): Define the lock unconditionally.
15525         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
15526         '#ifdef _LIBC"s.
15527         * modules/regex (Depends-on): Add pthread, if we use the
15528         included regex.
15530         * lib/regcomp.c: Do actions that are not needed for glibc,
15531         but may be needed elsewhere.
15532         (regfree, re_compile_internal): Destroy the lock.
15533         (re_compile_internal): Check for lock-initialization failure.
15535         malloca: port to compilers that reject size-zero arrays
15536         This fixes a bug introduced in my previous patch.
15537         * lib/malloca.c (struct preliminary_header): Use an int
15538         rather than a character array of size int; that's simpler.
15539         (struct header): Remove, replacing with ...
15540         (union header): New type.  This avoids the need for declaring a
15541         character array of size zero, which is not allowed on some platforms.
15542         All uses changed.
15544 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
15546         parse-datetime, tests: don't use "string" + int
15547         Recent versions of 'clang' complain about C source code that
15548         uses expressions of the form '"string literal" + integer',
15549         I guess on the theory that it's confusing for readers who are
15550         used to C++.  On those grounds I suppose it's OK to make this
15551         minor style change.
15552         * lib/parse-datetime.y (parse_datetime):
15553         * tests/test-fchdir.c (main):
15554         * tests/test-snprintf-posix.h (test_function):
15555         * tests/test-snprintf.c (main):
15556         * tests/test-vasnprintf-posix.c (test_function):
15557         * tests/test-vasnprintf.c (test_function):
15558         * tests/test-vsnprintf.c (main):
15559         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
15560         Rewrite '"str" + E' to '&"str"[E]'.
15562 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15564         argmatch: port to C++
15565         * lib/argmatch.h [__cplusplus]: Add extern "C".
15567         argp: typo fix
15568         * lib/argp-help.c: Typo in comment.
15570 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
15572         manywarnings: update for GCC 4.8.0
15573         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15574         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
15575         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
15576         -Wmissing-noreturn, as they are duplicates of other warnings.
15577         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
15578         was documented to be flaky in earlier versions of GCC.
15580         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
15581         * tests/test-spawn.c (main):
15582         * tests/test-sys_socket.c (main):
15583         * tests/test-sys_wait.c (main):
15584         Don't have a switch value that isn't covered by a case.
15586         getaddrinfo-tests: port --enable-gcc-warnings to clang
15587         * tests/test-getaddrinfo.c (simple):
15588         Avoid casts from looser to stricter-aligned pointers.
15590         thread: port --enable-gcc-warnings to clang
15591         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
15592         Include <signal.h>, to pacify a warning about pthread_sigmask.
15594         stdio: use __REDIRECT for fwrite, fwrite_unlocked
15595         * lib/stdio.in.h (fwrite):
15596         When working around bug 11959, use __REDIRECT rather than '#define
15597         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
15598         fix the -Wunused-value issue with clang, and it works with GCC too.
15599         Problem with targeting reported by Eric Blake in
15600         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
15601         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
15602         debugging the fwrite issue.
15604         stdio: port --enable-gcc-warnings to clang
15605         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
15606         since the GCC workaround for fwrite does not pacify clang.
15608         sig2str: port --enable-gcc-warnings to clang
15609         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
15611         obstack: port --enable-gcc-warnings to clang
15612         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
15613         Avoid casts from looser to stricter-aligned pointers.
15615         memchr2: port --enable-gcc-warnings to clang
15616         * lib/memchr2.c (memchr2):
15617         Avoid casts from looser to stricter-aligned pointers.
15619         mbsstr: port --enable-gcc-warnings to clang
15620         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
15621         Avoid casts from looser to stricter-aligned pointers.
15623         malloca: port --enable-gcc-warnings to clang
15624         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
15625         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
15627         inttostr: port --enable-gcc-warnings to clang
15628         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
15630         warnings: port to clang
15631         Problem reported by Daniel P. Berrange via Eric Blake in
15632         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
15633         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
15634         (gl_WARN_ADD): Use it.
15636 2013-05-11  Jim Meyering  <meyering@fb.com>
15638         quotearg: do not read beyond end of buffer
15639         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
15640         end of an ARG for which no length was specified.  With an N-byte
15641         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
15642         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
15643         via coreutils' misc/sort-debug-keys.sh test and detected by running
15644         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
15645         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
15646         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
15647         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
15648         characters correctly."
15650 2013-05-11  Daiki Ueno  <ueno@gnu.org>
15652         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
15653         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
15654         compilation target is Mac OS X 10.6.
15655         Problem reported by parafin and Andoni Morales in
15656         <http://savannah.gnu.org/bugs/?37844> and
15657         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
15659 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15661         mkdir-p: remove assumptions about umask and mode
15662         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
15663         umask is 0, or that MODE is a subset of MODE_BITS.
15665 2013-05-10  Eric Blake  <eblake@redhat.com>
15667         maint.mk: catch more abuse of HAVE_DECL in syntax-check
15668         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
15670 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
15672         deps: require Automake >= 1.9.6 in generated Makefile fragments
15674         That is the same minimal version required in the DEPENDENCIES file.
15675         Moreover, the old code generated a requirement of Automake >= 1.5,
15676         and that is an insanely outdated version.
15678         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
15679         * tests/havelib/rpathlx/Makefile.am: Likewise.
15680         * tests/havelib/rpathly/Makefile.am: Likewise.
15681         * tests/havelib/rpathlyx/Makefile.am: Likewise.
15682         * tests/havelib/rpathlz/Makefile.am: Likewise.
15683         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
15684         * tests/havelib/rpathx/Makefile.am: Likewise.
15685         * tests/havelib/rpathy/Makefile.am: Likewise.
15686         * tests/havelib/rpathz/Makefile.am: Likewise.
15688 2013-05-08  Eric Blake  <eblake@redhat.com>
15690         bootstrap: AC_INIT may have more than four parameters
15691         * build-aux/bootstrap (extract_package_name): Correctly extract
15692         non-empty tarname field.  Avoid range in regex.
15693         Based on a report by Sami Kerola <kerolasa@iki.fi>.
15695 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15697         qacl: port to MS-Windows port of GNU Emacs
15698         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
15699         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
15700         port of GNU Emacs.  Problem reported by Eli Zaretskii in
15701         <http://bugs.gnu.org/14295#14>.
15703 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
15705         acl: include quote.h
15706         * lib/copy-acl.c: Include quote.h.
15707         * lib/set-acl.c: Likewise.
15709 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
15711         fchownat, renameat, unlinkat: update statat dependencies
15712         These modules use statat and lstatat, not fstatat; so depend on
15713         the statat module, which was split out recently from fstatat.
15714         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
15715         * modules/renameat: Likewise.  Also delete fstat.
15716         URL: http://bugs.gentoo.org/468790
15718 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
15720         Assume gnulib is checked out from Git, not CVS
15722         In fact, access to the gnulib repository through CVS has been
15723         disabled, or more precisely, got broken and was never restored; see:
15724         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
15726         Note that support for CVS is not removed completely and unthinkingly
15727         by this change: only support for CVS checkouts of gnulib itself is
15728         removed.  For example, the 'bootstrap' script still cater to .cvsingore
15729         files and CVS directories, for the benefit of those poor gnulib clients
15730         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
15732         * gnulib-tool: Simplify accordingly.
15733         * posix-modules: Likewise.
15734         * MODULES.html.sh: Likewise.
15735         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
15736         repository.
15737         * doc/gnulib-intro.texi: Likewise.
15738         * doc/gnulib-readme.texi: Likewise.
15739         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
15740         sample '.gitignore' file rather than a sample '.cvsignore'.
15741         * NEWS: Update.
15742         * m4/extensions.m4: While at it, remove a comment mistakenly referring
15743         to "CVS Autoconf" rather than "git Autoconf".
15745 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15747         utimensat-tests, etc.: try to fix some races
15748         Problem reported by Bernhard Voelker in
15749         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
15750         I don't know whether this patch fixes that race condition, but it
15751         fixes *some* race conditions, so it should be a win.
15752         * modules/chown-tests (Depends-on):
15753         * modules/fchownat-tests (Depends-on):
15754         * modules/fdutimensat-tests (Depends-on):
15755         * modules/futimens-tests (Depends-on):
15756         * modules/lchown-tests (Depends-on):
15757         * modules/stat-time-tests (Depends-on):
15758         * modules/utimens-tests (Depends-on):
15759         * modules/utimensat-tests (Depends-on):
15760         Depend on nanosleep, not usleep.
15761         * modules/chown-tests (test_chown_LDADD):
15762         * modules/lchown-tests (test_lchown_LDADD):
15763         * modules/stat-time-tests (test_stat_time_LDADD):
15764         New macro.
15765         * modules/fchownat-tests (test_fchownat_LDADD):
15766         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
15767         * modules/futimens-tests (test_futimens_LDADD):
15768         * modules/utimens-tests (test_utimens_LDADD):
15769         * modules/utimensat-tests (test_utimensat_LDADD):
15770         Add $(LIB_NANOSLEEP).
15771         * modules/stat-time-tests (Files): Add tests/nap.h.
15772         * tests/nap.h: Include <limits.h>, for INT_MAX.
15773         (lt_mtime): Remove.
15774         (diff_timespec): New function.
15775         (get_stat): Rename from get_mtime.  All callers changed.
15776         (nap_works): Determine the needed delay by inspecting the
15777         file system's timestamp jumps; this should be more reliable.
15778         Look at both mtime and ctime, and take the maximum of the two jumps.
15779         (nap_works, guess_delay):
15780         Return a nanosecond count, not a microsecond count.
15781         All callers changed.
15782         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
15783         failure.
15784         (nap): Multiply the guess by 1.125, to accommodate the case where
15785         the file system's clock is a bit slower than nanosleep's clock.
15786         * tests/test-stat-time.c (BASE): New macro.
15787         Include nap.h.
15788         (nap): Remove; nap.h now defines this.  This removes a duplicate
15789         implementation of 'nap'.
15791         utimens, utimensat: work around Solaris UTIME_OMIT bug
15792         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
15793         Linux kernel 2.6.32 does.  Work around it in the same way.
15794         * doc/posix-functions/futimens.texi (futimens):
15795         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
15796         * lib/utimens.c (fdutimens, lutimens):
15797         * lib/utimensat.c (rpl_utimensat): Work around the bug.
15799         gettext: now it's your responsibility to add -I$(top_builddir)/intl
15800         Formerly, it was your responsibility to do this for all Makefile.ams
15801         other than Gnulib's.  Now it's your responsibility to do it for
15802         Gnulib's Makefile.am, too.
15803         * NEWS: Document this.
15804         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
15806         acl: include errno.h to get errno
15807         Reported by Daiki Ueno in
15808         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
15809         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
15811 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15813         tests: don't assume getdtablesize () <= 10000000
15814         * modules/cloexec-tests:
15815         * modules/dup2-tests:
15816         * modules/dup3-tests:
15817         * modules/nonblocking-tests:
15818         * modules/posix_spawn_file_actions_addclose-tests:
15819         * modules/posix_spawn_file_actions_adddup2-tests:
15820         * modules/posix_spawn_file_actions_addopen-tests:
15821         * modules/unistd-safer-tests:
15822         Depend on the getdtablesize module.
15823         * tests/test-cloexec.c:
15824         * tests/test-dup-safer.c:
15825         * tests/test-dup2.c:
15826         * tests/test-dup3.c:
15827         * tests/test-fcntl.c:
15828         * tests/test-nonblocking.c:
15829         * tests/test-posix_spawn_file_actions_addclose.c:
15830         * tests/test-posix_spawn_file_actions_adddup2.c:
15831         * tests/test-posix_spawn_file_actions_addopen.c:
15832         Don't assume getdtablesize () <= 10000000.
15834 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
15836         extern-inline: work around bug in Sun c99
15837         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15838         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
15840 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15842         qacl: new module, broken out from the acl module
15843         This is for GNU Emacs, which wants the acl functions but does
15844         not want 'error' invoked when they fail.
15845         * lib/acl-internal.h: Do not include error.h, quote.h.
15846         (ENOSYS, ENOTSUP): Remove; no longer needed.
15847         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
15848         * lib/acl.h: Include <stdbool.h>.
15849         (acl_errno_valid): New function.
15850         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
15851         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
15852         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
15853         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
15854         (ACL_INTERNAL_INLINE): Remove; no longer needed.
15855         * lib/file-has-acl.c (file_has_acl):
15856         * lib/qcopy-acl.c (qcopy_acl):
15857         * lib/qset-acl.c (qset_acl):
15858         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
15859         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
15860         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
15861         lib/file-has-acl.c, m4/acl.m4 to qacl module.
15862         Add lib/set-acl.c.
15863         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
15864         Add qacl.
15865         (configure.ac): Move gl_FUNC_ACL to qacl module.
15866         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
15867         Rename set-mode-acl.c to set-acl.c.
15868         * lib/acl-errno-valid.c: New file.
15869         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
15870         copy_acl function remains in copy-acl.c.
15871         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
15872         (_): Remove; not needed.
15873         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
15874         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
15875         * modules/qacl: New file, moved from the old modules/acl.
15876         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
15877         Remove set-mode-acl.c, copy-acl.c.
15878         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
15880         alignof, intprops, malloca: port better to IBM's C compiler
15881         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
15882         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
15883         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
15885 2013-04-25  Daiki Ueno  <ueno@gnu.org>
15887         wctype-h: fix gettext link error on mingw
15888         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
15889         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
15890         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
15891         rpl_towupper and rpl_towupper.
15893 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
15895         regex-tests, regex: allow glibc re_search behavior
15896         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
15897         re_search input data to make the multi-character collating element
15898         in it clearly visible, and treat re_search return code 0 as valid.
15899         * m4/regex.m4 (gl_REGEX): Likewise.
15901 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15903         stdalign: doc fix
15904         * doc/posix-headers/stdalign.texi (stdalign.h):
15905         Gnulib doesn't support '_Alignof expr'.
15907 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
15909         stdalign: port to stricter ISO C11
15910         ISO C11 says that _Alignof's operand must be a parenthesized type.
15911         Problem reported by Eli Zaretskii in
15912         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
15913         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
15914         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
15916 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
15918         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
15919         Problem reported by Marco Atzeri in
15920         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
15921         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
15922         Simply delegate to the system <sys/select.h> in this case too.
15923         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
15924         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
15925         be needed on Solaris either.
15926         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
15927         Simply delegate to the system <sys/time.h> in this case.
15929 2013-03-19  Karl Berry  <karl@gnu.org>
15931         * build-aux/gnupload: check for erroneous (with gnupload) use of
15932         ftp-upload.gnu.org, tweak help.
15934 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15936         copy-file, rpmatch: fix problems found by cppcheck
15937         Reported by Arno Onken in
15938         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
15939         * lib/rpmatch.c (try): Fix memory leak.
15940         * lib/copy-file.c: Include "ignore-value.h".
15941         (qcopy_file_preserving): Ignore chown value.
15942         * modules/copy-file (Depends-on): Add ignore-value.
15944 2013-01-27  Jim Meyering  <jim@meyering.net>
15946         prefix-gnulib-mk: give better diagnostics
15947         * build-aux/prefix-gnulib-mk: Don't just "die".
15948         Give better diagnostics upon failure.
15950 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
15952         putenv: port to Solaris 10
15953         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
15954         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
15955         is not what is wanted here.
15956         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
15957         declaration, not for its existence.
15959 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
15961         mktime: fix configure typo
15962         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
15964 2013-03-12  Eric Blake  <eblake@redhat.com>
15966         regex-tests: skip UTF-8 test on mingw
15967         * modules/regex-tests (Depends-on): Add localcharset.
15968         * tests/test-regex.c (main): Use it to skip test on mingw.
15970 2013-03-11  Eric Blake  <eblake@redhat.com>
15972         tests: make it easier to bypass alarm time in debugger
15973         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
15974         * tests/test-memmem.c (main): Likewise.
15975         * tests/test-passfd.c (main): Likewise.
15976         * tests/test-ptsname.c (main): Likewise.
15977         * tests/test-ptsname_r.c (main): Likewise.
15978         * tests/test-strcasestr.c (main): Likewise.
15979         * tests/test-strstr.c (main): Likewise.
15981         regex: port to mingw's recent addition of undeclared alarm
15982         * doc/posix-functions/alarm.texi (alarm): Document that alarm
15983         exists but still doesn't work in newer mingw.
15984         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
15985         not existence.  Ensure SIGALRM is not trapped.
15986         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
15987         * m4/regex.m4 (gl_REGEX): Likewise.
15988         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
15989         * tests/test-regex.c (main): Use correct probe for alarm.
15991         putenv: avoid compilation warning on mingw
15992         * lib/putenv.c (_unsetenv): Protect variable declaration.
15993         (putenv): Fix indentation.
15995 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
15997         unistd: don't prevent Tru64 Unix from using gnulib strtod.
15998         * lib/unistd.in.h: be careful not to include un-needed system
15999         stdlib.h from here, because that prevents gnulib stdlib.h from
16000         defining rpl_strtod correctly.
16002 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
16004         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
16005         changesets, but for the 'precision 0' test.
16006         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16007         round-to-even, since POSIX says rounding is implementation-defined
16008         and OS X 10.8.2 rounds 1.51 to 1 here.
16010         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
16011         changeset.
16012         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16013         round-to-even, since POSIX says rounding is implementation-defined
16014         and OS X 10.8.2 rounds 1.5 to 1 here.
16016 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16018         vasnprintf-posix-tests: allow rounding 1.5 to 1
16019         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
16020         round-to-even, since POSIX says rounding is implementation-defined
16021         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
16022         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
16024         bootstrap: port to FreeBSD
16025         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
16026         that treat '--' differently.  Reported by Mats Erik Andersson in
16027         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
16029 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
16031         regex: rename remaining __attribute calls to __attribute__.
16032         2012-02-25 changed definition of __attribute, but left some uses
16033         unchanged, preventing compilation of regex module on most non-gcc
16034         environments.
16035         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
16036         (lookup_collation_sequence_value, build_range_exp)
16037         (build_collating_symbol): Set attributes with newly renamed
16038         __attribute__ decorator.
16039         * lib/regex_internal.c (re_string_peek_byte_case)
16040         (re_node_set_compare, re_node_set_contains): Likewise.
16041         * lib/regexec.c (acquire_init_state_context): Likewise.
16043 2013-03-06  Bruno Haible  <bruno@clisp.org>
16045         execute: Revert last change, but use a different condition.
16046         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
16047         on Windows.
16049 2013-03-05  Eric Blake  <eblake@redhat.com>
16051         execute: drop dead code
16052         * lib/execute.c (nonintr_close, nonintr_open): Delete.
16054 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16056         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
16057         * m4/non-recursive-gnulib-prefix-hack.m4
16058         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
16059         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
16060         <http://bugs.gnu.org/10305#237>.
16062 2013-03-04  Eric Blake  <eblake@redhat.com>
16064         test-getsockopt: avoid compiler warning
16065         * tests/test-getsockopt.c (includes): Ensure close is declared.
16067 2013-03-02  Bruno Haible  <bruno@clisp.org>
16069         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
16070         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
16072 2013-03-02  Bruno Haible  <bruno@clisp.org>
16074         gettext: Update to version 0.18.2.
16075         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
16076         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
16077                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
16079 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16081         regex: merge patches from libc
16083         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16084         * lib/regex_internal.h (__attribute__): Rename from __attribute.
16085         All uses changed.
16086         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
16087         (re_string_wchar_at, re_string_elem_size_at):
16088         Mark function as possibly unused.
16090         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
16091         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
16092         elements compare against the byte sequence of it, not its name.
16094 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16096         putenv: port better to native Windows
16097         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16098         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
16099         (_unsetenv): Use _putenv if available.
16100         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
16101         a bit less likely to cause damage.
16102         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16103         Fix the wrong value with SetEnvironmentVariable.
16104         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
16105         code better.
16107 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16109         regex: ignore old-style-definition warnings
16110         * lib/regex.c: Add pragma to ignore these warnings.
16111         Problem reported for GNU tar by Pavel Raiskup.
16113 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
16115         getcwd: support coreutils better
16116         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
16117         but this might not be correct in coreutils, which disables
16118         the raw decl checks.  Problem reported by Nagendra in
16119         <http://bugs.gnu.org/10305#192>.
16120         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
16121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16122         Test the getcwd function, not any macro, since getcwd.c wants the
16123         function.
16124         * m4/getcwd.m4 (gl_FUNC_GETCWD):
16125         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
16126         compile, as might happen if there's a macro but no function.
16128         strtod: support coreutils better
16129         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
16130         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
16131         disables the raw decl checks.  This assumes there is an underlying
16132         strtod, but that's a safe assumption these days.
16133         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
16135         mountlist: port to HP NonStop
16136         Reported by Joachim Schmitz in
16137         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
16138         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
16139         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
16141 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16143         extern-inline: avoid compilation error with HP-UX cc
16144         Reported by Richard Lloyd in
16145         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
16146         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16147         Suppress extern inline with HP-UX cc.  This should be safe,
16148         though it may hurt performance.  Perhaps someone with some HP-UX
16149         experience can come up with a higher-performance fix.
16151 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16153         putenv: fix heap corruption with mixed putenv/_putenv
16154         Problem reported by Michael Goffioul in
16155         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
16156         * lib/putenv.c (putenv) [HAVE__PUTENV]:
16157         Rely on _putenv to allocate the new environment.
16158         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
16159         * modules/putenv (configure.ac): Use it.
16161 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
16163         unsetenv etc.: port to Solaris 11 + GNU Emacs
16164         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
16165         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
16166         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
16167         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
16168         idea but is too painful to fix right now), and without this gnulib
16169         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
16170         compiling unsetenv.c on Solaris 11.  Fix the problem for
16171         unsetenv.c, and fix other similar occurrences.
16173 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16175         secure_getenv: fix C++ declaration typo
16176         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
16177         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
16178         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
16180 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16182         careadlinkat: stop exporting careadlinkatcwd
16183         Only Emacs used it directly, and Emacs no longer needs it.
16184         * NEWS: Document this simplification.
16185         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
16186         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
16187         for readlink.
16188         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
16189         Don't include stdlib.h; no longer needed.
16190         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
16191         * lib/relocwrapper.c: Adjust comment to match new dependencies.
16192         * modules/areadlink (Depends-on): Add readlink.
16193         (Maintainer): Add self.
16194         * modules/careadlinkat (Depends-on): Remove readlink.
16196         extensions: port better to HP-UX
16197         This is merged from git Autoconf.
16198         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16199         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
16200         so that it's compatible with the value used when compiling.
16202         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
16203         Problem reported by Mats Erik Andersson in
16204         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
16205         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16206         openpty function exists, not merely when we intend to replace it.
16207         This corrects the 2013-01-31 patch, which mistakenly defined
16208         HAVE_OPENPTY even on hosts that lacked it.
16210 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16212         secure_getenv: fix include typo
16213         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
16215         secure_getenv: port better to FreeBSD and Solaris
16216         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
16217         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
16218         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
16219         This works better on BSDish platforms.
16220         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
16221         Test for issetugid if __secure_getenv is missing.
16223 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16225         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
16226         Some of these changes are merged in from git Autoconf.
16227         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16228         When deciding whether to define _XOPEN_SOURCE, inspect the
16229         preprocessor macro __hpux instead of the more-heavyweight
16230         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
16231         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
16232         as the key for __EXTENSIONS__.
16234         unistd: avoid namespace pollution on non-glibc systems
16235         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
16236         This avoids namespace pollution on non-glibc systems, by causing
16237         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
16238         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
16239         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
16241 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16243         tmpdir: use secure_getenv
16244         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
16245         Define to secure_getenv, not getenv.
16246         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
16247         as that's now secure_getenv's job.
16248         * modules/tmpdir (Depends-on): Add secure_getenv.
16250         tempname: use secure_getenv
16251         * lib/tempname.c (__secure_getenv) [!_LIBC]:
16252         Define to secure_getenv, not getenv.
16253         * modules/tempname (Depends-on):
16254         Add secure_getenv.
16256         secure_getenv: new module
16257         * MODULES.html.sh (Extra functions based on ANSI C 89):
16258         Add secure_getenv.
16259         * doc/glibc-functions/secure_getenv.texi: New file.
16260         * doc/gnulib.texi: Include it.
16261         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
16262         New files.
16263         * lib/stdlib.in.h (secure_getenv): New decl.
16264         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
16265         * modules/stdlib (stdlib.h):
16266         Add secure_getenv checks.
16268 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16270         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
16271         Reported for OS X 10.8.2 by Assaf Gordon in
16272         <http://bugs.gnu.org/13516>.
16273         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
16274         !HAVE_OPENAT && !HAVE_FDOPENDIR.
16275         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
16276         so that they can be kept in sync more easily.  Avoid PATH_MAX
16277         test on the Hurd.  Sync from test-getcwd.c for errno tests after
16278         mkdir or chdir failure.
16279         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
16280         lib/getcwd.c.
16281         (test_abort_bug): Do not test for the deep directory bug unless we
16282         have openat support.  Avoid PATH_MAX test on the Hurd.
16284         regex-tests, regex: fix bug: memset undeclared
16285         * tests/test-regex.c: Don't include regex.h twice.  Include
16286         string.h, to declare memset.  Christensen's report also mentioned
16287         this issue.
16288         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
16289         test-regex.c, to avoid future problems like this.  Remove
16290         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
16291         twice.
16293         regex-tests: fix link errors on older Solaris
16294         These need to link with @LIBINTL@ to get libintl_gettext.
16295         Problem reported by Tom G. Christensen in
16296         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
16297         * modules/regex-tests (test_regex_LDADD): New macro.
16299 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16301         regex-tests: new module
16302         * modules/regex-tests, tests/test-regex.c: New files.
16304         regex: fix off-by-one error in configure test
16305         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
16307 2013-01-31  Eric Blake  <eblake@redhat.com>
16309         regex: avoid infinite configure test
16310         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
16312 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
16314         openpty: fix bug where HAVE_OPENPTY wasn't defined
16315         See the thread starting at:
16316         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
16317         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16318         openpty function exists, not merely when we intend to replace it.
16320 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16322         sys_time: port to Solaris 2.6
16323         There is a circularity problem on Solaris 2.6, where <time.h> includes
16324         <sys/time.h> for struct timespec.  The include nesting is gnulib
16325         <time.h>, system <time.h>, gnulib <sys/time.h>, system
16326         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
16327         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
16328         <sys/siginfo.h>; the last, innermost file needs struct
16329         timestruc_t, which is defined in <sys/time.h>, which has not been
16330         fully parsed.  Problem reported by Tom G. Christensen in
16331         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
16332         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
16333         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
16334         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
16335         uses split double-inclusion guards.
16337 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16339         regex: test for buffer overrun
16340         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
16341         for the just-fixed regex bug.
16343 2013-01-29  Andreas Schwab  <schwab@suse.de>
16345         regex: fix buffer overrun in regexp matcher [BZ #15078]
16346         * lib/regexec.c (extend_buffers): Add parameter min_len.
16347         (check_matching): Pass minimum needed length.
16348         (clean_state_log_if_needed): Likewise.
16349         (get_subexp): Likewise.
16351 2013-01-28  Pádraig Brady  <P@draigBrady.com>
16353         mountlist: don't consider "devtmpfs" as dummy
16354         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
16355         as there is storage associcated with it.
16357 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
16359         futimens-tests, utimens-tests: Depend on gettext.
16360         This works around a problem introduced in my 2013-01-12 patch,
16361         which added @LIBINTL@ to these modules.
16362         * modules/futimens-tests (Depends-on):
16363         * modules/utimens-tests (Depends-on): Add gettext.
16365 2013-01-26  Eric Blake  <eblake@redhat.com>
16367         test-getpeername: fix typo
16368         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
16370 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
16372         bootstrap: remove the need for a sorted .gitignore file
16373         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
16374         rename to insert_if_absent(), so that we don't need or generate
16375         a sorted .gitignore file.  We do require a .gitignore with no
16376         existing duplicate entries and enforce that.
16377         (sort_patterns): Remove this function as we now use the simpler
16378         technigue of inserting blacklist entries at the top of the file,
16379         assuming gnulib won't be inserting !whitelist entries.
16381 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16383         readlinkat: don't depend on gl_FUNC_OPENAT
16384         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
16385         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
16386         renameat.m4, symlinkat.m4; but one thing at a time.
16388         statat: new module, split out from fstatat
16389         GNU Emacs needs the POSIX-specified fstatat, but not the
16390         gnulib-specified statat and lstat.  Split the latter two into a
16391         new module 'statat'.
16392         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
16393         * lib/openat.h, lib/statat.c (STATAT_INLINE):
16394         Rename from FSTATAT_INLINE. All uses changed.
16395         * modules/fstatat (Files): Remove lib/statat.c.
16396         (gl_MODULE_INDICATOR([fstatat])): Remove.
16397         (lib_SOURCES): Remove.
16398         (Maintainer): Add self.
16399         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
16400         * tests/test-fstatat.c (BASE): Don't define if already defined.
16401         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
16403 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16405         tests: don't assume fd 99 is closed
16406         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
16407         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
16408         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
16409         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
16410         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
16411         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
16412         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
16413         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
16414         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
16415         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
16416         * tests/test-fwrite.c, tests/test-getpeername.c:
16417         * tests/test-getsockname.c, tests/test-getsockopt.c:
16418         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
16419         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
16420         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
16421         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
16422         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
16423         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
16424         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
16425         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
16426         * tests/test-unlinkat.c, tests/test-unlockpt.c:
16427         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
16428         Close file descriptor 99, instead of assuming it's already closed.
16430 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16432         stpncpy: port to OS X 10.8
16433         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
16434         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
16436 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16438         unistd: port to recent mingw
16439         * lib/unistd.in.h: Remove special invocation convention for mingw,
16440         which breaks for the latest mingw version.  See John W. Eaton in
16441         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
16443         largefile: port better to Mac OS X 10.5
16444         This patch is backported from Autoconf git.
16445         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
16446         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
16447         with ino_t size being different for configuration time versus
16448         build/run time.  Problem reported by PHO in
16449         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
16451 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16453         doc: clarify -Werror
16454         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
16455         clarify that it's intended for developers, not for ordinary builds,
16456         and mention --enable-gcc-warnings as one possible use.
16458 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
16460         stdint: fix build with Android's Bionic fox x86
16461         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
16462         was already included as _SSIZE_T_DEFINED_ might also be defined
16463         in include/machine/_types.h, which is included by stdio.h
16465 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
16467         net_if-tests: port to Solaris 7 + GCC 3.4.6
16468         Problem reported by Tom G. Christensen in
16469         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
16470         * tests/test-net_if.c (ni): Move to next the code that uses it,
16471         so that it's declared only if needed.
16473 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16475         net_if-tests: port to older Solaris
16476         Problem reported by Tom G. Christensen in
16477         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16478         * modules/net_if-tests (NET_IF_LIB): New substitution.
16479         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
16480         (HAVE_IF_NAMEINDEX): New C macro.
16481         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
16483         system-quote-tests: port to older Solaris
16484         Problem reported by Tom G. Christensen in
16485         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16486         * tests/test-system-quote-child.c (fopen, fread): Undef.
16488         c-xvasprintf etc.: fix link errors on older Solaris
16489         These need to link with @LIBINTL@ to get libintl_gettext.
16490         Problem reported by Tom G. Christensen in
16491         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16492         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
16493         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
16494         * modules/futimens-tests (test_futimens_LDADD):
16495         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
16497 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16499         locale: port to Solaris 2.6 and 7 + GNU gettext
16500         * lib/locale.in.h: Just include_next <locale.h> when
16501         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
16502         when combining the localename module with GNU gettext 0.18.2.
16503         Problem reported by Tom G. Christensen in
16504         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
16506 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16508         stdlib: port to Solaris 2.6
16509         Also, the code worked on Solaris 7 through 9 only by accident.
16510         Problem reported by Tom G. Christensen in
16511         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
16512         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
16513         simply include the system stdlib.h.
16514         * lib/getopt.in.h (__need_system_stdlib_h):
16515         * lib/pthread.in.h (__need_system_stdlib_h):
16516         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
16517         Define when including <stdlib.h>, to avoid problems at least for
16518         the pthread case on Solaris 2.6 and 7.  These .h files can get by
16519         with the system stdlib.h.
16521 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
16523         doc: update main copyright year
16524         * doc/gnulib.texi: Update copyright date.
16526         doc: improve ISO 8601 discussion
16527         * doc/parse-datetime.texi (Combined date and time of day items):
16528         Specify more carefully what formats are supported and what is
16529         done with excess precision.
16531 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16533         doc: avoid small caps
16534         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
16535         they're more trouble than they're worth.  Suggested by Karl Berry
16536         in <http://bugs.gnu.org/13360>.
16538         regex: conform to strict C
16539         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
16540         From Aharon Robbins.
16542         gnulib-tool: fix incompatibility with autopoint 0.18.2
16543         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
16544         Problem reported by Tom G. Christensen in
16545         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
16547 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16549         fprintftime: bring back and reword fwrite comment
16550         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
16552         stdio: remove now-unnecessary stdio.c
16553         Since stdio.in.h no longer uses inline functions, we no longer
16554         need to compile the extern versions.
16555         * lib/stdio.c: Remove.
16556         * modules/stdio (Files): Remove lib/stdio.c.
16557         (lib_SOURCES): Remove.
16559         unicodeio: depend on stdio, not ignore-value
16560         * lib/unicodeio.c: Do not include ignore-value.h.
16561         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
16562         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
16564         fprintftime: depend on stdio, not ignore-value
16565         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
16566         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
16567         since the stdio module arranges to silence that warning now.
16568         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
16570 2012-10-04  Simon Josefsson  <simon@josefsson.org>
16572         stdint-tests: Fix expanded-before-required-warning.
16573         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
16575 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16577         fwrite: silence __wur only for older glibc versions
16578         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
16579         This will help us remove this workaround some time in the far future.
16581 2013-01-03  Eric Blake  <eblake@redhat.com>
16583         fwrite: silence __wur without using inline
16584         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
16585         just gcc, and in a way that avoids inline issues.
16586         * modules/stdio (Depends-on): Drop extern-inline.
16588 2013-01-03  Jim Meyering  <jim@meyering.net>
16590         update-copyright: avoid copyright notice date corruption
16591         Given a sequence of copyright year numbers in which the final
16592         one was a two-digit number that happened to be a substring of
16593         a preceding four-digit year number, we would mistakenly update
16594         the substring (from two- to four-digit) rather than the two-digit
16595         number at the end, which, combined with the addition of the current
16596         4-digit year number would yield two 5-digit year numbers, e.g.,
16597         here, it would convert the first "99" to "1999, 2013" rather than
16598         the final one:
16599           1991, 99
16600           11999, 20131, 1999
16601         * build-aux/update-copyright: Tighten a regexp.
16602         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
16603         Reported by Joseph Myers in
16604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
16606 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16608         regex: omit needless signed-pointer casts
16609         * lib/regcomp.c (build_charclass, build_charclass_op):
16610         Use char *, not unsigned char *, for class name and extra.
16611         The char values are always nonnegative so there's no need to
16612         insist on unsigned char * here, and using char * removes the need
16613         for casts.  Reported by Aharon Robbins in
16614         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16616         regex: support Gawk, which never uses alloca
16617         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
16618         Do not include in this case.  Gawk doesn't supply a substitute
16619         alloca.h and doesn't need one.
16621         regex: port __libc_lock_define usage to C89
16622         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
16623         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
16624         does not conform to C89, as it has an empty macro argument.
16625         Reported by Aharon Robbins in
16626         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16628 2013-01-01  Eric Blake  <eblake@redhat.com>
16630         maint: update all copyright year number ranges
16631         Run "make update-copyright".
16633         version-etc: bump copyright year reported in --version
16634         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
16636 2012-12-31  Eric Blake  <eblake@redhat.com>
16638         sigprocmask-tests: skip test if pid is unexpectedly large
16639         * tests/test-sigprocmask.c (main): Add range check.
16641         git-version-gen: avoid test -z portability glitch
16642         * build-aux/git-version-gen: Prefer portable test spelling, since
16643         git-version-gen is run on more than just developer machines.
16645 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
16647         git-version-gen: add --fallback option to use if git is not present
16648         * build-aux/git-version-gen: Add support for the new option --fallback,
16649         which comes into play when there is no $tarball_version_file and
16650         git is not working.
16651         (scriptversion): Update.
16653         maint.mk: handle missing git with more grace
16654         * top/maint.mk (no-submodule-changes, public-submodule-commit):
16655         Quietly proceed if git is not present.
16657 2012-12-31  Eric Blake  <eblake@redhat.com>
16659         dup2: work around cygwin bug
16660         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
16661         * lib/dup2.c (rpl_dup2): Work around it.
16662         * doc/posix-functions/dup2.texi (dup2): Document it.
16664 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16666         regex: remove unnecessary dependency on localcharset.h
16667         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
16668         hasn't been needed for years.
16669         * modules/regex (Depends-on): Remove localcharset.
16671         regex: revert single-byte change
16672         * lib/regexec.c (check_node_accept_bytes): Revert previous change
16673         to this function.  This was alredy fixed in a different way, at
16674         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
16675         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
16676         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
16678         regex: simplify based on Gawk version
16679         * lib/regex_internal.c (re_dfa_add_node): Simplify.
16680         Reported by Aharon Robbins in
16681         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16683 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16685         regex: check that pattern char is single-byte
16686         Reported by Aharon Robbins in
16687         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16688         * lib/regexec.c (check_node_accept_bytes):
16689         Return 0 if the pattern string has a multibyte character here.
16691         regex: implement rational ranges
16692         Reported by Aharon Robbins in
16693         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16694         * lib/regcomp.c (build_range_exp) [!_LIBC]:
16695         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
16696         Implement rational ranges.
16698         regex: avoid redefining __wctype
16699         Reported by Aharon Robbins in
16700         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16701         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
16702         #undef before defining.
16704         regex: port to hosts where malloc (0) == NULL
16705         Reported by Aharon Robbins in
16706         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16707         * lib/regex_internal.c (re_node_set_alloc):
16708         Don't assume that malloc (0) yields nonnull.
16709         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
16710         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
16711         * modules/regex (Files): Add m4/eealloc.m4.
16713         regex: port to C89
16714         Reported by Aharon Robbins in
16715         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16716         * lib/regcomp.c (init_word_char): Declaration before statement.
16718         regex: merge glibc changes
16719         Also, copy the license wording from glibc.  This simplifies
16720         merging changes.  gnulib-tool will change the wording to GPL as
16721         appropriate, when importing it to other packages.  The only
16722         glibc change made since the last merge, which needs merging, is:
16723         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
16724         * lib/regex_internal.h (gettext): Remove use of INTUSE.
16726         * users.txt: Add Emacs.
16728         doc: omit mention of version when not needed
16729         * doc/gnulib-intro.texi (Portability and Application Code):
16730         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
16731         Don't mention particular dates or versions when not necessary, so
16732         that the documentation won't go out of date so quickly.
16734         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
16736 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
16738         bootstrap: pass --force to autoreconf.
16739         * build-aux/bootstrap (AUTORECONFFLAGS): New.
16740         Add "--force" so that Automake's ylwrap and other such tools
16741         be updated at each bootstrap invocation.
16742         Use it.
16744 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16746         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
16747         The earlier patch forgot to update one of the #if conditions, causing
16748         a problem on Debian testing i386 reported by Mats Erik Andersson
16749         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
16750         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
16751         (__argp_fmtstream_puts, argp_fmtstream_puts)
16752         (__argp_fmtstream_write, argp_fmtstream_write)
16753         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
16755         * doc/gnulib-readme.texi: Minor fixups.
16756         (Portability guidelines): Modernize URLs.  Remove some repetition.
16757         (Indent with spaces not TABs): Reword to avoid too-long lines.
16758         Remove some '@ifset standalone' stuff that isn't used.
16760         * doc/gnulib-readme.texi (Portability guidelines):
16761         ctype.h, not ctime.h.
16763         Correct name of POSIX.1-2001.
16764         * doc/posix-functions/fgetc.texi (fgetc):
16765         * doc/posix-functions/fgets.texi (fgets):
16766         * doc/posix-functions/fread.texi (fread):
16767         * doc/posix-functions/fscanf.texi (fscanf):
16768         * doc/posix-functions/getc.texi (getc):
16769         * doc/posix-functions/getchar.texi (getchar):
16770         * doc/posix-functions/scanf.texi (scanf):
16771         POSIX.1-2001, not POSIX-2001.
16773         doc: move README into manual
16774         * README: Move contents to new file doc/gnulib-readme.texi.
16775         Replace with a one-line summary.
16776         * doc/gnulib.texi (Brief Overview): New section,
16777         with old intro preface.  Include gnulib-readme.texi for contents.
16778         (Philosophy): Rename from "Introduction", since this
16779         section no longer introduces the rest.  Write a new preface.
16780         * doc/gnulib-readme.texi: New file, with the old contents of
16781         README texinfo-ized.  This way, the README info appears
16782         in the online and printed manual.
16784 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
16786         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
16787         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
16788         c_vasprintf() prototype.
16790 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
16792         c-vasprintf: Fix "empty declaration" warning reported by GCC.
16793         * lib/c-vasprintf.h: Remove stray semicolon.
16795 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16797         gettext: avoid obsolete macro AM_PROG_MKDIR_P
16798         It is obsolete and is planned to be removed from Automake 1.14; see
16799         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
16800         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
16801         (installdirs-data, installdirs-data-yes):
16802         Use $(MKDIR_P), not $(mkdir_p).
16803         * m4/intl.m4 (AM_INTL_SUBDIR):
16804         * m4/po.m4 (AM_PO_SUBDIRS):
16805         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
16807 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16809         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
16810         On this platform, we are not optimizing but we are using
16811         the substitute for extern inlines, so compile as if
16812         C99-style extern inline, or a substitute, is available.
16813         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
16814         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
16815         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
16816         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
16817         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
16818         Declare as ARGP_FS_EI, not as extern.
16819         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
16820         (__option_is_short, _option_is_end, __option_is_end)
16821         [!_LIBC && __USE_EXTERN_INLINES]:
16822         Declare as ARGP_EI, not as extern.
16824 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16826         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
16827         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
16828         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
16829         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
16830         ...), as the latter is fatal with older Autoconfs.
16831         Problem reported and fix suggested by Eric Blake in thread starting at
16832         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
16834 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16836         AC_PROG_MKDIR_P: don't workaround if not buggy
16837         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
16838         Define only for Autoconf versions before 2.62.
16839         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
16840         undocumented m4_PACKAGE_VERSION, for consistency with the
16841         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
16842         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
16843         was introduced in 2.62.
16845 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
16847         New 'c-*printf' modules for formatted output in C locale.
16849         New module 'c-vasnprintf'.
16850         * modules/c-vasnprintf: New file.
16851         * lib/c-vasnprintf.c: New file.
16852         * lib/c-vasnprintf.h: New file.
16854         New module 'c-snprintf'.
16855         * modules/c-snprintf: New file.
16856         * modules/c-snprintf-tests: New file.
16857         * lib/c-snprintf.c: New file.
16858         * lib/c-snprintf.h: New file.
16859         * tests/test-c-snprintf.c: New file.
16860         * tests/test-c-snprintf.sh: New file.
16862         New module 'c-vsnprintf'.
16863         * modules/c-vsnprintf: New file.
16864         * modules/c-vsnprintf-tests: New file.
16865         * lib/c-vsnprintf.c: New file.
16866         * lib/c-vsnprintf.h: New file.
16867         * tests/test-c-vsnprintf.c: New file.
16868         * tests/test-c-vsnprintf.sh: New file.
16870         New module 'c-vasprintf'.
16871         * modules/c-vasprintf: New file.
16872         * modules/c-vasprintf-tests: New file.
16873         * lib/c-asprintf.c: New file.
16874         * lib/c-vasprintf.c: New file.
16875         * lib/c-vasprintf.h: New file.
16876         * tests/test-c-vasprintf.c  +: New file.
16877         * tests/test-c-vasprintf.sh: New file.
16879         New module 'c-xvasprintf'.
16880         * modules/c-xvasprintf: New file.
16881         * modules/c-xvasprintf-tests: New file.
16882         * lib/c-xasprintf.c: New file.
16883         * lib/c-xvasprintf.c: New file.
16884         * lib/c-xvasprintf.h: New file.
16885         * tests/test-c-xvasprintf.c: New file.
16886         * tests/test-c-xvasprintf.sh: New file.
16888 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16890         argp: better 'inline'
16891         Use extern-inline module to declare extern inline functions.
16892         This avoids some bogus warning diagnostics.  Problem discovered
16893         when modifying GNU tar to use the manywarnings module.
16894         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
16895         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
16896         Define based on extern-inline.
16897         * modules/argp (Depends-on): Add extern-inline.
16899 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16901         filemode, sys_stat: Handle MPX files a la AIX.
16902         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
16903         * lib/sys_stat.in.h (S_ISMPX): New macro.
16904         * tests/test-sys_stat.c: Add tests for MPX files.
16906 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16908         x-to-1: honor $PERL
16909         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
16910         a chance to use his preferred version of Perl.  This is typically
16911         required by Darwin users whose default /usr/bin/perl does not have all
16912         the libraries required by help2man, and who need to use their MacPorts
16913         installation of Perl instead.
16915 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
16917         gnu-web-doc-update: add all the new files, even in new directories
16918         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
16919         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
16920         Use it.
16921         (main): Don't use cvsutils to get the list of unknown files,
16922         just add all the existing files and directories.
16924 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
16926         gnu-web-doc-update: improve --help
16927         * build-aux/gnu-web-doc-update: Move comments into --help.
16929 2012-12-07  Eric Wong  <normalperson@yhbt.net>
16931         mountlist: recognize more "dummy" file systems
16932         * lib/mountlist.c (ME_DUMMY_0):
16933         Add these dummy FS names to the list:
16934         - "debugfs" virtual filesystem for kernel debugging
16935         - "devpts" PTY slave filesystem
16936         - "devtmpfs" device filesystem on top of tmpfs/ramfs
16937         - "fusectl" control filesystem for FUSE
16938         - "mqueue" enumerates POSIX message queues
16939         - "rpc_pipefs" kernel <-> userspace bridge for NFS
16940         - "sysfs" is for exporting kernel objects
16941         - "devfs" device filesystem for Linux 2.4 and FreeBSD
16943 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16945         extern-inline: avoid incompatibility with Darwin Libc
16946         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
16947         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
16948         Problem reported by Akim Demaille in
16949         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
16951 2012-12-11  Simon Josefsson  <simon@josefsson.org>
16953         gnupload: Work with GnuPG using gpg-agent (for smartcards).
16954         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
16955         let it handle password prompting.
16957 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
16959         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
16960         * lib/canonicalize.c (canonicalize_filename_mode):
16961         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
16962         fetching the current directory.  Don't overrun the beginning of
16963         rpath if there's no slashes after the MS-Windows drive letter.
16965 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
16967         maint.mk: avoid extra forks
16968         * top/maint.mk (_cfg_mk): The GNU make manual documents that
16969         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
16970         So use that instead of "$(shell test -f FILE && echo FILE)".
16972 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16974         vasnprintf: fix ASCII_ONLY typo
16975         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16976         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16977         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16978         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
16979         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
16981 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16983         list, oset, xlist, xoset: fix extern inline issue with C99
16984         This was introduced by my recent changes for 'inline'.
16985         Problem reported for gettext by Daiki Ueno in
16986         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
16987         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
16988         (gl_list_nx_create, gl_list_size, gl_list_node_value)
16989         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
16990         (gl_list_previous_node, gl_list_get_at)
16991         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
16992         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
16993         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
16994         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
16995         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
16996         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
16997         (gl_list_iterator_free, gl_sortedlist_search)
16998         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
16999         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
17000         (gl_sortedlist_remove):
17001         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
17002         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
17003         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
17004         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
17005         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
17006         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
17007         (gl_list_add_at, gl_sortedlist_add):
17008         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
17009         Wrap these extern decls inside "#if 0", because they are implemented
17010         as inline functions, and extern inline is not what's wanted here.
17011         It would simplify these .h files to remove the extern decls entirely,
17012         although a downside would be less-clear separation between
17013         specification and implementation.
17015 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17017         sys_stat: no 'static inline'
17018         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
17019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
17021         extern-inline: no 'static inline'
17022         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
17023         Do not require AC_C_INLINE.
17024         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
17025         'static inline', for older compilers.
17027         snippet/warn-on-use: no 'static inline'
17028         * build-aux/snippet/warn-on-use.h:
17029         Remove unnecessary 'inline' in comment.
17031         rbtree-list, rbtreehash-list: no 'static inline'
17032         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
17033         * lib/gl_anytree_list2.h (node_at):
17034         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
17035         (gl_oset_first, add_nodes_to_buckets):
17036         Now static, not static inline.
17038         regex: no 'static inline'
17039         * lib/regex_internal.c (calc_state_hash):
17040         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
17041         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17042         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
17043         Now static, not static inline.
17044         (inline) [__GNUC__ < 3 && _LIBC]:
17045         Remove macro; no longer needed.
17047         xvasprintf: no 'static inline'
17048         * lib/xvasprintf.c (xstrcat):
17049         Now static, not static inline.
17050         * m4/xvasprintf.m4 (gl_XVASPRINTF):
17051         Do not require AC_C_INLINE.
17053         parse-datetime, parse-duration: no 'static inline'
17054         * lib/parse-datetime.y (to_uchar):
17055         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
17056         (scale_n_add):
17057         Now static, not static inline.
17058         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
17059         * modules/parse-duration (configure.ac):
17060         Do not require AC_C_INLINE.
17062         getaddrinfo: no 'static inline'
17063         * lib/getaddrinfo.c (validate_family):
17064         Now static, not static inline.
17065         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
17066         Do not require AC_C_INLINE.
17068         ftruncate, fts, lstat, openat, raise: no 'static inline'
17069         * lib/ftruncate.c (chsize_nothrow):
17070         * lib/fts.c (opendirat, diropen):
17071         * lib/lstat.c (orig_lstat):
17072         * lib/openat.c (orig_openat):
17073         * lib/raise.c (raise_nothrow):
17074         Now static, not static inline.
17075         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
17076         * m4/fts.m4 (gl_FUNC_FTS_CORE):
17077         * m4/lstat.m4 (gl_PREREQ_LSTAT):
17078         * m4/openat.m4 (gl_PREREQ_OPENAT):
17079         * m4/raise.m4 (gl_PREREQ_RAISE):
17080         Do not require AC_C_INLINE.
17082         fflush, stat: no 'static inline'
17083         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17084         (clear_ungetc_buffer, disable_seek_optimization)
17085         (restore_seek_optimization, update_fpos_cache):
17086         * lib/stat.c (orig_stat):
17087         Now static, not static inline.
17088         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
17089         (update_fpos_cache):
17090         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
17091         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
17092         * m4/stat.m4 (gl_PREREQ_STAT):
17093         Do not require AC_C_INLINE.
17095         error, filevercmp: no 'static inline'
17096         * lib/error.c (is_open, flush_stdout):
17097         * lib/filevercmp.c (order):
17098         Now static, not static inline.
17099         * m4/error.m4 (gl_PREREQ_ERROR):
17100         * modules/filevercmp (configure.ac):
17101         Do not require AC_C_INLINE.
17103         dup, execute, fatal-signal, etc.: no 'static inline'
17104         * lib/dup.c (dup_nothrow):
17105         * lib/execute.c (nonintr_close, nonintr_open):
17106         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
17107         * lib/fopen.c (orig_fopen):
17108         * lib/freadseek.c (freadptrinc):
17109         * lib/freopen.c (orig_freopen):
17110         * lib/fstat.c (orig_fstat, fstat_nothrow):
17111         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
17112         (get_rusage_as_via_iterator):
17113         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
17114         * lib/getdtablesize.c (_setmaxstdio_nothrow):
17115         * lib/isatty.c (_isatty_nothrow):
17116         * lib/open.c (orig_open):
17117         * lib/read.c (read_nothrow):
17118         * lib/sigprocmask.c (signal_nothrow):
17119         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
17120         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
17121         * lib/wait-process.c (unregister_slave_subprocess):
17122         * lib/write.c (write_nothrow):
17123         Now static, not static inline.
17124         * lib/spawn-pipe.c (nonintr_open): Define only if
17125         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
17126         * m4/dup.m4 (gl_PREREQ_DUP):
17127         * m4/execute.m4 (gl_EXECUTE):
17128         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
17129         * m4/fopen.m4 (gl_PREREQ_FOPEN):
17130         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
17131         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
17132         * m4/fstat.m4 (gl_PREREQ_FSTAT):
17133         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
17134         * m4/isatty.m4 (gl_PREREQ_ISATTY):
17135         * m4/open.m4 (gl_PREREQ_OPEN):
17136         * m4/read.m4 (gl_PREREQ_READ):
17137         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
17138         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
17139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
17140         * m4/wait-process.m4 (gl_WAIT_PROCESS):
17141         * m4/write.m4 (gl_PREREQ_WRITE):
17142         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
17143         Do not require AC_C_INLINE.
17145         c-strtod, memcoll, readutmp: no 'static inline'
17146         * lib/c-strtod.c (c_locale):
17147         * lib/memcoll.c (strcoll_loop):
17148         * lib/readutmp.c (desirable_utmp_entry):
17149         Now static, not static inline.
17150         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
17151         * m4/memcoll.m4 (gl_MEMCOLL):
17152         * m4/readutmp.m4 (gl_READUTMP):
17153         Do not require AC_C_INLINE.
17155         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
17156         * lib/arctwo.c (to_uchar):
17157         * lib/md4.c (set_uint32):
17158         * lib/md5.c (set_uint32):
17159         * lib/sha1.c (set_uint32):
17160         * lib/sha256.c (set_uint32):
17161         * lib/sha512.c (set_uint64):
17162         Now static, not static inline.  This is a bit simpler, and doesn't
17163         affect performance with GCC and default optimization.
17164         * m4/arctwo.m4 (gl_ARCTWO):
17165         * m4/md4.m4 (gl_MD4):
17166         * m4/md5.m4 (gl_MD5):
17167         * m4/sha1.m4 (gl_SHA1):
17168         * m4/sha256.m4 (gl_SHA256):
17169         * m4/sha512.m4 (gl_SHA512):
17170         Do not require AC_C_INLINE.
17172         cond, lock, thread: better 'inline'
17173         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
17174         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
17175         New macros.  Use them instead of static inline, for header functions.
17176         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
17177         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17178         * lib/glthread/lock.c (gl_waitqueue_init)
17179         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17180         * lib/glthread/thread.c (get_current_thread_handle):
17181         Change 'static inline' to 'inline'.
17182         * lib/glthread/cond.h, lib/glthread/thread.h:
17183         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17184         * m4/cond.m4 (gl_COND):
17185         * m4/lock.m4 (gl_PREREQ_LOCK):
17186         * m4/thread.m4 (gl_THREAD):
17187         Do not require AC_C_INLINE.
17188         * modules/cond, modules/thread (Depends-on): Add extern-inline.
17190         chdir-long, cycle-check, savewd: better 'inline'
17191         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
17192         (find_non_slash):
17193         * lib/cycle-check.c (is_zero_or_power_of_two):
17194         * lib/savewd.c (savewd_delegating):
17195         Change 'static inline' to 'inline'.
17196         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
17197         Replace all remaining uses of 'static inline' with it.
17198         * lib/savewd.h:
17199         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17200         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
17201         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17202         * m4/savewd.m4 (gl_SAVEWD):
17203         Do not require AC_C_INLINE.
17204         * modules/savewd (Depends-on): Add extern-inline.
17206         base32, base64: no need for 'inline'
17207         * lib/base32.c (to_uchar, get_8, decode_8):
17208         * lib/base64.c (to_uchar, get_4, decode_4):
17209         Change 'static inline' to 'inline'.
17210         * m4/base32.m4 (gl_PREREQ_BASE32):
17211         * m4/base64.m4 (gl_PREREQ_BASE64):
17212         Do not require AC_C_INLINE.
17214         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
17215         * lib/gl_array_oset.c (gl_array_nx_add_at):
17216         (gl_array_remove_at):
17217         * lib/gl_linkedhash_list.c (hash_resize_after_add)
17218         (add_to_bucket, remove_from_bucket):
17219         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
17220         Change 'static inline' to 'static', as it's simpler to omit
17221         'inline' unless there's a significant performance advantage.
17223         list, oset, xlist, xoset, xsublist: simplify via extern inline
17224         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
17225         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
17226         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
17227         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
17228         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
17229         New macro.  Replace all uses of 'static inline' with it.
17230         [HAVE_INLINE]: Implement functions as *_INLINE functions,
17231         instead of as macros FOO that are defined to static inline
17232         functions FOO_inline.
17233         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
17234         * lib/gl_xsublist.c:
17235         Reimplement from scratch, by defining the corresponding *_INLINE
17236         macro and including the corresponding .h file.  This is simpler.
17237         * modules/list, modules/oset, modules/xlist, modules/xoset:
17238         (Files): Remove m4/gl_list.m4.
17239         (configure.ac): Remove gl_LIST.
17240         * m4/gl_list.m4: Remove.
17241         * modules/list, modules/oset, modules/xlist, modules/xoset:
17242         * modules/xsublist:
17243         (Depends-on): Depend on extern-inline, not inline.
17245         xalloc: better 'inline'
17246         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
17247         New macro.  Replace all uses of 'static inline' with it.
17248         (static_inline): Remove.
17249         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17250         Let 'extern inline' do the work automatically, instead of doing
17251         it by hand.
17252         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
17253         Remove.  All uses removed.
17254         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
17256         gethrxtime: better 'inline'
17257         * lib/xtime.c: New file.
17258         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
17259         * lib/xtime.h (XTIME_INCLUDE):
17260         New macros.  Replace all uses of 'static inline' with them.
17261         * lib/gethrxtime.c (gethrxtime): Define only if
17262         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
17263         this source file is now always compiled, because of the extern inline.
17264         * lib/gethrxtime.h, lib/xtime.h:
17265         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17266         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
17267         if gethrtime works, as they're not needed in that case.
17268         (gl_XTIME): Do not require AC_C_INLINE.
17269         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
17270         compiled now.  Move the check into gl_GETHRXTIME.
17271         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
17272         (Depends-on): Add extern-inline.
17273         (configure.ac): gethrxtime is always compiled now.
17274         (lib_SOURCES): Add gethrxtime.c.
17276         wctype-h: better 'inline'
17277         * lib/wctype-h.c: New file.
17278         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
17279         New macro.  Replace all uses of 'static inline' with it.
17280         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17281         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
17282         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
17283         (Depends-on): Add extern-inline.
17285         unistd: better 'inline'
17286         * lib/unistd.c: New file.
17287         * lib/unistd.in.h (_GL_UNISTD_INLINE):
17288         New macro.  Replace all uses of 'static inline' with it.
17289         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17290         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
17291         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
17292         (Depends-on): Add extern-inline.
17294         sys_socket: better 'inline'
17295         * lib/sys_socket.c: New file.
17296         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
17297         New macro.  Replace all uses of 'static inline' with it.
17298         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
17300         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
17301         (Depends-on): Add extern-inline.
17303         stdio: better 'inline'
17304         * lib/stdio.c: New file.
17305         * lib/stdio.in.h (_GL_STDIO_INLINE):
17306         New macro.  Replace all uses of 'static inline' with it.
17307         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17308         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
17309         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
17310         (Depends-on): Add extern-inline.
17312         sigaction: better 'inline'
17313         * lib/sig-handler.c: New file.
17314         * lib/sig-handler.h (SIG_HANDLER_INLINE):
17315         New macro.  Replace all uses of 'static inline' with it.
17316         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17317         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
17318         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
17319         (Depends-on): Add extern-inline.
17321         selinux-h: better 'inline'
17322         * lib/se-context.c, lib/se-selinux.c: New files.
17323         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
17324         * lib/se-context.in.h (SE_CONTEXT_INLINE):
17325         New macro.  Replace all uses of 'static inline' with it.
17326         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17327         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
17328         New macro.  Replace all uses of 'static inline' with it.
17329         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17330         * modules/selinux-h (Files, lib_SOURCES):
17331         Add lib/se-context.c, lib/se-selinux.c.
17332         (Depends-on): Add extern-inline.
17333         (configure.ac): Do not require AC_C_INLINE.
17335         pthread: better 'inline'
17336         * lib/pthread.c: New file.
17337         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
17338         New macro.  Replace all uses of 'static inline' with it.
17339         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17340         * m4/pthread.m4 (gl_PTHREAD_CHECK):
17341         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
17342         * modules/pthread (Files): Add lib/pthread.c.
17343         (Depends-on): Add extern-inline.
17345         math: better 'inline'
17346         * lib/math.c: New file.
17347         * lib/math.in.h (_GL_MATH_INLINE):
17348         New macro.  Replace all uses of 'static inline' with it.
17349         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17350         * m4/math_h.m4 (gl_MATH_H):
17351         Do not require AC_C_INLINE.
17352         * modules/math (Files, lib_SOURCES):
17353         Add lib/math.c.
17354         (Depends-on): Add extern-inline.
17356         count-one-bits: better 'inline'
17357         * lib/count-one-bits.c: New file.
17358         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
17359         New macro.  Replace all uses of 'static inline' with it.
17360         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17361         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
17362         Do not require AC_C_INLINE.
17363         * modules/count-one-bits (Files, lib_SOURCES):
17364         Add lib/count-one-bits.c.
17365         (Depends-on): Add extern-inline.
17367         count-leading-zeros: better 'inline'
17368         * lib/count-leading-zeros.c: New file.
17369         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
17370         New macro.  Replace all uses of 'static inline' with it.
17371         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17372         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
17373         Do not require AC_C_INLINE.
17374         * modules/count-leading-zeros (Files, lib_SOURCES):
17375         Add lib/count-leading-zeros.c.
17376         (Depends-on): Add extern-inline.
17378         bitrotate: better 'inline'
17379         * lib/bitrotate.c: New file.
17380         * lib/bitrotate.h (BITROTATE_INLINE):
17381         New macros.
17382         Replace all uses of 'static inline' with them.
17383         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17384         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
17385         (Depends-on): Add extern-inline.
17386         (configure.ac): Do not require AC_C_INLINE.
17388 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
17390         maint.mk: avoid gratuitous failure
17391         Reported by Stefano Lattarini in
17392         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
17393         * top/maint.mk (public-submodule-commit): Quote more safely.
17395 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
17397         canonicalize, canonicalize-lgpl: support MS-Windows file names
17398         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
17399         for test cases, which it'd be nice to add at some point.
17400         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
17401         * lib/canonicalize.c (canonicalize_filename_mode):
17402         * lib/canonicalize-lgpl.c (__realpath):
17403         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
17404         slash is at the beginning of the file name.  Use ISSLASH, instead
17405         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
17406         the first character with '/'.  Test for
17407         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
17408         with a drive letter.
17409         * lib/canonicalize.c (SLASHES): New macro.
17410         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
17412 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
17414         fts: introduce FTS_VERBATIM
17415         * lib/fts_.h (FTS_VERBATIM): New bit flag.
17416         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
17417         * lib/fts.c (fts_open): Honor it.
17419 2012-11-09  Pádraig Brady  <P@draigBrady.com>
17421         getlogin-tests: allow errno == ENXIO
17422         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17423         with errno == ENXIO (No controlling tty).
17424         getlogin_r-tests: Likewise. Also allow errno == ENOENT
17425         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
17426         with errno == ENOENT.  This was reported to happen in various
17427         situations on GNU/Linux.
17429 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17431         getlogin-tests: allow errno == ENOENT
17432         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17433         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
17434         when running a test in an Emacs shell buffer.
17436 2012-11-08  Jim Meyering  <jim@meyering.net>
17438         tests/nap.h: avoid warning about unused variable
17439         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
17441         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
17442         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
17443         white space before each of the special-cased file names, to avoid
17444         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
17445         in http://bugs.gnu.org/12830.
17447 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17449         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
17450         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
17451         fails with errno == EBADF when fd is opened with O_PATH.
17452         Reported by Jim Meyering in
17453         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
17454         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17455         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
17457 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17459         test-utimens: speed up by taking shorter naps
17460         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
17461         New functions.
17462         (nap): Use them, to do a better job of guessing the delay.
17463         On Fedora 17 with ext4 atop md atop hard disks, this made
17464         test-utimens run 10x faster, because the test napped for
17465         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
17466         <http://bugs.gnu.org/12820#11>.
17468 2012-11-07  Jim Meyering  <jim@meyering.net>
17470         mountlist.c: fix a compilation failure
17471         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
17472         I introduced while transforming commit v0.0-7683-g613bcb6
17474 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17476         errno: port to LynxOS 178 2.2.2
17477         Problem reported by Joel Brobecker in
17478         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
17479         * doc/posix-headers/errno.texi (errno.h): Document this.
17480         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
17481         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
17482         Supply a string for EILSEQ.
17483         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
17485 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17487         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
17488         Linux kernel 2.6.39 introduced O_PATH (see
17489         <http://lwn.net/Articles/433854/>) and this is a better fallback
17490         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
17491         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17492         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
17493         * lib/fcntl.in.h (O_ACCMODE):
17494         * tests/test-fcntl-h.c (main):
17495         Do not reject O_ACCMODE merely because it has more than the
17496         minimal number of bits, as POSIX allows extensions here.
17498 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
17500         mountlist: do not classify a bind-mounted dir entry as "dummy"
17501         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
17502         the "none"-testing clause.
17503         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
17504         exception for bind-mounted directories.
17506 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
17508         quote: provide a means to escape strings with nul characters
17509         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
17510         (quote, quote_n): Rename formal arguments for consistency with
17511         quotearg.
17513 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17515         test-raise: don't assume 199 is an invalid signal
17516         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
17518         sh-quote-tests: port to Solaris 9
17519         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
17520         Problem reported by Dagobert Michelsen in
17521         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
17523 2012-10-28  Jim Meyering  <jim@meyering.net>
17525         maint.mk: rename a new configurable variable
17526         * top/maint.mk (_gl_translatable_string_re): Rename from
17527         translation-markers: _gl_ prefix to insulate from user Makefile code,
17528         and the _re suffix to inform that it's a regular expression.
17530 2012-10-26  Eric Blake  <eblake@redhat.com>
17532         maint.mk: let packages tweak sc_po_check pattern
17533         * top/maint.mk (sc_po_check): Add translation-markers, to allow
17534         finding files with other translation markers.
17536 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17538         euidaccess: speed up 'configure' on GNU hosts
17539         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
17540         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
17541         it's needed only in this case.  Use AC_CHECK_DECLS, not
17542         AC_CHECK_DECLS_ONCE.
17543         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
17544         or AC_REQUIRE for AC_FUNC_GETGROUPS.
17546         * lib/regexec.c (re_search_internal): Fix grammar in comment.
17548 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17550         fchmodat, fchownat, fstatat: port to non-inlining compilers
17551         Problem reported for FreeBSD 9 by Jim Meyering in
17552         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
17553         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
17554         New files, which define FCHMODAT_INLINE etc.
17555         * lib/fchmodat.c (FCHMODAT_INLINE):
17556         * lib/fchownat.c (FCHOWNAT_INLINE):
17557         * lib/fstatat.c (FSTATAT_INLINE):
17558         Remove, as chmodat.c etc. now do this.
17559         * modules/fchmodat (Files): Add lib/chmodat.c.
17560         * modules/fchownat (Files): Add lib/chownat.c.
17561         * modules/fstatat (Files): Add lib/statat.c.
17563 2012-10-15  Jim Meyering  <jim@meyering.net>
17565         fchmodat.c, fchownat.c: compile-impeding typos
17566         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
17567         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
17568         Introduced in commit v0.0-7636-gd202279.
17570 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17572         fcntl-h: support GNU flags like O_IGNORE_CTTY
17573         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
17574         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
17575         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
17576         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
17577         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
17578         Define to 0 if not already defined.
17579         * tests/test-fcntl-h.c: Test these new flags.
17581 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17583         faccessat, etc.: support AT_FDCWD-only use
17584         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
17585         this function only if its first argument is AT_FDCWD.
17586         Emacs wants faccessat for AT_EACCESS but not for any first-arg
17587         values other than AT_FDCWD, so it doesn't want all the openat
17588         machinery with fchdir etc.
17589         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
17590         * modules/fstatat, modules/mkdirat, modules/openat (Files):
17591         * modules/unlinkat (Files):
17592         Remove lib/openat-priv.h, as at-internal supplies this file.
17593         Removing this file here allows us to support programs like Emacs
17594         that avoid at-internal.
17596         faccessat: speed up 'configure' on mainstream hosts
17597         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
17598         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
17599         since it's only on unusual platforms that we need to check for
17600         'access', and it's better not to slow 'configure' down on all
17601         platforms.
17603         faccessat: port to Solaris 10
17604         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
17605         Needed on Solaris 10, which doesn't have AT_EACCESS,
17606         so we need the Gnulib fcntl.h, which defines it.
17608 2012-10-14  Pádraig Brady  <P@draigBrady.com>
17609         canonicalize: fix C89 compilation
17610         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
17611         declarations so C89 is supported.  Also remove the comment
17612         referencing memorty allocation as the suggested feature could
17613         not be implemented as suggested.
17614         Reported by Michael Goffioul.
17616 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17618         group-member: omit unnecessary dependencies
17619         This is for Emacs, which has its own allocator and where we
17620         don't want to use xalloc.
17621         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
17622         since we no longer use xmalloc.  Do not include stdbool.h, since
17623         the changes below happen to remove the only use of bool.
17624         (GROUPBUF_SIZE): New constant.
17625         (struct group_info): Remove n_groups member.  Add groupbuf member.
17626         This lets us get the groups without using malloc, usually.
17627         (free_group_info, get_group_info): Adjust to this.
17628         (get_group_info): Return the number of groups found, or -1 on error.
17629         Use plain malloc not xmalloc, and treat its failure as if there
17630         are no groups, as the user already loses in case of error.
17631         (group_member): Simplify, based on changes to get_group_info.
17632         * modules/group-member (Depends-on): Remove dependencies on
17633         xalloc and stdbool.  Add dependency on xalloc-oversized.
17635 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
17637         gethrxtime: port to C++
17638         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
17640 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17642         ptsname: fix macro-name typo
17643         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
17645 2012-10-03  Simon Josefsson  <simon@josefsson.org>
17647         inttostr: Relax license.
17648         * modules/inttostr (License): Change from LGPL to LGPLv2+.
17650 2012-10-03  Eric Blake  <eblake@redhat.com>
17652         ptsname_r: support ptys returned by FreeBSD posix_openpt
17653         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
17654         lives in /dev/pts/.
17656 2012-10-02  Eric Blake  <eblake@redhat.com>
17658         pselect: reject invalid file descriptors
17659         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
17660         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
17661         * modules/pselect (Depends-on): Add dup2.
17662         * doc/posix-functions/pselect.texi (pselect): Document this.
17664         select: reject invalid file descriptors
17665         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
17666         * lib/select.c (rpl_select) [!win32]: Work around it.
17667         * modules/select (Depends-on): Add dup2.
17668         * doc/posix-functions/select.texi (select): Document this.
17670         select: enhance test
17671         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
17672         New functions.
17673         (test_function): Enhance test.
17674         (do_select_bad_fd): Avoid any stale errno values.
17676         ptsname: reject invalid file descriptors
17677         http://www.austingroupbugs.net/view.php?id=503
17678         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
17679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
17680         * modules/stdlib (Makefile.am): Replace witness.
17681         * lib/stdlib.in.h (ptsname): Allow for replacement.
17682         * modules/ptsname (configure.ac): Trigger replacement.
17683         * doc/posix-functions/ptsname.texi (ptsname): Document this.
17685 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
17687         hash-pjw-bare: new module
17688         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
17689         * lib/hash-pjw-bare.h: Likewise.
17690         * modules/hash-pjw-bare: New file.
17691         * MODULES.html.sh (Misc): Add it.
17693 2012-10-02  Eric Blake  <eblake@redhat.com>
17695         manywarnings: cater to more gcc infelicities
17696         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
17697         -Wuninitialized without -O.
17699 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
17701         select, poll tests: Make setsockopt invocation effective.
17702         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
17703         the bind() call.
17704         * tests/test-select.h (open_server_socket): Likewise.
17706 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17708         sockets, sys_stat: restore AC_C_INLINE
17709         This undoes the 2012-09-22 patch.
17710         * m4/sockets.m4 (gl_SOCKETS):
17711         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17712         Restore AC_C_INLINE, since MSVC requires __inline or _inline
17713         and does not support plain 'inline'.  Reported by Bruno Haible in
17714         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
17716 2012-09-30  Bruno Haible  <bruno@clisp.org>
17718         localeconv tests: Avoid test failure on OpenIndiana.
17719         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
17720         skip the 'grouping' and 'mon_grouping' tests.
17721         Reported by Jim Meyering.
17723 2012-09-30  Bruno Haible  <bruno@clisp.org>
17725         havelib: Follow libtool developments.
17726         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
17727         Suggested by Simon Josefsson.
17729 2012-09-29  Jim Meyering  <meyering@redhat.com>
17731         fstatat.c: fix a compile-impeding typo
17732         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
17733         Introduced in commit v0.0-7636-gd202279.
17734         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
17736 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
17738         extern-inline: provide a -Wundef safe config.h
17739         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
17740         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
17741         to produce a -Wundef warning free config.h.
17743 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17745         hash-pjw: relax license to LGPLv2+
17746         * modules/hash-pjw (License): Relax, with consent of author.
17748 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17750         maint.mk: fix strict vs. lazy variable issues with RELEASE
17751         * top/maint.mk (_equal): New function.
17752         (member_check): Strip the result to avoid spurious spaces.
17753         (url_dir_list): Do not use ifeq, which is strict, as it will
17754         require RELEASE_TYPE to be defined.
17755         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
17756         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
17757         (announcement_Cc_alpha,announcement_mail_headers_alpha)
17758         (announcement_Cc_beta,announcement_mail_headers_beta)
17759         (announcement_Cc_stable,announcement_mail_headers_stable): these.
17760         (release): Do not depend on $(release-type), as it forces its
17761         evaluation.  Bounce to it.
17763 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17765         maint.mk: formatting changes
17766         * top/maint.mk: Indent bodies of if's.
17768 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
17770         maint.mk: factor the validation of RELEASE_TYPE
17771         With help from Jim Meyering.
17772         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
17773         * top/maint.mk (_empty, _sp): Move their definition earlier.
17774         (member-check, release-type): New.
17775         Use the latter instead of $(RELEASE_TYPE).
17776         Remove now useless local checks.
17778 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17780         maint.mk: provide "make upload" to ease uploading
17781         See
17782         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
17783         Do not depend simply on the current $(VERSION), as there may have been
17784         new commits since the tarball generation.  Rather, rely on $(RELEASE),
17785         as "make release-commit" already does.
17787         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
17788         "make TYPE".
17790         * top/maint.mk (upload_command, upload, release): New.
17791         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
17792         (VERSION): first word of $(RELEASE) is always right.
17793         (emit_upload_commands): Adjust.
17794         * top/README-release: Update.
17796 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17798         maint.mk: silent rules
17799         With help from Stefano Lattarini.
17800         * top/maint.mk (writable-files): Use $(AM_V_GEN).
17801         (announcement): Use $(AM_V_at).
17803 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17805         localename: port gl_locale_name_thread_unsafe to FreeBSD
17806         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
17807         and use the simpler FreeBSD implementation on Mac OS X as well.
17808         Original idea suggested by Ed Maste in
17809         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
17811 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17813         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
17814         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
17815         * lib/mbuiter.c, lib/xsize.c: New files.
17816         * lib/binary-io.h (BINARY_IO_INLINE):
17817         * lib/eealloc.h (EEALLOC_INLINE):
17818         * lib/mbfile.h (MBFILE_INLINE):
17819         * lib/mbiter.h (MBITER_INLINE):
17820         * lib/mbuiter.h (MBUITER_INLINE):
17821         * lib/xsize.h (XSIZE_INLINE):
17822         New macros.
17823         Replace all uses of 'static inline' with them.
17824         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17825         * m4/eealloc.m4 (gl_EEALLOC):
17826         * m4/mbfile.m4 (gl_MBFILE):
17827         * m4/mbiter.m4 (gl_MBITER):
17828         * m4/xsize.m4 (gl_XSIZE):
17829         Do not require AC_C_INLINE.
17830         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
17831         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
17832         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
17833         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
17834         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
17835         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
17836         * modules/binary-io, modules/eealloc, modules/mbfile:
17837         * modules/mbiter, modules/mbuiter:
17838         (Depends-on): Add extern-inline.
17840         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
17841         * lib/pipe-filter-aux.c: New file.
17842         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
17843         Replace all uses of 'static inline' with it.
17844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17845         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
17846         (filter_retcode): No real need for inline here.
17847         * modules/pipe-filter-gi, modules/pipe-filter-ii:
17848         (Files): Add lib/pipe-filter-aux.c.
17849         (Depends-on): Add extern-inline.
17850         (configure.ac): Do not require AC_C_INLINE.
17851         (lib_SOURCES): Add pipe-filter-aux.c.
17853         fdutimensat: omit unnecessary AC_C_INLINE
17854         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
17856         fchmodat, fchownat, fstatat: use extern-inline
17857         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
17858         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
17859         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
17860         New macros.
17861         * lib/openat.h:
17862         Replace all uses of 'static inline' with them.
17863         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17864         * modules/fchmodat, modules/fchownat, modules/fstatat:
17865         * modules/openat-h:
17866         (Depends-on):
17867         Add extern-inline.
17868         (configure.ac): Remove AC_C_INLINE.
17870         acl, mbchar, priv-set: use extern-inline
17871         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
17872         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
17873         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
17874         New macros.
17875         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
17876         Replace all uses of 'static inline' with it.
17877         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17878         * m4/acl.m4 (gl_FUNC_ACL):
17879         * m4/mbchar.m4 (gl_MBCHAR):
17880         * m4/priv-set.m4 (gl_PRIV_SET):
17881         Remove AC_C_INLINE, since 'inline' is no longer used directly.
17882         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
17883         Add extern-inline.
17885         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
17886         * m4/sockets.m4 (gl_SOCKETS):
17887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17888         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
17889         environments where it's already guaranteed to work, so we needn't
17890         check for it at 'configure'-time.
17892         tls-tests: omit unnecessary 'inline'
17893         * tests/test-tls.c (perhaps_yield): No longer inline.
17894         Simplicity and portability trump efficiency in test cases.
17896         utimens-tests: avoid unnecessary 'inline'
17897         * modules/fdutimensat-tests (configure.ac):
17898         * modules/futimens-tests (configure.ac):
17899         * modules/utimens-tests (configure.ac):
17900         * modules/utimensat-tests (configure.ac):
17901         Remove AC_C_INLINE.
17902         * tests/test-utimens-common.h (ctime_compare):
17903         No longer inline.  Simplicity and portability trump efficiency here.
17905         misc: don't limit commentary to inline functions
17906         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
17907         * lib/xalloc-oversized.h, lib/xsize.h:
17908         Contrast macros to functions in general, not just to inline functions,
17909         when the commentary does not apply only to inline functions.
17911 2012-09-20  Jim Meyering  <meyering@redhat.com>
17913         non-recursive-gnulib-prefix-hack: new module
17914         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
17915         the file that originated in Bison.
17916         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
17917         largely copied from a snippet that resided in bison's configure.ac.
17918         * modules/non-recursive-gnulib-prefix-hack: New file.
17919         * MODULES.html.sh (Support for maintaining and releasing projects):
17920         Add it.
17922 2012-09-18  Jim Meyering  <meyering@redhat.com>
17924         maint.mk: generalize _gl_tight_scope for non-recursive make
17925         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
17926         that *.h would describe additional .h files in the directory
17927         specified by $(_gl_TS_dir).  I.e., add this...
17928         (_gl_TS_other_headers): New variable.
17930         maint.mk: exempt trailing blanks found in "binary" files
17931         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
17932         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
17933         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17935 2012-09-17  Jim Meyering  <meyering@redhat.com>
17937         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
17938         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
17939         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
17940         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17942 2012-09-17  Jim Meyering  <meyering@redhat.com>
17944         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
17945         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
17946         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
17947         It is not in the same category as "exit (0)" or "exit (1)", and
17948         besides, I know of no symbolic name for that 77.  Reported by
17949         Richard W.M. Jones in
17950         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17952 2012-09-17  Jim Meyering  <meyering@redhat.com>
17954         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
17955         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
17956         all uses of #define, not just those that start in column 1.
17957         Richard W.M. Jones reported a false positive in
17958         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17960 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17962         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
17963         * lib/localcharset.c (locale_charset) [DARWIN7]:
17964         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
17965         as these two values are incompatible.  Problem reported by Max Horn.
17966         For more discussion, please see
17967         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
17969         doc: document sticky-EOF issue
17970         * doc/posix-functions/fgetc.texi (fgetc):
17971         * doc/posix-functions/fgets.texi (fgets):
17972         * doc/posix-functions/fread.texi (fread):
17973         * doc/posix-functions/fscanf.texi (fscanf):
17974         * doc/posix-functions/getc.texi (getc):
17975         * doc/posix-functions/getchar.texi (getchar):
17976         * doc/posix-functions/scanf.texi (scanf):
17977         Mention that glibc and default Solaris do not conform to
17978         C99 and POSIX-2001 or later, with respect to how getchar
17979         etc. behave when feof reports nonzero.
17981 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17983         poll: fix poll(0, NULL, msec)
17984         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
17985         but nfd is 0.  In that case poll should behave like select.
17987 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17988             Paolo Bonzini  <bonzini@gnu.org>
17990         poll: fix for systems that can't recv() on a non-socket
17991         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
17992         is readable.  In this case POLLHUP will not be supported.
17993         * doc/posix-functions/poll.texi: Document this.
17995 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
17997         poll/select: document portability problems not fixed by Gnulib.
17998         * doc/posix-functions/poll.texi: poll does not work well on
17999         pipes under Windows.  It has the same limitations as select on
18000         BeOS.
18001         * doc/posix-functions/select.texi: select does not work well
18002         on pipes under Windows.
18004 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18006         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
18007         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
18008         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
18009         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
18011 2012-09-06  Eric Blake  <eblake@redhat.com>
18013         net_if: give more details about the bug being fixed
18014         * doc/posix-headers/net_if.texi: Add clarification.
18016 2012-09-05  Eric Blake  <eblake@redhat.com>
18018         net_if: new module
18019         * modules/net_if: New module, borrowing ideas from netinet_in.
18020         * m4/net_if_h.m4: New file.
18021         * lib/net_if.in.h: Likewise.
18022         * doc/posix-headers/net_if.texi (net/if.h): Document it.
18023         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18024         * tests/test-net_if.c: Make function checks conditional.
18025         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
18027 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18029         readutmp: fix non-portable UT_PID use
18030         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
18031         Use `UT_PID (u) > 0' as absolute condition.
18033 2012-09-04  Jim Meyering  <meyering@redhat.com>
18035         fts: reduce two or more trailing spaces to just one, usually
18036         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
18037         or more slashes, trim all but the final one.  But if a name consists
18038         solely of two slashes, don't modify it.  If it consists solely of
18039         three or more slashes, strip all but one.
18041         This is part of the solution to a minor problem with rm:
18042         it would print a bogus ELOOP diagnostic when failing to remove
18043         the slash-decorated name of a symlink-to-directory:
18045             $ mkdir d && ln -s d s && env rm -r s/
18046             rm: cannot remove 's': Too many levels of symbolic links
18048         With the change below and a trivial don't-trim-trailing-slashes
18049         adjustment to remove.c, it does this:
18051             $ env rm -r s/
18052             rm: cannot remove 's/': Not a directory
18054         Improved by: Eric Blake
18056         fts: when there is no risk of overlap, use memcpy, not memmove
18057         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
18059 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18061         stdbool: be more compatible with mixed C/C++ compiles
18062         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
18063         Define to bool, true, false, respectively, as GCC's builtin
18064         stdbool.h does.  Problem reported by Michael Goffioul in
18065         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
18067 2012-08-28  Jim Meyering  <meyering@redhat.com>
18069         revert last change: it was not needed
18070         * tests/test-vc-list-files-git.sh: There's already a test for
18071         a working git, just below.
18073 2012-08-28  Jim Meyering  <meyering@redhat.com>
18075         tests: test-vc-list-files-git.sh: skip if git is not available
18076         * tests/test-vc-list-files-git.sh: Skip this test when git is
18077         not available.
18079 2012-08-26  Bruno Haible  <bruno@clisp.org>
18081         gnulib-tool: Remove no-op option --no-changelog.
18082         * gnulib-tool (func_usage): Don't mention --no-changelog.
18083         (do_changelog): Remove variable.
18084         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18086 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18088         doc: remove fdl-1.2.texi
18089         It is no longer used or maintained, and its use of @acronym
18090         is problematic.  See the thread containing
18091         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
18092         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
18093         * doc/old-licenses/fdl-1.2.texi: Remove.
18095         execinfo: port to FreeBSD
18096         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
18097         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
18098         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
18099         * modules/execinfo (Link): Add $(LIB_EXECINFO).
18101 2012-08-23  Jim Meyering  <meyering@redhat.com>
18103         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
18104         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
18105         to placate gcc's -Wold-style-declaration.
18107 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18109         doc: do not use @acronym
18110         * doc/inet_ntoa.texi (inet_ntoa):
18111         * doc/parse-datetime.texi (Seconds since the Epoch)
18112         (Specifying time zone rules):
18113         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
18114         Don't use @acronym.  Problem reported by John Darlington in
18115         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
18117 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18119         stdnoreturn: port to newer GCCs
18120         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
18121         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
18122         Problem reported by Jim Meyering in
18123         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
18124         Also, rename the 'test' function to a void a clash with the
18125         already-supplied 'main' function; this fixes a bug that incorrectly
18126         rejected GCC 4.7.1's <stdnoreturn.h>.
18127         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
18128         Document GCC problem.
18130 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
18132         pipe-filter: fix comment typo
18133         * lib/pipe-filter.h: Mention correct function.
18135 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18137         execinfo: new module
18138         This is for Emacs.  Currently, it provides a no-effect stub
18139         on all platforms where it does not already work.
18140         It already works on glibc-based systems, and on Solaris 11.
18141         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
18142         New files.
18143         * doc/glibc-headers/execinfo.texi (execinfo.h):
18144         * MODULES.html.sh (Misc): Document it.
18146 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18148         extern-inline: support old GCC 'inline'
18149         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
18150         if available.  This applies to GCC versions 2.7 through 4.2, or
18151         when newer GCC is using -fgnu89-inline.  The goal is to address
18152         some of the performance issues mentioned by Bruno Haible in
18153         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
18155 2012-08-20  Eric Blake  <eblake@redhat.com>
18157         maint.mk: avoid redundant file name in message
18158         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
18159         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
18160         (sc_makefile_path_separator_check): Remove bogus $(ME).
18162 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
18164         timer-time: fix link order when static linking on glibc
18165         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
18166         _after_ -lrt so that it's significant.
18168 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18170         timespec: omit unnecessary AC_C_INLINE
18171         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
18173         stat-time: omit unnecessary AC_C_INLINE
18174         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
18175         Do not require AC_C_INLINE.
18177         ignore-value: omit unnecessary AC_C_INLINE
18178         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
18180         sys_select: avoid 'static inline'
18181         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
18183         mktime: avoid 'static inline'
18184         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
18185         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
18187 2012-08-19  Bruno Haible  <bruno@clisp.org>
18189         gnulib-tool: Improve coding style.
18190         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
18191         func_emit_lib_Makefile_am.
18192         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18194 2012-08-19  Bruno Haible  <bruno@clisp.org>
18196         gnulib-tool: Fix indentation.
18197         * gnulib-tool (func_import): Fix indentation.
18199 2012-08-19  Bruno Haible  <bruno@clisp.org>
18201         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
18202         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
18203         on the list of removed files.
18205 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18207         test-parse-datetime: avoid glibc leap-second glitch
18208         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
18209         with the 2012 rules.  Problem reported by Bruce Dubbs in
18210         <http://bugs.gnu.org/12206>.
18212 2012-08-14  Bruno Haible  <bruno@clisp.org>
18214         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
18215         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
18216         from argument.
18217         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18219 2012-08-14  Eric Blake  <eblake@redhat.com>
18221         ldexp: relax license
18222         * modules/ldexp (License): Trivial relax, since the module only
18223         provides a permissively licensed m4 file.
18225 2012-08-13  Bruno Haible  <bruno@clisp.org>
18227         gnulib-tool: Fix persistence of --witness-c-macro option.
18228         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
18229         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18231 2012-08-11  Eric Blake  <eblake@redhat.com>
18233         count-leading-zeros: use a lookup table on non-gcc compilers
18234         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
18235         alternate implementation, suggested by Jim Meyering.
18237 2012-08-10  Eric Blake  <eblake@redhat.com>
18239         count-leading-zeros: new module
18240         * modules/count-leading-zeros: New module.
18241         * m4/count-leading-zeros.m4: New file.
18242         * lib/count-leading-zeros.h: Likewise.
18243         * modules/count-leading-zeros-tests: New test.
18244         * tests/test-count-leading-zeros.c: New file.
18245         * MODULES.html.sh (Integer arithmetic functions): Document it.
18247 2012-08-07  Simon Josefsson  <simon@josefsson.org>
18248             Jim Meyering  <meyering@redhat.com>
18250         maintainer-makefile: Fix syntax error with dash.
18251         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
18252         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
18254 2012-08-05  Jim Meyering  <meyering@redhat.com>
18256         extern-inline: also ignore -Wmissing-declarations
18257         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
18258         required with gcc-4.8.0-to-be.
18260         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
18261         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
18262         for /error ?([^,]*)/.  This avoids false-positives for strings like
18263         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
18265 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
18267         gnumakefile: better interaction with Automake-NG
18268         * modules/gnumakefile [Makefile.am]: The makefiles generated by
18269         Automake-NG always contain a definition of VPATH, even in non-VPATH
18270         builds (its value being simply '.' in that case).  So, in the
18271         'clean-GNUmakefile' rule, to determine whether running under a
18272         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
18273         '$(VPATH)' expands to the empty string.
18275 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
18277         base64: Use extern C scope in header file, for C++.
18278         * lib/base64.h: Add C++ namespace protection.
18280 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18282         stat-time, timespec, u64: support naive out-of-dir builds
18283         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
18284         Use '#include "foo.h"', not '#include <foo.h>', when including
18285         one's own interface.  This works better when configuring with
18286         out-of-directory builds, since packages need not add an
18287         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
18289 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18291         utimens: use extern-inline
18292         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
18293         * lib/utimens.h: Add copyright notice, since this is now large enough
18294         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18295         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
18296         * modules/utimens (Depends-on): Add extern-inline.
18298         u64: use extern-inline
18299         * lib/u64.c: New file.
18300         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18301         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
18302         * modules/u64 (Files): Add lib/u64.c.
18303         (Depends-on): Add extern-inline.
18304         (configure.ac): No need to require AC_C_INLINE, since extern-inline
18305         does that now.
18306         (lib_SOURCES): Add u64.c.
18308         timespec: use extern-inline
18309         * lib/timespec.c: New file.
18310         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18311         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
18312         * modules/timespec (Files): Add lib/timespec.c.
18313         (Depends-on): Add extern-inline.
18314         (lib_SOURCES): Add timespec.c.
18316         stat-time: use extern-inline
18317         * lib/stat-time.c: New file.
18318         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18319         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
18320         * modules/stat-time (Files): Add lib/stat-time.c.
18321         (Depends-on): Add extern-inline.
18322         (lib_SOURCES): Add stat-time.c.
18324         extern-inline: new module
18325         * modules/extern-inline, m4/extern-inline.m4: New files.
18326         This is for better support of 'extern inline' a la ISO C99,
18327         with a portable alternative on compilers that do not support
18328         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
18329         of the Emacs executable, when compiled with debugging disabled,
18330         which is a typical way that Emacs is built while developing.
18332 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
18334         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
18335         * build-aux/do-release-commit-and-tag: Move variable definitions
18336         together.
18337         ($branch): Instead of defaulting to "master", default to the current
18338         branch (as gnu-web-doc-update does).
18339         (help): Display the current values of the option arguments.
18340         * top/maint.mk (release-commit): New.
18341         * top/README-release: Simplify the corresponding step.
18343 2012-07-30  Eric Blake  <eblake@redhat.com>
18345         passfd: fix comment on recvfd
18346         * lib/passfd.c (recvfd): Fix comment.
18347         Reported by Jann Horn <jannhorn@googlemail.com>.
18349 2012-07-30  Jim Meyering  <meyering@redhat.com>
18351         maint.mk: avoid a sub-shell
18352         * top/maint.mk (release-prep): Remove unneeded sub-shell.
18354 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18356         maint.mk: use silent-rules support from Automake
18357         * top/maint.mk (news-check, vc-diff-check, announcement)
18358         (no-submodule-changes, alpha beta stable, release-prep)
18359         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
18361 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18363         maint.mk: provide a web-manual-update target
18364         * top/maint.mk: here.
18365         * top/README-release: Use it to simplify the web manual update step.
18367 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18369         README-release: shorten the circuit to post a news
18370         * top/README-release: Point directly to the news submission form.
18372 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18374         gnu-web-doc-update: fix --help
18375         * build-aux/gnu-web-doc-update: The information "top level" was written
18376         twice.
18378 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18380         maint.mk: absolute VPATH issue
18381         * top/maint.mk (release-prep): Help Git find .git/.
18382         From Jim Meyering.
18384 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18386         gitlog-to-changelog: fix previous change
18387         * build-aux/gitlog-to-changelog: Fix condition.
18388         Add missing ";".
18390 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18392         gitlog-to-changelog: don't expect .git to be in $srcdir
18393         Reported by Bruno Haible.
18394         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
18395         * build-aux/gitlog-to-changelog (&git_dir_option): New.
18396         Use it.
18398 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18400         maint.mk: absolute VPATH build fix
18401         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
18402         $(srcdir) is not a parent of $(builddir).
18404 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
18406         clean-temp: Fix memory leak.
18407         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
18408         'files' members of tmpdir.
18410 2012-07-27  Jim Meyering  <meyering@redhat.com>
18412         maint.mk: new rule: refresh-gnulib-patches
18413         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
18414         Use this rule to refresh them.
18415         * top/maint.mk (refresh-gnulib-patches): New rule.
18417 2012-07-24  Bruno Haible  <bruno@clisp.org>
18419         gnulib-tool: Fix handling of inctests variable.
18420         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
18421         Reported by Nick Bowler <nbowler@elliptictech.com>.
18423 2012-07-22  Bruno Haible  <bruno@clisp.org>
18425         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
18426         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
18427         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18428         Remove exemption for getpass.h.
18429         Suggested by Eric Blake.
18431 2012-07-20  Eric Blake  <eblake@redhat.com>
18433         verify: document conflict with -Wnested-externs
18434         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
18436         maint.mk: forbid exit(-1)
18437         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
18439 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18441         fsusage: port back to Solaris
18442         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
18443         error (fsd not declared) on Solaris 10.  Reported privately by
18444         Andrew Borodin.
18446 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
18448         gnu-web-doc-update: fix error messages
18449         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
18451         gnu-web-doc-update: check the requirements.
18452         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
18453         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
18454         * build-aux/bootstrap (find_tool): Comment change.
18456 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
18458         maint.mk: minor simplication.
18459         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
18460         for default values.
18462 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
18464         gitlog-to-changelog: VPATH build issues
18465         If builddir is not a subdirectory of srcdir, running git from it will
18466         fail.
18467         * build-aux/gitlog-to-changelog (--srcdir): New option.
18469 2012-07-15  Bruno Haible  <bruno@clisp.org>
18471         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
18472         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
18473         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
18474         Remove exemption for fpending.h.
18475         Suggested by Eric Blake.
18477 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18479         pthread_sigmask: fix bug on FreeBSD 9
18480         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
18481         Include string.h.
18482         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
18483         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
18484         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
18485         but pthread_sigmask (1729, NULL, NULL) returns zero.
18486         See <http://bugs.gnu.org/11884>.
18487         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
18488         by inspecting whether the main call changed the old mask.
18490 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
18492         README-release: make it more legible
18493         * top/README-release: Improve typography slightly.
18495 2012-07-15  Jim Meyering  <meyering@redhat.com>
18497         maint: require that each sc_... command start with "@"
18498         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
18499         "make sc_maint" helps us avoid this nit.
18501 2012-07-15  Jim Meyering  <meyering@redhat.com>
18503         maint.mk: add leading "@" to quiet new "make syntax-check" rule
18504         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
18506 2012-07-13  Eric Blake  <eblake@redhat.com>
18508         maint.mk: new syntax check for HAVE_DECL checks
18509         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
18510         * cfg.mk
18511         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18512         Exempt some false positives.
18513         Based on a report by Karel Zak.
18515         argp: make HAVE_DECL usage consistent
18516         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
18517         macros, not whether they are defined.
18518         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
18519         convention with other declaration checks.
18520         Reported by Karel Zak, with suggestions from Paul Eggert.
18522         stat-time: relax license to LGPLv2+
18523         * modules/stat-time (License): Relax, with consent of all authors.
18525         strndup: fix m4 usage error
18526         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
18527         defined, to either 0 or 1.
18528         Reported by Karel Zak.
18530 2012-07-11  Jim Meyering  <meyering@redhat.com>
18532         maint: enable the sc_avoid_if_before_free syntax-check rule
18533         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
18534         (if_before_free_offenders_): Define.
18535         (if_before_free_basename_re_): Define.
18536         Exempt current files with useless if-before-free.
18538 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
18540         gettext: do not assume '#define ... defined ...' behavior
18541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
18542         Do not use '#define FOO ... defined BAR ...', as the C standard says
18543         it's not portable to expect that this works after macro expansion.
18544         Problem reported for gzip by Steven M. Schweda in
18545         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
18547 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18549         getloadavg: clean out old Emacs and Autoconf cruft
18550         See Glenn Morris in <http://bugs.gnu.org/11905>.
18551         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
18552         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
18553         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
18554         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
18556 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
18558         bootstrap: let warn be like tests/init.sh's warn_
18559         Reported by Jim Meyering.
18560         * build-aux/bootstrap (warn): Remove, replaced by...
18561         (warnf_, warn_): these.
18562         Adjust callers.
18563         Shorten messages that no longer fit in 80 columns.
18565 2012-07-09  Bruno Haible  <bruno@clisp.org>
18567         getopt: Simplify after Emacs changed.
18568         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
18569         (gl_GETOPT_IFELSE): Remove macro.
18571 2012-07-09  Jim Meyering  <meyering@redhat.com>
18573         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
18574         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
18576         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
18577         Bugs in both of those conspired to make the
18578         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
18579         _sc_search_regexp's handling of non-empty $in_files would filter
18580         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
18581         choice of in_files value meant there would be no match in most
18582         projects, due to the presence of two or more Makefile.in files.
18583         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
18584         Fix a bug in how a non-empty $$in_files was processed:
18585         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
18586         in spite of the name, it's a regexp, not a list of file names.
18588 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18590         getloadavg, getopt: fix commentary re configure.in
18591         Autoconf is deprecating the name 'configure.in', so change it to
18592         to the new name 'configure.ac' in a couple of places.
18593         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
18594         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
18595         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
18596         Emacs has renamed it to configure.ac, and it no longer refers
18597         to these macros anyway.
18599         timespec: mark functions with const attributes
18600         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
18601         Mark with _GL_ATTRIBUTE_CONST.
18603 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18605         canonicalize[-lgpl]: handle "guessing" values when cross-building
18606         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18607         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
18608         matches "*yes" instead of just "yes".  Regression introduced in commit
18609         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
18611 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18612             Bruno Haible  <bruno@clisp.org>
18614         canonicalize: make the right guess when cross-compiling to GNU
18615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
18616         determine whether cross-compiling to glibc systems, so as to
18617         include GNU/Hurd.
18619 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18621         timespec-sub: avoid duplicate include
18622         * lib/timespec-sub.c: Do not include <config.h> twice.
18623         Reported by Juanma Barranquero.
18625 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
18627         bootstrap: use a more consistent error reporting scheme
18628         * build-aux/bootstrap (warn, die): New.
18629         Use them.
18631 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18633         sys_time: allow too-wide tv_sec
18634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
18635         timeval even if tv_sec is wider than time_t.  This allows
18636         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
18637         as without this patch gnulib replaces struct timeval
18638         and OpenBSD futimes therefore has a type mismatch.
18639         * doc/posix-headers/sys_time.texi: Mention this.
18641         pthread: check for both pthread_create and pthread_join
18642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
18643         alter the check so that it tests for both pthread_create and
18644         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
18645         Suggested by Bruno Haible and Richard Yao in
18646         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
18648         parse-datetime: doc tuneup
18649         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
18650         spacing issues.
18652 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
18654         do-release-commit-and-tag: fix the previous commit
18655         * build-aux/do-release-commit-and-tag: Actually the test was right,
18656         but the comment and the error message were misleading.
18657         Fix comment, and improve error message.
18658         Perform check first, so that NEWS is not modified uselessly.
18660         do-release-commit-and-tag: fix typo
18661         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
18662         _not_ start with a stub.
18664 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18666         pthread: check for pthread_create, not pthread_join
18667         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
18668         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
18669         pthread_join in libc.  I hope this removes the need for all the
18670         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
18671         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
18673 2012-07-04  Jim Meyering  <meyering@redhat.com>
18675         parse-datetime: fix failure to diagnose invalid input
18676         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
18677         rather than diagnosing the invalid input.  Now it reports this:
18678         date: invalid date '\260'
18679         * lib/parse-datetime.y (to_uchar): Define.
18680         (yylex): Don't sign-extend "other" bytes.
18681         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
18682         Thanks to Bruno Haible for the patch to this file.
18683         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
18684         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
18686 2012-07-03  Jim Meyering  <meyering@redhat.com>
18688         bootstrap: do not require now-removed build-aux/missing
18689         Now that build-aux/missing is, er, missing, bootstrap would
18690         silently fail.
18691         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
18692         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
18693         no longer part of gnulib.
18694         Diagnose the failure.
18696 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18698         alloca: add support for HP NonStop TNS/E native
18699         * lib/alloca.in.h (alloca): Support the new host.
18700         From a suggestion by Joachim Schmitz in
18701         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
18703 2012-07-02  Pádraig Brady  <P@draigBrady.com>
18705         fsusage: remove code not needed on non GNU/Linux systems.
18707         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18708         Don't include headers no longer needed in this case.
18709         * lib/fsusage.c [STAT_STATVFS &&
18710         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
18711         STAT_STATFS2_FRSIZE to exclude code not used in this case.
18713 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18715         fsusage: include files needed for glibc 2.6 fallback
18716         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18717         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
18718         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
18719         Problem reported by Ludovic Courtès in
18720         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
18722         fsusage: avoid needless check on GNU/Linux
18723         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
18724         on GNU/Linux systems, since it can't possibly work.
18726 2012-07-01  Bruno Haible  <bruno@clisp.org>
18728         log: Fix an autoconf >= 2.64 warning.
18729         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
18730         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18732 2012-06-28  Bruno Haible  <bruno@clisp.org>
18734         log10f: Fix possible configuration problem.
18735         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
18736         $LOGF_LIBM.
18737         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18739 2012-06-28  Bruno Haible  <bruno@clisp.org>
18741         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
18742         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
18743         not gl_cv_func_unlink_works.
18744         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18746 2012-06-27  Eric Blake  <eblake@redhat.com>
18748         config: drop scripts that automake says are not independent
18749         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
18750         * build-aux/elisp-comp: Delete.
18751         * build-aux/missing: Likewise.
18752         * build-aux/ylwrap: Likewise.
18753         * modules/elisp-comp: Likewise.
18754         * MODULES.html.sh: Drop mention of elisp-comp.
18755         * NEWS: Mention this.
18757 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
18759         root-uid: new module
18760         This is for portability to Tandem's NonStop Kernel.
18761         * lib/root-uid.h, modules/root-uid: New files.
18762         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
18763         * lib/write-any-file.c, tests/test-sethostname2.c:
18764         Include "root-uid.h".
18765         * lib/euidaccess.c (euidaccess):
18766         * lib/pt_chown.c (main):
18767         * lib/unlinkdir.c (cannot_unlink_dir):
18768         * lib/write-any-file.c (can_write_any_file):
18769         * m4/mknod.m4 (gl_FUNC_MKNOD):
18770         * tests/test-sethostname2.c (geteuid, main):
18771         Don't assume ROOT_UID == 0.
18772         * modules/euidaccess (Depends-on):
18773         * modules/pt_chown (Depends-on):
18774         * modules/sethostname-tests (Depends-on):
18775         * modules/unlinkdir (Depends-on):
18776         * modules/write-any-file (Depends-on):
18777         Add root-uid.
18779         regex: use locale-independent comparison for codeset name
18780         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
18781         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
18782         for codeset name.
18783         * lib/regex_internal.h: Do not include <strings.h>, since we
18784         no longer use strcasecmp.
18785         * modules/regex (Depends-on): Remove strcase.
18787 2012-06-23  Bruno Haible  <bruno@clisp.org>
18789         getopt-posix: No longer guarantee that option processing is resettable.
18790         * doc/posix-functions/getopt.texi: Drop description of problem with
18791         internal state. Fix info about mingw and msvc9.
18792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
18793         option processing by getopt(). Run three test programs instead of one.
18794         Simplify cross-compilation guess.
18795         * NEWS: Mention the change.
18796         Reported by Rich Felker <dalias@aerifal.cx>.
18798 2012-06-26  Bruno Haible  <bruno@clisp.org>
18800         argp, regex: Ensure strcasecmp gets declared.
18801         * lib/argp-help.c: Include <strings.h>.
18802         * lib/regex_internal.h: Likewise.
18803         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
18805 2012-06-24  Bruno Haible  <bruno@clisp.org>
18807         ptsname_r: Make it consistent with ptsname on AIX.
18808         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
18809         implementation as for OSF/1.
18810         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
18811         a pty master.
18813         ptsname_r: Make it consistent with ptsname on OSF/1.
18814         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18815         OSF/1.
18817 2012-06-24  Bruno Haible  <bruno@clisp.org>
18819         ttyname_r: Fix result on OSF/1, Solaris.
18820         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
18822 2012-06-24  Bruno Haible  <bruno@clisp.org>
18824         ptsname_r: Add support for Solaris.
18825         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18826         Solaris.
18828         ptsname_r: Fix test failure on native Windows.
18829         * modules/ptsname_r (Depends-on): Add isatty.
18831         ptsname_r: Fix test failures on IRIX, Solaris.
18832         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
18833         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
18834         accordingly.
18835         * lib/ptsname_r.c: Include <fcntl.h>.
18836         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
18837         set errno if fd is invalid.
18838         * tests/test-isatty.c (main): Update comments.
18840 2012-06-24  Bruno Haible  <bruno@clisp.org>
18842         ptsname test: Extend test.
18843         * tests/test-ptsname.c: Include <errno.h>.
18844         (main): Test behaviour with invalid file descriptor.
18846 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18848         time: fix obsolete comment
18849         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
18850         reference to HAVE_STRUCT_TIMESPEC in comment.
18852 2012-06-23  Bruno Haible  <bruno@clisp.org>
18854         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
18855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
18856         does not handle abbreviated long options with equivalent
18857         disambiguations, set gl_replace_getopt to yes.
18858         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
18860 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18862         time_r: fix typo that always overrode localtime_r decl
18863         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
18864         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
18865         not in a standard include.
18867 2012-06-22  Bruno Haible  <bruno@clisp.org>
18869         Write "Mac OS X" instead of "MacOS X".
18870         * README: Write "Mac OS X" instead of "MacOS X".
18871         * build-aux/bootstrap: Likewise.
18872         * build-aux/install-reloc: Likewise.
18873         * lib/acl-internal.h: Likewise.
18874         * lib/acl_entries.c: Likewise.
18875         * lib/argp-ba.c: Likewise.
18876         * lib/argp-pv.c: Likewise.
18877         * lib/config.charset: Likewise.
18878         * lib/copy-acl.c: Likewise.
18879         * lib/csharpexec.c: Likewise.
18880         * lib/euidaccess.c: Likewise.
18881         * lib/fbufmode.c: Likewise.
18882         * lib/fflush.c: Likewise.
18883         * lib/file-has-acl.c: Likewise.
18884         * lib/filemode.h: Likewise.
18885         * lib/fpurge.c: Likewise.
18886         * lib/freadable.c: Likewise.
18887         * lib/freadahead.c: Likewise.
18888         * lib/freading.c: Likewise.
18889         * lib/freadptr.c: Likewise.
18890         * lib/freadseek.c: Likewise.
18891         * lib/fseeko.c: Likewise.
18892         * lib/fseterr.c: Likewise.
18893         * lib/fsusage.c: Likewise.
18894         * lib/fwritable.c: Likewise.
18895         * lib/fwriting.c: Likewise.
18896         * lib/get-rusage-as.c: Likewise.
18897         * lib/get-rusage-data.c: Likewise.
18898         * lib/getdomainname.c: Likewise.
18899         * lib/idpriv-drop.c: Likewise.
18900         * lib/idpriv-droptemp.c: Likewise.
18901         * lib/localcharset.c: Likewise.
18902         * lib/locale.in.h: Likewise.
18903         * lib/localename.c: Likewise.
18904         * lib/mbsrtowcs-state.c: Likewise.
18905         * lib/nproc.c: Likewise.
18906         * lib/passfd.c: Likewise.
18907         * lib/posix_openpt.c: Likewise.
18908         * lib/printf-parse.c: Likewise.
18909         * lib/progreloc.c: Likewise.
18910         * lib/safe-read.h: Likewise.
18911         * lib/safe-write.h: Likewise.
18912         * lib/sched.in.h: Likewise.
18913         * lib/set-mode-acl.c: Likewise.
18914         * lib/signal.in.h: Likewise.
18915         * lib/stdint.in.h: Likewise.
18916         * lib/stdio-impl.h: Likewise.
18917         * lib/stdlib.in.h: Likewise.
18918         * lib/strtod.c: Likewise.
18919         * lib/sys_select.in.h: Likewise.
18920         * lib/tcgetsid.c: Likewise.
18921         * lib/unistd.in.h: Likewise.
18922         * lib/unlockpt.c: Likewise.
18923         * lib/vasnprintf.c: Likewise.
18924         * lib/vma-iter.c: Likewise.
18925         * lib/wcsrtombs-state.c: Likewise.
18926         * m4/acl.m4: Likewise.
18927         * m4/acosl.m4: Likewise.
18928         * m4/asinl.m4: Likewise.
18929         * m4/atanl.m4: Likewise.
18930         * m4/c-stack.m4: Likewise.
18931         * m4/cosl.m4: Likewise.
18932         * m4/expl.m4: Likewise.
18933         * m4/extensions.m4: Likewise.
18934         * m4/fdatasync.m4: Likewise.
18935         * m4/fmal.m4: Likewise.
18936         * m4/frexp.m4: Likewise.
18937         * m4/frexpf.m4: Likewise.
18938         * m4/frexpl.m4: Likewise.
18939         * m4/fsusage.m4: Likewise.
18940         * m4/getdomainname.m4: Likewise.
18941         * m4/getloadavg.m4: Likewise.
18942         * m4/getopt.m4: Likewise.
18943         * m4/gettext.m4: Likewise.
18944         * m4/gnulib-common.m4: Likewise.
18945         * m4/intdiv0.m4: Likewise.
18946         * m4/intlmacosx.m4: Likewise.
18947         * m4/largefile.m4: Likewise.
18948         * m4/ldexpl.m4: Likewise.
18949         * m4/link-follow.m4: Likewise.
18950         * m4/locale-ar.m4: Likewise.
18951         * m4/locale-fr.m4: Likewise.
18952         * m4/locale-ja.m4: Likewise.
18953         * m4/locale-tr.m4: Likewise.
18954         * m4/locale-zh.m4: Likewise.
18955         * m4/locale_h.m4: Likewise.
18956         * m4/lock.m4: Likewise.
18957         * m4/logl.m4: Likewise.
18958         * m4/mathfunc.m4: Likewise.
18959         * m4/minus-zero.m4: Likewise.
18960         * m4/mktime.m4: Likewise.
18961         * m4/mmap-anon.m4: Likewise.
18962         * m4/multiarch.m4: Likewise.
18963         * m4/nanosleep.m4: Likewise.
18964         * m4/nocrash.m4: Likewise.
18965         * m4/poll.m4: Likewise.
18966         * m4/printf-frexpl.m4: Likewise.
18967         * m4/printf.m4: Likewise.
18968         * m4/signbit.m4: Likewise.
18969         * m4/sinl.m4: Likewise.
18970         * m4/sqrtl.m4: Likewise.
18971         * m4/strerror_r.m4: Likewise.
18972         * m4/tanl.m4: Likewise.
18973         * m4/threadlib.m4: Likewise.
18974         * m4/ttyname_r.m4: Likewise.
18975         * m4/unlink.m4: Likewise.
18976         * m4/visibility.m4: Likewise.
18977         * m4/wcwidth.m4: Likewise.
18978         * tests/minus-zero.h: Likewise.
18979         * tests/test-alloca-opt.c: Likewise.
18980         * tests/test-copy-acl.sh: Likewise.
18981         * tests/test-copy-file.sh: Likewise.
18982         * tests/test-fdatasync.c: Likewise.
18983         * tests/test-file-has-acl.sh: Likewise.
18984         * tests/test-flock.c: Likewise.
18985         * tests/test-fsync.c: Likewise.
18986         * tests/test-localename.c: Likewise.
18987         * tests/test-malloca.c: Likewise.
18988         * tests/test-nonblocking-pipe.h: Likewise.
18989         * tests/test-nonblocking-socket.h: Likewise.
18990         * tests/test-openpty.c: Likewise.
18991         * tests/test-posix_openpt.c: Likewise.
18992         * tests/test-ptsname.c: Likewise.
18993         * tests/test-ptsname_r.c: Likewise.
18994         * tests/test-sameacls.c: Likewise.
18995         * tests/test-select.h: Likewise.
18996         * tests/test-set-mode-acl.sh: Likewise.
18997         * tests/test-snprintf-posix.h: Likewise.
18998         * tests/test-sprintf-posix.h: Likewise.
18999         * tests/test-strtod.c: Likewise.
19000         * tests/test-time.c: Likewise.
19001         * tests/test-vasnprintf-posix.c: Likewise.
19002         * tests/test-vasprintf-posix.c: Likewise.
19003         * doc/acl-resources.txt: Likewise.
19004         * doc/**/*.texi: Likewise.
19005         Reported by Max Horn <max@quendi.de>.
19007 2012-06-22  Bruno Haible  <bruno@clisp.org>
19009         grantpt: Relax requirement regarding invalid file descriptors.
19010         * lib/grantpt.c: Don't include <fcntl.h>.
19011         (grantpt): Don't verify the validity of the file descriptor.
19012         * modules/grantpt (Depends-on): Remove fcntl-h.
19013         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
19014         file descriptors.
19015         * doc/posix-functions/grantpt.texi: Document more platforms on which
19016         grantpt succeeds for invalid file descriptors.
19017         Reported by Rich Felker <dalias@aerifal.cx>.
19019 2012-06-22  Bruno Haible  <bruno@clisp.org>
19021         fbufmode test: Don't test unportable behaviour.
19022         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
19023         (main): Invoke it three times.
19024         Reported by Szabolcs Nagy <nsz@port70.net>
19025         and Rich Felker <dalias@aerifal.cx>.
19027 2012-06-21  Bruno Haible  <bruno@clisp.org>
19029         gnulib-tool: Refactor inctests variable.
19030         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
19031         (func_modules_transitive_closure,
19032         func_modules_transitive_closure_separately,
19033         func_import, func_create_testdir): Update.
19035         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
19036         * gnulib-tool: Accept option --without-tests.
19037         (func_usage): Document --without-tests option. Rearrange.
19038         (inctests): Normalize according to the mode.
19039         * NEWS: Mention the change.
19040         Suggested by Simon Josefsson.
19042 2012-06-21  Bruce Korb  <bkorb@gnu.org>
19044         parse-duration test: Avoid spurious output.
19045         * tests/test-parse-duration.sh: Reindent with leading tabs.
19047 2012-06-21  Jim Meyering  <meyering@redhat.com>
19049         maint: disable the strncpy prohibition
19050         * cfg.mk: Do not prohibit strncpy here.
19052 2012-06-21  Bruno Haible  <bruno@clisp.org>
19054         nonblocking: Avoid compilation error on mingw64.
19055         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
19056         fscanf.
19057         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
19058         * modules/vfscanf (configure.ac): Likewise.
19059         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
19060         definition only if stdio.h has prepared it.
19061         Reported by Daniel P. Berrange <berrange@redhat.com>.
19063 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
19065         gnulib-tool: Use readlink if it is available.
19066         * gnulib-tool (func_readlink): Choose function more appropriately.
19068 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19070         posixtm-tests: port to buggy compiler
19071         Problem reported by Simon Josefsson in
19072         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
19073         * modules/posixtm-tests (Depends-on): Add stdint.
19074         * tests/test-posixtm.c (struct posixtm_test.t_expected):
19075         Now of type int_least64_t, not int64_t, both because that's
19076         what INT64_C returns and because int_least64_t works even
19077         on 72-bit hosts.
19078         (T): Use INT64_C on constants outside the traditional int range,
19079         to work around compiler bug noted by Simon.
19081         mktime: fix integer overflow in 'configure'-time test
19082         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
19083         after integer overflow.  Problem reported by Rich Felker in
19084         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
19085         Also, don't look for further instances of a bug if we've already
19086         found one instance; this helps 'configure' run faster.
19088 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
19090         tmpfile, clean-temp: Fix invocation of GetVersionEx.
19091         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
19092         GetVersionEx correctly.
19093         * lib/clean-temp.c (supports_delete_on_close): Likewise.
19095 2012-06-20  Bruno Haible  <bruno@clisp.org>
19097         fdopen: Allow implementations that don't reject invalid fd arguments.
19098         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
19099         succeeds.
19100         Reported by Rich Felker <dalias@aerifal.cx>.
19102 2012-06-20  Simon Josefsson  <simon@josefsson.org>
19104         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
19105         bring in LIBINTL.
19107 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19109         init.sh: do not rely on autoupated PWD
19110         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
19111         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
19112         Although Nelson's bug was not necessarily fixed by this patch,
19113         it seems wise to make the change for safety.
19114         * tests/init.sh (path_prepend_): Do not rely on PWD updating
19115         automagically after 'cd'; this is not reliable on older shells.
19116         (setup_): Fail if we cannot cd to temporary directory.
19118 2012-06-19  Bruno Haible  <bruno@clisp.org>
19120         stat, fstat: Avoid warnings on mingw64.
19121         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
19122         redefining.
19123         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
19124         Reported by Daniel P. Berrange <berrange@redhat.com>.
19126 2012-06-19  Bruno Haible  <bruno@clisp.org>
19128         stdioext: Add support for musl libc.
19130         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
19131         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
19133         * m4/fseterr.m4: New file.
19134         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
19135         function exists.
19136         * modules/fseterr (Files): Add m4/fseterr.m4.
19137         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
19138         __fseterr does not exist.
19139         (Makefile.am): Remove fseterr.c from lib_SOURCES.
19141         * lib/freadable.h: Update comment.
19143         * lib/fwritable.h: Update comment.
19145         * lib/freading.h: Update comment.
19147         * lib/fwriting.h: Update comment.
19149         * m4/freadahead.m4: New file.
19150         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
19151         that function exists.
19152         * modules/freadahead (Files): Add m4/freadahead.m4.
19153         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
19154         __freadahead does not exist.
19155         (Makefile.am): Remove freadahead.c from lib_SOURCES.
19157         * m4/freadptr.m4: New file.
19158         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
19159         function exists.
19160         * modules/freadptr (Files): Add m4/freadptr.m4.
19161         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
19162         __freadptr does not exist.
19163         (Makefile.am): Remove freadptr.c from lib_SOURCES.
19165         * m4/freadseek.m4: New file.
19166         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
19167         exists.
19168         * modules/freadseek (Files): Add m4/freadseek.m4.
19169         (configure.ac): Invoke gl_FUNC_FREADSEEK.
19171         * lib/fpurge.c (fpurge): Update comment.
19173         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
19175 2012-06-19  Bruno Haible  <bruno@clisp.org>
19177         *printf-posix: Put more info into config.log.
19178         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
19179         exit code into config.log.
19181 2012-06-19  Bruno Haible  <bruno@clisp.org>
19183         getopt-gnu: Fix exit code overflow in autoconf test.
19184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
19185         to keep them below < 128.
19187 2012-06-17  Jim Meyering  <meyering@redhat.com>
19189         maint.mk: fix typo in code to derive GPG key at release time
19190         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
19192 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19194         regex: avoid warning when pointers are not long
19195         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
19196         and uintptr_t, not long, for portability to hosts where pointers and
19197         long have different sizes.  Issue noted by Daniel P. Berrange in
19198         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
19199         and fix suggested by Bruno Haible in
19200         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
19202 2012-06-17  Bruno Haible  <bruno@clisp.org>
19204         dummy: Relicense into the public domain.
19205         * modules/dummy (License): Set to "public domain".
19206         Suggested by Reuben Thomas.
19208 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19210         announce-gen: VPATH issues
19211         * build-aux/announce-gen (--srcdir): New option, used to trim the
19212         $srcdir part of the path from $builddir to NEWS.
19213         * top/maint.mk (announcement): Adjust.
19215 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19217         gnu-web-doc-update: VPATH builds
19218         * build-aux/gnu-web-doc-update (--builddir): New option.
19219         Revamp the handling of options.
19220         Prefer $(...) to `...`.
19221         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
19222         the template, and it is GNU mktemp specific.
19223         Prefer set -e to long series of &&.
19224         Restore the initial git branch, not "master".
19225         Properly initialize submodules (don't rely only on bootstrap).
19226         Do not reconfigure blindly, use config.status.
19227         * top/README-release: Update instructions for gnu-web-doc-update.
19229 2012-06-11  Jim Meyering  <meyering@redhat.com>
19231         maint.mk: revert most of the previous change re "all these"
19232         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
19233         For rationale, see the discussion at
19234         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
19236 2012-06-10  Karl Berry  <karl@gnu.org>
19238         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
19240         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
19242 2012-06-10  Bruce Korb  <bkorb@gnu.org>
19244         parse-duration: Relicense under LGPLv2+.
19245         * modules/parse-duration (License): Change to LGPLv2+.
19247 2012-06-10  Jim Meyering  <meyering@redhat.com>
19249         maint.mk: prohibit common grammar error: "all these"
19250         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
19251         the list of prohibited word sequences.  It should be "all of these".
19252         * lib/tempname.c (__gen_tempname): Fix one of them.
19254 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19256         do-release-commit-and-tag: support VPATH builds
19257         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
19258         (noteworthy): Defined earlier to factor its value.
19259         (noteworthy_stub): New.
19260         Use it to factor.
19261         (help_version): Split into...
19262         (help, version): these.
19263         Adjust the option processing part.
19264         Support "--option=value" in addition to "--option value".
19265         (builddir): New.
19266         (--builddir): New option.
19267         * top/README-release: Document this.
19268         Reword slightly so that the reader cannot understand that he
19269         has to do these steps before calling do-release-commit-and-tag.
19271 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19273         readme-release: also require announce-gen and maintainer-makefile
19274         * modules/readme-release (Depends-on): here.
19275         * modules/announce-gen, modules/do-release-commit-and-tag,
19276         modules/gnu-web-doc-update, modules/maintainer-makefile
19277         (Description): Point to readme-release.
19279 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19281         maint.mk: fix VPATH issues.
19282         * top/maint.mk (news-check): GNU Make understand $< very well.
19283         (release-prep): NEWS is in $(srcdir).
19285 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
19287         readme-release: require the promoted modules.
19288         * modules/readme-release (Depends-on): Add
19289         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
19290         in this text.
19292 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19293             Bruno Haible  <bruno@clisp.org>
19295         error, strerror-override: Support mingw64 from Fedora 17.
19296         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
19297         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
19298         EINPROGRESS.
19299         * lib/strerror-override.h (strerror_override): Test it.
19300         * lib/strerror-override.c (strerror_override): Likewise.
19301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
19303 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19304             Bruno Haible  <bruno@clisp.org>
19306         error, strerror-override: Support mingw64 from Fedora 17.
19307         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
19308         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
19309         * lib/strerror-override.h (strerror_override): Test it.
19310         * lib/strerror-override.c (strerror_override): Likewise.
19312 2012-06-03  Bruno Haible  <bruno@clisp.org>
19314         error, strerror-override: Support new errno values from POSIX:2008.
19315         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
19316         ENOTRECOVERABLE.
19317         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
19318         platforms.
19319         * lib/strerror-override.c (strerror_override): Conditionalize the
19320         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
19321         * lib/strerror-override.h (strerror_override): Declare also if
19322         GNULIB_defined_EOWNERDEAD is defined.
19323         * tests/test-errno.c (e130, e131): New variables.
19324         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
19325         ENOTRECOVERABLE.
19326         Reported by Paolo Bonzini.
19328 2012-05-31  Jim Meyering  <meyering@redhat.com>
19330         savewd: add missing dependency on sys_wait module
19331         * modules/savewd (Depends-on): Add sys_wait, needed at least
19332         for MSVC.  Report and suggested change by Michael Goffioul.
19334 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19336         system-quote-tests: port to CentOS 5
19337         Problem reported by Tom G. Christensen in
19338         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
19339         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
19341 2012-05-29  Jim Meyering  <meyering@redhat.com>
19343         maint: fix typos in comments and ChangeLog
19344         Culprits identified and fixed mostly automatically using these commands:
19345         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
19346         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
19347         using http://github.com/lyda/misspell-check
19348         * ChangeLog: Fix typos.
19349         * doc/solaris-versions: Likewise.
19350         * lib/regexec.c (re_search_stub): Likewise.
19351         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19353 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19355         manywarnings: remove duplicate -Wmultichar entry
19356         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
19357         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
19358         so keep the entry marked as documented.
19360 2012-05-27  Karl Berry  <karl@gnu.org>
19362         * config/srclist.txt (mktime.c): remove last libc sync,
19363         perhaps just temporarily.
19365 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
19367         regex: don't assume uint64_t or uint32_t
19368         * lib/regcomp.c (init_word_char): Don't assume that the types
19369         uint64_t and uint32_t exist.  The C standard doesn't guarantee
19370         them, and on some 32-bit compilers there is no uint64_t.
19371         Problem reported by Gianluigi Tiesi in
19372         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
19374 2012-05-25  Jim Meyering  <meyering@redhat.com>
19376         maint.mk: add strncpy-prohibiting syntax-check rule
19377         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
19379 2012-05-24  Jim Meyering  <meyering@redhat.com>
19381         maint.mk: compute $(gpg_key_ID) more portably
19382         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
19383         That use of sed is not portable to some fringe systems.
19384         Reported by Paul Eggert in
19385         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
19387 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19389         mktime: sync from glibc
19390         * config/srclist.txt: Uncomment mktime.c.
19391         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
19392         First, indent with tabs, since glibc uses tabs and doesn't want to
19393         change and we'd rather be identical to glibc.  Also, two small
19394         coding changes:
19395         (isdst_differ): Use &&, not &, as && is the usual style.
19396         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
19397         for clarity.
19399 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19401         announce-gen: du -h is more portable than du --human
19402         * build-aux/announce-gen (sizes): Invoke du with -h instead
19403         of --human.  Accept leading white space in its output.
19405 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19407         announce-gen: Improve diagnostics.
19408         * build-aux/announce-gen: When parsing command line options,
19409         prefer "announce-gen: option --release-type requires an argument"
19410         to "Option release-type requires an argument".
19412 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19414         maint.mk: gpg_key_ID: use sed more portably
19415         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
19416         the closing brace.
19417         (refresh-po): Fuse two sed invocations into one.
19419 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
19421         gitlog-to-changelog: support the log message format used in Bison.
19422         * build-aux/gitlog-to-changelog: Support --strip-tab and
19423         --strip-cherry-picked.
19425 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19427         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
19428         the rest of the current time slice to another thread in the current
19429         process. So if the thread that feeds the file decscriptor we're
19430         polling is not in the current process, we get busy-waiting.
19431         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
19432         Patch from Theodore Leblond.
19433         * lib/select.c: Split polling out of the loop that sets the output
19434         fd_sets.  Check for zero result and loop if the wait timeout is
19435         infinite.
19437 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19439         select: Fix build error on IRIX 6.5.
19440         * lib/select.c: Include stddef.h for NULL.
19442 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19444         gc: fix libgcrypt detection on older machines.
19445         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
19446         copyright years because the file has been distributed every year
19447         since it was created.
19449 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19451         crypto: fix bug in large buffer handling
19452         Problem reported by Serge Belyshev for glibc in
19453         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
19454         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
19455         * lib/md4.c (md4_process_block):
19456         * lib/md5.c (md5_process_block):
19457         * lib/sha1.c (sha1_process_block):
19458         * lib/sha256.c (sha256_process_block):
19459         Don't assume the buffer length is less than 2**32.
19460         * lib/sha512.c (sha512_process_block): Likewise.
19461         Here, the bug is present only in the rare case where the host does
19462         not support uint64_t or where size_t is wider than 64 bits.
19463         Use u64size to work around the problems.
19464         * lib/u64.h (u64size): New macro.
19466 2012-05-15  Pádraig Brady  <P@draigBrady.com>
19468         fsusage: fix block size returned on older Linux 2.6
19470         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
19471         which is available since Linux 2.6.
19472         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
19473         when the member is available so it can be used as a fallback.
19474         * doc/posix-functions/statvfs.texi: Mention the hang issue
19475         on Linux < 2.6.36.
19477 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19479         bootstrap: suppress stderr chatter
19480         * build-aux/bootstrap (insert_sorted_if_absent, main program):
19481         Omit unnecessary chatter to stderr.  The main program chatter
19482         was there only inadvertantly.
19484         bootstrap: .gitignore files created by autopoint, libtool
19485         I ran into this problem when bootstrapping the latest diffutils.
19486         After './bootstrap', 'git status' reported lots of untracked files
19487         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
19488         autopoint and do not need to be version-controlled.
19489         * build-aux/bootstrap: Put into .gitignore the files that
19490         autopoint and libtool create, by keeping track of files that exist
19491         after but not before these programs are run.
19492         (version_controlled_file): Move up.  2nd arg is now full file
19493         name, not base name; this is more convenient.  Put CVS at the end,
19494         as it's now somewhat deprecated.
19496 2012-05-14  Jim Meyering  <meyering@redhat.com>
19498         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
19499         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
19500         definition.  Reported by Bruno Haible.
19502 2012-05-13  Bruno Haible  <bruno@clisp.org>
19503             Paul Eggert  <eggert@cs.ucla.edu>
19505         binary-io: Define set_binary_mode function.
19506         * lib/binary-io.h (set_binary_mode): New function.
19507         (SET_BINARY): Define in terms of set_binary_mode.
19508         * modules/binary-io (configure.ac): Require AC_C_INLINE.
19509         * tests/test-binary-io.c (main): Accept an argument, and test either
19510         set_binary_mode or SET_BINARY depending on the argument.
19511         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
19512         argument. Clean up also t-bin-out0.tmp.
19514 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
19516         bootstrap: take advantage of POSIX shell features
19518         The 'bootstrap' script offered by Gnulib script already uses POSIX
19519         shell features (like $((...)) arithmetic expansions) that are not
19520         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
19521         means that bootstrap must already be run using a proper POSIX shell,
19522         which will thus provide more features, like ${var#pattern} parameter
19523         expansion or inversion of a command exit status with '!'.  We can
19524         thus use these features to improve the clarity and the performances
19525         of the bootstrap script.
19527         Suggested by Eric Blake.
19529         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
19530         of sed/expr plus command substitutions, to save some forks.  While
19531         we are at it, prefer the POSIX $(...) form of command substitution,
19532         rather than the legacy form `...` (since the former is visually
19533         clearer and interacts better with quoting), and prefer the idiom:
19534           "if ! CMD; then ACTION ..."
19535         over the idiom:
19536           "if CMD; then :; else ACTION ..."
19537         which was required by legacy Bourne shells not supporting '!'.
19539 2012-05-12  Bruno Haible  <bruno@clisp.org>
19541         system-quote: Add more comments.
19542         * lib/system-quote.h: Add more comments about wilcards and limitations.
19543         Suggested by Eli Zaretskii <eliz@gnu.org>.
19545         sh-quote, system-quote: Add comments about wildcards.
19546         * lib/sh-quote.h: Clarify what happens with wildcard characters.
19547         * lib/system-quote.h: Likewise.
19548         Reported by Eli Zaretskii <eliz@gnu.org>.
19550 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19552         fsusage: check for GNU/Linux statvfs problem dynamically
19553         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
19554         Define STAT_STATFS2_BSIZE too, since in this case the code now
19555         checks dynamically whether statvfs is reliable, falling back on
19556         Linux-style statfs otherwise.
19557         (statvfs_works): New function, for dynamically testing statvfs.
19558         (get_fs_usage) [STAT_STATVFS]: Use it.
19559         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
19560         statvfs on GNU/Linux hosts, since it's now done dynamically.
19562 2012-05-10  Bruno Haible  <bruno@clisp.org>
19564         system-quote, execute, spawn-pipe: Escape '?' on Windows.
19565         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
19566         '?' character.
19567         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
19568         * tests/test-system-quote-main.c (check_all): Check also strings like
19569         "??????????".
19570         Reported by Eli Zaretskii <eliz@gnu.org>.
19572 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19574         _Noreturn: port config.h to gcc -Wundef
19575         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
19576         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
19577         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
19579 2012-05-10  Bruno Haible  <bruno@clisp.org>
19581         system-quote: Refactor.
19582         * lib/system-quote.h (system_quote_copy): Fix comment.
19583         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
19584         New functions, extracted from system_quote_copy.
19585         (system_quote_length, system_quote_copy): Use these functions.
19586         Reported by Paul Eggert.
19588 2012-05-08  Bruno Haible  <bruno@clisp.org>
19590         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
19591         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
19593 2012-05-08  Bruno Haible  <bruno@clisp.org>
19595         Tests for module 'system-quote'.
19596         * modules/system-quote-tests: New file.
19597         * tests/test-system-quote.sh: New file.
19598         * tests/test-system-quote-main.c: New file.
19599         * tests/test-system-quote-child.c: New file.
19601         New module 'system-quote'.
19602         * lib/system-quote.h: New file.
19603         * lib/system-quote.c: New file.
19604         * modules/system-quote: New file.
19606 2012-05-08  Bruno Haible  <bruno@clisp.org>
19608         sh-quote: Make C++ safe and allow multiple inclusion.
19609         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
19610         declarations in extern "C".
19612 2012-05-08  Bruno Haible  <bruno@clisp.org>
19614         sh-quote tests: Make tests stricter.
19615         * tests/test-sh-quote.c (check_one): Check the return value of
19616         shell_quote_copy.
19617         (main): Check a string with a CR character. Check a string that
19618         contains UCHAR_MAX.
19620 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
19622         warnings.m4: provide a means to specify the program to compile.
19623         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
19624         (gl_WARN_ADD): here.
19625         Use gl_AS_VAR_APPEND.
19626         Support an argument to specify the program to compile.
19627         (gl_WARN_ADD): Accept an argument to specify the program to compile.
19628         AC_SUBST the WARN_CFLAGS when they are used.
19629         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
19630         leave this to gl_WARN_ADD.
19632 2012-05-08  Eric Blake  <eblake@redhat.com>
19634         doc: recommendations on gettext version
19635         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
19636         choice between versions.
19637         * DEPENDENCIES (gettext): Cover both approaches.
19639 2012-05-08  Jim Meyering  <meyering@redhat.com>
19641         init.sh: explain why EXEEXT support uses aliases rather than functions
19642         * tests/init.sh: Add a comment.
19644         init.sh: don't let bash aliases interfere with tests
19645         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
19646         is bash.  This avoids problems for those who alias standard commands to
19647         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
19648         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
19650 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19652         stdint: be more consistent with glibc, SunOS libc
19653         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
19654         (gl_int_fast16_t, gl_uint_fast16_t)
19655         (gl_int_fast32_t, gl_uint_fast32_t)
19656         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
19657         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
19658         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19659         Be consistent with glibc by default, and with SunOS 5.10 and later
19660         if __sun is defined.  This lessens the likelihood of clashes if
19661         code compiled for older hosts is combined with code compiled for
19662         newer ones.  Problem reported by Niels Möller in
19663         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
19665 2012-05-07  Eric Blake  <eblake@redhat.com>
19667         isatty: relax license to LGPLv2+
19668         * modules/isatty (License): Relax license.
19670 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19672         stat-size: comment fix
19673         * lib/stat-size.h: Remove obsolete comment about indenting.
19675 2012-05-06  Bruno Haible  <bruno@clisp.org>
19677         Tests for module 'sh-quote'.
19678         * modules/sh-quote-tests: New file.
19679         * tests/test-sh-quote.c: New file.
19681 2012-05-06  Bruno Haible  <bruno@clisp.org>
19683         sh-quote: Improve shell_quote_argv's signature.
19684         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
19685         * lib/sh-quote.c (shell_quote_argv): Likewise.
19687 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19689         stdint: document issues with int_fast8_t etc.
19690         * doc/posix-headers/stdint.texi (stdint.h): Say that other
19691         stdint.h substitutes may define these types differently.  See
19692         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
19694 2012-05-05  Bruno Haible  <bruno@clisp.org>
19696         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
19697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
19698         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
19699         or 'guessing no (mishandles large arguments)'.
19701 2012-05-05  Bruno Haible  <bruno@clisp.org>
19703         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
19704         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
19705         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19706         set gl_cv_func_link_follows_symlink to "guessing no".
19708 2012-05-05  Bruno Haible  <bruno@clisp.org>
19710         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
19711         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
19712         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
19713         "guessing no".
19714         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
19716 2012-05-05  Bruno Haible  <bruno@clisp.org>
19718         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
19719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
19720         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19721         set gl_cv_struct_dirent_d_ino to "guessing yes".
19723 2012-05-05  Bruno Haible  <bruno@clisp.org>
19725         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
19726         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
19727         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
19728         "guessing yes".
19730 2012-05-05  Bruno Haible  <bruno@clisp.org>
19732         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
19733         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
19734         compiling to a glibc system, set gl_cv_func_signbit and
19735         gl_cv_func_signbit_gcc to "guessing yes".
19737 2012-05-05  Bruno Haible  <bruno@clisp.org>
19739         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
19740         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
19741         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
19742         to "guessing yes".
19743         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
19744         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
19746 2012-05-05  Bruno Haible  <bruno@clisp.org>
19748         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
19749         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
19750         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
19751         gl_cv_func_realpath_works to "guessing yes".
19753 2012-05-05  Bruno Haible  <bruno@clisp.org>
19755         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
19756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
19757         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
19759 2012-05-04  Bruno Haible  <bruno@clisp.org>
19761         Tweak last commit.
19762         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
19763         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19765 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
19767         unistd_h: make it easier to avoid sys_types_h
19768         This is useful for Emacs, which has its own method of porting to
19769         Windows, and which therefore does not need the sys_types_h module.
19770         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
19771         code moved here from gl_SYS_TYPES_H.
19772         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
19773         using the code directly.
19774         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
19775         gl_SYS_TYPES_H.
19776         * modules/sys_types (Files):
19777         * modules/unistd (Files): Add m4/off_t.m4.
19779 2012-05-03  Bruno Haible  <bruno@clisp.org>
19781         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
19782         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
19783         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
19784         "guessing yes" or "guessing no".
19785         (gl_FUNC_LSTAT): Update.
19786         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
19787         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19788         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
19790 2012-05-03  Bruno Haible  <bruno@clisp.org>
19792         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
19793         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
19794         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
19795         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
19796         cross-compiling, choose the first alternative on glibc systems.
19797         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
19799 2012-05-03  Bruno Haible  <bruno@clisp.org>
19801         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
19802         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
19803         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
19805 2012-05-03  Bruno Haible  <bruno@clisp.org>
19807         chown: Avoid "guessing no" when cross-compiling to glibc systems.
19808         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
19810 2012-05-03  Bruno Haible  <bruno@clisp.org>
19812         Avoid "guessing no" guesses when cross-compiling to glibc systems.
19813         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
19814         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
19815         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
19816         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
19817         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
19818         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
19819         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
19820         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
19821         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
19822         compiling to glibc systems, set gl_cv_func_chown_slash_works,
19823         gl_cv_func_chown_ctime_works to "guessing yes".
19824         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
19825         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
19826         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
19827         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
19828         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
19829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
19830         compiling to glibc systems, set gl_cv_func_open_directory_works to
19831         "guessing yes".
19832         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
19833         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
19834         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
19835         "guessing yes".
19836         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
19837         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
19838         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
19839         compiling to glibc systems, set gl_cv_func_floorf_ieee to
19840         "guessing yes".
19841         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
19842         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
19843         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
19844         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
19845         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
19846         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
19847         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
19848         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
19849         "guessing yes".
19850         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
19851         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
19852         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
19853         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
19854         "guessing yes".
19855         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
19856         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
19857         "guessing yes".
19858         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
19859         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
19860         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
19861         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
19862         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
19863         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
19864         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
19865         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
19866         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
19867         compiling to glibc systems, set gl_cv_func_log10f_ieee to
19868         "guessing yes".
19869         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
19870         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
19871         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
19872         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
19873         "guessing yes".
19874         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
19875         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
19876         "guessing yes".
19877         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
19878         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
19879         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
19880         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
19881         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
19882         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
19883         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
19884         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
19885         compiling to glibc systems, set gl_cv_func_mkfifo_works to
19886         "guessing yes".
19887         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
19888         compiling to glibc systems, set gl_cv_func_mknod_works to
19889         "guessing yes".
19890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
19891         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
19892         "guessing yes".
19893         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
19894         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
19895         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
19896         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
19897         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
19898         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
19899         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
19900         compiling to glibc systems, set gl_cv_func_svid_putenv to
19901         "guessing yes".
19902         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
19903         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
19904         "guessing yes".
19905         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
19906         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
19907         "guessing yes".
19908         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
19909         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
19910         to "guessing yes".
19911         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
19912         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
19913         to "guessing yes".
19914         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
19915         compiling to glibc systems, set gl_cv_func_rmdir_works to
19916         "guessing yes".
19917         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
19918         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
19919         gl_cv_func_unlink_parent_fails to "guessing yes".
19920         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
19921         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
19922         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
19923         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
19924         gl_cv_func_rename_dest_works to "guessing yes".
19925         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
19926         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
19927         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
19928         compiling to glibc systems, set gl_cv_func_roundf_ieee to
19929         "guessing yes".
19930         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
19931         compiling to glibc systems, set gl_cv_func_roundl_ieee to
19932         "guessing yes".
19933         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
19934         compiling to glibc systems, set gl_cv_func_setenv_works to
19935         "guessing yes".
19936         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
19937         compiling to glibc systems, set gl_cv_func_unsetenv_works to
19938         "guessing yes".
19939         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
19940         compiling to glibc systems, set gl_cv_func_sleep_works to
19941         "guessing yes".
19942         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
19943         compiling to glibc systems, set gl_cv_func_stat_file_slash to
19944         "guessing yes".
19945         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
19946         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
19947         "guessing yes".
19948         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
19949         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
19950         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
19951         compiling to glibc systems, set gl_cv_func_truncf_ieee to
19952         "guessing yes".
19953         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
19954         compiling to glibc systems, set gl_cv_func_truncl_ieee to
19955         "guessing yes".
19956         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
19957         compiling to glibc systems, set gl_cv_func_usleep_works to
19958         "guessing yes".
19959         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
19960         compiling to glibc systems, set gl_cv_func_futimesat_works to
19961         "guessing yes".
19963 2012-05-03  Bruno Haible  <bruno@clisp.org>
19965         Say "guessing yes" or "guessing no" when cross-compiling.
19966         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
19967         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
19968         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
19969         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
19970         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
19971         am_cv_func_working_getline to "guessing yes" or "guessing no".
19972         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
19973         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
19974         (gl_FUNC_MEMMEM): When cross-compiling, set
19975         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
19976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
19977         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
19978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
19979         set gl_cv_func_strcasestr_works_always to "guessing yes" or
19980         "guessing no".
19981         (gl_FUNC_STRCASESTR): When cross-compiling, set
19982         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
19983         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
19984         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
19985         (gl_FUNC_STRSTR): When cross-compiling, set
19986         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
19987         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
19988         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
19989         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
19990         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
19992 2012-05-01  Bruno Haible  <bruno@clisp.org>
19994         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
19995         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
19996         * build-aux/reloc-ldflags: Likewise.
19997         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
19999 2012-05-01  Bruno Haible  <bruno@clisp.org>
20001         gnulib-tool: Remove transitional code.
20002         * gnulib-tool: Don't warn about --import with 0 arguments any more.
20003         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20005 2012-05-01  Bruno Haible  <bruno@clisp.org>
20007         getcwd: Fix misindentation.
20008         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
20010 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20012         exclude: process exclude and include directives in order
20013         This restores the pre-2009 behavior, and is part of a fix of a
20014         grep bug reported by Quentin Arce in
20015         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
20016         * lib/exclude.c (struct exclude): Remove 'tail' member.
20017         (new_exclude_segment): Prepend the new segment instead of appending.
20018         Return void, since that's now more convenient.
20019         (file_pattern_matches): Renamed from excluded_file_pattern_p.
20020         (file_name_matches): Renamed from excluded_file_name_p.
20021         (file_pattern_matches, file_name_matches):
20022         Return true if the pattern matches, not if it excludes.
20023         All callers changed.
20024         (excluded_file_name): Process the list in reverse order;
20025         since the list is now reversed this restores the pre-2009 behavior.
20026         (add_exclude): Adjust to new reversed-order list.  Use local var
20027         rather than macro, for clarity.
20028         * tests/test-exclude7.sh: Adjust to corrected behavior.
20030         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
20031         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
20032         it's not possible here.  Handle the case of \ at end of pattern
20033         without dumping core.
20034         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
20036         _Noreturn: future-proof non-GNU and non-MSVC compilers
20037         * build-aux/snippet/_Noreturn.h (_Noreturn):
20038         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20039         Do not define _Noreturn if __STDC_VERSION__ indicates this is
20040         C11 or later.  This is more likely to work with random future C
20041         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
20042         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
20044         exclude: handle wildcards with FNM_EXTMATCH
20045         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
20046         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
20047         comment that "has wildcards" really means "has or may have
20048         wildcards".  Simplify by avoiding the need to call strcspn.
20050 2012-04-29  Bruno Haible  <bruno@clisp.org>
20052         gnulib-tool: Fix list of authors.
20053         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
20055 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
20057         bootstrap: support Automake-NG in $buildreq
20058         * bootstrap (check_versions): Handle automake and aclocal from
20059         Automake-NG specially.  They can be specified as respectively
20060         the "automake-ng" and "aclocal-ng" requirements.
20062 2012-04-25  Eric Blake  <eblake@redhat.com>
20064         bootstrap: only force latest Makefile.in.in for gettext module
20065         * build-aux/bootstrap (with_gettext): Only install latest
20066         Makefile.in.in for projects requesting bleeding edge gettext.
20068 2012-04-22  Bruno Haible  <bruno@clisp.org>
20070         doc: Mention reason for replacement on glibc/Linux systems.
20071         * doc/posix-functions/dprintf.texi: Mention the problem with special
20072         'long double' values.
20073         * doc/posix-functions/fprintf.texi: Likewise.
20074         * doc/posix-functions/printf.texi: Likewise.
20075         * doc/posix-functions/snprintf.texi: Likewise.
20076         * doc/posix-functions/sprintf.texi: Likewise.
20077         * doc/posix-functions/vdprintf.texi: Likewise.
20078         * doc/posix-functions/vfprintf.texi: Likewise.
20079         * doc/posix-functions/vprintf.texi: Likewise.
20080         * doc/posix-functions/vsnprintf.texi: Likewise.
20081         * doc/posix-functions/vsprintf.texi: Likewise.
20082         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
20083         platforms with F_DUPFD_CLOEXEC problems.
20084         * doc/posix-functions/glob.texi: Mention which platforms are affected
20085         by the problem with symbolic links.
20086         * doc/posix-functions/linkat.texi: Mention the problem with
20087         AT_SYMLINK_FOLLOW on Linux.
20089 2012-04-22  Bruno Haible  <bruno@clisp.org>
20091         pwrite: Don't replace on all platforms.
20092         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
20094 2012-04-22  Bruno Haible  <bruno@clisp.org>
20096         rint* tests: Avoid gcc warnings.
20097         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
20098         * tests/test-rintf.c (INFINITY, NAN): Likewise.
20099         * tests/test-rintl.c (INFINITY, NAN): Likewise.
20101 2012-04-21  Bruno Haible  <bruno@clisp.org>
20103         users.txt: Update.
20104         * users.txt: Add freedink, wdiff. Update URLs for projects that have
20105         switched from CVS to git, bzr, or svn.
20107 2012-04-21  Bruno Haible  <bruno@clisp.org>
20109         Large File Support for native Windows platforms.
20111         * m4/largefile.m4 (gl_LARGEFILE): New macro.
20112         * modules/largefile (configure.ac): Require gl_LARGEFILE.
20114         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
20115         type.
20116         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
20117         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
20118         * doc/posix-headers/sys_types.texi: Mention the effect of the
20119         'largefile' module.
20121         * lib/fcntl.in.h: Add comments about off_t.
20122         * modules/fcntl-h (Depends-on): Add sys_types.
20124         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
20125         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
20126         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
20127         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
20128         * modules/unistd (Depends-on): Add sys_types.
20129         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
20131         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
20132         instead of lseek.
20133         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
20134         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
20135         * modules/lseek (Depends-on): Add sys_types.
20137         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
20138         msvc-nothrow.h.
20139         (SetFileSize): New function.
20140         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
20141         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
20142         if Large File Support is requested.
20143         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
20144         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
20146         * lib/stdio.in.h: Add comments about off_t.
20147         * modules/stdio (Depends-on): Add sys_types.
20149         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
20150         instead of ftello.
20151         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
20152         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
20153         (gl_PREREQ_FTELLO): New macro.
20154         * modules/ftello (Depends-on): Add sys_types.
20155         (configure.ac): Incoke gl_PREREQ_FTELLO.
20157         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
20158         instead of fseeko.
20159         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
20160         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
20161         (gl_PREREQ_FSEEKO): New macro.
20162         * modules/fseeko (Depends-on): Add sys_types.
20163         (configure.ac): Invoke gl_PREREQ_FSEEKO.
20165         * lib/sys_stat.in.h: Add comments about off_t.
20166         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
20167         64-bit integer for st_size in 'struct stat'.
20168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
20169         Define _GL_WINDOWS_64_BIT_ST_SIZE.
20170         * modules/sys_stat (Depends-on): Add sys_types.
20171         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
20173         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
20174         instead of stat or _stat.
20176         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
20177         'struct _stati64' instead of fstat and 'struct stat'.
20178         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
20179         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
20181         Reported by Ray Satiro <raysatiro@yahoo.com>.
20183 2012-04-19  Eric Blake  <eblake@redhat.com>
20185         bootstrap: accommodate older libtool
20186         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
20187         Reported by Daniel P. Berrange.
20189 2012-04-19  Jim Meyering  <meyering@redhat.com>
20191         announce-gen: avoid failure due to lack of Digest::SHA1
20192         Even with the preferred Digest::SHA available, this script
20193         would fail when the backup module, Digest::SHA1, was not installed.
20194         * build-aux/announce-gen: Quote the conditional use of "use".
20195         Reported by Reuben Thomas in:
20196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
20198         bootstrap: don't let a user's CDPATH setting affect this script
20199         When CDPATH is set, cd will sometimes generate output.
20200         When "cd" is run in a subshell whose output matters, that
20201         surprising-to-some output can cause malfunction.
20202         Unsetting CDPATH turns off this shell "feature."
20203         * build-aux/bootstrap (CDPATH): Unset.
20204         Reported by Reuben Thomas in:
20205         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
20206         and inspired by his patch here:
20207         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
20209 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
20210         and Jim Meyering  <meyering@redhat.com>
20212         maint.mk: catch "see @xref{}" and similar
20213         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
20214         prohibit "See also @xref{", "Also see @pxref{", and similar.
20216 2012-04-16  Jim Meyering  <meyering@redhat.com>
20218         bootstrap: really use gnulib's po/Makefile.in.in
20219         * build-aux/bootstrap: Correct the source file name in previous change.
20220         Reported by Akim Demaille.
20222         configmake: correct minor inconsistency in Makefile rule
20223         * modules/configmake (Makefile.am): All other rules like this one
20224         run the final "mv -f ..." in the same backslash-continued command
20225         as the one that does everything else.  This one put the mv -f ...
20226         command on a separate, non-backslash-continued line.
20227         Make it like the others.
20229         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
20230         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
20231         the one from gettext.  Reported by Akim Demaille.
20233 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
20235         Fix recursion of install-* into po directories.
20236         Bison's install-pdf bug reported by Hans Aberg at
20237         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
20238         * build-aux/po/Makefile.in.in (install-dvi, install-html)
20239         (install-info, install-pdf, install-ps): New targets.
20241 2012-04-16  Jim Meyering  <meyering@redhat.com>
20243         maint: avoid spurious "make sc_maint" failure
20244         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
20245         exempt all *.class file names, for lib/javaversion.class.
20247 2012-04-15  Bruno Haible  <bruno@clisp.org>
20249         lseek: Make configure test independent of environment.
20250         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
20251         Windows, we know that lseek() on pipes is broken; skip the runtime
20252         test.
20254 2012-04-14  Bruno Haible  <bruno@clisp.org>
20256         stat: Bypass buggy override in mingw64.
20257         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
20258         * lib/stat.c (stat) [mingw64]: Define to _stat.
20259         * doc/posix-functions/stat.texi: Mention mingw64 bug.
20261 2012-04-14  Bruno Haible  <bruno@clisp.org>
20263         pathmax: Fix compilation error on MSVC 9.
20264         * modules/pathmax (Depends-on): Add unistd.
20266 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20268         README: document pointer comparison assumption
20269         * README (Portability guidelines): Document assumption about
20270         pointer comparisons, in response to a recent bug-gnulib comment by
20271         Jeffrey Kegler.
20273 2012-04-12  Bruno Haible  <bruno@clisp.org>
20275         Tests for module 'getrusage'.
20276         * modules/getrusage-tests: New file.
20277         * tests/test-getrusage.c: New file.
20279         New module 'getrusage'.
20280         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
20281         warn-on-use.h.
20282         (getrusage): New declaration.
20283         * lib/getrusage.c: New file.
20284         * m4/getrusage.m4: New file.
20285         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
20286         is declared.
20287         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
20288         HAVE_GETRUSAGE.
20289         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
20290         snippet/c++defs, snippet/warn-on-use.
20291         (Makefile.am): Update generation of sys/resource.h. Substitute
20292         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
20293         * modules/getrusage: New file.
20294         * doc/posix-functions/getrusage.texi: Mention the new module.
20296 2012-04-12  Bruno Haible  <bruno@clisp.org>
20298         Tests for module 'sys_resource'.
20299         * modules/sys_resource-tests: New file.
20300         * tests/test-sys_resource.c: New file.
20302         New module 'sys_resource'.
20303         * lib/sys_resource.in.h: New file.
20304         * m4/sys_resource_h.m4: New file.
20305         * modules/sys_resource: New file.
20306         * doc/posix-headers/sys_resource.texi: Mention the new module.
20308 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
20310         ioctl: Fix compilation error on mingw.
20311         * lib/ioctl.c: Include <windows.h>.
20312         Also reported by Ray Satiro <raysatiro@yahoo.com>.
20314 2012-04-04  Jim Meyering  <meyering@redhat.com>
20316         regex: correct #pragma guard expression
20317         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
20318         not 4.3.  Correct its cpp guard expression.
20320 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20322         regex: remove unnecessary type punning
20323         Problem reported by Vladimir Serbinenko in
20324         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
20325         * lib/regex.h (struct re_pattern_buffer): Change the type of
20326         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
20327         Fix comment to match code.
20328         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
20329         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
20330         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
20331         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
20332         (set_regs):
20333         Omit no-longer-necessary casts.
20335 2012-04-03  Bruno Haible  <bruno@clisp.org>
20337         Tests for module 'ilogbl'.
20338         * modules/ilogbl-tests: New file.
20339         * tests/test-ilogbl.c: New file.
20341         New module 'ilogbl'.
20342         * lib/math.in.h (ilogbl): New declaration.
20343         * lib/ilogbl.c: New file.
20344         * m4/ilogbl.m4: New file.
20345         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
20346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
20347         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
20348         Split sed invocation, to avoid the limit of 100 substitutions of
20349         HP-UX 'sed'.
20350         * modules/ilogbl: New file.
20351         * tests/test-math-c++.cc: Check the declaration of ilogbl.
20352         * doc/posix-functions/ilogbl.texi: Mention the new module.
20354 2012-04-03  Bruno Haible  <bruno@clisp.org>
20356         Tests for module 'ilogbf'.
20357         * modules/ilogbf-tests: New file.
20358         * tests/test-ilogbf.c: New file.
20360         New module 'ilogbf'.
20361         * lib/math.in.h (ilogbf): New declaration.
20362         * lib/ilogbf.c: New file.
20363         * m4/ilogbf.m4: New file.
20364         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
20365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
20366         REPLACE_ILOGBF.
20367         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
20368         REPLACE_ILOGBF.
20369         * modules/ilogbf: New file.
20370         * tests/test-math-c++.cc: Check the declaration of ilogbf.
20371         * doc/posix-functions/ilogbf.texi: Mention the new module.
20373 2012-04-03  Bruno Haible  <bruno@clisp.org>
20375         Tests for module 'ilogb'.
20376         * modules/ilogb-tests: New file.
20377         * tests/test-ilogb.c: New file.
20378         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
20379         tests/test-logb-ieee.h.
20381         New module 'ilogb'.
20382         * lib/math.in.h (ilogb): New declaration.
20383         * lib/ilogb.c: New file.
20384         * m4/ilogb.m4: New file.
20385         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
20386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
20387         REPLACE_ILOGB.
20388         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
20389         REPLACE_ILOGB.
20390         * modules/ilogb: New file.
20391         * tests/test-math-c++.cc: Check the declaration of ilogb.
20392         * doc/posix-functions/ilogb.texi: Mention the new module.
20394 2012-04-03  Bruno Haible  <bruno@clisp.org>
20396         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
20397         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
20398         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
20399         (main): Check their values.
20400         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
20401         problem.
20403 2012-04-03  Bruno Haible  <bruno@clisp.org>
20405         Tests for module 'logbl-ieee'.
20406         * modules/logbl-ieee-tests: New file.
20407         * tests/test-logbl-ieee.c: New file.
20409         New module 'logbl-ieee'.
20410         * modules/logbl-ieee: New file.
20412         Tests for module 'logb-ieee'.
20413         * modules/logb-ieee-tests: New file.
20414         * tests/test-logb-ieee.c: New file.
20416         New module 'logb-ieee'.
20417         * modules/logb-ieee: New file.
20419         Tests for module 'logbf-ieee'.
20420         * modules/logbf-ieee-tests: New file.
20421         * tests/test-logbf-ieee.c: New file.
20422         * tests/test-logb-ieee.h: New file.
20424         New module 'logbf-ieee'.
20425         * modules/logbf-ieee: New file.
20427 2012-04-03  Bruno Haible  <bruno@clisp.org>
20429         Tests for module 'logbl'.
20430         * modules/logbl-tests: New file.
20431         * tests/test-logbl.c: New file.
20433         New module 'logbl'.
20434         * lib/math.in.h (logbl): New declaration.
20435         * lib/logbl.c: New file.
20436         * m4/logbl.m4: New file.
20437         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
20438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
20439         REPLACE_LOGBL.
20440         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
20441         REPLACE_LOGBL.
20442         * modules/logbl: New file.
20443         * tests/test-math-c++.cc: Check the declaration of logbl.
20444         * doc/posix-functions/logbl.texi: Mention the new module.
20446 2012-04-02  Bruno Haible  <bruno@clisp.org>
20448         Tests for module 'logbf'.
20449         * modules/logbf-tests: New file.
20450         * tests/test-logbf.c: New file.
20452         New module 'logbf'.
20453         * lib/math.in.h (logbf): New declaration.
20454         * lib/logbf.c: New file.
20455         * m4/logbf.m4: New file.
20456         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
20457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
20458         REPLACE_LOGBF.
20459         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
20460         REPLACE_LOGBF.
20461         * modules/logbf: New file.
20462         * tests/test-math-c++.cc: Check the declaration of logbf.
20463         * doc/posix-functions/logbf.texi: Mention the new module.
20465 2012-04-02  Bruno Haible  <bruno@clisp.org>
20467         logb tests: More tests.
20468         * tests/test-logb.h: New file, based on tests/test-logb.c and
20469         tests/test-frexp.h.
20470         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
20471         (main): Just invoke test_function.
20472         * modules/logb-tests (Files): Add tests/test-logb.h,
20473         tests/minus-zero.h, tests/randomd.c.
20474         (Makefile.am): Add randomd.c to test_logb_SOURCES.
20476         logb: Provide replacement and workarounds.
20477         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
20478         is 1.
20479         * lib/logb.c: New file.
20480         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
20481         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
20482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
20483         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
20484         * modules/logb (Files): Add lib/logb.c.
20485         (Depends-on): Add isfinite, frexp, isnand.
20486         (configure.ac): Compile the replacement code logb.c if needed.
20487         * tests/test-math-c++.cc: Check the declaration of logb.
20488         * doc/posix-functions/logb.texi: Mention the replacement and the bug
20489         with subnormal numbers.
20491 2012-04-02  Bruno Haible  <bruno@clisp.org>
20493         log10* tests: Speed up.
20494         * tests/test-log10.h (test_function): Reduce amount of random numbers
20495         to test.
20497 2012-04-01  Bruno Haible  <bruno@clisp.org>
20499         logf-ieee: Fix test whether logf works.
20500         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
20502 2012-04-01  Bruno Haible  <bruno@clisp.org>
20504         log10l: Work around log10l-ieee test failure on IRIX 6.5.
20505         * lib/log10l.c: Include <float.h>
20506         (log10l): On IRIX, normalize the +Infinity value.
20507         * modules/log10l (Depends-on): Add 'float'.
20508         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
20509         +Infinity.
20511         log10f-ieee: Work around test failure on NetBSD 5.1.
20512         * m4/log10f-ieee.m4: New file.
20513         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
20514         test whether log10f works with a negative argument. Replace it if not.
20515         * lib/log10f.c (log10f): For negative arguments, return NaN.
20516         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
20517         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
20518         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
20520         log10f-ieee: Work around test failure on Solaris 9.
20521         * modules/log10f-ieee (Depends-on): Add log10-ieee.
20522         (configure.ac): Require gl_FUNC_LOG10F.
20524         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20525         * m4/log10-ieee.m4: New file.
20526         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
20527         whether log10 works with a negative argument. Replace it if not.
20528         * lib/log10.c (log10): For negative arguments, return NaN.
20529         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
20530         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
20531         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
20533         Tests for module 'log10l-ieee'.
20534         * modules/log10l-ieee-tests: New file.
20535         * tests/test-log10l-ieee.c: New file.
20537         New module 'log10l-ieee'.
20538         * modules/log10l-ieee: New file.
20540         Tests for module 'log10-ieee'.
20541         * modules/log10-ieee-tests: New file.
20542         * tests/test-log10-ieee.c: New file.
20544         New module 'log10-ieee'.
20545         * modules/log10-ieee: New file.
20547         Tests for module 'log10f-ieee'.
20548         * modules/log10f-ieee-tests: New file.
20549         * tests/test-log10f-ieee.c: New file.
20550         * tests/test-log10-ieee.h: New file.
20552         New module 'log10f-ieee'.
20553         * modules/log10f-ieee: New file.
20555 2012-04-01  Bruno Haible  <bruno@clisp.org>
20557         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
20558         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
20559         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
20560         workaround.
20561         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
20562         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
20563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
20564         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
20565         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
20566         (Depends-on): Update conditions.
20567         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
20568         IRIX 6.5, OSF/1 5.1 problems.
20570 2012-04-01  Bruno Haible  <bruno@clisp.org>
20572         log10f: Work around OSF/1 5.1 bug.
20573         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
20574         * lib/log10f.c (log10f): If logf exists, use it and provide just the
20575         workaround.
20576         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
20577         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
20578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
20579         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
20580         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
20581         (Depends-on): Update conditions.
20582         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
20584 2012-04-01  Bruno Haible  <bruno@clisp.org>
20586         log10: Work around OSF/1 5.1 bug.
20587         * lib/math.in.h (log10): New declaration.
20588         * lib/log10.c: New file.
20589         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
20590         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
20591         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
20592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
20593         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
20594         * modules/log10 (Files): Add lib/log10.c.
20595         (Depends-on): Add math.
20596         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
20597         * tests/test-math-c++.cc: Check the declaration of log10.
20598         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
20600 2012-03-31  Bruno Haible  <bruno@clisp.org>
20602         log10l tests: More tests.
20603         * modules/log10l-tests (Files): Add tests/test-log10l.h,
20604         tests/minus-zero.h, tests/randoml.c.
20605         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
20606         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
20607         (main): Invoke test_function.
20609         log10f tests: More tests.
20610         * modules/log10f-tests (Files): Add tests/test-log10.h,
20611         tests/minus-zero.h, tests/randomf.c.
20612         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
20613         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
20614         (main): Invoke test_function.
20616         log10 tests: More tests.
20617         * tests/test-log10.h: New file.
20618         * modules/log10-tests (Files): Add tests/test-log10.h,
20619         tests/minus-zero.h, tests/randomd.c.
20620         (Makefile.am): Add randomd.c to test_log10_SOURCES.
20621         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
20622         (main): Invoke test_function.
20624 2012-03-31  Simon Josefsson  <simon@josefsson.org>
20626         fflush: Fix syntax error.
20627         * lib/fflush.c: Include unused-parameter.h, needed for
20628         _GL_UNUSED_PARAMETER.
20629         * modules/fflush (Depends-on): Add snippet/unused-parameter.
20631 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
20633         regex: pacify GCC when compiling GRUB
20634         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
20635         a diagnostic.  Reported by Vladimir Serbinenko in
20636         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
20638 2012-03-29  Eric Blake  <eblake@redhat.com>
20640         stdio: don't assume gets any more
20641         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
20642         support.
20643         * modules/stdio (Makefile.am): Likewise.
20644         * lib/stdio-read.c (gets): Likewise.
20645         * tests/test-stdio-c++.cc: Likewise.
20646         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
20647         * lib/stdio.in.h (gets): Make warning occur in more places.
20648         * doc/posix-functions/gets.texi (gets): Update documentation.
20649         Reported by Christer Solskogen.
20651         maint.mk: fix syntax checks without exclusions
20652         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
20653         Reported by Daniel P. Berrange.
20655         strerror_r: avoid compiler warning
20656         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
20657         level.
20659         fflush: avoid compiler warning
20660         * lib/fflush.c (update_fpos_cache): Mark variables that are
20661         potentially unused.
20663 2012-03-25  Bruno Haible  <bruno@clisp.org>
20665         Tests for module 'localeconv'.
20666         * modules/localeconv-tests: New file.
20667         * tests/test-localeconv.c: New file.
20669         New module 'localeconv'.
20670         * lib/locale.in.h (localeconv): New declaration.
20671         * lib/localeconv.c: New file.
20672         * m4/localeconv.m4: New file.
20673         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
20674         REPLACE_LOCALECONV.
20675         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
20676         REPLACE_LOCALECONV.
20677         * modules/localeconv: New file.
20678         * modules/nl_langinfo (Depends-on): Add localeconv.
20679         * modules/human (Depends-on): Likewise.
20680         * doc/posix-functions/localeconv.texi: Mention the new module.
20682 2012-03-25  Bruno Haible  <bruno@clisp.org>
20684         locale: Provide a complete 'struct lconv'.
20685         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20686         'struct lconv' does not contain int_p_cs_precedes.
20687         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20688         * doc/posix-headers/locale.texi: Update.
20690         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
20691         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
20692         * doc/posix-headers/locale.texi: Update.
20694         locale: Provide a working 'struct lconv'.
20695         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
20696         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20697         'struct lconv' does not even contain decimal_point.
20698         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
20699         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
20700         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20701         * doc/posix-headers/locale.texi: Mention the problems with
20702         'struct lconv'.
20703         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20705 2012-03-24  Bruno Haible  <bruno@clisp.org>
20707         Enable common subexpression optimization in GCC.
20708         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
20709         macros.
20710         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
20711         GCC attribute 'const'.
20712         (uc_locale_language): Declare with GCC attribute 'pure'.
20713         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
20714         with GCC attribute 'const'.
20715         * lib/unictype.in.h (uc_is_general_category_withtable,
20716         uc_combining_class, uc_combining_class_name,
20717         uc_combining_class_long_name, uc_bidi_class_name,
20718         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
20719         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
20720         uc_decimal_value, uc_digit_value, uc_numeric_value,
20721         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
20722         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
20723         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
20724         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
20725         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
20726         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
20727         Declare with GCC attribute 'const'.
20728         (uc_general_category_name, uc_general_category_long_name,
20729         uc_general_category_byname, uc_general_category,
20730         uc_is_general_category, uc_combining_class_byname,
20731         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
20732         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
20733         Declare with GCC attribute 'pure'.
20734         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
20735         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
20736         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
20737         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
20738         with GCC attribute 'pure'.
20739         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
20740         'const'.
20741         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
20742         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
20743         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
20744         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
20745         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
20746         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
20747         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
20748         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
20749         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
20750         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
20751         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
20752         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
20753         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
20754         GCC attribute 'pure'.
20755         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
20756         'const'.
20757         * lib/uniwidth.in.h (uc_width): Simplify declaration.
20758         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
20759         u32_strwidth): Declare with GCC attribute 'pure'.
20761         Enable common subexpression optimization in GCC.
20762         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20763         (alphasort): Declare with GCC attribute 'pure'.
20764         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20765         (atoll): Declare with GCC attribute 'pure'.
20766         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20767         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20768         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
20769         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20770         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
20771         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
20772         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
20774 2012-03-24  Bruno Haible  <bruno@clisp.org>
20776         gnulib-tool: Avoid unintended error output from 'cmp'.
20777         * gnulib-tool (func_add_file, func_update_file, func_import): Use
20778         "cmp -s", not "cmp > /dev/null".
20780 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
20782         gnulib-tool: fix imprecise comments w.r.t. an automake bug
20784         It's not just Automake versions < 1.9b that creates an empty
20785         pkgdatadir at installation time if pkgdata_DATA is specified
20786         to empty; modern automake versions do this as well, at least
20787         until automake 1.11.4 (not yet released at the moment of writing,
20788         but soon to appear).  That behaviour was generally considered a
20789         feature rather than a bug, at least until this discussion:
20790         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
20792         See also automake bugs #10997 and #11030.
20794         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
20795         reference to relevant automake bug numbers.
20796         (func_emit_tests_Makefile_am): Likewise.
20798 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20800         announce-gen: use Digest::SHA when possible
20801         * build-aux/announce-gen: Use Digest::SHA when possible, falling
20802         back to Digest::SHA1 if necessary.
20804 2012-03-20  Jim Meyering  <meyering@redhat.com>
20806         tests: avoid gcc warnings about argv vs. const initializers
20807         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
20808         warnings about discarding 'const' qualifier from pointer target type.
20809         * tests/test-posix_spawn2.c (main): Likewise.
20811 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20813         README-release: simplify slightly
20814         * top/README-release: Run "git checkout master" only once.
20816 2012-03-15  Mark Wielaard  <mark@klomp.org>
20818         git-merge-changelog: add specific example on how to use with hg.
20819         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
20821 2012-03-18  Mark Wielaard  <mark@klomp.org>
20823         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
20825 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
20827         git-version-gen: don't let "prefix" envvar cause trouble
20828         * build-aux/git-version-gen (prefix): Initialize properly,
20829         so as not to use a value specified via the environment.
20830         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
20832 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20834         regex: diagnose too-large repeat counts in EREs
20835         Previously, the code did not diagnose the too-large repeat count
20836         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
20837         as if it were 'b\{1000000000}', which is unexpected.
20838         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
20839         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
20840         is a reasonable one for this problem.  Another option would be to
20841         create a new REG_OVERFLOW error for repeat counts that are too large.
20842         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
20843         count is too large, so that the caller can distinguish the two cases.
20844         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
20845         "Too large" return code, and that repeat counts are one example of this.
20847 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20849         doc: some glibc x32 integer width issues
20850         * doc/posix-headers/sys_types.texi (sys/types.h):
20851         * doc/posix-headers/time.texi (time.h):
20852         Mention that glibc x32 does not conform to POSIX in a couple of
20853         areas related to integer widths.
20855 2012-03-15  Bruno Haible  <bruno@clisp.org>
20857         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
20858         * lib/fma.c (VOLATILE): New macro.
20859         (FUNC): Use it to work around a GCC compiler bug.
20861 2012-03-13  Bruno Haible  <bruno@clisp.org>
20863         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20864         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
20865         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
20866         REPLACE_HYPOTL to 1.
20867         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
20869 2012-03-13  Bruno Haible  <bruno@clisp.org>
20871         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20872         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
20873         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
20874         REPLACE_REMAINDERL to 1.
20875         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
20876         bug.
20878 2012-03-13  Bruno Haible  <bruno@clisp.org>
20880         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20881         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
20882         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
20883         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
20884         too big rounding errors.
20885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
20886         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
20887         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
20888         (Depends-on): Update conditions.
20889         * tests/test-sqrtl.c (my_ldexpl): New function.
20890         (main): Add test of a particular value.
20891         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
20893 2012-03-13  Pádraig Brady  <P@draigBrady.com>
20895         doc: Update timer_* platform portability notes.
20896         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
20897         that always return ENOSYS.
20898         * doc/posix-functions/timer_delete.texi: Likewise.
20899         * doc/posix-functions/timer_gettime.texi: Likewise.
20900         * doc/posix-functions/timer_settime.texi: Likewise.
20902 2012-03-13  Bruno Haible  <bruno@clisp.org>
20904         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20905         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
20906         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
20907         REPLACE_CBRTL to 1.
20908         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
20910 2012-03-13  Bruno Haible  <bruno@clisp.org>
20912         remainderl: Avoid compilation error on AIX >= 5.2.
20913         * lib/math.in.h (remainderl): Undefine macro from the system header.
20915 2012-03-13  Bruno Haible  <bruno@clisp.org>
20917         Avoid compilation errors with MSVC option -fp:strict.
20918         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
20919         * lib/cbrtf.c: Likewise.
20920         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20922 2012-03-12  Bruno Haible  <bruno@clisp.org>
20924         uninorm: Don't crash in out-of-memory conditions.
20925         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
20926         gracefully.
20927         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
20928         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
20930 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
20932         quote: fix syntax-check
20933         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
20934         also exports quote_quoting_options.
20936 2012-03-12  Simon Josefsson  <simon@josefsson.org>
20938         Collapse list of copyright years to ranges.  See
20939         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
20940         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
20941         build-aux/csharpexec.sh.in, build-aux/gnupload,
20942         build-aux/install-reloc, build-aux/javacomp.sh.in,
20943         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
20944         build-aux/move-if-change, build-aux/reloc-ldflags,
20945         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
20947 2012-03-11  Bruno Haible  <bruno@clisp.org>
20949         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20950         * m4/log2f-ieee.m4: New file.
20951         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
20952         whether log2f works with a minus zero argument. Replace it if not.
20953         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
20954         (Depends-on): Add log2-ieee.
20955         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
20956         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
20958         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20959         * m4/log2-ieee.m4: New file.
20960         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
20961         whether log2 works with a minus zero argument. Replace it if not.
20962         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
20963         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
20964         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
20966         Tests for module 'log2l-ieee'.
20967         * modules/log2l-ieee-tests: New file.
20968         * tests/test-log2l-ieee.c: New file.
20970         New module 'log2l-ieee'.
20971         * modules/log2l-ieee: New file.
20973         Tests for module 'log2-ieee'.
20974         * modules/log2-ieee-tests: New file.
20975         * tests/test-log2-ieee.c: New file.
20977         New module 'log2-ieee'.
20978         * modules/log2-ieee: New file.
20980         Tests for module 'log2f-ieee'.
20981         * modules/log2f-ieee-tests: New file.
20982         * tests/test-log2f-ieee.c: New file.
20983         * tests/test-log2-ieee.h: New file.
20985         New module 'log2f-ieee'.
20986         * modules/log2f-ieee: New file.
20988 2012-03-11  Bruno Haible  <bruno@clisp.org>
20990         Tests for module 'log2l'.
20991         * modules/log2l-tests: New file.
20992         * tests/test-log2l.c: New file.
20994         New module 'log2l'.
20995         * lib/math.in.h (log2l): New declaration.
20996         * lib/log2l.c: New file.
20997         * m4/log2l.m4: New file.
20998         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
20999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
21000         REPLACE_LOG2L.
21001         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
21002         REPLACE_LOG2L.
21003         * modules/log2l: New file.
21004         * tests/test-math-c++.cc: Check the declaration of log2l.
21005         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
21006         and OSF/1 problems.
21008 2012-03-11  Bruno Haible  <bruno@clisp.org>
21010         Tests for module 'log2f'.
21011         * modules/log2f-tests: New file.
21012         * tests/test-log2f.c: New file.
21014         New module 'log2f'.
21015         * lib/math.in.h (log2f): New declaration.
21016         * lib/log2f.c: New file.
21017         * m4/log2f.m4: New file.
21018         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
21019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
21020         REPLACE_LOG2F.
21021         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
21022         REPLACE_LOG2F.
21023         * modules/log2f: New file.
21024         * tests/test-math-c++.cc: Check the declaration of log2f.
21025         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
21026         and OSF/1 and Cygwin problems.
21028 2012-03-11  Bruno Haible  <bruno@clisp.org>
21030         Tests for module 'log2'.
21031         * modules/log2-tests: New file.
21032         * tests/test-log2.c: New file.
21033         * tests/test-log2.h: New file.
21035         New module 'log2'.
21036         * lib/math.in.h (log2): New declaration.
21037         * lib/log2.c: New file.
21038         * m4/log2.m4: New file.
21039         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
21040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
21041         REPLACE_LOG2.
21042         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
21043         REPLACE_LOG2.
21044         * modules/log2: New file.
21045         * tests/test-math-c++.cc: Check the declaration of log2.
21046         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
21047         and OSF/1 and Cygwin problems.
21049 2012-03-11  Bruno Haible  <bruno@clisp.org>
21051         exp2* tests: More tests.
21052         * tests/test-exp2.h (test_function): Test all integral arguments that
21053         don't need to overflow or denormalized numbers.
21054         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
21055         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
21056         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
21058 2012-03-10  Bruno Haible  <bruno@clisp.org>
21060         log1pl-ieee: Work around test failure on AIX 7.1.
21061         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
21063         log1pl-ieee: Work around test failure on IRIX 6.5.
21064         * m4/log1pl-ieee.m4: New file.
21065         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
21066         test whether log1pl works with a minus zero argument. Replace it if
21067         not.
21068         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
21069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
21070         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
21071         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
21072         (Depends-on): Update conditions.
21073         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21074         m4/signbit.m4.
21075         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
21076         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
21078         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
21079         * m4/log1pf-ieee.m4: New file.
21080         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
21081         test whether log1pf works with a minus zero argument. Replace it if
21082         not.
21083         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
21084         m4/signbit.m4.
21085         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
21086         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
21088         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
21089         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
21090         (configure.ac): Require gl_FUNC_LOG1PF.
21092         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
21093         * m4/log1p-ieee.m4: New file.
21094         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
21095         whether log1p works with a minus zero argument. Replace it if not.
21096         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
21097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
21098         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
21099         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
21100         (Depends-on): Update conditions.
21101         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21102         m4/signbit.m4.
21103         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
21104         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
21106         Tests for module 'log1pl-ieee'.
21107         * modules/log1pl-ieee-tests: New file.
21108         * tests/test-log1pl-ieee.c: New file.
21110         New module 'log1pl-ieee'.
21111         * modules/log1pl-ieee: New file.
21113         Tests for module 'log1p-ieee'.
21114         * modules/log1p-ieee-tests: New file.
21115         * tests/test-log1p-ieee.c: New file.
21117         New module 'log1p-ieee'.
21118         * modules/log1p-ieee: New file.
21120         Tests for module 'log1pf-ieee'.
21121         * modules/log1pf-ieee-tests: New file.
21122         * tests/test-log1pf-ieee.c: New file.
21123         * tests/test-log1p-ieee.h: New file.
21125         New module 'log1pf-ieee'.
21126         * modules/log1pf-ieee: New file.
21128 2012-03-10  Bruno Haible  <bruno@clisp.org>
21130         Tests for module 'log1pl'.
21131         * modules/log1pl-tests: New file.
21132         * tests/test-log1pl.c: New file.
21134         New module 'log1pl'.
21135         * lib/math.in.h (log1pl): New declaration.
21136         * lib/log1pl.c: New file.
21137         * m4/log1pl.m4: New file.
21138         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
21139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
21140         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
21141         * modules/log1pl: New file.
21142         * tests/test-math-c++.cc: Check the declaration of log1pl.
21143         * doc/posix-functions/log1pl.texi: Mention the new module.
21145 2012-03-10  Bruno Haible  <bruno@clisp.org>
21147         Tests for module 'log1pf'.
21148         * modules/log1pf-tests: New file.
21149         * tests/test-log1pf.c: New file.
21151         New module 'log1pf'.
21152         * lib/math.in.h (log1pf): New declaration.
21153         * lib/log1pf.c: New file.
21154         * m4/log1pf.m4: New file.
21155         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
21156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
21157         REPLACE_LOG1PF.
21158         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
21159         REPLACE_LOG1PF.
21160         * modules/log1pf: New file.
21161         * tests/test-math-c++.cc: Check the declaration of log1pf.
21162         * doc/posix-functions/log1pf.texi: Mention the new module.
21164 2012-03-10  Bruno Haible  <bruno@clisp.org>
21166         log1p tests: More tests.
21167         * tests/test-log1p.h: New file.
21168         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
21169         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
21170         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
21171         (main): Invoke test_function.
21173         log1p: Provide replacement for Minix and MSVC.
21174         * lib/math.in.h (log1p): New declaration.
21175         * lib/log1p.c: New file.
21176         * m4/log1p.m4: New file.
21177         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
21178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
21179         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
21180         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
21181         (Depends-on): Add math, isnand, log, round.
21182         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
21183         HAVE_LOG1P is 0.
21184         * tests/test-math-c++.cc: Check the declaration of log1p.
21185         * doc/posix-functions/log1p.texi: Mention the replacement.
21187 2012-03-10  Bruno Haible  <bruno@clisp.org>
21189         math tests: Small simplification.
21190         * tests/test-exp.h (test_function): Use the same err_bound for
21191         'double' on platforms with sizeof (long double) == sizeof (double)
21192         than on platforms with sizeof (long double) > sizeof (double).
21193         * tests/test-exp2.h (test_function): Likewise.
21194         * tests/test-expm1.h (test_function): Likewise.
21195         * tests/test-log.h (test_function): Likewise.
21197 2012-03-10  Bruno Haible  <bruno@clisp.org>
21199         Fix some comments.
21200         * lib/expl.c: Fix an ambiguous comment.
21201         * lib/expm1.c: Likewise.
21202         * lib/expm1l.c: Likewise.
21203         * lib/exp2.c: Likewise.
21204         * lib/exp2l.c: Likewise.
21206 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
21208         regex: allow inclusion of <regex.h> before <limits.h>
21209         Without this patch, portable programs had to include <limits.h> before
21210         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
21211         I ran into this problem with a test version of GNU grep on Solaris 8.
21212         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
21213         This is done conditionally so that this change can be merged
21214         back to glibc.
21215         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
21216         using the included regex.
21218         fts: depend on fdopendir
21219         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
21220         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
21221         problem was introduced when fdopendir was split out.
21223 2012-03-10  Bruno Haible  <bruno@clisp.org>
21225         Remove unused variables.
21226         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
21227         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21229 2012-03-10  Bruno Haible  <bruno@clisp.org>
21231         isnanf-nolibm: Fix last commit.
21232         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
21234         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
21235         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
21237 2012-03-10  Bruno Haible  <bruno@clisp.org>
21239         logf-ieee: Work around test failure on NetBSD 5.1.
21240         * m4/logf-ieee.m4: New file.
21241         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
21242         whether logf works with a negative argument. Replace it if not.
21243         * lib/logf.c (logf): For negative arguments, return NaN.
21244         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
21245         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
21246         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
21248         logf-ieee: Work around test failure on Solaris 9.
21249         * modules/logf-ieee (Depends-on): Add log-ieee.
21250         (configure.ac): Require gl_FUNC_LOGF.
21252         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21253         * m4/log-ieee.m4: New file.
21254         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
21255         log works with a negative argument. Replace it if not.
21256         * lib/log.c (log): For negative arguments, return NaN.
21257         * modules/log-ieee (Files): Add m4/log-ieee.m4.
21258         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
21259         * doc/posix-functions/log.texi: Mention the log-ieee module.
21261         Tests for module 'logl-ieee'.
21262         * modules/logl-ieee-tests: New file.
21263         * tests/test-logl-ieee.c: New file.
21265         New module 'logl-ieee'.
21266         * modules/logl-ieee: New file.
21268         Tests for module 'log-ieee'.
21269         * modules/log-ieee-tests: New file.
21270         * tests/test-log-ieee.c: New file.
21272         New module 'log-ieee'.
21273         * modules/log-ieee: New file.
21275         Tests for module 'logf-ieee'.
21276         * modules/logf-ieee-tests: New file.
21277         * tests/test-logf-ieee.c: New file.
21278         * tests/test-log-ieee.h: New file.
21280         New module 'logf-ieee'.
21281         * modules/logf-ieee: New file.
21283 2012-03-10  Bruno Haible  <bruno@clisp.org>
21285         log: Fix bug introduced on 2012-03-09.
21286         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
21288 2012-03-10  Pádraig Brady  <P@draigBrady.com>
21290         timer-time: link explicitly with pthreads on glibc
21291         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21292         to support static linking, when newer glibc is
21293         detected, as that contains pthread emulation of
21294         POSIX timer functions where required.
21295         * modules/timer-time: Depend on threadlib to
21296         pull in the appropriate library to link.
21298 2012-03-10  Bruno Haible  <bruno@clisp.org>
21300         log* tests: More tests.
21301         * tests/test-log.h: New file.
21302         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
21303         (main): Invoke test_function.
21304         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
21305         (main): Invoke test_function.
21306         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
21307         (main): Invoke test_function.
21308         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21309         tests/randomd.c.
21310         (Makefile.am): Add randomd.c to test_log_SOURCES.
21311         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21312         tests/randomf.c.
21313         (Makefile.am): Add randomf.c to test_logf_SOURCES.
21314         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21315         tests/randoml.c.
21316         (Depends-on): Add 'float'.
21317         (Makefile.am): Add randoml.c to test_logl_SOURCES.
21319 2012-03-09  Bruno Haible  <bruno@clisp.org>
21321         logl: Work around OSF/1 5.1 bug.
21322         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
21323         * lib/logl.c (logl): If logl exists, use it and provide just the
21324         workaround.
21325         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
21326         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
21327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
21328         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
21329         * modules/logl (configure.ac): Consider REPLACE_LOGL.
21330         (Depends-on): Update conditions.
21331         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
21333 2012-03-09  Bruno Haible  <bruno@clisp.org>
21335         logf: Work around OSF/1 5.1 bug.
21336         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
21337         * lib/logf.c (logf): If logf exists, use it and provide just the
21338         workaround.
21339         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
21340         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
21341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
21342         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
21343         * modules/logf (configure.ac): Consider REPLACE_LOGF.
21344         (Depends-on): Update conditions.
21345         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
21347 2012-03-09  Bruno Haible  <bruno@clisp.org>
21349         log: Work around OSF/1 5.1 bug.
21350         * lib/math.in.h (log): New declaration.
21351         * lib/log.c: New file.
21352         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
21353         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
21354         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
21355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
21356         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
21357         * modules/log (Files): Add lib/log.c.
21358         (Depends-on): Add math.
21359         (configure.ac): If REPLACE_LOG is 1, compile an override.
21360         * tests/test-math-c++.cc: Check the declaration of log.
21361         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
21363 2012-03-09  Jim Meyering  <meyering@redhat.com>
21365         readtokens.c: adjust wording in a comment
21366         * lib/readtokens.c: Insert omitted "that" in a comment.
21368 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21370         modechange: add notations +40, 00440, etc.
21371         * lib/modechange.c (mode_compile): Support new notations
21372         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
21374 2012-03-08  Bruno Haible  <bruno@clisp.org>
21376         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
21377         * m4/exp2l-ieee.m4: New file.
21378         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
21379         test whether exp2l works with a NaN argument and with a negative
21380         infinity argument. Replace it if not.
21381         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
21382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
21383         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
21384         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
21385         (Depends-on): Update conditions.
21386         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
21387         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
21388         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
21390         Tests for module 'exp2l-ieee'.
21391         * modules/exp2l-ieee-tests: New file.
21392         * tests/test-exp2l-ieee.c: New file.
21394         New module 'exp2l-ieee'.
21395         * modules/exp2l-ieee: New file.
21397         Tests for module 'exp2-ieee'.
21398         * modules/exp2-ieee-tests: New file.
21399         * tests/test-exp2-ieee.c: New file.
21401         New module 'exp2-ieee'.
21402         * modules/exp2-ieee: New file.
21404         Tests for module 'exp2f-ieee'.
21405         * modules/exp2f-ieee-tests: New file.
21406         * tests/test-exp2f-ieee.c: New file.
21407         * tests/test-exp2-ieee.h: New file.
21409         New module 'exp2f-ieee'.
21410         * modules/exp2f-ieee: New file.
21412 2012-03-08  Bruno Haible  <bruno@clisp.org>
21414         Tests for module 'exp2l'.
21415         * modules/exp2l-tests: New file.
21416         * tests/test-exp2l.c: New file.
21418         New module 'exp2l'.
21419         * lib/math.in.h (exp2l): New declaration.
21420         * lib/exp2l.c: New file.
21421         * lib/expl-table.c: New file, extracted from lib/expl.c.
21422         * lib/expl.c (gl_expl_table): New declaration.
21423         (expl): Remove expl_table. Update reference.
21424         * m4/exp2l.m4: New file.
21425         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
21426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
21427         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
21428         * modules/exp2l: New file.
21429         * modules/expl (Files): Add lib/expl-table.c.
21430         (configure.ac): Compile also expl-table.c.
21431         * tests/test-math-c++.cc: Check the declaration of exp2l.
21432         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
21433         problem.
21435 2012-03-08  Bruno Haible  <bruno@clisp.org>
21437         Tests for module 'exp2f'.
21438         * modules/exp2f-tests: New file.
21439         * tests/test-exp2f.c: New file.
21441         New module 'exp2f'.
21442         * lib/math.in.h (exp2f): New declaration.
21443         * lib/exp2f.c: New file.
21444         * m4/exp2f.m4: New file.
21445         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
21446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
21447         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
21448         * modules/exp2f: New file.
21449         * tests/test-math-c++.cc: Check the declaration of exp2f.
21450         * doc/posix-functions/exp2f.texi: Mention the new module and the
21451         IRIX problem.
21453 2012-03-08  Bruno Haible  <bruno@clisp.org>
21455         Tests for module 'exp2'.
21456         * modules/exp2-tests: New file.
21457         * tests/test-exp2.c: New file.
21458         * tests/test-exp2.h: New file.
21460         New module 'exp2'.
21461         * lib/math.in.h (exp2): New declaration.
21462         * lib/exp2.c: New file.
21463         * m4/exp2.m4: New file.
21464         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
21465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
21466         REPLACE_EXP2.
21467         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
21468         REPLACE_EXP2.
21469         * modules/exp2: New file.
21470         * tests/test-math-c++.cc: Check the declaration of exp2.
21471         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
21472         and OpenBSD problems.
21474 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21476         savedir: fix comment typo
21477         * lib/savedir.c (savedirstream): Fix typo in comment.
21479 2012-03-08  Bruno Haible  <bruno@clisp.org>
21481         test-readtokens.c: use const; remove unwarranted cast
21482         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
21484 2012-03-08  Bruno Haible  <bruno@clisp.org>
21486         fmal: Avoid compilation error on AIX.
21487         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
21488         AIX 5.2..7.1.
21490 2012-03-08  Bruno Haible  <bruno@clisp.org>
21492         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
21493         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
21494         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
21495         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
21496         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
21497         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
21498         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
21500 2012-03-08  Bruno Haible  <bruno@clisp.org>
21502         remainderf: Override buggy system function on IRIX 6.5.
21503         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
21504         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
21505         when it exists.
21506         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
21508 2012-03-08  Jim Meyering  <meyering@redhat.com>
21510         test-readtokens.c: avoid const-related compilation warnings
21511         * tests/test-readtokens.c: Avoid const-related compilation warnings.
21513 2012-03-07  Jim Meyering  <meyering@redhat.com>
21514             Bruno Haible  <bruno@clisp.org>
21516         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
21517         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
21518         tests/randomd.c.
21519         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
21520         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
21521         tests/randoml.c.
21522         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
21524 2012-03-07  Bruno Haible  <bruno@clisp.org>
21526         expm1l: Avoid compilation error on AIX.
21527         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
21528         AIX 5.2..7.1.
21530 2012-03-07  Bruno Haible  <bruno@clisp.org>
21532         expm1l: Don't override undeclared system function on IRIX 6.5.
21533         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
21534         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
21535         it exists. Set HAVE_DECL_EXPM1L.
21536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
21537         HAVE_EXPM1L.
21538         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
21539         HAVE_EXPM1L.
21540         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
21542 2012-03-07  Bruno Haible  <bruno@clisp.org>
21544         remainderl: Don't override undeclared system function on IRIX 6.5.
21545         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
21546         HAVE_REMAINDERL.
21547         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
21548         declared when it exists. Set HAVE_DECL_REMAINDERL.
21549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
21550         not HAVE_REMAINDERL.
21551         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
21552         HAVE_REMAINDERL.
21553         * doc/posix-functions/remainderl.texi: Mention missing declaration
21554         problem.
21556 2012-03-07  Bruno Haible  <bruno@clisp.org>
21558         rintf: Don't override undeclared system function on IRIX 6.5.
21559         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
21560         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
21561         exists. Set HAVE_DECL_RINTF.
21562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
21563         HAVE_RINTF.
21564         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
21565         HAVE_RINTF.
21566         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
21568 2012-03-07  Bruno Haible  <bruno@clisp.org>
21570         roundl: Avoid compilation error on AIX.
21571         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
21572         AIX 5.2..7.1.
21574 2012-03-07  Bruno Haible  <bruno@clisp.org>
21576         roundl: Don't override undeclared system function on IRIX 6.5.
21577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
21578         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
21579         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
21580         * modules/roundl (configure.ac): For replacement code, test
21581         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
21582         (Depends-on): Update conditions.
21583         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
21585 2012-03-07  Bruno Haible  <bruno@clisp.org>
21587         roundf: Don't override undeclared system function on IRIX 6.5.
21588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
21589         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
21590         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
21591         * modules/roundf (configure.ac): For replacement code, test
21592         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
21593         (Depends-on): Update conditions.
21594         * modules/roundf-ieee (Depends-on): Update conditions.
21595         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
21597 2012-03-07  Bruno Haible  <bruno@clisp.org>
21599         round: Don't override undeclared system function on IRIX 6.5.
21600         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
21601         argument.
21602         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
21603         also when it is not declared. Set HAVE_ROUND. For replacement code,
21604         test HAVE_ROUND, not HAVE_DECL_ROUND.
21605         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
21606         not HAVE_DECL_ROUND.
21607         (Depends-on): Update conditions.
21608         * modules/round-ieee (Depends-on): Update conditions.
21609         * doc/posix-functions/round.texi: Mention the IRIX problem.
21611 2012-03-07  Bruno Haible  <bruno@clisp.org>
21613         copysignf: Don't override undeclared system function on IRIX 6.5.
21614         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
21615         HAVE_COPYSIGNF.
21616         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
21617         declared when it exists. Set HAVE_DECL_COPYSIGNF.
21618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
21619         not HAVE_COPYSIGNF.
21620         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
21621         HAVE_COPYSIGNF.
21622         * doc/posix-functions/copysignf.texi: Mention missing declaration
21623         problem.
21625 2012-03-07  Jim Meyering  <meyering@redhat.com>
21627         readtokens: add tests
21628         * modules/readtokens-tests: New file.
21629         * tests/test-readtokens.c: New file.
21631 2012-03-07  Jim Meyering  <meyering@redhat.com>
21633         quotearg: the module must now include quote.h
21634         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
21635         So must the module.
21636         * modules/quotearg (Files): Add quote.h.
21638 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
21640         readtokens: avoid core dumps with unusual calling patterns
21641         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
21642         * lib/readtokens.c: Include limits.h.
21643         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
21644         (readtoken): Don't cache the delimiters; the cache code was buggy
21645         if !delim && saved_delim, or if the new n_delim differs from the old.
21646         Also, it wasn't thread-safe.
21648 2012-03-07  Bruno Haible  <bruno@clisp.org>
21650         quote: Adhere to common module description layout.
21651         * modules/quote (Makefile.am): Add back empty section.
21653 2012-03-06  Akim Demaille  <demaille@gostai.com>
21655         quote: fuse into quotearg
21656         This patch is made for the benefit of Bison.
21657         quote does not leave the choice of the quoting style to the user.
21658         quoting_style provides poor customizability, yet quoting_options,
21659         which is very rich, is hidden inside quotearg.c.  So in order to
21660         allow quote customization, move its implementation to quotearg.c.
21661         * lib/quote.c: Remove.
21662         * modules/quote: Adjust.
21663         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
21664         warning: provide all the members of literal structs.
21665         (quote_quoting_options): New.
21666         (quote, quote_n): Import implementation from quote.c.
21667         * lib/quote.h: Import the comments from quote.c.
21668         (quote_quoting_options): New.
21670 2012-03-06  Bruno Haible  <bruno@clisp.org>
21672         Tests for module 'expm1l-ieee'.
21673         * modules/expm1l-ieee-tests: New file.
21674         * tests/test-expm1l-ieee.c: New file.
21676         New module 'expm1l-ieee'.
21677         * modules/expm1l-ieee: New file.
21679         Tests for module 'expm1f-ieee'.
21680         * modules/expm1f-ieee-tests: New file.
21681         * tests/test-expm1f-ieee.c: New file.
21683         New module 'expm1f-ieee'.
21684         * modules/expm1f-ieee: New file.
21686         Tests for module 'expm1-ieee'.
21687         * modules/expm1-ieee-tests: New file.
21688         * tests/test-expm1-ieee.c: New file.
21689         * tests/test-expm1-ieee.h: New file.
21691         New module 'expm1-ieee'.
21692         * modules/expm1-ieee: New file.
21693         * m4/expm1-ieee.m4: New file.
21694         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
21695         whether expm1 works with a minus zero argument. Replace it if not.
21696         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
21697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
21698         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
21699         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
21700         (Depends-on): Update conditions.
21701         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
21702         AIX problem.
21704 2012-03-06  Bruno Haible  <bruno@clisp.org>
21706         Work around expm1f bug on IRIX 6.5.
21707         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
21708         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
21709         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
21710         not work.
21711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
21712         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
21713         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
21714         (Depends-on): Update conditions.
21715         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
21717 2012-03-06  Bruno Haible  <bruno@clisp.org>
21719         Tests for module 'expm1l'.
21720         * modules/expm1l-tests: New file.
21721         * tests/test-expm1l.c: New file.
21723         New module 'expm1l'.
21724         * lib/math.in.h (expm1l): New declaration.
21725         * lib/expm1l.c: New file.
21726         * m4/expm1l.m4: New file.
21727         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
21728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
21729         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
21730         * modules/expm1l: New file.
21731         * tests/test-math-c++.cc: Check the declaration of expm1l.
21732         * doc/posix-functions/expm1l.texi: Mention the new module.
21734 2012-03-06  Bruno Haible  <bruno@clisp.org>
21736         Tests for module 'expm1f'.
21737         * modules/expm1f-tests: New file.
21738         * tests/test-expm1f.c: New file.
21740         New module 'expm1f'.
21741         * lib/math.in.h (expm1f): New declaration.
21742         * lib/expm1f.c: New file.
21743         * m4/expm1f.m4: New file.
21744         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
21745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
21746         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
21747         * modules/expm1f: New file.
21748         * tests/test-math-c++.cc: Check the declaration of expm1f.
21749         * doc/posix-functions/expm1f.texi: Mention the new module.
21751 2012-03-06  Bruno Haible  <bruno@clisp.org>
21753         Tests for module 'expm1'.
21754         * modules/expm1-tests: New file.
21755         * tests/test-expm1.c: New file.
21756         * tests/test-expm1.h: New file.
21758         New module 'expm1'.
21759         * lib/math.in.h (expm1): New declaration.
21760         * lib/expm1.c: New file.
21761         * m4/expm1.m4: New file.
21762         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
21763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
21764         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
21765         * modules/expm1: New file.
21766         * tests/test-math-c++.cc: Check the declaration of expm1.
21767         * doc/posix-functions/expm1.texi: Mention the new module.
21769 2012-03-06  Bruno Haible  <bruno@clisp.org>
21771         math: Ensure declarations of math functions.
21772         * modules/acosf (Depends-on): Add 'extensions'.
21773         * modules/asinf (Depends-on): Likewise.
21774         * modules/atan2f (Depends-on): Likewise.
21775         * modules/atanf (Depends-on): Likewise.
21776         * modules/cbrt (Depends-on): Likewise.
21777         * modules/cbrtf (Depends-on): Likewise.
21778         * modules/cbrtl (Depends-on): Likewise.
21779         * modules/copysignf (Depends-on): Likewise.
21780         * modules/copysignl (Depends-on): Likewise.
21781         * modules/cosf (Depends-on): Likewise.
21782         * modules/coshf (Depends-on): Likewise.
21783         * modules/expf (Depends-on): Likewise.
21784         * modules/fabsf (Depends-on): Likewise.
21785         * modules/fabsl (Depends-on): Likewise.
21786         * modules/fmaf (Depends-on): Likewise.
21787         * modules/fmal (Depends-on): Likewise.
21788         * modules/fmodf (Depends-on): Likewise.
21789         * modules/fmodl (Depends-on): Likewise.
21790         * modules/frexpf (Depends-on): Likewise.
21791         * modules/frexpl (Depends-on): Likewise.
21792         * modules/hypot (Depends-on): Likewise.
21793         * modules/hypotf (Depends-on): Likewise.
21794         * modules/hypotl (Depends-on): Likewise.
21795         * modules/ldexpf (Depends-on): Likewise.
21796         * modules/ldexpl (Depends-on): Likewise.
21797         * modules/log10f (Depends-on): Likewise.
21798         * modules/log10l (Depends-on): Likewise.
21799         * modules/log1p (Depends-on): Likewise.
21800         * modules/logb (Depends-on): Likewise.
21801         * modules/logf (Depends-on): Likewise.
21802         * modules/modff (Depends-on): Likewise.
21803         * modules/modfl (Depends-on): Likewise.
21804         * modules/powf (Depends-on): Likewise.
21805         * modules/remainderf (Depends-on): Likewise.
21806         * modules/remainderl (Depends-on): Likewise.
21807         * modules/rintf (Depends-on): Likewise.
21808         * modules/rintl (Depends-on): Likewise.
21809         * modules/sinf (Depends-on): Likewise.
21810         * modules/sinhf (Depends-on): Likewise.
21811         * modules/sqrtf (Depends-on): Likewise.
21812         * modules/tanf (Depends-on): Likewise.
21813         * modules/tanhf (Depends-on): Likewise.
21814         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
21815         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
21816         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
21817         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
21818         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
21819         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
21820         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
21821         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
21822         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
21823         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
21824         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
21825         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
21826         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
21827         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
21828         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
21829         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
21830         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21831         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21832         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
21833         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
21834         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21835         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
21836         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
21837         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
21838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
21839         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
21840         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
21841         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21842         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
21843         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21844         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21845         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
21846         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21847         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21848         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
21849         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
21850         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
21851         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
21852         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
21853         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
21854         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
21856 2012-03-06  Bruno Haible  <bruno@clisp.org>
21858         math: Update module names in warnings.
21859         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21860         tanl): Use specific module name in warn-on-use warning.
21862 2012-03-06  Bruno Haible  <bruno@clisp.org>
21864         expl: Simplify computation.
21865         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
21867 2012-03-05  Bruno Haible  <bruno@clisp.org>
21869         exp* tests: More tests.
21870         * tests/test-exp.h: New file.
21871         * tests/test-exp.c: Include <float.h> and test-exp.h.
21872         (main): Invoke test_function.
21873         * tests/test-expf.c: Include <float.h> and test-exp.h.
21874         (main): Invoke test_function.
21875         * tests/test-expl.c: Include <float.h> and test-exp.h.
21876         (main): Invoke test_function.
21877         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
21878         (Makefile.am): Add randomd.c to test_exp_SOURCES.
21879         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
21880         (Makefile.am): Add randomf.c to test_expf_SOURCES.
21881         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
21882         (Depends-on): Add 'float'.
21883         (Makefile.am): Add randoml.c to test_expl_SOURCES.
21885         expl: Fix precision of computed result.
21886         * lib/expl.c: Completely rewritten.
21887         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
21888         (Maintainer): Add me.
21889         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
21891 2012-03-05  Bruno Haible  <bruno@clisp.org>
21893         cbrt* tests: More tests.
21894         * tests/test-cbrt.h: New file.
21895         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
21896         (main): Invoke test_function.
21897         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
21898         (main): Invoke test_function.
21899         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
21900         (main): Invoke test_function.
21901         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
21902         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
21903         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
21904         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
21905         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
21906         (Depends-on): Add 'float'.
21907         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
21909 2012-03-05  Bruno Haible  <bruno@clisp.org>
21911         hypot* tests: More tests.
21912         * tests/test-hypot.h: New file, partially extracted from
21913         tests/test-hypotl.c.
21914         * tests/test-hypot.c: Include test-hypot.h.
21915         (main): Invoke test_function.
21916         * tests/test-hypotf.c: Include test-hypot.h.
21917         (main): Invoke test_function.
21918         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
21919         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
21920         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
21921         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
21922         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
21923         tests/randomf.c.
21924         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
21925         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
21926         tests/randoml.c.
21927         (Depends-on): Add 'fpucw', 'float'.
21928         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
21930 2012-03-05  Bruno Haible  <bruno@clisp.org>
21932         fpucw: Doc about FreeBSD.
21933         * lib/fpucw.h: Mention FreeBSD in comments.
21935 2012-03-04  Bruno Haible  <bruno@clisp.org>
21937         sqrt* tests: More tests.
21938         * tests/test-sqrt.h: New file.
21939         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
21940         (main): Invoke test_function.
21941         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
21942         (main): Invoke test_function.
21943         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
21944         (main): Invoke test_function.
21945         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
21946         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
21947         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
21948         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
21949         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
21950         (Depends-on): Add 'float'.
21951         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
21953 2012-03-04  Bruno Haible  <bruno@clisp.org>
21955         remainder* tests: More tests.
21956         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
21957         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
21958         (main): Invoke test_function.
21959         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
21960         (main): Invoke test_function.
21961         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
21962         (main): Invoke test_function.
21963         * modules/remainder-tests (Files): Add tests/test-remainder.h,
21964         tests/randomd.c.
21965         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
21966         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
21967         tests/randomf.c.
21968         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
21969         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
21970         tests/randoml.c.
21971         (Depends-on): Add 'float'.
21972         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
21974 2012-03-04  Bruno Haible  <bruno@clisp.org>
21976         remainder, remainderf, remainderl: Fix computation for large quotients.
21977         * lib/remainder.c: Completely rewritten.
21978         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
21979         USE_FLOAT.
21980         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
21981         USE_LONG_DOUBLE.
21982         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
21983         isnand, isinf. Remove round, fma.
21984         * modules/remainderf (Files): Add lib/remainder.c.
21985         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
21986         Remove roundf, fmaf.
21987         * modules/remainderl (Files): Add lib/remainder.c.
21988         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
21989         isinf. Remove roundl, fmal.
21990         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
21991         REMAINDER_LIBM.
21992         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
21993         REMAINDERF_LIBM.
21994         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
21995         REMAINDERL_LIBM.
21997 2012-03-04  Bruno Haible  <bruno@clisp.org>
21999         fmod* tests: More tests.
22000         * tests/test-fmod.h (my_ldexp): New function.
22001         (test_function): Reduce amount of random numbers to test. Add tests
22002         of very large quotients x / y.
22003         * tests/test-fmod.c (MAX_EXP): New macro.
22004         * tests/test-fmodf.c (MAX_EXP): Likewise.
22005         * tests/test-fmodl.c (MAX_EXP): Likewise.
22007 2012-03-04  Bruno Haible  <bruno@clisp.org>
22009         fmod, fmodl: Fix computation for large quotients x / y.
22010         * lib/fmod.c: Completely rewritten.
22011         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
22012         USE_LONG_DOUBLE.
22013         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
22014         isnand. Remove fma.
22015         * modules/fmodl (Files): Add lib/fmod.c.
22016         (Depends-on): Add float, isfinite, signbit, fabsl,
22017         frexpl, ldexpl, isnanl. Remove fma.
22018         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
22019         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
22021 2012-03-03  Bruno Haible  <bruno@clisp.org>
22023         fmod* tests: More tests.
22024         * tests/test-fmod.h: New file.
22025         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
22026         (main): Invoke test_function.
22027         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
22028         (main): Invoke test_function.
22029         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
22030         (main): Invoke test_function.
22031         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
22032         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
22033         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
22034         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
22035         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
22036         (Depends-on): Add 'float'.
22037         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
22039 2012-03-03  Bruno Haible  <bruno@clisp.org>
22041         rint* tests: More tests.
22042         * tests/test-rint.h: New file, partially extracted from
22043         tests/test-rintl.c.
22044         * tests/test-rint.c: Include test-rint.h.
22045         (main): Invoke test_function.
22046         * tests/test-rintf.c: Include test-rint.h.
22047         (main): Invoke test_function.
22048         * tests/test-rintl.c: Include test-rint.h.
22049         (main): Invoke test_function.
22050         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
22051         (Makefile.am): Add randomd.c to test_rint_SOURCES.
22052         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
22053         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
22054         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
22055         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
22057 2012-03-03  Bruno Haible  <bruno@clisp.org>
22059         modf* tests: More tests.
22060         * tests/test-modf.h: New file.
22061         * tests/test-modf.c: Include <float.h> and test-modf.h.
22062         (main): Invoke test_function.
22063         * tests/test-modff.c: Include <float.h> and test-modf.h.
22064         (main): Invoke test_function.
22065         * tests/test-modfl.c: Include <float.h> and test-modf.h.
22066         (main): Invoke test_function.
22067         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
22068         (Makefile.am): Add randomd.c to test_modf_SOURCES.
22069         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
22070         (Makefile.am): Add randomf.c to test_modff_SOURCES.
22071         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
22072         (Depends-on): Add 'float'.
22073         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
22075 2012-03-03  Bruno Haible  <bruno@clisp.org>
22077         fabs* tests: More tests.
22078         * tests/test-fabs.h: New file, partially extracted from
22079         tests/test-fabsl.c.
22080         * tests/test-fabs.c (RANDOM): New macro.
22081         * tests/test-fabsf.c (RANDOM): New macro.
22082         * tests/test-fabsl.c (RANDOM): New macro.
22083         * modules/fabs-tests (Files): Add tests/randomd.c.
22084         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
22085         * modules/fabsf-tests (Files): Add tests/randomf.c.
22086         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
22087         * modules/fabsl-tests (Files): Add tests/randoml.c.
22088         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
22090 2012-03-03  Bruno Haible  <bruno@clisp.org>
22092         ldexp* tests: More tests.
22093         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
22094         * tests/test-ldexp.c (RANDOM): New macro.
22095         * tests/test-ldexpf.c (RANDOM): New macro.
22096         * tests/test-ldexpl.c (RANDOM): New macro.
22097         * modules/ldexp-tests (Files): Add tests/randomd.c.
22098         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
22099         * modules/ldexpf-tests (Files): Add tests/randomf.c.
22100         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
22101         * modules/ldexpl-tests (Files): Add tests/randoml.c.
22102         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
22104 2012-03-03  Bruno Haible  <bruno@clisp.org>
22106         frexp* tests: More tests.
22107         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
22108         * tests/test-frexp.c (RANDOM): New macro.
22109         * tests/test-frexpf.c (RANDOM): New macro.
22110         * tests/test-frexpl.c (RANDOM): New macro.
22111         * modules/frexp-tests (Files): Add tests/randomd.c.
22112         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
22113         * modules/frexpf-tests (Files): Add tests/randomf.c.
22114         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
22115         * modules/frexpl-tests (Files): Add tests/randoml.c.
22116         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
22118 2012-03-03  Bruno Haible  <bruno@clisp.org>
22120         Support for pseudo-random numbers in tests.
22121         * tests/randomf.c: New file.
22122         * tests/randomd.c: New file.
22123         * tests/randoml.c: New file.
22124         * tests/macros.h (randomf, randomd, randoml): New declarations.
22126 2012-03-03  Bruno Haible  <bruno@clisp.org>
22128         frexp* tests: Refactor.
22129         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
22130         * tests/test-frexp.c: Include and use it.
22131         * tests/test-frexpf.c: Likewise.
22132         * tests/test-frexpl.c: Likewise.
22133         * modules/frexp-tests (Files): Add tests/test-frexp.h.
22134         * modules/frexpf-tests (Files): Likewise.
22135         * modules/frexpl-tests (Files): Likewise.
22137 2012-03-02  Jim Meyering  <meyering@redhat.com>
22139         maint: don't specify XZ_OPT=-9ev in dist-related rule
22140         Using xz's -9 option is warranted only if you have a very large
22141         tarball (see xz's documentation for the sizes vs. presets), and
22142         requires 64MiB of memory at decompression time.
22143         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
22144         Automake's default of just "-e" is fine.  Override on a
22145         per-package basis by setting XZ_OPT e.g., in cfg.mk.
22147 2012-03-01  Eric Blake  <eblake@redhat.com>
22149         maint.mk: allow announcement for non-gnulib project
22150         * maint.mk (announcement): Skip gnulib version if not used.
22152 2012-03-01  Jim Meyering  <meyering@redhat.com>
22154         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
22155         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
22156         envvar settings cannot interfere.  Otherwise, setting envvars like
22157         prohibit=foo require=bar, etc. would cause spurious test failures.
22159 2012-03-01  Eric Blake  <eblake@redhat.com>
22161         maint.mk: add per-line exclusions to prohibitions
22162         * maint.mk (_sc_search_regexp): Add $exclude parameter.
22163         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
22164         (sc_const_long_option): Use it.
22166 2012-03-01  Bruno Haible  <bruno@clisp.org>
22168         Tests for module 'expl-ieee'.
22169         * modules/expl-ieee-tests: New file.
22170         * tests/test-expl-ieee.c: New file.
22172         New module 'expl-ieee'.
22173         * modules/expl-ieee: New file.
22175         Tests for module 'exp-ieee'.
22176         * modules/exp-ieee-tests: New file.
22177         * tests/test-exp-ieee.c: New file.
22179         New module 'exp-ieee'.
22180         * modules/exp-ieee: New file.
22182         Tests for module 'expf-ieee'.
22183         * modules/expf-ieee-tests: New file.
22184         * tests/test-expf-ieee.c: New file.
22185         * tests/test-exp-ieee.h: New file.
22187         New module 'expf-ieee'.
22188         * modules/expf-ieee: New file.
22190 2012-02-29  Bruno Haible  <bruno@clisp.org>
22192         cbrtl-ieee: Work around test failure on IRIX 6.5.
22193         * m4/cbrtl-ieee.m4: New file.
22194         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
22195         test whether cbrtl works with a minus zero argument. Replace it if not.
22196         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
22197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
22198         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
22199         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
22200         (Depends-on): Update conditions.
22201         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
22202         m4/signbit.m4.
22203         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
22204         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
22205         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
22207         Tests for module 'cbrtl-ieee'.
22208         * modules/cbrtl-ieee-tests: New file.
22209         * tests/test-cbrtl-ieee.c: New file.
22211         New module 'cbrtl-ieee'.
22212         * modules/cbrtl-ieee: New file.
22214         Tests for module 'cbrt-ieee'.
22215         * modules/cbrt-ieee-tests: New file.
22216         * tests/test-cbrt-ieee.c: New file.
22218         New module 'cbrt-ieee'.
22219         * modules/cbrt-ieee: New file.
22221         Tests for module 'cbrtf-ieee'.
22222         * modules/cbrtf-ieee-tests: New file.
22223         * tests/test-cbrtf-ieee.c: New file.
22224         * tests/test-cbrt-ieee.h: New file.
22226         New module 'cbrtf-ieee'.
22227         * modules/cbrtf-ieee: New file.
22229 2012-02-29  Bruno Haible  <bruno@clisp.org>
22231         cbrtf: Work around bug in IRIX 6.5 system function.
22232         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
22233         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
22234         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
22235         work.
22236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
22237         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
22238         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
22239         (Depends-on): Update conditions.
22240         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
22242 2012-02-29  Bruno Haible  <bruno@clisp.org>
22244         Tests for module 'cbrtl'.
22245         * modules/cbrtl-tests: New file.
22246         * tests/test-cbrtl.c: New file.
22248         New module 'cbrtl'.
22249         * lib/math.in.h (cbrtl): New declaration.
22250         * lib/cbrtl.c: New file.
22251         * m4/cbrtl.m4: New file.
22252         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
22253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
22254         HAVE_DECL_CBRTL.
22255         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
22256         HAVE_DECL_CBRTL.
22257         * modules/cbrtl: New file.
22258         * tests/test-math-c++.cc: Check the declaration of cbrtl.
22259         * doc/posix-functions/cbrtl.texi: Mention the new module.
22261 2012-02-29  Bruno Haible  <bruno@clisp.org>
22263         Tests for module 'cbrtf'.
22264         * modules/cbrtf-tests: New file.
22265         * tests/test-cbrtf.c: New file.
22267         New module 'cbrtf'.
22268         * lib/math.in.h (cbrtf): New declaration.
22269         * lib/cbrtf.c: New file.
22270         * m4/cbrtf.m4: New file.
22271         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
22272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
22273         HAVE_DECL_CBRTF.
22274         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
22275         HAVE_DECL_CBRTF.
22276         * modules/cbrtf: New file.
22277         * tests/test-math-c++.cc: Check the declaration of cbrtf.
22278         * doc/posix-functions/cbrtf.texi: Mention the new module.
22280 2012-02-29  Bruno Haible  <bruno@clisp.org>
22282         cbrt: Provide replacement on MSVC and Minix.
22283         * lib/math.in.h (cbrt): New declaration.
22284         * lib/cbrt.c: New file.
22285         * m4/cbrt.m4: New file.
22286         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
22287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
22288         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
22289         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
22290         (Depends-on): Add dependencies.
22291         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
22292         * tests/test-math-c++.cc: Check the declaration of cbrt.
22293         * doc/posix-functions/cbrt.texi: Mention that the module provides a
22294         replacement.
22296 2012-02-29  Bruno Haible  <bruno@clisp.org>
22298         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
22299         * m4/hypotl-ieee.m4: New file.
22300         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
22301         test whether hypotl works with mixed NaN and Infinity arguments.
22302         Replace it if not.
22303         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
22304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
22305         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
22306         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
22307         (Depends-on): Update conditions.
22308         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
22309         (Depends-on): Add hypot-ieee.
22310         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
22311         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
22313         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
22314         * m4/hypotf-ieee.m4: New file.
22315         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
22316         test whether hypotf works with mixed NaN and Infinity arguments.
22317         Replace it if not.
22318         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
22319         (Depends-on): Add hypot-ieee.
22320         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
22321         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
22323         hypot-ieee: Work around test failure on OSF/1 and native Windows.
22324         * lib/math.in.h (hypot): New declaration.
22325         * lib/hypot.c: New file.
22326         * m4/hypot-ieee.m4: New file.
22327         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
22328         whether hypot works with mixed NaN and Infinity arguments. Replace it
22329         if not.
22330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
22331         REPLACE_HYPOT.
22332         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
22333         * modules/hypot (Files): Add lib/hypot.c.
22334         (Depends-on): Add dependencies.
22335         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
22336         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
22337         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
22338         * tests/test-math-c++.cc: Check the declaration of hypot.
22339         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
22341         Tests for module 'hypotl-ieee'.
22342         * modules/hypotl-ieee-tests: New file.
22343         * tests/test-hypotl-ieee.c: New file.
22345         New module 'hypotl-ieee'.
22346         * modules/hypotl-ieee: New file.
22348         Tests for module 'hypot-ieee'.
22349         * modules/hypot-ieee-tests: New file.
22350         * tests/test-hypot-ieee.c: New file.
22352         New module 'hypot-ieee'.
22353         * modules/hypot-ieee: New file.
22355         Tests for module 'hypotf-ieee'.
22356         * modules/hypotf-ieee-tests: New file.
22357         * tests/test-hypotf-ieee.c: New file.
22358         * tests/test-hypot-ieee.h: New file.
22360         New module 'hypotf-ieee'.
22361         * modules/hypotf-ieee: New file.
22363 2012-02-29  Bruno Haible  <bruno@clisp.org>
22365         Remove unused variables.
22366         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
22367         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22368         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22369         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22371 2012-02-29  Eric Blake  <eblake@redhat.com>
22373         termios: fix pid_t always, not just for tcgetsid
22374         * doc/posix-headers/termios.texi (termios.h): Mention problem.
22375         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
22376         just when building tcgetsid.
22378 2012-02-29  Bruno Haible  <bruno@clisp.org>
22380         Tests for module 'hypotl'.
22381         * modules/hypotl-tests: New file.
22382         * tests/test-hypotl.c: New file.
22384         New module 'hypotl'.
22385         * lib/math.in.h (hypotl): New declaration.
22386         * lib/hypotl.c: New file.
22387         * m4/hypotl.m4: New file.
22388         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
22389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
22390         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
22391         * modules/hypotl: New file.
22392         * tests/test-math-c++.cc: Check the hypotl declaration.
22393         * doc/posix-functions/hypotl.texi: Mention the new module.
22395 2012-02-29  Eric Blake  <eblake@redhat.com>
22397         tcgetsid: fix cygwin header bug
22398         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
22400         docs: update cygwin progress
22401         * doc/posix-functions/llround.texi (llround): Added in cygwin
22402         1.7.8.
22403         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
22404         * doc/glibc-functions/program_invocation_name.texi
22405         (program_invocation_name): Likewise.
22406         * doc/glibc-functions/program_invocation_short_name.texi
22407         (program_invocation_short_name): Likewise.
22408         * doc/glibc-functions/madvise.texi (madvise): Likewise.
22409         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
22410         Likewise.
22411         * doc/posix-functions/pthread_spin_destroy.texi
22412         (pthread_spin_destroy): Added in cygwin 1.7.10.
22413         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
22414         Likewise.
22415         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
22416         Likewise.
22417         * doc/posix-functions/pthread_spin_trylock.texi
22418         (pthread_spin_trylock): Likewise.
22419         * doc/posix-functions/pthread_spin_unlock.texi
22420         (pthread_spin_unlock): Likewise.
22421         * doc/posix-functions/pthread_setschedprio.texi
22422         (pthread_setschedprio): Likewise.
22423         * doc/posix-functions/pthread_attr_getstack.texi
22424         (pthread_attr_getstack): Likewise.
22425         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
22426         (pthread_attr_getstackaddr): Likewise.
22427         * doc/glibc-functions/pthread_getattr_np.texi
22428         (pthread_getattr_np): Likewise.
22429         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
22430         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
22431         * doc/posix-functions/clock_settime.texi (clock_settime):
22432         Likewise.
22433         * doc/posix-functions/pthread_attr_getguardsize.texi
22434         (pthread_attr_getguardsize): Likewise.
22435         * doc/posix-functions/pthread_attr_setguardsize.texi
22436         (pthread_attr_setguardsize): Likewise.
22437         * doc/posix-functions/pthread_attr_setstack.texi
22438         (pthread_attr_setstack): Likewise.
22439         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
22440         (pthread_attr_setstackaddr): Likewise.
22441         * doc/posix-functions/clock_getcpuclockid.texi
22442         (clock_getcpuclockid): Likewise.
22443         * doc/posix-functions/pthread_getcpuclockid.texi
22444         (pthread_getcpuclockid): Likewise.
22445         * doc/glibc-functions/error.texi (error): Likewise.
22446         * doc/glibc-functions/error_at_line.texi (error_at_line):
22447         Likewise.
22448         * doc/glibc-functions/error_message_count.texi
22449         (error_message_count): Likewise.
22450         * doc/glibc-functions/error_one_per_line.texi
22451         (error_one_per_line): Likewise.
22452         * doc/glibc-functions/error_print_progname.texi
22453         (error_print_progname): Likewise.
22454         * doc/posix-functions/pthread_condattr_getclock.texi
22455         (pthread_condattr_getclock): Likewise.
22456         * doc/posix-functions/pthread_condattr_setclock.texi
22457         (pthread_condattr_setclock): Likewise.
22458         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
22459         Likewise.
22460         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
22461         * doc/glibc-functions/getpt.texi (getpt): Likewise.
22462         * doc/glibc-functions/get_current_dir_name.texi
22463         (get_current_dir_name): Likewise.
22464         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
22465         Likewise.
22466         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
22467         wrong return type.
22468         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
22469         1.7.11.
22471 2012-02-29  Bruno Haible  <bruno@clisp.org>
22473         Tests for module 'hypotf'.
22474         * modules/hypotf-tests: New file.
22475         * tests/test-hypotf.c: New file.
22477         New module 'hypotf'.
22478         * lib/math.in.h (hypotf): New declaration.
22479         * lib/hypotf.c: New file.
22480         * m4/hypotf.m4: New file.
22481         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
22482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
22483         REPLACE_HYPOTF.
22484         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
22485         REPLACE_HYPOTF.
22486         * modules/hypotf: New file.
22487         * tests/test-math-c++.cc: Check the hypotf declaration.
22488         * doc/posix-functions/hypotf.texi: Mention the new module.
22490         hypot: Prepare for hypotf module.
22491         * m4/hypot.m4: New file.
22492         * modules/hypot (Files): Add m4/hypot.m4.
22493         (configure.ac): Invoke gl_FUNC_HYPOT.
22495 2012-02-29  Bruno Haible  <bruno@clisp.org>
22497         hypot tests: More tests.
22498         * tests/test-hypot.c: Include <float.h>.
22499         (main): Add tests about overflow and underflow.
22501 2012-02-29  Bruno Haible  <bruno@clisp.org>
22503         math code: Add comments.
22504         * lib/acosl.c: Add comment about related glibc source files.
22505         * lib/asinl.c: Likewise.
22506         * lib/atanl.c: Likewise.
22507         * lib/expl.c: Likewise.
22508         * lib/logl.c: Likewise.
22509         * lib/sincosl.c: Likewise.
22510         * lib/sinl.c: Likewise.
22511         * lib/tanl.c: Likewise.
22512         * lib/trigl.c: Likewise.
22513         * lib/cosl.c: Likewise. Fix comments.
22515 2012-02-28  Bruno Haible  <bruno@clisp.org>
22517         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
22518         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
22519         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
22520         HUGE_VALL are defined.
22521         (numeric_equald): Renamed from numeric_equal.
22522         (numeric_equalf, numeric_equall): New functions.
22523         (main): Check also HUGE_VALF, HUGE_VALL.
22524         * modules/math-tests (Files): Add tests/macros.h.
22525         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
22526         HUGE_VALL.
22528 2012-02-28  Bruno Haible  <bruno@clisp.org>
22530         doc: Move ISO C11 feature notes into POSIX chapters.
22531         * doc/posix-functions/aligned_alloc.texi: Renamed from
22532         doc/glibc-functions/aligned_alloc.texi.
22533         * doc/posix-functions/quick_exit.texi: Renamed from
22534         doc/glibc-functions/quick_exit.texi.
22535         * doc/posix-headers/uchar.texi: Renamed from
22536         doc/glibc-headers/uchar.texi.
22537         * doc/posix-functions/c16rtomb.texi: Renamed from
22538         doc/glibc-functions/c16rtomb.texi.
22539         * doc/posix-functions/c32rtomb.texi: Renamed from
22540         doc/glibc-functions/c32rtomb.texi.
22541         * doc/posix-functions/mbrtoc16.texi: Renamed from
22542         doc/glibc-functions/mbrtoc16.texi.
22543         * doc/posix-functions/mbrtoc32.texi: Renamed from
22544         doc/glibc-functions/mbrtoc32.texi.
22545         * doc/gnulib.texi: Update.
22546         (Glibc uchar.h): Remove section.
22547         Suggested by Eric Blake.
22549 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
22551         stdnoreturn: port to MSVC better
22552         MSVC standard headers use __declspec(noreturn), so #define noreturn
22553         to empty on that platform.  Reported by Bruno Haible in
22554         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
22555         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
22556         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
22558 2012-02-28  Bruno Haible  <bruno@clisp.org>
22560         doc: Mention new glibc headers and functions.
22561         * doc/glibc-headers/uchar.texi: New file.
22562         * doc/glibc-functions/aligned_alloc.texi: New file.
22563         * doc/glibc-functions/c16rtomb.texi: New file.
22564         * doc/glibc-functions/c32rtomb.texi: New file.
22565         * doc/glibc-functions/clock_adjtime.texi: New file.
22566         * doc/glibc-functions/fanotify_init.texi: New file.
22567         * doc/glibc-functions/fanotify_mark.texi: New file.
22568         * doc/glibc-functions/inet6_opt_append.texi: New file.
22569         * doc/glibc-functions/inet6_opt_find.texi: New file.
22570         * doc/glibc-functions/inet6_opt_finish.texi: New file.
22571         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
22572         * doc/glibc-functions/inet6_opt_init.texi: New file.
22573         * doc/glibc-functions/inet6_opt_next.texi: New file.
22574         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
22575         * doc/glibc-functions/inet6_rth_add.texi: New file.
22576         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
22577         * doc/glibc-functions/inet6_rth_init.texi: New file.
22578         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
22579         * doc/glibc-functions/inet6_rth_segments.texi: New file.
22580         * doc/glibc-functions/inet6_rth_space.texi: New file.
22581         * doc/glibc-functions/login.texi: New file.
22582         * doc/glibc-functions/mbrtoc16.texi: New file.
22583         * doc/glibc-functions/mbrtoc32.texi: New file.
22584         * doc/glibc-functions/name_to_handle_at.texi: New file.
22585         * doc/glibc-functions/ntp_gettimex.texi: New file.
22586         * doc/glibc-functions/open_by_handle_at.texi: New file.
22587         * doc/glibc-functions/prlimit.texi: New file.
22588         * doc/glibc-functions/process_vm_readv.texi: New file.
22589         * doc/glibc-functions/process_vm_writev.texi: New file.
22590         * doc/glibc-functions/recvmmsg.texi: New file.
22591         * doc/glibc-functions/scandirat.texi: New file.
22592         * doc/glibc-functions/sendmmsg.texi: New file.
22593         * doc/glibc-functions/setns.texi: New file.
22594         * doc/glibc-functions/timespec_get.texi: New file.
22595         * doc/gnulib.texi: Include them.
22596         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
22597         sections.
22598         Reported by Eric Blake.
22600 2012-02-28  Bruno Haible  <bruno@clisp.org>
22602         Avoid compilation errors with MSVC option -fp:strict.
22603         * lib/floor.c: Use MSVC specific pragma fenv_access.
22604         * lib/ceil.c: Likewise.
22605         * lib/trunc.c: Likewise.
22606         * lib/round.c: Likewise.
22607         * lib/rint.c: Likewise.
22608         * lib/fma.c: Likewise.
22609         * lib/integer_length.c: Likewise.
22610         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22611         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22612         * tests/test-floor2.c: Likewise.
22613         * tests/test-floorf2.c: Likewise.
22614         * tests/test-ceil2.c: Likewise.
22615         * tests/test-ceilf2.c: Likewise.
22616         * tests/test-trunc2.c: Likewise.
22617         * tests/test-truncf2.c: Likewise.
22618         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22620 2012-02-27  Bruno Haible  <bruno@clisp.org>
22622         Tests for module 'sqrtl-ieee'.
22623         * modules/sqrtl-ieee-tests: New file.
22624         * tests/test-sqrtl-ieee.c: New file.
22626         New module 'sqrtl-ieee'.
22627         * modules/sqrtl-ieee: New file.
22629         Tests for module 'sqrt-ieee'.
22630         * modules/sqrt-ieee-tests: New file.
22631         * tests/test-sqrt-ieee.c: New file.
22633         New module 'sqrt-ieee'.
22634         * modules/sqrt-ieee: New file.
22636         Tests for module 'sqrtf-ieee'.
22637         * modules/sqrtf-ieee-tests: New file.
22638         * tests/test-sqrtf-ieee.c: New file.
22639         * tests/test-sqrt-ieee.h: New file.
22641         New module 'sqrtf-ieee'.
22642         * modules/sqrtf-ieee: New file.
22644 2012-02-27  Bruno Haible  <bruno@clisp.org>
22646         remainderl-ieee: Work around test failure on OSF/1.
22647         * m4/remainderl-ieee.m4: New file.
22648         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
22649         present, test whether remainderl works with a zero second argument.
22650         Replace it if not.
22651         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
22652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
22653         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
22654         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
22655         (Depends-on): Update conditions.
22656         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
22657         (Depends-on): Add remainder-ieee.
22658         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
22659         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
22660         module.
22662         remainderf-ieee: Work around test failure on OSF/1.
22663         * m4/remainderf-ieee.m4: New file.
22664         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
22665         present, test whether remainderf works with a zero second argument.
22666         Replace it if not.
22667         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
22668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
22669         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
22670         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
22671         (Depends-on): Update conditions.
22672         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
22673         (Depends-on): Add remainder-ieee.
22674         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
22675         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
22676         module.
22678         remainder-ieee: Work around test failure on OSF/1.
22679         * m4/remainder-ieee.m4: New file.
22680         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
22681         present, test whether remainder works with a zero second argument.
22682         Replace it if not.
22683         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
22684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
22685         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
22686         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
22687         (Depends-on): Update dependencies.
22688         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
22689         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
22690         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
22692         Tests for module 'remainderl-ieee'.
22693         * modules/remainderl-ieee-tests: New file.
22694         * tests/test-remainderl-ieee.c: New file.
22696         New module 'remainderl-ieee'.
22697         * modules/remainderl-ieee: New file.
22699         Tests for module 'remainder-ieee'.
22700         * modules/remainder-ieee-tests: New file.
22701         * tests/test-remainder-ieee.c: New file.
22703         New module 'remainder-ieee'.
22704         * modules/remainder-ieee: New file.
22706         Tests for module 'remainderf-ieee'.
22707         * modules/remainderf-ieee-tests: New file.
22708         * tests/test-remainderf-ieee.c: New file.
22709         * tests/test-remainder-ieee.h: New file.
22711         New module 'remainderf-ieee'.
22712         * modules/remainderf-ieee: New file.
22714 2012-02-27  Bruno Haible  <bruno@clisp.org>
22716         modff, modfl: Fix configure syntax error.
22717         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
22718         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22720 2012-02-27  Bruno Haible  <bruno@clisp.org>
22722         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
22723         * m4/fmodl-ieee.m4: New file.
22724         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
22725         whether fmodl works with zero arguments. Replace it if not.
22726         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
22727         (Depends-on): Add fmod-ieee.
22728         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
22729         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
22731         fmodf-ieee: Work around test failure on OSF/1.
22732         * m4/fmodf-ieee.m4: New file.
22733         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
22734         whether fmodf works with zero arguments. Replace it if not.
22735         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
22736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
22737         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
22738         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
22739         (Depends-on): Update dependencies.
22740         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
22741         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
22742         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
22744         fmodf-ieee: Work around test failure on MSVC 9.
22745         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
22746         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
22748         fmod-ieee: Work around test failures on OSF/1, mingw.
22749         * m4/fmod-ieee.m4: New file.
22750         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
22751         whether fmod works with zero arguments. Replace it if not.
22752         * lib/math.in.h (fmod): New declaration.
22753         * lib/fmod.c: New file.
22754         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
22755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
22756         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
22757         * modules/fmod (Files): Add lib/fmod.c.
22758         (Depends-on): Add math, isinf, trunc, fma.
22759         (configure.ac): Arrange to compile lib/fmod.c if needed.
22760         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
22761         m4/signbit.m4.
22762         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
22763         * tests/test-math-c++.cc: Check the declaration of fmod.
22764         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
22766         fmodl-ieee: Fix test failures.
22767         * lib/fmodl.c (fmodl): Treat Inf specially.
22768         * modules/fmodl (Depends-on): Add isinf.
22770         Tests for module 'fmodl-ieee'.
22771         * modules/fmodl-ieee-tests: New file.
22772         * tests/test-fmodl-ieee.c: New file.
22774         New module 'fmodl-ieee'.
22775         * modules/fmodl-ieee: New file.
22777         Tests for module 'fmod-ieee'.
22778         * modules/fmod-ieee-tests: New file.
22779         * tests/test-fmod-ieee.c: New file.
22781         New module 'fmod-ieee'.
22782         * modules/fmod-ieee: New file.
22784         Tests for module 'fmodf-ieee'.
22785         * modules/fmodf-ieee-tests: New file.
22786         * tests/test-fmodf-ieee.c: New file.
22787         * tests/test-fmod-ieee.h: New file.
22789         New module 'fmodf-ieee'.
22790         * modules/fmodf-ieee: New file.
22792 2012-02-27  Bruno Haible  <bruno@clisp.org>
22794         Tests for module 'rintl-ieee'.
22795         * modules/rintl-ieee-tests: New file.
22796         * tests/test-rintl-ieee.c: New file.
22798         New module 'rintl-ieee'.
22799         * modules/rintl-ieee: New file.
22801         Tests for module 'rint-ieee'.
22802         * modules/rint-ieee-tests: New file.
22803         * tests/test-rint-ieee.c: New file.
22805         New module 'rint-ieee'.
22806         * modules/rint-ieee: New file.
22808         Tests for module 'rintf-ieee'.
22809         * modules/rintf-ieee-tests: New file.
22810         * tests/test-rintf-ieee.c: New file.
22811         * tests/test-rint-ieee.h: New file.
22813         New module 'rintf-ieee'.
22814         * modules/rintf-ieee: New file.
22816 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22818         regex: re_search etc. should return -2 when memory exhausted
22819         This bug was uncovered when testing 'grep'.  Without the fix,
22820         re_search and friends return -1 when memory is exhausted, but -1
22821         means no match, and this causes grep to falsely report no-match
22822         instead of memory-exhaustion.  See
22823         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
22824         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
22825         trouble; this can occur if re_search_internal ran out of memory.
22827 2012-02-26  Bruno Haible  <bruno@clisp.org>
22829         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
22830         * m4/modfl-ieee.m4: New file.
22831         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
22832         whether modfl works with Inf. Replace it if not.
22833         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
22834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
22835         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
22836         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
22837         (Depends-on): Update dependencies.
22838         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
22839         m4/signbit.m4.
22840         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
22841         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
22843         modfl-ieee: Fix dependencies.
22844         * modules/modfl-ieee (Depends-on): Add modf-ieee.
22846         modfl-ieee: Fix test failures.
22847         * lib/modfl.c (modfl): Treat NaN and Inf specially.
22848         * modules/modfl (Depends-on): Add isfinite, isinf.
22850         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
22851         * m4/modff-ieee.m4: New file.
22852         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
22853         whether modff works with NaN and Inf. Replace it if not.
22854         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
22855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
22856         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
22857         * modules/modff (configure.ac): Consider REPLACE_MODFF.
22858         (Depends-on): Update dependencies.
22859         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
22860         m4/signbit.m4.
22861         (Depends-on): Add modf-ieee.
22862         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
22863         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
22865         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
22866         * m4/modf-ieee.m4: New file.
22867         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
22868         whether modf works with NaN and Inf. Replace it if not.
22869         * lib/math.in.h (modf): New declaration.
22870         * lib/modf.c: New file.
22871         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
22872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
22873         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
22874         * modules/modf (Files): Add lib/modf.c.
22875         (Depends-on): Add math, isfinite, trunc, isinf.
22876         (configure.ac): Addrange to compile lib/modf.c if needed.
22877         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
22878         m4/signbit.m4.
22879         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
22880         * tests/test-math-c++.cc: Check the declaration of modf.
22881         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
22883         Tests for module 'modfl-ieee'.
22884         * modules/modfl-ieee-tests: New file.
22885         * tests/test-modfl-ieee.c: New file.
22887         New module 'modfl-ieee'.
22888         * modules/modfl-ieee: New file.
22890         Tests for module 'modf-ieee'.
22891         * modules/modf-ieee-tests: New file.
22892         * tests/test-modf-ieee.c: New file.
22894         New module 'modf-ieee'.
22895         * modules/modf-ieee: New file.
22897         Tests for module 'modff-ieee'.
22898         * modules/modff-ieee-tests: New file.
22899         * tests/test-modff-ieee.c: New file.
22900         * tests/test-modf-ieee.h: New file.
22902         New module 'modff-ieee'.
22903         * modules/modff-ieee: New file.
22905 2012-02-26  Bruno Haible  <bruno@clisp.org>
22907         Tests for module 'fabsl-ieee'.
22908         * modules/fabsl-ieee-tests: New file.
22909         * tests/test-fabsl-ieee.c: New file.
22911         New module 'fabsl-ieee'.
22912         * modules/fabsl-ieee: New file.
22914         Tests for module 'fabs-ieee'.
22915         * modules/fabs-ieee-tests: New file.
22916         * tests/test-fabs-ieee.c: New file.
22918         New module 'fabs-ieee'.
22919         * modules/fabs-ieee: New file.
22921         Tests for module 'fabsf-ieee'.
22922         * modules/fabsf-ieee-tests: New file.
22923         * tests/test-fabsf-ieee.c: New file.
22924         * tests/test-fabs-ieee.h: New file.
22926         New module 'fabsf-ieee'.
22927         * modules/fabsf-ieee: New file.
22929 2012-02-26  Bruno Haible  <bruno@clisp.org>
22931         Tests for module 'fmal-ieee'.
22932         * modules/fmal-ieee-tests: New file.
22933         * tests/test-fmal-ieee.c: New file.
22935         New module 'fmal-ieee'.
22936         * modules/fmal-ieee: New file.
22938         Tests for module 'fma-ieee'.
22939         * modules/fma-ieee-tests: New file.
22940         * tests/test-fma-ieee.c: New file.
22942         New module 'fma-ieee'.
22943         * modules/fma-ieee: New file.
22945         Tests for module 'fmaf-ieee'.
22946         * modules/fmaf-ieee-tests: New file.
22947         * tests/test-fmaf-ieee.c: New file.
22948         * tests/test-fma-ieee.h: New file.
22950         New module 'fmaf-ieee'.
22951         * modules/fmaf-ieee: New file.
22953 2012-02-26  Bruno Haible  <bruno@clisp.org>
22955         Tests for module 'ldexpl-ieee'.
22956         * modules/ldexpl-ieee-tests: New file.
22957         * tests/test-ldexpl-ieee.c: New file.
22959         New module 'ldexpl-ieee'.
22960         * modules/ldexpl-ieee: New file.
22962         Tests for module 'ldexp-ieee'.
22963         * modules/ldexp-ieee-tests: New file.
22964         * tests/test-ldexp-ieee.c: New file.
22966         New module 'ldexp-ieee'.
22967         * modules/ldexp-ieee: New file.
22969         Tests for module 'ldexpf-ieee'.
22970         * modules/ldexpf-ieee-tests: New file.
22971         * tests/test-ldexpf-ieee.c: New file.
22972         * tests/test-ldexp-ieee.h: New file.
22974         New module 'ldexpf-ieee'.
22975         * modules/ldexpf-ieee: New file.
22977 2012-02-26  Bruno Haible  <bruno@clisp.org>
22979         Refactor frexp*-ieee tests.
22980         * tests/test-frexp-ieee.h: New file.
22981         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
22982         (main): Just call test_function.
22983         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
22984         (main): Just call test_function.
22985         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
22986         (main): Just call test_function.
22987         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
22988         * modules/frexp-ieee-tests (Files): Likewise.
22989         * modules/frexpl-ieee-tests (Files): Likewise.
22991         Tests for module 'frexpl-ieee'.
22992         * modules/frexpl-ieee-tests: New file.
22993         * tests/test-frexpl-ieee.c: New file.
22995         New module 'frexpl-ieee'.
22996         * modules/frexpl-ieee: New file.
22998         Tests for module 'frexp-ieee'.
22999         * modules/frexp-ieee-tests: New file.
23000         * tests/test-frexp-ieee.c: New file.
23002         New module 'frexp-ieee'.
23003         * modules/frexp-ieee: New file.
23005         Tests for module 'frexpf-ieee'.
23006         * modules/frexpf-ieee-tests: New file.
23007         * tests/test-frexpf-ieee.c: New file.
23009         New module 'frexpf-ieee'.
23010         * modules/frexpf-ieee: New file.
23012 2012-02-26  Bruno Haible  <bruno@clisp.org>
23014         roundl-ieee tests: More tests.
23015         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23016         (main): Add tests for [MX] shaded specification in POSIX.
23017         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23018         (Depends-on): Add isnanl-nolibm.
23020         round-ieee tests: More tests.
23021         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23022         (main): Add tests for [MX] shaded specification in POSIX.
23023         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23024         (Depends-on): Add isnand-nolibm.
23026         roundf-ieee tests: More tests.
23027         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23028         (main): Add tests for [MX] shaded specification in POSIX.
23029         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23030         (Depends-on): Add isnanf-nolibm.
23032         truncl-ieee tests: More tests.
23033         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23034         (main): Add tests for [MX] shaded specification in POSIX.
23035         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23036         (Depends-on): Add isnanl-nolibm.
23038         trunc-ieee tests: More tests.
23039         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23040         (main): Add tests for [MX] shaded specification in POSIX.
23041         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23042         (Depends-on): Add isnand-nolibm.
23044         truncf-ieee tests: More tests.
23045         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23046         (main): Add tests for [MX] shaded specification in POSIX.
23047         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23048         (Depends-on): Add isnanf-nolibm.
23050         ceill-ieee tests: More tests.
23051         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23052         (main): Add tests for [MX] shaded specification in POSIX.
23053         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23054         (Depends-on): Add isnanl-nolibm.
23056         ceil-ieee tests: More tests.
23057         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23058         (main): Add tests for [MX] shaded specification in POSIX.
23059         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23060         (Depends-on): Add isnand-nolibm.
23062         ceilf-ieee tests: More tests.
23063         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23064         (main): Add tests for [MX] shaded specification in POSIX.
23065         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23066         (Depends-on): Add isnanf-nolibm.
23068         floorl-ieee tests: More tests.
23069         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23070         (main): Add tests for [MX] shaded specification in POSIX.
23071         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23072         (Depends-on): Add isnanl-nolibm.
23074         floor-ieee tests: More tests.
23075         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23076         (main): Add tests for [MX] shaded specification in POSIX.
23077         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23078         (Depends-on): Add isnand-nolibm.
23080         floorf-ieee tests: More tests.
23081         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23082         (main): Add tests for [MX] shaded specification in POSIX.
23083         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23084         (Depends-on): Add isnanf-nolibm.
23086 2012-02-26  Bruno Haible  <bruno@clisp.org>
23088         fpieee: More comments.
23089         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
23091 2012-02-25  Bruno Haible  <bruno@clisp.org>
23093         Tests for module 'log10l'.
23094         * modules/log10l-tests: New file.
23095         * tests/test-log10l.c: New file.
23096         * tests/test-math-c++.cc: Check the declaration of log10l.
23098         New module 'log10l'.
23099         * lib/math.in.h (log10l): New declaration.
23100         * lib/log10l.c: New file.
23101         * m4/log10l.m4: New file.
23102         * modules/log10l: New file.
23103         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
23104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
23105         HAVE_DECL_LOG10L.
23106         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
23107         HAVE_DECL_LOG10L.
23108         * doc/posix-functions/log10l.texi: Mention the new module.
23110 2012-02-25  Bruno Haible  <bruno@clisp.org>
23112         fmodl, remainder*: Avoid wrong results due to rounding errors.
23113         * lib/fmodl.c (fmodl): Correct the result if it is not within the
23114         expected bounds.
23115         * lib/remainderf.c (remainderf): Likewise.
23116         * lib/remainder.c (remainder): Likewise.
23117         * lib/remainderl.c (remainderl): Likewise.
23119 2012-02-25  Bruno Haible  <bruno@clisp.org>
23121         Tests for module 'remainderl'.
23122         * modules/remainderl-tests: New file.
23123         * tests/test-remainderl.c: New file.
23124         * tests/test-math-c++.cc: Check the declaration of remainderl.
23126         New module 'remainderl'.
23127         * lib/math.in.h (remainderl): New declaration.
23128         * lib/remainderl.c: New file.
23129         * m4/remainderl.m4: New file.
23130         * modules/remainderl: New file.
23131         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
23132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
23133         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
23134         HAVE_REMAINDERL.
23135         * doc/posix-functions/remainderl.texi: Mention the new module.
23137 2012-02-25  Bruno Haible  <bruno@clisp.org>
23139         Tests for module 'remainderf'.
23140         * modules/remainderf-tests: New file.
23141         * tests/test-remainderf.c: New file.
23142         * tests/test-math-c++.cc: Check the declaration of remainderf.
23144         New module 'remainderf'.
23145         * lib/math.in.h (remainderf): New declaration.
23146         * lib/remainderf.c: New file.
23147         * m4/remainderf.m4: New file.
23148         * modules/remainderf: New file.
23149         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
23150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
23151         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
23152         HAVE_REMAINDERF.
23153         * doc/posix-functions/remainderf.texi: Mention the new module.
23155 2012-02-25  Bruno Haible  <bruno@clisp.org>
23157         remainder: Support for MSVC.
23158         * lib/math.in.h (remainder): New declaration.
23159         * lib/remainder.c: New file.
23160         * m4/remainder.m4: New file.
23161         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
23162         (Depends-on): Add math, round, fma.
23163         (configure.ac): Use results of gl_FUNC_REMAINDER.
23164         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
23165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
23166         HAVE_DECL_REMAINDER.
23167         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
23168         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
23169         * tests/test-math-c++.cc: Check the declaration of remainder.
23170         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
23171         problems are fixed.
23173 2012-02-25  Bruno Haible  <bruno@clisp.org>
23175         Tests for module 'fmodl'.
23176         * modules/fmodl-tests: New file.
23177         * tests/test-fmodl.c: New file.
23178         * tests/test-math-c++.cc: Check the declaration of fmodl.
23180         New module 'fmodl'.
23181         * lib/math.in.h (fmodl): New declaration.
23182         * lib/fmodl.c: New file.
23183         * m4/fmodl.m4: New file.
23184         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
23185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
23186         REPLACE_FMODL.
23187         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
23188         REPLACE_FMODL.
23189         * modules/fmodl: New file.
23190         * doc/posix-functions/fmodl.texi: Mention the new module.
23192 2012-02-25  Bruno Haible  <bruno@clisp.org>
23194         Tests for module 'modfl'.
23195         * modules/modfl-tests: New file.
23196         * tests/test-modfl.c: New file.
23197         * tests/test-math-c++.cc: Check the declaration of modfl.
23199         New module 'modfl'.
23200         * lib/math.in.h (modfl): New declaration.
23201         * lib/modfl.c: New file.
23202         * m4/modfl.m4: New file.
23203         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
23204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
23205         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
23206         * modules/modfl: New file.
23207         * doc/posix-functions/modfl.texi: Mention the new module.
23209 2012-02-25  Bruno Haible  <bruno@clisp.org>
23211         Tests for module 'fabsl'.
23212         * modules/fabsl-tests: New file.
23213         * tests/test-fabsl.c: New file.
23214         * tests/test-math-c++.cc: Check the declaration of fabsl.
23216         New module 'fabsl'.
23217         * lib/math.in.h (fabsl): New declaration.
23218         * lib/fabsl.c: New file.
23219         * m4/fabsl.m4: New file.
23220         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
23221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
23222         REPLACE_FABSL.
23223         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
23224         REPLACE_FABSL.
23225         * modules/fabsl: New file.
23226         * doc/posix-functions/fabsl.texi: Mention the new module.
23228 2012-02-25  Bruno Haible  <bruno@clisp.org>
23230         fabs tests: More tests.
23231         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
23232         (zero): New variable.
23233         (main): Add tests for signed zero.
23234         * modules/fabs-tests (Files): Add tests/minus-zero.h.
23236         fabsf tests: More tests.
23237         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
23238         (zero): New variable.
23239         (main): Add tests for signed zero.
23240         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
23242 2012-02-24  Bruno Haible  <bruno@clisp.org>
23244         atanl: Provide function definition on MSVC.
23245         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
23246         function pointer.
23247         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
23249 2012-02-24  Bruno Haible  <bruno@clisp.org>
23251         acosl: Provide function definition on MSVC.
23252         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
23253         function pointer.
23254         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
23256 2012-02-24  Bruno Haible  <bruno@clisp.org>
23258         asinl: Provide function definition on MSVC.
23259         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
23260         function pointer.
23261         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
23263 2012-02-24  Bruno Haible  <bruno@clisp.org>
23265         tanl: Provide function definition on MSVC.
23266         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
23267         function pointer.
23268         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
23270 2012-02-24  Bruno Haible  <bruno@clisp.org>
23272         cosl: Provide function definition on MSVC.
23273         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
23274         function pointer.
23275         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
23277 2012-02-24  Bruno Haible  <bruno@clisp.org>
23279         sinl: Provide function definition on MSVC.
23280         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
23281         function pointer.
23282         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
23284 2012-02-24  Bruno Haible  <bruno@clisp.org>
23286         logl: Provide function definition on MSVC.
23287         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
23288         function pointer.
23289         * lib/math.in.h (logl): Undefine if it does not exist as a function.
23291 2012-02-24  Bruno Haible  <bruno@clisp.org>
23293         expl: Provide function definition on MSVC.
23294         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
23295         function pointer.
23296         * lib/math.in.h (expl): Undefine if it does not exist as a function.
23298 2012-02-24  Bruno Haible  <bruno@clisp.org>
23300         sqrtl: Provide function definition on MSVC.
23301         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
23302         a function pointer.
23303         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
23305 2012-02-24  Bruno Haible  <bruno@clisp.org>
23307         ceill: Provide function definition on MSVC.
23308         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
23309         used as a function pointer.
23310         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
23312 2012-02-24  Bruno Haible  <bruno@clisp.org>
23314         floorl: Provide function definition on MSVC.
23315         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
23316         used as a function pointer.
23317         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
23319 2012-02-24  Bruno Haible  <bruno@clisp.org>
23321         ceilf: Provide function definition on MSVC.
23322         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
23323         used as a function pointer.
23324         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
23326 2012-02-24  Bruno Haible  <bruno@clisp.org>
23328         floorf: Provide function definition on MSVC.
23329         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
23330         used as a function pointer.
23331         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
23333 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23335         stdnoreturn: new module
23336         This implements a replacement for C11's <stdnoreturn.h>.
23337         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
23338         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
23339         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
23340         * tests/test-stdnoreturn.c: New files.
23342 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
23344         regex: fix false multibyte matches in some regular expressions
23345         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
23346         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
23347         * lib/regex_internal.c (re_string_skip_chars):
23348         Fix miscomputation of remain_len that may cause incomplete
23349         multi-byte character and false match.
23351 2012-02-24  Jim Meyering  <meyering@redhat.com>
23353         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
23354         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
23355         uses with "==" *before* the call, e.g., 0 == strcmp (...)
23356         Remove now-unnecessary str''cmp obfuscation.
23357         Suggested by Akim Demaille.
23359 2012-02-24  Bruno Haible  <bruno@clisp.org>
23361         streq: Rename macro.
23362         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
23363         * NEWS: Mention the change.
23364         * lib/mbrtowc.c (mbrtowc): Update.
23365         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
23366         * lib/wcwidth.c (wcwidth): Update.
23367         Suggested by Akim Demaille and Jim Meyering.
23369 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23371         regex: fix typo in definition of MIN
23372         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
23373         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
23375 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
23376             Bruno Haible  <bruno@clisp.org>
23378         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
23379         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
23380         entries into a stack-allocated buffer directly.
23381         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
23383 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
23384             Bruno Haible  <bruno@clisp.org>
23386         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
23388          - There were several instances of this pattern:
23390              for (;;) {
23391                n = acl (f, GETACLCNT, 0, NULL);
23392                [ allocate an array A of size N ]
23393                if (acl (f, GETACL, n, a) == n)
23394                  break;
23395              }
23397            This loop might never terminate if some other process is constantly
23398            manipulating the file's ACL.  The loop should be rewritten to
23399            terminate.
23401          - The acl (... GETACLNT ...) call is merely an optimization; its value
23402            is merely a hint as to how big to make the array.  A better
23403            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
23404            and just guess a reasonably-big size, growing the size and trying
23405            again if it's not large enough.  This guarantees termination, and
23406            saves a system call.
23408         * lib/acl-internal.h: Include <limits.h>.
23409         (MIN, SIZE_MAX): New macros.
23410         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
23411         a stack-allocated buffer, and use malloc if it does not fit. Don't
23412         use GETACLCNT.
23413         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23415 2012-02-19  Bruno Haible  <bruno@clisp.org>
23417         acl: Fix endless loop on Solaris with vxfs.
23418         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
23419         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
23420         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23421         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
23422         * tests/test-sameacls.c (main)[Solaris]: Likewise.
23423         Reported by Bill Jones in
23424         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
23426 2012-02-19  Bruno Haible  <bruno@clisp.org>
23428         acl: Fix copy-acl test failure on Solaris 11.0.
23429         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
23430         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
23431         that this function returns 0 in some more cases.
23433 2012-02-19  Bruno Haible  <bruno@clisp.org>
23435         acl: Update doc references.
23436         * doc/acl-resources.txt: Update links to Solaris documentation.
23438 2012-02-19  Bruno Haible  <bruno@clisp.org>
23440         Fix test failure in many locales on Solaris 11.
23441         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
23442         'tr' arguments.
23443         * tests/test-pipe-filter-ii1.c (main): Likewise.
23444         * build-aux/bootstrap (check_versions): Run 'tr' command with range
23445         expressions in the C locale.
23446         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23447         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23449 2012-02-19  Bruno Haible  <bruno@clisp.org>
23451         gnulib-tool: Improve usage message.
23452         * gnulib-tool (func_usage): Move doc of --help and --version to the
23453         section "Operation modes".
23455 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
23457         README-release: make it easier to execute commands
23458         * top/README-release: break commands out on to separate lines.
23460 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
23462         GNUmakefile: simplify detection of unconfigured trees
23463         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
23464         whether the tree make is being run from is already configured or
23465         not.  Related simplifications.
23467 2012-02-13  Simon Josefsson  <simon@josefsson.org>
23469         * gnulib-tool (func_usage): Document --help and --version.
23471 2012-02-11  Jim Meyering  <meyering@redhat.com>
23473         bootstrap: don't exit 0 upon gnulib-tool failure
23474         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
23475         its exit status, not 0.
23477 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
23479         README-release: various improvements
23480         * top/README-release: Give a command to push changes for the
23481         release.  Add "distcheck" to list of other pre-release checks.
23482         Fix instance of "make stable" which should be "make TYPE".
23484 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23486         maint: replace FSF snail-mail addresses with URLs
23487         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
23488         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
23489         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
23490         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
23491         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
23492         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
23493         * lib/check-version.c, lib/check-version.h, lib/config.charset:
23494         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
23495         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
23496         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
23497         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
23498         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
23499         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
23500         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
23501         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
23502         * lib/glthread/thread.c, lib/glthread/thread.h:
23503         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
23504         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
23505         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
23506         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
23507         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
23508         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
23509         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
23510         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
23511         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
23512         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
23513         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
23514         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
23515         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
23516         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
23517         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
23518         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
23519         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
23520         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
23521         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
23522         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
23523         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
23524         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
23525         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
23526         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
23527         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
23528         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
23529         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
23530         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
23531         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
23532         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
23533         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
23534         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
23535         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
23536         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
23537         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
23538         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
23539         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
23540         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
23541         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
23542         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
23543         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
23544         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
23545         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
23546         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
23547         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
23548         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
23549         * tests/test-poll.c, tests/test-quotearg-simple.c:
23550         * tests/test-quotearg.c, tests/test-quotearg.h:
23551         * tests/test-round-ieee.c, tests/test-round1.c:
23552         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
23553         * tests/test-roundl-ieee.c, tests/test-roundl.c:
23554         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
23555         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
23556         * tests/test-strerror.c, tests/test-strerror_r.c:
23557         * tests/test-strsignal.c, tests/test-strverscmp.c:
23558         * tests/test-xmemdup0.c:
23559         Replace FSF snail mail addresses with URLs, as per GNU coding
23560         standards.  See glibc bug
23561         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
23563 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
23565         README-release: capitalize a word and split a line
23566         * top/README-release: Fix punctuation and spacing.
23568 2012-02-08  Akim Demaille  <demaille@gostai.com>
23570         fatal-signal: use C prototypes (with explicit void).
23571         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23572         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
23574 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23576         regex: spelling fix
23577         * lib/regexec.c: spelling fix
23579         regex: rely on stdint.h for SIZE_MAX
23580         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
23582 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23584         regex: merge glibc changes
23586         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
23587         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
23588         (init_word_char): Work even if bitset words are not exactly 32 or
23589         64 bits wide.  Don't assume there are no padding bits.
23590         * lib/regex.c [_LIBC]: Do not include <config.h>.
23591         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
23592         and -Wtype-limits.
23593         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
23594         needless disagreement with glibc.  All uses changed.  Define it to
23595         1 only if _GNU_SOURCE, to match glibc.
23596         (_REG_RM_NAME): Remove; no longer needed, since the names in
23597         question are now all protected by __USE_GNU.
23598         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
23599         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
23600         * lib/regex_internal.h (MIN): New macro.
23602         2012-01-03 Ulrich Drepper <drepper@gmail.com>
23603         * lib/regcomp.c (init_word_char): Optimize regex a bit.
23605         2011-12-30 Jakub Jelinek <jakub@redhat.com>
23606         * lib/regex_internal.c (re_string_fetch_byte_case):
23607         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
23608         is miscompiled, and it turns out it is because of an incorrect
23609         attribute on re_string_fetch_byte_case.  Unlike
23610         re_string_peek_byte_case, this one is really not pure, it modifies
23611         memory (increments pstr->cur_idx), and with the pure attribute GCC
23612         assumed it doesn't and it cached the presumed value of
23613         regexp->cur_idx in a variable across the
23614          for (;; ++i)
23615            {
23616              if (i >= BRACKET_NAME_BUF_SIZE)
23617                return REG_EBRACK;
23618              if (token->type == OP_OPEN_CHAR_CLASS)
23619                ch = re_string_fetch_byte_case (regexp);
23620              else
23621                ch = re_string_fetch_byte (regexp);
23622              if (re_string_eoi(regexp))
23623                return REG_EBRACK;
23624              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
23625                break;
23626              elem->opr.name[i] = ch;
23627            }
23629         2011-11-29 Andreas Schwab <schwab@redhat.com>
23630         * lib/regcomp.c (build_equiv_class):
23631         Fix access after end of search string in regex matcher.
23633         2011-11-12 Ulrich Drepper <drepper@redhat.com>
23634         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
23636         2011-10-12 Ulrich Drepper <drepper@redhat.com>
23637         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
23639         2011-10-11 Ulrich Drepper <drepper@redhat.com>
23640         * lib/regcomp.c (parse_branch, parse_sub_exp):
23641         More regex memory leak fixes and tests.
23642         (parse_sub_exp, parse_bracket_exp):
23643         Fix memory leak for some invalid regular expressions.
23645         2011-05-28 Ulrich Drepper <drepper@gmail.com>
23646         * lib/regex_internal.c, lib/regexec.c:
23647         Fix unnecessary overallocation due to incomplete character.  When
23648         incomplete characters are found at the end of a string the code
23649         ran amok and allocated lots of memory.  Stricter limits are now in
23650         place.
23652         2011-05-20 Reuben Thomas <rrt@sc3d.org>
23653         * lib/regex.h: Update documentation.
23655         2011-05-16 Aharon Robbins <arnold@skeeve.com>
23656         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
23658         2010-05-05 Andreas Schwab <schwab@redhat.com>
23659         * lib/regexec.c (find_collation_sequence_value):
23660         Fix lookup of collation sequence value during regexp matching.
23662         2010-01-22 Ulrich Drepper <drepper@redhat.com>
23663         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
23665         2008-01-16 Ulrich Drepper <drepper@redhat.com>
23666         * lib/regex.h: Cleanup namespace.
23668         2007-11-26 Ulrich Drepper <drepper@redhat.com>
23669         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
23671         2007-08-26 Ulrich Drepper <drepper@redhat.com>
23672         * lib/regex_internal.h: Prevent some declarations and definitions
23673         to be seen when used in tests.
23675         2005-05-06 Ulrich Drepper <drepper@redhat.com>
23676         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
23677         __libc_lock_* macros if not _LIBC.
23678         (struct re_dfa_t): Add lock.
23680 2012-02-07  Eric Blake  <eblake@redhat.com>
23682         maint.mk: also prohibit lower-case @var@
23683         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
23684         lower case, like @top_srcdir@.
23686 2012-02-04  Eric Blake  <eblake@redhat.com>
23688         canonicalize: avoid uninitialized memory use
23689         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
23690         random '/' left in dest.
23691         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
23693 2012-02-04  Bruno Haible  <bruno@clisp.org>
23695         isatty: Fix test failure of ptsname_r on native Windows.
23696         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
23697         and don't set errno.
23698         (isatty): Test first whether fd is valid. Set errno when returning 0.
23700 2012-02-04  Bruno Haible  <bruno@clisp.org>
23702         spawn-pipe tests: Fix a NULL program name in a diagnostic.
23703         * tests/test-spawn-pipe-main.c: Include progname.h.
23704         (main): Invoke set_program_name.
23705         * modules/spawn-pipe-tests (Depends-on): Add progname.
23707         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
23708         * tests/test-nonblocking-socket-main.c: Include progname.h.
23709         (main): Invoke set_program_name.
23710         * modules/nonblocking-socket-tests (Depends-on): Add progname.
23712         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
23713         * tests/test-nonblocking-pipe-main.c: Include progname.h.
23714         (main): Invoke set_program_name.
23715         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
23717 2012-02-04  Eric Blake  <eblake@redhat.com>
23719         canonicalize-lgpl: fix // handling
23720         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
23722         canonicalize: fix // handling
23723         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
23724         /// to //, since only // is special.
23726 2012-02-04  Bruno Haible  <bruno@clisp.org>
23728         ioctl: Fix test failure on native Windows.
23729         * lib/ioctl.c: Include msvc-nothrow.h.
23730         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
23732 2012-02-04  Bruno Haible  <bruno@clisp.org>
23734         fsync: Avoid test failure on native Windows.
23735         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
23736         read-only.
23738 2012-02-04  Bruno Haible  <bruno@clisp.org>
23740         sys_select: Avoid syntax error on OpenBSD 5.0.
23741         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
23742         currently being included, just include the system's <sys/select.h>.
23744 2012-02-04  Bruno Haible  <bruno@clisp.org>
23746         sys_select: Avoid syntax error on OpenBSD 5.0.
23747         * lib/sys_select.in.h: Include <signal.h> only after the include_next
23748         <sys/select.h>, not before.
23749         Reported by Jiri B <jirib@devio.us>.
23751 2012-02-04  Bruno Haible  <bruno@clisp.org>
23753         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
23754         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
23755         global variables.
23756         * tests/test-get-rusage-data.c (main): Likewise.
23757         Reported by Jim Meyering.
23759 2012-02-04  Bruno Haible  <bruno@clisp.org>
23761         stdioext: Fix last commit.
23762         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
23764 2012-02-03  Bruno Haible  <bruno@clisp.org>
23766         stdioext: Add tentative support for Plan9.
23767         * lib/stdio-impl.h: Include <errno.h>.
23768         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
23769         * lib/freadable.c (freadable): Likewise.
23770         * lib/fwritable.c (fwritable): Likewise.
23771         * lib/fbufmode.c (fbufmode): Likewise.
23772         * lib/freading.c (freading): Likewise.
23773         * lib/fwriting.c (fwriting): Likewise.
23774         * lib/freadptr.c (freadptr): Likewise.
23775         * lib/freadseek.c (freadptrinc): Likewise.
23776         * lib/freadahead.c (freadahead): Likewise.
23777         * lib/fpurge.c (fpurge): Likewise.
23778         * lib/fseeko.c (rpl_fseeko): Likewise.
23779         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
23780         Reported by Jens Staal <staal1978@gmail.com>.
23782 2012-02-02  Jim Meyering  <meyering@redhat.com>
23784         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
23785         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
23786         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
23787         not even to try to add the attribute.  Instead, add a pragma to suppress
23788         the suggestion/warning.
23790 2012-01-31  Karl Berry  <karl@gnu.org>
23792         setstate doc: typo.
23793         * doc/posix-functions/setstate.texi (setstate): { not (.
23795 2012-01-31  Bruno Haible  <bruno@clisp.org>
23797         popen: Make more robust on Windows.
23798         * lib/popen.c: On native Windows, use the _popen based code even if
23799         HAVE_POPEN is set.
23800         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
23801         environment variable on native Windows.
23803 2012-01-30  Bruno Haible  <bruno@clisp.org>
23805         pclose: Fix typo.
23806         * lib/stdio.in.h (pclose): Fix typo in warning message.
23808 2012-01-30  Bruno Haible  <bruno@clisp.org>
23810         doc about getlogin_r, setstate.
23811         * doc/posix-functions/getlogin_r.texi: List the incompatible
23812         declaration problem under "not fixed by gnulib".
23813         * doc/posix-functions/setstate.texi: Mention incompatible declaration
23814         problem on Solaris 11 and other platforms.
23816 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
23817             Bruno Haible  <bruno@clisp.org>
23819         poll tests: Make test more robust.
23820         * tests/test-poll.c: Include macros.h.
23821         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
23822         return value of various I/O operations.
23823         * modules/poll-tests (Files): Add tests/macros.h.
23825 2012-01-30  Bruno Haible  <bruno@clisp.org>
23827         sys_stat: Fix support for mingw64 and MSVC.
23828         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
23829         header files already do it.
23830         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
23831         stat itself.
23832         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23834 2012-01-30  Bruno Haible  <bruno@clisp.org>
23836         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
23837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
23838         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
23840 2012-01-29  Bruno Haible  <bruno@clisp.org>
23842         quotearg: Fix test failure on MacOS X 10.5.
23843         * tests/test-quotearg-simple.c: Include localcharset.h.
23844         (main): If the locale encoding is not ASCII, bypass the tests of
23845         locale_quoting_style and clocale_quoting_style.
23846         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
23848 2012-01-29  Jim Meyering  <meyering@redhat.com>
23850         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
23851         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
23852         detect uses of canonicalize_file_name.
23854 2012-01-28  Bruno Haible  <bruno@clisp.org>
23856         test-framework-sh: Fix test failure with AIX 7.1 diff.
23857         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
23858         in column 1, like 'diff -c' does.
23859         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
23860         whether 'diff -u' is used. Instead, test whether the output contains
23861         some '@' character.
23863 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23865         strtoimax: eliminate need for stdint.h, inttypes.h checks
23866         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
23867         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
23868         the prerequisites for a recently-introduced strtoimax test.
23869         I guess this might cause strtoimax to be replaced when not
23870         strictly necessary on older hosts, but this shouldn't introduce
23871         any bugs and it should make Emacs 'configure' faster on typical
23872         modern hosts.  Problem discovered when importing the latest gnulib
23873         to an Emacs test version.
23874         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
23876 2012-01-28  Bruno Haible  <bruno@clisp.org>
23878         sys_time: Override 'struct timeval' on some native Windows platforms.
23879         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
23880         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
23881         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
23882         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
23883         needs to be overridden.
23884         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
23885         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
23886         * tests/test-sys_select.c: Check that the tv_sec member has the same
23887         size as a 'time_t'.
23888         * tests/test-sys_time.c: Likewise.
23889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
23890         is set, set also REPLACE_GETTIMEOFDAY.
23891         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
23892         convert the resulting 'struct timeval' before returning.
23893         * lib/select.c: Include <sys/time.h>.
23894         (select, timeval): Undefine at the right place.
23895         * modules/select (Depends-on): Add sys_time.
23896         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
23897         some Windows platforms.
23898         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23900 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23902         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
23903         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
23904         an integer.
23905         * lib/fcntl.c (dupfd): Likewise.
23906         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
23908 2012-01-28  Bruno Haible  <bruno@clisp.org>
23910         fcntl: Avoid compilation error on native Windows.
23911         * modules/fcntl (Depends-on): Add 'close'.
23913 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23915         select, poll, isatty: Avoid warnings on x86_64 mingw64.
23916         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
23917         pointer to an integer.
23918         * lib/poll.c (IsConsoleHandle): Likewise.
23919         * lib/isatty.c (IsConsoleHandle): Likewise.
23921 2012-01-28  Jim Meyering  <meyering@redhat.com>
23923         doc: clarify README-release
23924         * top/README-release: Clarify: you should make a point to have
23925         the latest stable versions of build tools in your PATH, and the
23926         reference to buildreq is solely for its list of tool names, not
23927         for its minimal-functional version numbers.
23928         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
23930         maint.mk: use more readable (yet functionally equivalent) quoting
23931         It is common to quote a single quote in a single quoted string like
23932         this:  '...'\''...'.  Unless you know the idiom, that looks like
23933         gibberish, so prefer to double-quote the string when possible.
23934         Then you can use a more readable, lone single quote: "...'..."
23935         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
23936         "don't" is more readable than the equivalent 'don'\''t'.
23937         (sc_cast_of_x_alloc_return_value): Likewise.
23938         (sc_cast_of_alloca_return_value): Likewise.
23939         (sc_makefile_path_separator_check): Similar: use ":" in '...',
23940         rather than '\'':'\''.
23942 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23944         stdalign: relax _Alignof and tighten _Alignas test
23945         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
23946         as it was too strict: alignof must divide offsetof, but it need
23947         not equal offsetof.  Inspired by Joseph S. Myers's comment
23948         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
23949         Conversely, tighten the _Alignas test a bit, as the resulting
23950         alignment must be exactly 8.
23952 2012-01-27  Bruno Haible  <bruno@clisp.org>
23954         stdalign: Document the last change.
23955         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
23957 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23959         stdalign: check that alignof and offsetof are consistent
23960         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
23961         Problem reported for gnulib by Richard W.M. Jones in
23962         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
23964 2012-01-27  Jim Meyering  <meyering@redhat.com>
23966         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
23967         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
23968         convert a sequence with gaps to the minimal containing range.
23969         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
23970         * tests/test-update-copyright.sh: Test for this.
23971         The FSF confirmed it is ok to do this, assuming there is at
23972         least one significant change per year in the affected range:
23973         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
23975 2012-01-26  Bruno Haible  <bruno@clisp.org>
23977         pipe2: refine doc about thread-safety
23978         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
23979         multithread-safety problem.
23980         * doc/glibc-functions/accept4.texi: Likewise.
23982 2012-01-26  Bruno Haible  <bruno@clisp.org>
23984         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
23985         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
23986         In the test program, include <fcntl.h>, for O_RDONLY.
23988 2012-01-26  Eric Blake  <eblake@redhat.com>
23990         pipe2: document lack of thread-safety in replacement
23991         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
23992         issue in replacement.
23993         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23994         Based on a report by Eric Wong.
23996 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23997             Bruno Haible  <bruno@clisp.org>
23999         malloca: Avoid warnings on x86_64 mingw64.
24000         * lib/malloca.c: Include <stdint.h>.
24001         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
24002         * modules/malloca (Depends-on): Add stdint.
24003         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
24005 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24007         obstack: remove __STDC__ conditionals
24008         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
24009         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
24010         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
24011         m4/include_next.m4 as the only gnulib-maintained places that still
24012         refer to __STDC__.
24014 2012-01-24  Bruno Haible  <bruno@clisp.org>
24016         havelib: Modern quoting.
24017         * build-aux/config.rpath: Quote 'like this', not `like this', as per
24018         the recent change to the GNU coding standards.
24020 2012-01-24  Bruno Haible  <bruno@clisp.org>
24022         stdint: Improve support for Android.
24023         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
24024         Reported by Simon Josefsson <simon@josefsson.org>.
24026 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24028         doc: omit trailing empty lines from INSTALL etc.
24029         * doc/Makefile (INSTALL): Omit trailing empty lines.
24030         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
24031         omit trailing empty lines.  This simplifies the build procedure.
24033 2012-01-23  Jim Meyering  <meyering@redhat.com>
24035         tests: avoid spurious warnings about gl_sockets_startup
24036         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
24037         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
24038         reporting a "statement with no effect".
24039         * tests/test-accept.c (main): Mark as "(void)".
24040         * tests/test-accept4.c (main): Likewise.
24041         * tests/test-bind.c (main): Likewise.
24042         * tests/test-connect.c (main): Likewise.
24043         * tests/test-getpeername.c (main): Likewise.
24044         * tests/test-getsockname.c (main): Likewise.
24045         * tests/test-getsockopt.c (main): Likewise.
24046         * tests/test-listen.c (main): Likewise.
24047         * tests/test-recv.c (main): Likewise.
24048         * tests/test-recvfrom.c (main): Likewise.
24049         * tests/test-send.c (main): Likewise.
24050         * tests/test-sendto.c (main): Likewise.
24051         * tests/test-setsockopt.c (main): Likewise.
24052         * tests/test-shutdown.c (main): Likewise.
24054 2012-01-21  Bruno Haible  <bruno@clisp.org>
24056         locale-fr.m4: Fix for Android.
24057         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
24058         failure of the test program on Bionic libc.
24060 2012-01-21  Jim Meyering  <meyering@redhat.com>
24062         bootstrap: fail when bootstrap_post_import_hook fails
24063         Otherwise, it's far too easy to miss diagnostics emitted
24064         between gnulib-tool's output and that of running configure.
24065         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
24067 2012-01-17  Jim Meyering  <meyering@redhat.com>
24069         maint: enable sc_trailing_blank
24070         * build-aux/pmccabe.css: Remove trailing blanks.
24071         * doc/acl-cygwin.txt: Likewise.
24072         * doc/gnu-oids.texi: Likewise
24073         * cfg.mk: Enable sc_trailing_blank.
24074         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
24076 2012-01-17  Jim Meyering  <meyering@redhat.com>
24078         maint: enable sc_prohibit_openat_without_use
24079         * cfg.mk: Enable sc_prohibit_openat_without_use.
24080         Exempt lib/selinux-at.c.
24082 2012-01-17  Jim Meyering  <meyering@redhat.com>
24084         maint: enable sc_prohibit_cloexec_without_use
24085         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
24086         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
24088 2012-01-17  Jim Meyering  <meyering@redhat.com>
24090         maint: enable sc_prohibit_intprops_without_use
24091         * cfg.mk: Enable sc_prohibit_intprops_without_use
24092         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
24094 2012-01-17  Jim Meyering  <meyering@redhat.com>
24096         maint: enable sc_prohibit_hash_pjw_without_use
24097         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
24098         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
24099         to match any use of \<hash_pjw\>, i.e., not necessarily with a
24100         following " (".
24102 2012-01-17  Jim Meyering  <meyering@redhat.com>
24104         maint: enable double-word-prohibiting rule
24105         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
24106         Exempt three files.
24108 2012-01-17  Jim Meyering  <meyering@redhat.com>
24110         maint: remove empty lines at EOF, but excluding modules/*
24111         Apply syntax rules at home as well as abroad.  Most changes
24112         were induced by running this:
24113           make srcdir=. _build-aux=build-aux -f top/maint.mk \
24114             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
24115             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
24116         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
24117         Exempt modules/* and two binary files.
24118         Also exempt doc/INSTALL*, per request from Bruno Haible.
24119         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
24120         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
24121         * doc/Copyright/request-assign.future: Likewise.
24122         * doc/Copyright/request-disclaim.changes: Likewise.
24123         * doc/INSTALL: Likewise.
24124         * doc/INSTALL.ISO: Likewise.
24125         * doc/INSTALL.UTF-8: Likewise.
24126         * doc/acl-cygwin.txt: Likewise.
24127         * doc/acl-resources.txt: Likewise.
24128         * doc/fdl-1.2.texi: Likewise.
24129         * doc/fdl-1.3.texi: Likewise.
24130         * doc/fdl.texi: Likewise.
24131         * lib/argp-pin.c: Likewise.
24132         * lib/round.c: Likewise.
24133         * lib/unicase/u16-totitle.c: Likewise.
24134         * lib/unictype/block_test.c: Likewise.
24135         * lib/uninorm/canonical-decomposition.c: Likewise.
24136         * m4/README: Likewise.
24137         * m4/relocatable-lib.m4: Likewise.
24138         * tests/test-isnand-nolibm.c: Likewise.
24139         * tests/test-isnand.c: Likewise.
24140         * tests/uninorm/NormalizationTest.txt: Likewise.
24142 2012-01-17  Jim Meyering  <meyering@redhat.com>
24144         maint: add framework to run syntax-check rules against gnulib sources
24145         * cfg.mk: New file, to disable all currently-failing tests.
24146         We'll enable them one by one, as they are made to pass.
24147         * Makefile (sc_maint): New rule.
24149 2012-01-21  Bruno Haible  <bruno@clisp.org>
24151         stdint: Add support for Android.
24152         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
24153         include the system's <stdint.h>.
24154         Reported by Simon Josefsson <simon@josefsson.org>.
24156 2012-01-19  Jim Meyering  <meyering@redhat.com>
24158         bootstrap: add bootstrap_post_import_hook
24159         Bison does still need something like the gnulib_mk_hook whose
24160         invocation I had to remove along with slurp in commit 767ccd40.
24161         Technically, we could get along without it, but doing so would
24162         have required living with a warning and a mandatory post-bootstrap
24163         automake rerun.
24164         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
24165         (bootstrap_post_import_hook): New function.
24166         Invoke it after gnulib-tool --import and before autoreconf.
24168 2012-01-18  Jim Meyering  <meyering@redhat.com>
24170         gitlog-to-changelog: don't use "no_"-prefixed variable name
24171         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
24172         to enable both --cluster and --no-cluster.  Change variable name,
24173         s/\$no_cluster/$cluster/, and reverse usage to match.
24175         gitlog-to-changelog: use "||", not "or" in expressions
24176         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
24177         expressions.
24179 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
24181         gitlog-to-changelog: new option --no-cluster
24182         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
24183         clustering of adjacent commit messages.
24185 2012-01-17  Jim Meyering  <meyering@redhat.com>
24187         maint: spell file systems with two words, not one
24188         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
24189         two words, not one.
24191 2012-01-16  Jim Meyering  <meyering@redhat.com>
24193         bootstrap: add a FIXME comment to ensure we eventually remove the hack
24194         * build-aux/bootstrap (gnulib_tool_options): Add comment.
24196 2012-01-16  Eric Blake  <eblake@redhat.com>
24198         bootstrap: cater to autoconf 2.59
24199         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
24200         is not available.
24202         bootstrap: properly check for libtool
24203         * build-aux/bootstrap (libtoolize): Also run libtool when older
24204         usage is detected.
24206 2012-01-15  Bruno Haible  <bruno@clisp.org>
24208         Improve support for MSVC 9.
24209         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
24210         clashes on MSVC.
24211         * lib/fcntl.in.h: Likewise.
24212         * lib/stdlib.in.h: Likewise.
24213         * lib/sys_stat.in.h: Likewise.
24215 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
24217         gnupload: we hold the master copy of this script now
24218         For motivation and more information, see:
24219         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
24220         * build-aux/gnupload: Make it clear in the heading comments that the
24221         master copy of this file is maintained by gnulib.  Since we are at
24222         it, bump its copyright year and ...
24223         ($scriptversion): ... the date in its version.
24224         ($usage): Patches and bug reports should be sent to the gnulib list,
24225         not the automake one.
24226         * config/srclist.txt: Don't try to sync 'gnupload' from automake
24227         anymore.
24229 2012-01-15  Bruno Haible  <bruno@clisp.org>
24231         Fix module 'random'.
24232         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
24233         initstate, setstate are declared.
24235 2012-01-14  Bruno Haible  <bruno@clisp.org>
24237         Tests for module 'random'.
24238         * modules/random-tests: New file.
24239         * tests/test-random.c: New file, based on tests/test-random_r.c.
24241         New module 'random'.
24242         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
24243         declarations.
24244         * lib/random.c: New file, based on glibc/stdlib/random.c.
24245         * m4/random.m4: New file.
24246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
24247         HAVE_RANDOM.
24248         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
24249         * modules/random: New file.
24250         * config/srclist.txt: Add an entry for random.c.
24251         * doc/posix-functions/random.texi: Mention the 'random' module.
24252         * doc/posix-functions/initstate.texi: Likewise.
24253         * doc/posix-functions/setstate.texi: Likewise.
24254         * doc/posix-functions/srandom.texi: Likewise.
24256 2012-01-12  Bruno Haible  <bruno@clisp.org>
24258         random_r: Use common idioms.
24259         * lib/random_r.c: Include <stdlib.h> first.
24261         random_r: Override incompatible API on AIX, OSF/1.
24262         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
24263         Override the system function if REPLACE_RANDOM_R is 1.
24264         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
24265         and OSF/1, set REPLACE_RANDOM_R.
24266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
24267         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
24268         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
24269         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
24270         * doc/glibc-functions/random_r.texi: Likewise.
24271         * doc/glibc-functions/setstate_r.texi: Likewise.
24273         random_r: Support for MSVC 9.
24274         * lib/random_r.c: Include stdint.h, not inttypes.h.
24276 2012-01-12  Eric Blake  <eblake@redhat.com>
24278         inet_ntop: guard extra work by IF_LINT
24279         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
24280         better code generation when not checking for warnings.
24281         Suggested by Paul Eggert and Jim Meyering.
24283         strptime: fix regression on mingw
24284         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
24285         Fix regression.  Reported by Bruno Haible.
24287 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
24288             Bruno Haible  <bruno@clisp.org>
24290         copy-file: add error-code-returning variant.
24291         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
24292         (qcopy_file_preserving): New declaration.
24293         * lib/copy-file.c (qcopy_file_preserving): Renamed from
24294         copy_file_preserving. Change return type to 'int'. Don't emit an error
24295         message here.
24296         (copy_file_preserving): New function.
24297         * tests/test-copy-file.c: Include <stdlib.h>.
24298         (main): Test qcopy_file_preserving if the environment variable
24299         NO_STDERR_OUTPUT is set.
24300         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
24301         with NO_STDERR_OUTPUT
24302         * tests/test-copy-file-2.sh: Likewise.
24304 2012-01-10  Bruno Haible  <bruno@clisp.org>
24306         copy-file: Use 'quote' module consistently.
24307         * lib/copy-file.c (copy_file_preserving): Use quote().
24309         copy-file: Refactor.
24310         * lib/copy-file.c: Include quote.h.
24311         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
24312         message here.
24313         * modules/copy-file (Depends-on): Add quote.
24315         acl: Export qcopy_acl.
24316         * lib/acl.h (qcopy_acl): New declaration.
24317         * lib/copy-acl.c (qcopy_acl): Make non-static.
24319         acl: Rename a local variable.
24320         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
24322         acl: Align return values of copy_acl and qcopy_acl.
24323         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
24324         maybe < -1.
24326 2012-01-11  Eric Blake  <eblake@redhat.com>
24328         strptime: silence gcc warnings
24329         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
24330         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
24331         Reported by Daniel P. Berrange.
24333         inet_ntop: silence gcc warning
24334         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
24335         Reported by Daniel P. Berrange.
24337 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
24339         getloadavg test: skip the test on GNU/Linux without /proc mounted
24340         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
24341         file.  When /proc is not mounted, it always fails with ENOENT.
24342         * tests/test-getloadavg.c (main): Treat ENOENT return code from
24343         getloadavg(3) the same way as ENOSYS and ENOTSUP.
24345 2012-01-10  Bruno Haible  <bruno@clisp.org>
24347         regex: Avoid link error on MSVC 9.
24348         * modules/regex (Depends-on): Add wctype.
24350 2012-01-10  Bruno Haible  <bruno@clisp.org>
24352         doc: Mention --with-tests option.
24353         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
24354         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
24355         --with-tests.
24356         Reported by Reuben Thomas.
24358 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
24360         users.txt: order package names lexicographically.
24361         * users.txt: Order package names lexicographically.
24363 2012-01-10  Jim Meyering  <meyering@redhat.com>
24365         maint.mk: fix description in comment
24366         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
24368         ignore-value: remove deprecated ignore_ptr function
24369         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
24370         * NEWS: Note this.
24372 2012-01-09  Jim Meyering  <meyering@redhat.com>
24374         test-init.sh: avoid a subshell
24375         * tests/test-init.sh: Remove protective subshell.
24376         Suggested by Bernhard Voelker.  While a subshell is normally
24377         required to protect against older shells (Solaris, FreeBSD) that
24378         warn about a missing program before performing redirection, the
24379         shell-selection tests performed by init.sh probably exclude any
24380         offending shell.
24382 2012-01-08  Bruno Haible  <bruno@clisp.org>
24384         setlocale tests: Avoid test failure on Solaris 11.0.
24385         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
24386         variable.
24388 2012-01-08  Bruno Haible  <bruno@clisp.org>
24390         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
24391         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24392         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
24393         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
24394         macro.
24395         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
24396         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
24397         * lib/spawn_faction_addopen.c: Add workaround implementation if
24398         HAVE_WORKING_POSIX_SPAWN.
24399         * modules/spawn (Makefile): Substitute
24400         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
24401         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
24402         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
24403         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
24404         (Depends-on): Update conditions.
24405         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24406         the Solaris 11 bug.
24408 2012-01-08  Bruno Haible  <bruno@clisp.org>
24410         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
24411         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24412         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24413         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
24414         macro.
24415         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
24416         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24417         * lib/spawn_faction_adddup2.c: Add workaround implementation if
24418         HAVE_WORKING_POSIX_SPAWN.
24419         * modules/spawn (Makefile): Substitute
24420         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24421         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
24422         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
24423         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24424         (Depends-on): Update conditions.
24425         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24426         the Solaris 11 bug.
24428 2012-01-08  Bruno Haible  <bruno@clisp.org>
24430         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
24431         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24432         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
24434         HAVE_WORKING_POSIX_SPAWN.
24435         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
24436         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
24437         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24438         * lib/spawn_faction_addclose.c: Add workaround implementation if
24439         HAVE_WORKING_POSIX_SPAWN.
24440         * modules/spawn (Makefile): Substitute
24441         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24442         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
24443         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
24444         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24445         (Depends-on): Update conditions.
24446         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24447         the Solaris 11 bug.
24449 2012-01-08  Bruno Haible  <bruno@clisp.org>
24451         doc: Update for Solaris 11.0.
24452         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
24453         * m4/printf.m4: Update comments.
24455 2012-01-08  Bruno Haible  <bruno@clisp.org>
24457         mktime: Avoid compilation error on Solaris 11.
24458         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
24460 2012-01-08  Bruno Haible  <bruno@clisp.org>
24462         doc: Small fix.
24463         * doc/posix-headers/nl_types.texi: Correct platforms list.
24465 2012-01-08  Simon Josefsson  <simon@josefsson.org>
24467         Add lgpl-3.0 module.
24468         * MODULES.html.sh (Support for building documentation): Add
24469         lgpl-3.0.
24470         * modules/lgpl-3.0: New file.
24472 2012-01-08  Jim Meyering  <meyering@redhat.com>
24474         select.c: indent with spaces, not TABs
24475         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
24477 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24479         quotearg: do not use grave accent for left quote
24480         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
24481         locale_quoting_style.
24482         (quotearg_buffer_restyled): Fix example.
24483         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
24485 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24487         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
24488         Most programs do not have translation catalogs for English and much
24489         less separate catalogs for British and American English.  Drop the
24490         suggestion to translators about these two, and provide it
24491         automatically for Unicode locales.  Like most programs, even those
24492         using American English, we use single quotation marks.  This conflicts
24493         with the American typographic convention, but works better when you
24494         cite the entire error message within double quotes.  It also tries not
24495         to clash with established practice and with what non-gnulib programs
24496         will usually do.
24497         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
24498         using an UTF-8 or GB-18030 locale.  The list of other locales with
24499         quotes was provided by Bruno Haible.
24500         (quotearg_buffer_restyled): Adjust instructions to translators.
24501         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
24502         text, since this would be wrong when using Unicode.
24503         * modules/quotearg: Depend on c-strcaseeq.
24505 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24507         quotearg: fix Wikipedia link
24508         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
24510 2012-01-07  Simon Josefsson  <simon@josefsson.org>
24512         Fix for mingw with MSVC9.
24513         * m4/ld-version-script.m4: Check that compiler rejects version
24514         scripts with syntax errors.  Reported by Bruno Haible
24515         <bruno@clisp.org>.
24517 2012-01-06  Bruno Haible  <bruno@clisp.org>
24519         Talk about "native Windows API", not "Woe32".
24520         * lib/accept4.c: Update comments to mention native Windows.
24521         * lib/execute.c: Likewise.
24522         * lib/fatal-signal.c: Likewise.
24523         * lib/localcharset.c: Likewise.
24524         * lib/nanosleep.c: Likewise.
24525         * lib/nl_langinfo.c: Likewise.
24526         * lib/pclose.c: Likewise.
24527         * lib/pipe-filter-gi.c: Likewise.
24528         * lib/pipe-filter-ii.c: Likewise.
24529         * lib/pipe.c: Likewise.
24530         * lib/pipe2.c: Likewise.
24531         * lib/popen.c: Likewise.
24532         * lib/progreloc.c: Likewise.
24533         * lib/relocatable.c: Likewise.
24534         * lib/sigaction.c: Likewise.
24535         * lib/sigprocmask.c: Likewise.
24536         * lib/spawn-pipe.h: Likewise.
24537         * lib/spawn-pipe.c: Likewise.
24538         * lib/spawni.c: Likewise.
24539         * lib/stat-time.h: Likewise.
24540         * lib/w32spawn.h: Likewise.
24541         * tests/test-isatty.c: Likewise.
24542         * lib/config.charset: More comments.
24543         * doc/gnulib-intro.texi: Mention native Windows.
24544         * doc/posix-functions/_Exit_C99.texi: Likewise.
24545         * doc/posix-headers/fcntl.texi: Likewise.
24547 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
24549         argp: Avoid crash if translator uses % characters in a translation.
24550         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
24551         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
24553 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24555         doc: C11 and C++11 are now official
24556         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
24557         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
24558         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
24559         * modules/stdalign:
24560         Replace references to draft C1X to C11, and to draft C++0X to C++11.
24562 2012-01-06  Bruno Haible  <bruno@clisp.org>
24564         uc-is-grapheme-break tests: Tweak.
24565         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
24566         message.
24568 2012-01-06  Bruno Haible  <bruno@clisp.org>
24570         test-init.sh: correct the test for diff -u
24571         * tests/test-init.sh: Also redirect stdout to /dev/null.
24573 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
24575         Use ', not `, for quoting output.
24576         * build-aux/announce-gen (usage, sizes, print_news_deltas)
24577         (print_changelog_deltas, get_tool_versions, main program):
24578         * build-aux/git-version-gen:
24579         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
24580         * build-aux/move-if-change (help):
24581         * build-aux/useless-if-before-free (usage, main program):
24582         * check-module (parse_module_file, usage)
24583         (find_included_lib_files, check_module):
24584         * lib/argmatch.c (main) [TEST]:
24585         * lib/argp-help.c (_help):
24586         * lib/getopt1.c (main) [TEST]:
24587         * lib/git-merge-changelog.c (usage):
24588         * lib/xstrtol-error.c (xstrtol_error):
24589         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
24590         * m4/argz.m4 (gl_FUNC_ARGZ):
24591         * m4/bison.m4 (gl_BISON):
24592         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
24593         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24594         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24595         * m4/fpending.m4 (gl_PREREQ_FPENDING):
24596         * m4/gc-random.m4 (gl_GC_RANDOM):
24597         * m4/intl.m4 (gt_CHECK_DECL):
24598         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
24599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
24600         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
24601         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
24602         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
24603         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
24604         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
24605         * tests/test-dirname.c (main):
24606         * tests/test-getpass.c (main):
24607         * tests/test-iconvme.c (main):
24608         * tests/test-parse-datetime.c (LOG):
24609         * tests/test-xstrtoimax.sh:
24610         * tests/test-xstrtol.sh:
24611         * tests/test-xstrtoll.sh:
24612         * tests/test-xstrtoumax.sh:
24613         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
24614         * top/GNUmakefile (abort-due-to-no-makefile):
24615         Quote 'like this', not `like this', as per the recent change to
24616         the GNU coding standards.
24618 2012-01-05  Bruno Haible  <bruno@clisp.org>
24620         strtoimax: Don't force a replacement on systems where intmax_t is int.
24621         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
24622         'intmax_t' is not larger than 'int'.
24623         Reported by Pádraig Brady <P@draigBrady.com>.
24625 2012-01-05  Bruno Haible  <bruno@clisp.org>
24627         doc: Mention NetBSD bugs.
24628         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
24629         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
24631 2012-01-05  Bruno Haible  <bruno@clisp.org>
24633         strtoumax tests: Enhance tests.
24634         * tests/test-strtoumax.c (main): Add tests for large values.
24636 2012-01-05  Bruno Haible  <bruno@clisp.org>
24638         strtoimax: Work around AIX 5.1 bug.
24639         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
24640         definition.
24641         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
24642         Set HAVE_STRTOIMAX.
24643         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
24644         REPLACE_STRTOIMAX.
24645         * modules/inttypes-incomplete (Makefile.am): Substitute
24646         REPLACE_STRTOIMAX.
24647         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
24648         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
24649         (Depends-on): Update conditions.
24650         * tests/test-strtoimax.c (main): Add tests for large values.
24651         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
24653 2012-01-05  Bruno Haible  <bruno@clisp.org>
24655         inttypes: Modernize.
24656         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
24657         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
24658         (Makefile.am): Update inttypes.h rule.
24660 2012-01-05  Jim Meyering  <meyering@redhat.com>
24662         init.sh: don't waste a subshell just to redirect stderr
24663         * tests/init.sh: In testing for diff -u and diff -c, use a
24664         stderr-redirecting exec inside `...` rather than a subshell.
24666         test-init.sh: avoid failure on HP-UX 11.00
24667         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
24668         resolves to diff -c or cmp.  Reported by Bruno Haible.
24670 2012-01-05  Bruno Haible  <bruno@clisp.org>
24672         Tests for module 'strtoull'.
24673         * modules/strtoull-tests: New file.
24674         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
24676 2012-01-05  Bruno Haible  <bruno@clisp.org>
24678         Tests for module 'strtoll'.
24679         * modules/strtoll-tests: New file.
24680         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
24682 2012-01-05  Bruno Haible  <bruno@clisp.org>
24684         Tests for module 'strtoul'.
24685         * modules/strtoul-tests: New file.
24686         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
24688 2012-01-05  Bruno Haible  <bruno@clisp.org>
24690         Tests for module 'strtol'.
24691         * modules/strtol-tests: New file.
24692         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
24694 2012-01-04  Jim Meyering  <meyering@redhat.com>
24696         test-init.sh: accommodate Solaris 5.10's different diff -u output
24697         * tests/test-init.sh: Also exempt @@ lines from the comparison
24698         of diff output, since Solaris 5.10 and GNU diff formats differ.
24699         Reported by Stefano Lattarini.
24701 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24703         test-posixtm: don't assume signed integer wraparound
24704         * tests/test-posixtm.c (main): Don't assume wraparound semantics
24705         after signed integer overflow.  Inspired by (though it may not
24706         fix) Bruno Haible's bug report in
24707         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
24709         Spell out "Windows 9x" and "Windows XP".
24710         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
24711         "Windows 9x" and "WinXP" with "Windows XP".
24713 2012-01-04  Jim Meyering  <meyering@redhat.com>
24715         test-vc-list-files-cvs.sh: remove obsolete comment
24716         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
24717         double exit.  Now that's all encapsulated via skip_ and Exit.
24719 2012-01-04  Bruno Haible  <bruno@clisp.org>
24721         Talk about "native Windows API", not "Win32".
24722         * lib/classpath.c: Update comments to mention native Windows.
24723         * lib/csharpexec.c: Likewise.
24724         * lib/dup2.c: Likewise.
24725         * lib/error.c: Likewise.
24726         * lib/fcntl.c: Likewise.
24727         * lib/filename.h: Likewise.
24728         * lib/findprog.c: Likewise.
24729         * lib/get-rusage-as.c: Likewise.
24730         * lib/get-rusage-data.c: Likewise.
24731         * lib/getpagesize.c: Likewise.
24732         * lib/javaexec.c: Likewise.
24733         * lib/msvc-inval.c: Likewise.
24734         * lib/msvc-nothrow.c: Likewise.
24735         * lib/nanosleep.c: Likewise.
24736         * lib/nonblocking.c: Likewise.
24737         * lib/printf-parse.c: Likewise.
24738         * lib/setlocale.c: Likewise.
24739         * lib/sigaction.c: Likewise.
24740         * lib/strerror_r.c: Likewise.
24741         * lib/tmpdir.c: Likewise.
24742         * lib/vasnprintf.c: Likewise.
24743         * lib/w32spawn.h: Likewise.
24744         * lib/waitpid.c: Likewise.
24745         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
24746         * m4/locale-ar.m4: Likewise.
24747         * m4/locale-fr.m4: Likewise.
24748         * m4/locale-ja.m4: Likewise.
24749         * m4/locale-tr.m4: Likewise.
24750         * m4/locale-zh.m4: Likewise.
24751         * m4/printf.m4: Likewise.
24752         * tests/test-cloexec.c: Likewise.
24753         * tests/test-copy-acl.sh: Likewise.
24754         * tests/test-copy-file.sh: Likewise.
24755         * tests/test-file-has-acl.sh: Likewise.
24756         * tests/test-set-mode-acl.sh: Likewise.
24757         * tests/test-dup-safer.c: Likewise.
24758         * tests/test-dup2.c: Likewise.
24759         * tests/test-dup3.c: Likewise.
24760         * tests/test-fcntl.c: Likewise.
24761         * tests/test-nonblocking-pipe.h: Likewise.
24762         * tests/test-nonblocking-socket.h: Likewise.
24763         * tests/test-pipe.c: Likewise.
24764         * tests/test-pipe2.c: Likewise.
24765         * tests/test-spawn-pipe-child.c: Likewise.
24766         * doc/acl-resources.txt: Likewise.
24767         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24768         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
24769         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
24770         * lib/localcharset.c: Update comments to mention native Windows.
24771         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24772         * lib/localename.c: Likewise.
24773         * lib/progreloc.c: Likewise.
24774         * lib/relocatable.c: Likewise.
24775         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24776         (windows_compute_revents): Renamed from win32_compute_revents.
24777         (windows_compute_revents_socket): Renamed from
24778         win32_compute_revents_socket.
24779         * lib/select.c: Update comments to mention native Windows.
24780         (windows_poll_handle): Renamed from win32_poll_handle.
24781         * m4/threadlib.m4: Update comments to mention native Windows.
24782         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
24783         --enable-threads=windows instead of --enable-threads=win32. Set
24784         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
24785         * lib/glthread/lock.h: Update comments to mention native Windows.
24786         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
24787         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
24788         USE_WIN32_THREADS.
24789         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
24790         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
24791         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
24792         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
24793         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
24794         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
24795         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
24796         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
24797         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
24798         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
24799         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
24800         * tests/test-tls.c: Likewise.
24801         Rationale:
24802         Microsoft renamed the "Win32 API" to "Windows API", as it is available
24803         on both 32-bit and 64-bit Windows systems.
24804         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
24805         line of distinction is between "native Windows" on one side and Unix/
24806         POSIX systems on the other side. More details in
24807         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
24808         Suggested by Paul Eggert.
24810 2012-01-03  Bruno Haible  <bruno@clisp.org>
24812         isatty: Support for MSVC 9.
24813         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
24814         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
24815         (_isatty_nothrow): New function.
24816         (isatty): Use it instead of _isatty.
24817         (IsConsoleHandle): Add comment, from Paolo Bonzini.
24818         * lib/poll.c (IsConsoleHandle): Likewise.
24819         * lib/select.c (IsConsoleHandle): Likewise.
24820         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
24821         (gl_PREREQ_ISATTY): New macro.
24822         * modules/isatty (Depends-on): Add msvc-inval.
24823         (configure.ac): Invoke gl_PREREQ_ISATTY.
24825 2012-01-03  Jim Meyering  <meyering@redhat.com>
24827         maint.mk: remove temporary transition aid from over 1.5 years ago
24828         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
24829         purpose was to aid in the transition (avoiding silent malfunction)
24830         from that old name to the new _sc_search_regexp.  This shim was
24831         added by commit 219c504b.
24833         init.sh: do not try to accommodate compare arguments starting with "-"
24834         * tests/init.sh (compare_dev_null_): Do not try to accommodate
24835         compare arguments that start with "-".  Besides, we do not worry
24836         about this when invoking diff or cmp; why start now with sed?
24837         Using "--" to separate options from argument would trigger sed
24838         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
24839         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
24841 2012-01-02  Bruno Haible  <bruno@clisp.org>
24843         Enhance tests for module 'isatty'.
24844         * modules/isatty-tests (Depends-on): Add pipe-posix.
24845         * tests/test-isatty.c: Include <fcntl.h>.
24846         (DEV_NULL): New macro.
24847         (main): Test the resut of isatty() also on regular files, pipes, and
24848         /dev/null.
24850         New module 'isatty'.
24851         * lib/unistd.in.h (isatty): New declaration.
24852         * lib/isatty.c: New file, based on an idea of
24853         Bastien Roucariès <roucaries.bastien@gmail.com>.
24854         * m4/isatty.m4: New file.
24855         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
24856         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
24857         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
24858         REPLACE_ISATTY.
24859         * modules/isatty: New file.
24860         * doc/posix-functions/isatty.texi: Mention the new module.
24861         Suggested by Paolo Bonzini.
24863 2012-01-02  Bruno Haible  <bruno@clisp.org>
24865         canonicalize: Tweak 2011-12-29 commit.
24866         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
24867         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
24869 2012-01-02  Jim Meyering  <meyering@redhat.com>
24871         gitlog-to-changelog: describe input syntax in --help output
24872         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
24874         gitlog-to-changelog: fix typo in --help: show backslash before email @
24875         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
24876         in sources, but not in actual output.
24878 2011-12-30  Jim Meyering  <meyering@redhat.com>
24880         gitlog-to-changelog: don't malfunction when name contains %-directive
24881         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
24882         in a name string cause trouble.  E.g., with a user name of "%s",
24883         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
24885 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
24887         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
24888         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
24889         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
24890         the "  (tiny change)" notation that is appended to the standard
24891         ChangeLog "date  name  email" header line.
24893 2012-01-01  Jim Meyering  <meyering@redhat.com>
24895         test-framework-sh: init.sh: fix "make dist" failure
24896         When using gnulib-tool's --with-tests option and any module that
24897         depends on test-framework-sh, "make dist" would fail due to the
24898         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
24899         in the gltests directory, and not in the gllib/ directory.
24900         One way to work around that is to move the EXTRA_DIST += init.sh
24901         from the primary module to the -tests one:
24902         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
24903         * modules/test-framework-sh (Makefile.am): ...not here.
24904         Reported by Tom G. Christensen in
24905         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
24907         version-etc: update copyright year reported by --version
24908         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
24910 2011-12-31  Pádraig Brady  <P@draigBrady.com>
24912         canonicalize: only stat() if required
24913         * lib/canonicalize.c (canonicalize_filename_mode):
24914         Avoid calling l?stat() when both CAN_MISSING,
24915         and CAN_NOLINKS are set, as we neither need
24916         to resolve symlinks or test component existence.
24918 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24920         doc: cover st_ino issues once; add OpenVMS etc.
24921         * doc/posix-functions/stat.texi (stat):
24922         * doc/posix-functions/lstat.texi (lstat):
24923         * doc/posix-functions/fstatat.texi (fstatat):
24924         * doc/posix-functions/fstat.texi (fstat):
24925         Move general 'struct stat' stuff to sys_stat.texi,
24926         leaving behind a pointer.
24927         * doc/posix-headers/sys_stat.texi (sys/stat.h):
24928         Merge duplicate info about 'struct stat' problems into here.
24929         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
24930         and suggest partial workarounds.
24932         same-inode: port to OpenVMS
24933         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
24934         three st_ino values.
24936 2011-12-30  Pádraig Brady  <P@draigBrady.com>
24938         canonicalize: fix references to stat() and lstat()
24939         * lib/canonicalize.c (canonicalize_filename_mode):
24940         Ensure references always resolve to a replacement
24941         function if required (even via a macro).
24943 2011-12-30  Jim Meyering  <meyering@redhat.com>
24945         gitlog-to-changelog: remove a little duplication
24946         * build-aux/gitlog-to-changelog (main): Grep @lines once,
24947         rather than twice.
24949 2011-12-29  Pádraig Brady  <P@draigBrady.com>
24951         canonicalize: add support for not resolving symlinks
24952         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
24953         indicate we don't want to follow symlinks.  Also
24954         provide CAN_MODE_MASK to aid setting these existing
24955         mutually exclusive values.
24956         * lib/canonicalize.c (canonicalize_filename_mode):
24957         Extract the flags from can_mode parameter, which
24958         are currently just used to select between stat()
24959         and lstat().  Also ensure that mutually exclusive
24960         values are flagged immediately as invalid.
24961         * tests/test-canonicalize.c: Verify symlinks are
24962         not followed, and that invalid flag combinations
24963         are diagnosed.
24965 2011-12-25  Jim Meyering  <meyering@redhat.com>
24967         gitlog-to-changelog: do not clump multi-paragraph entries
24968         Identical header lines (date,name,email+coauthors) are suppressed,
24969         thus putting all entries with those same characteristics under
24970         a single header.  However, when a log entry consists of two or
24971         more paragraphs, it may not be clear where it starts and ends.
24972         This change makes it so that such an entry is always separated
24973         from others by a header line, even when that header would
24974         otherwise be suppressed.
24975         * build-aux/gitlog-to-changelog: Implement the above.
24976         Inspired by a related request from Stefano Lattarini in
24977         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
24979 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24981         announce-gen: fix `cmd' typo in diagnostic
24982         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
24983         diagnostic: a missing '$' meant that the command was not output.
24985 2011-12-23  Jim Meyering  <meyering@redhat.com>
24987         test-framework-sh: distribute init.sh
24988         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
24989         Otherwise, "make -C gnulib-tests check" (at least in grep) would
24990         fail due to the lack of init.sh.
24992         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
24993         * modules/atexit-tests: Rather than listing tests/init.sh,
24994         now that there's a module for it, simply depend on that new module.
24995         * modules/closein-tests: Likewise.
24996         * modules/exclude-tests: Likewise.
24997         * modules/getcwd-tests: Likewise.
24998         * modules/perror-tests: Likewise.
24999         * modules/pread-tests: Likewise.
25000         * modules/pwrite-tests: Likewise.
25001         * modules/vc-list-files-tests: Likewise.
25002         * modules/verify-tests: Likewise.
25003         * modules/xalloc-die-tests: Likewise.
25004         * modules/xstrtoimax-tests: Likewise.
25005         * modules/xstrtol-tests: Likewise.
25006         * modules/xstrtoll-tests: Likewise.
25007         * modules/xstrtoumax-tests: Likewise.
25008         * modules/yesno-tests: Likewise.
25010 2011-12-22  Jim Meyering  <meyering@redhat.com>
25012         test-framework-sh: add minimal tests of init.sh's compare function
25013         * modules/test-framework-sh-tests: New file.
25014         * tests/test-init.sh: New file.
25016         test-framework-sh: new module
25017         * modules/test-framework-sh: New file.
25018         * MODULES.html.sh (Support for maintaining and releasing projects):
25019         List it.
25021         init.sh: do not emit simulated diff output to stderr
25022         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
25024 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25026         .gitignore: ignore gnulib.dvi and regex.info
25027         * doc/.gitignore:add gnulib.dvi and regex.info
25029 2011-12-22  Jim Meyering  <meyering@redhat.com>
25031         init.sh: correct previous change
25032         * tests/init.sh (compare): My previous change was wrong.
25033         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
25035         init.sh: avoid unwarranted test failure when using "set -e"
25036         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
25037         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
25038         a use like "compare exp out" would get evoke an unconditional failure.
25040 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
25042         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
25043         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
25044         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
25045         autoreconf that did not.
25046         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
25047         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25049 2011-12-17  Jim Meyering  <meyering@redhat.com>
25051         bootstrap: remove some now-unneeded code
25052         This script arose back when gnulib-tool was young.
25053         Since then, it has seen improvements that render much of this
25054         script unnecessary.  In particular, it can now make symlinks
25055         to the files it uses.  Also, I no longer see as much value in
25056         marking files as read-only via comments.
25057         If you relied on the symlink-creation feature of the preceding
25058         version of this script, you can get most of that functionality
25059         by adding the --symlink option to the definition of
25060         gnulib_tool_option_extras in your bootstrap.conf file.
25061         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
25062         Run autopoint and libtoolize *before* gnulib-tool.
25063         After it, run an abbreviated autoreconf, rather than a loop around
25064         all tools.
25065         (slirp, bt_mark_as_generated): Remove functions.
25067 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25069         ftoastr: fix typo
25070         * lib/ftoastr.h: Fix misspelling in comment.
25072 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
25074         * top/README-release: fix punctuation.
25076 2011-12-17  Jim Meyering  <meyering@redhat.com>
25078         bootstrap: correct the recent buildreq change
25079         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
25080         had no effect.
25081         * build-aux/bootstrap (buildreq): Bracket each search term with
25082         "*...*", so that the shell "case" statement works as intended.
25083         Add comments.
25085 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
25087         build: let bootstrap resort to wget when downloading .po files
25088         * build-aux/bootstrap (download_po_files): Fallback to wget when
25089         downloading the .po files via rsync fails.  This is necessary to
25090         bootstrap from behind a strict firewall.
25092 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25094         stdint: don't assume C++11 when compiling with g++
25095         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
25096         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
25097         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
25098         work also in C++ before C++11, as that improperly inhibits
25099         generating a substitute stdint.h for that case.
25101 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25103         alloca: protect comment from gnulib-tool
25104         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
25105         that gnulib-tool doesn't think it's a license, and munge it to
25106         say "GCC version 3".
25108 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
25110         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
25111         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
25112         $(abs_top_builddir) instead of $(top_builddir).
25114 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
25116         strftime-tests: also test nanoseconds
25117         * tests/test-strftime.c (T): Add a test of %N.
25119 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
25121         inttypes, stdint: add C++11 support
25122         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
25123         when including inttypes.h and stdint.h.  Support this change to
25124         the standard.
25125         * doc/posix-headers/inttypes.texi (inttypes.h):
25126         * doc/posix-headers/stdint.texi (stdint.h): Document this.
25127         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
25128         Define if not defined already, for the benefit of pre-C++11 hosts.
25129         Define the standard format macros (e.g., PRId8) always.
25130         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
25131         Likewise, if __cpluspus.  Define the standard constant and limit
25132         macros (e.g., INT8_C, INT8_MAX) always.
25133         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
25134         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
25135         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
25136         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
25137         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
25138         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
25139         Likewise.
25141 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25143         nonblocking tests: Fix test failure on Linux/PPC.
25144         Suggested by Prerna Saxena in
25145         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
25146         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
25147         Set to 1100000.
25149 2011-12-12  Jim Meyering  <meyering@redhat.com>
25151         argmatch: don't hard-code `' when listing valid option arguments
25152         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
25153         use the quote function to add quotes.  Use fputs rather than
25154         fprintf for the format string with no format directive.
25156 2011-12-07  Eric Blake  <eblake@redhat.com>
25158         bootstrap: detect tools required by gnulib-tool
25159         * build-aux/bootstrap (buildreq): Provide minimum implicit
25160         dependencies.
25161         * DEPENDENCIES: Mention patch as a prereq.
25163 2011-12-04  Bruno Haible  <bruno@clisp.org>
25165         sethostname: Port to Windows platforms.
25166         * lib/sethostname.c: Provide an alternate implementation for Windows
25167         platforms.
25168         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
25169         (main): Skip the test if sethostname() fails with EPERM. On Windows
25170         platforms, don't check the result of gethostname().
25172 2011-12-04  Bruno Haible  <bruno@clisp.org>
25173             Jim Meyering  <meyering@redhat.com>
25175         tests: Avoid spurious error message on platforms without mktemp program.
25176         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
25178 2011-12-04  Bruno Haible  <bruno@clisp.org>
25180         sethostname: Fix documentation.
25181         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
25182         "not fixed" section.
25184 2011-12-03  Bruno Haible  <bruno@clisp.org>
25186         gnulib-tool: Verify that the License field is present and non-empty.
25187         * gnulib-tool (func_get_license_raw): New function, extracted from
25188         func_get_license.
25189         (func_get_license): Use it. Warn if the module is not a test module and
25190         has no license.
25191         Suggested by Jim Meyering.
25193 2011-12-03  Bruno Haible  <bruno@clisp.org>
25195         sethostname tests: Fix link error on mingw.
25196         * tests/test-sethostname1.c: New file, extracted from
25197         tests/test-sethostname.c.
25198         * tests/test-sethostname2.c: New file, extracted from
25199         tests/test-sethostname.c.
25200         * tests/test-sethostname.c: Remove file.
25201         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
25202         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
25203         (Depends-on): Add gethostname.
25204         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
25205         Link the latter with $(GETHOSTNAME_LIB).
25207         sethostname tests: Fix compilation error on mingw.
25208         * tests/test-sethostname.c: Don't include <sys/types.h>.
25209         (geteuid): Use a dummy value without uid_t.
25210         * modules/sethostname-tests (Depends-on): Remove sys_types.
25212         sethostname tests: Avoid a gcc warning.
25213         * tests/test-sethostname.c (main): Remove an unused variable.
25215         Tweak last commit.
25216         * modules/sethostname-tests (Files): Sort by decreasing importance.
25217         (configure.ac): Check for geteuid.
25218         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
25219         the test when there's nothing to test. Drop an unnecessary cast.
25220         Improve an error message. Verify that the final sethostname() call
25221         succeeds.
25223 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25225         Add a test suite for the sethostname module.
25226         * modules/sethostname-tests: New file.  A test program
25227         for the sethostname module.
25228         * tests/test-sethostname.c: Likewise.
25230 2011-12-03  Bruno Haible  <bruno@clisp.org>
25232         Tweak last commit.
25233         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
25234         Fix preprocessor directives indentation. Fix typos.
25235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
25236         * modules/unistd (Makefile): Likewise.
25238 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25240         Integrate the sethostname module into unistd.
25241         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
25242         into the unistd.h header.
25243         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
25244         preprocessor directives.
25245         * modules/unistd: Setup the Makefile substitutions of the
25246         SETHOSTNAME preprocessor directives.
25248 2011-12-03  Bruno Haible  <bruno@clisp.org>
25250         Tweak last commit.
25251         * lib/sethostname.c: Don't include <string.h>.
25252         (sethostname): No need to copy the argument string to the stack. Don't
25253         call clearerr. Preserve errno when fprintf failed.
25254         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
25255         Don't invoke AC_REPLACE_FUNCS.
25256         * modules/sethostname (Link): Remove empty section.
25257         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
25258         failure problem.
25260 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25262         New module 'sethostname'.
25263         * lib/sethostname.c (sethostname): New file.  Provide sethostname
25264         for systems that lack it.
25265         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
25266         sethostname declaration and function.
25267         * modules/sethostname: New file.  Define the sethostname module.
25269 2011-12-03  Bruno Haible  <bruno@clisp.org>
25271         Tweak last commit.
25272         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
25274 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25276         Split the HOST_NAME_MAX detection into a separate m4 macro.
25277         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
25278         macro so it can be used by the pending sethostname module.
25280 2011-12-03  Bruno Haible  <bruno@clisp.org>
25282         Fix module descriptions syntax.
25283         * modules/argv-iter (License): Fix syntax.
25284         * modules/di-set (License): Likewise.
25285         * modules/ino-map (License): Likewise.
25286         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
25288 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
25290         stdalign: port to Clang 3.0
25291         Problem reported by Simon Josefsson in
25292         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
25293         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
25294         which has <stdalign.h> but which does not define alignof.
25295         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
25297 2011-12-01  Eric Blake  <eblake@redhat.com>
25299         mktempd: silence dd usage
25300         * build-aux/mktempd (rand_bytes): Silence dd.
25302 2011-11-30  Simon Josefsson  <simon@josefsson.org>
25304         manywarnings: Don't mention gcc version in docstring.
25305         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
25306         Jim Meyering <meyering@redhat.com>.
25308 2011-11-30  Jim Meyering  <meyering@redhat.com>
25310         hash: mark a few floating point constants with "f" suffix
25311         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
25312         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
25313         floating point constants with "f", since they're destined to be
25314         saved/used as "float"s.
25316 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
25318         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
25319         * tests/test-float.c (test_long_double): Correct and re-enable the
25320         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
25322 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
25324         Avoid subtracting two pointers that don't point into the same block.
25325         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
25326         only pointers into the same memory block are subtracted. We cannot
25327         assume that sizeof (ptrdiff_t) == sizeof (void *).
25329 2011-11-29  Eric Blake  <eblake@redhat.com>
25331         maint.mk: add syntax check for use of compare from init.sh
25332         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
25333         moved here from coreutils.
25335         manywarnings: drop -Wunsuffixed-float-constants
25336         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
25337         '1.0D', which is the only way to silence this warning for 'double'.
25339 2011-11-29  Jim Meyering  <meyering@redhat.com>
25341         hash: mark compute_bucket_size with the pure attribute
25342         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
25344         quotearg, propername: correct pragma guard expression
25345         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
25346         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
25348 2011-11-28  Jim Meyering  <meyering@redhat.com>
25350         propername: do not mark proper_name with the const attribute
25351         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
25352         since it examines data pointed to by its parameter.
25353         * lib/propername.c (proper_name): Instead, add a pragma to suppress
25354         the suggestion from -Wsuggest-attribute=const.
25356         propername: mark one more function as const
25357         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
25359 2011-11-27  Jim Meyering  <meyering@redhat.com>
25361         mark functions with const and pure attributes
25363         Mark functions per suggestions from gcc-4.6 when using these options:
25364         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
25365         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
25366         Follow these guidelines: when possible, apply the attribute to
25367         an extern declaration, not to its definition.  Apply it to the
25368         definition only when the definition is static.
25369         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
25370         * lib/argv-iter.h (argv_iter_n_args): Likewise.
25371         * lib/base64.h (isbase64): Likewise.
25372         * lib/basename-lgpl.c (last_component, base_len): Likewise.
25373         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
25374         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
25375         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
25376         (c_tolower, c_toupper): Likewise.
25377         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
25378         * lib/chdir-long.c (find_non_slash): Likewise.
25379         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
25380         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
25381         * lib/file-type.h (file_type): Likewise.
25382         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
25383         * lib/filevercmp.c (verrevcmp): Likewise.
25384         * lib/freadahead.h (freadahead): Likewise.
25385         * lib/fts.c (fts_maxarglen): Likewise.
25386         * lib/hash-pjw.h (hash_pjw): Likewise.
25387         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
25388         * lib/hash.c (is_prime, next_prime): Likewise.
25389         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
25390         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
25391         (hash_table_ok, hash_get_first, hash_string): Likewise.
25392         (compute_bucket_size): Likewise.
25393         * lib/i-ring.h (i_ring_empty): Likewise.
25394         * lib/isnan.c (isnanl): Likewise.
25395         * lib/math.h (isnanl, rpl_isnanl): Likewise.
25396         * lib/memcasecmp.h (memcasecmp): Likewise.
25397         * lib/memchr2.h (memchr2): Likewise.
25398         * lib/memcmp2.h (memcmp2): Likewise.
25399         * lib/parse-datetime.y (lookup_zone): Likewise.
25400         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
25401         [!WINDOWS_SOCKETS]: Likewise.
25402         * lib/strnlen1.h (strnlen1): Likewise.
25403         * lib/uniwidth.in.h (uc_width): Likewise.
25404         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
25405         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
25406         (quoting_options_from_style): Add a comment.
25407         * lib/propername.h (proper_name): Add a comment.
25409 2011-11-27  Bruno Haible  <bruno@clisp.org>
25411         Remove unused macros from !_LIBC code in glibc-borrowed files.
25412         * lib/fnmatch.c (STRCOLL): Remove macro.
25413         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
25414         * lib/glob.c (__stat, __readdir64): Remove macros.
25415         * lib/tempname.c (__open64, __xstat64): Remove macros.
25416         Suggested by Paul Eggert.
25418 2011-11-27  Bruno Haible  <bruno@clisp.org>
25420         getcwd: Fix link error on MSVC 9.
25421         * modules/getcwd (Depends-on): Add readdir, rewinddir.
25423 2011-11-27  Bruno Haible  <bruno@clisp.org>
25425         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
25426         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
25427         HAVE_OPENDIR is 0.
25428         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
25429         HAVE_CLOSEDIR is 0.
25430         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
25431         is 0.
25432         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
25434 2011-11-27  Bruno Haible  <bruno@clisp.org>
25436         getcwd: Fix bug from 2011-08-17.
25437         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
25438         platforms that need it.
25439         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
25440         code of 4 to be a failure, not a success. This ensures that
25441         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
25443 2011-11-27  Bruno Haible  <bruno@clisp.org>
25445         binary-io tests: Avoid test failure on mingw when libtool is used.
25446         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
25447         Don't verify the size of t-bin-out1.tmp here.
25448         * tests/test-binary-io.sh: Verify it here.
25449         Reported by Simon Josefsson.
25451 2011-11-26  Bruno Haible  <bruno@clisp.org>
25453         Fix conflict between two instantiations of module 'unistd'.
25454         * gnulib-tool (func_emit_autoconf_snippet): Substitute
25455         ${include_guard_prefix} also in the autoconf snippet.
25456         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
25457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
25458         GNULIB_UNISTD_H_GETOPT.
25459         * modules/getopt-posix (configure.ac): Set the
25460         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
25461         * modules/getopt-gnu (configure.ac): Likewise.
25462         * modules/unistd (Makefile.am): Change the substitution value of
25463         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
25464         Reported by Simon Josefsson.
25466 2011-11-25  Bruno Haible  <bruno@clisp.org>
25468         pagealign_alloc: Doc and comments.
25469         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
25470         module.
25471         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
25473 2011-11-25  Jim Meyering  <meyering@redhat.com>
25475         test-update-copyright.sh: avoid false-positive failure
25476         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
25477         around false positive failure on Cygwin/Windows.  The latter was
25478         matching erroneously-created files with names like
25479         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
25481 2011-11-25  Simon Josefsson  <simon@josefsson.org>
25483         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
25484         * m4/valgrind-tests.m4: Check that the parameters that will be
25485         used works, not just a subset of them.  Reported by Bruno Haible
25486         <bruno@clisp.org>.
25488 2011-11-24  Jim Meyering  <meyering@redhat.com>
25490         test-stdalign.c: comment out long double tests
25491         * tests/test-stdalign.c: Don't try to reduce alignment of long double
25492         variables.  That provokes errors like this from gcc-4.7.0 20111124:
25493         error: '_Alignas' specifiers cannot reduce alignment of \
25494         'static_longdouble_alignas'.
25496 2011-11-22  Jim Meyering  <meyering@redhat.com>
25498         init.sh: make "compare /dev/null FILE" output more readable
25499         * tests/init.sh (compare_): Document the preferred order of arguments.
25500         (emit_diff_u_header_): New function.
25501         (compare_dev_null_): Emit a simulated diff, rather than just the
25502         contents of the unexpected file.  Suggestion from Bruno Haible.
25504 2011-11-21  Jim Meyering  <meyering@redhat.com>
25505             Eric Blake  <eblake@redhat.com>
25507         init.sh: work around OSF/1 5.1's mishandling of /dev/null
25508         * tests/init.sh: Make our compare function slightly more portable.
25509         Reported by Bruno Haible in
25510         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
25512 2011-11-21  Simon Josefsson  <simon@josefsson.org>
25514         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
25515         before using it, in code that ends up in config.h.
25517 2011-11-20  Bruno Haible  <bruno@clisp.org>
25519         getcwd: Work around getcwd bug on AIX 5..7.
25520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
25521         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
25522         Use a different value for gl_cv_func_getcwd_path_max. Move the
25523         definition of HAVE_PARTLY_WORKING_GETCWD from here...
25524         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
25525         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
25526         Define HAVE_MINIMALLY_WORKING_GETCWD.
25527         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
25528         where it is not even minimally working, that is, on AIX.
25529         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
25530         m4/getcwd-path-max.m4.
25531         (main): Update exit code computation.
25532         * doc/posix-functions/getcwd.texi: Mention list of platforms where
25533         getcwd does not handle long file names.
25535 2011-11-20  Bruno Haible  <bruno@clisp.org>
25537         getcwd: Fix bug from 2009-09-10.
25538         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
25539         like "no".
25541 2011-11-20  Simon Josefsson  <simon@josefsson.org>
25543         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
25545 2011-11-20  Bruno Haible  <bruno@clisp.org>
25547         fma tests: Avoid shadowing local variables.
25548         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
25549         expected.
25551 2011-11-20  Bruno Haible  <bruno@clisp.org>
25553         copysignf tests: Fix.
25554         * tests/test-copysignf.c: Fix signature check.
25556 2011-11-20  Bruno Haible  <bruno@clisp.org>
25558         fma: Remove unused code.
25559         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
25560         unused macros.
25562 2011-11-20  Bruno Haible  <bruno@clisp.org>
25564         sethostname: Fix doc about AIX.
25565         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
25566         sethostname; it has it.
25568         sethostname: Mention more portability problems.
25569         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
25570         problem.
25571         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25573 2011-11-19  Bruno Haible  <bruno@clisp.org>
25575         Depend on module fcntl-h when AT_FDCWD is used.
25576         * modules/utimens (Depends-on): Add fcntl-h.
25577         * modules/areadlinkat (Depends-on): Likewise.
25578         * modules/areadlinkat-with-size (Depends-on): Likewise.
25579         * modules/faccessat (Depends-on): Likewise.
25580         * modules/fchmodat (Depends-on): Likewise.
25581         * modules/fchownat (Depends-on): Likewise.
25582         * modules/getcwd (Depends-on): Likewise.
25583         * modules/mkdirat (Depends-on): Likewise.
25584         * modules/mkfifoat (Depends-on): Likewise.
25585         * modules/readlinkat (Depends-on): Likewise.
25586         * modules/symlinkat (Depends-on): Likewise.
25587         * modules/dup2-tests (Depends-on): Likewise.
25588         * modules/fdutimensat-tests (Depends-on): Likewise.
25589         * modules/futimens-tests (Depends-on): Likewise.
25591 2011-11-19  Bruno Haible  <bruno@clisp.org>
25593         euidaccess: Update a comment.
25594         * lib/euidaccess.c: Update comment about platforms with faccessat.
25596 2011-11-19  Bruno Haible  <bruno@clisp.org>
25598         openat: Fix file list.
25599         * modules/openat (Files): Remove lib/at-func.c.
25601 2011-11-19  Bruno Haible  <bruno@clisp.org>
25603         fstatat: Simplify.
25604         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
25605         gnulib should define rpl_fstatat, there is a
25606         "#define fstatat rpl_fstatat" in <sys/stat.h>.
25608 2011-11-19  Bruno Haible  <bruno@clisp.org>
25610         Ensure 'inline' can be used in tests/test-utimens-common.h.
25611         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
25612         * modules/futimens-tests (configure.ac): Likewise.
25613         * modules/utimens-tests (configure.ac): Likewise.
25614         * modules/utimensat-tests (configure.ac): Likewise.
25616 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25618         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
25619         not hash_insert0.
25620         (hash_insert_if_absent): Doc fix.
25622 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25624         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
25626 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25628         test-getcwd: disambiguate exit status
25629         * tests/test-getcwd.c (test_long_name): Return 0..7.
25630         (main): Exit with an unambiguous exit status.  The old
25631         code yielded a mysterious mixture of two failure codes.
25633         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
25634         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
25635         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
25636         rpl_fstatat or fstatat.  This should fix the other problem
25637         reported by Kai Habel in
25638         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25639         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
25640         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
25641         and I reproduced it on a Solaris 8 host we still have in production.
25643 2011-11-18  Jim Meyering  <meyering@redhat.com>
25645         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
25646         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
25647         Add a sentence to the comment.
25648         (hash_insert0): New function that simply calls hash_insert_if_absent.
25649         * lib/hash.h (hash_insert_if_absent): Declare it.
25650         (hash_insert0): Add deprecation attribute.
25651         (_GL_ATTRIBUTE_DEPRECATED): Define.
25652         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
25653         not hash_insert0.
25654         * NEWS: Mention it, even though it's not really an incompatible change.
25656 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
25658         openat: avoid compilation failure due to lack of <errno.h> inclusion
25659         * lib/openat.c: Include <errno.h>.
25661 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25663         * modules/getcwd (Depends-on): Add fdopendir.
25664         This fixes one of the two problems reported by Kai Habel in
25665         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25667         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
25668         stdalign problem reported by Ian Beckwith in
25669         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
25670         * modules/crypto/gc-arcfour (Depends-on):
25671         Depend conditionally on crypto/arcfour.
25672         * modules/crypto/gc-arctwo (Depends-on):
25673         Depend conditionally on crypto/arctwo.
25674         * modules/crypto/gc-des (Depends-on):
25675         Depend conditionally on crypto/des.
25676         * modules/crypto/gc-hmac-md5 (Depends-on):
25677         Depend conditionally on crypto/hmac-md5.
25678         * modules/crypto/gc-hmac-sha1 (Depends-on):
25679         Depend conditionally on crypto/hmac-sha1.
25680         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
25681         * modules/crypto/gc-md4 (Depends-on):
25682         Depend conditionally on crypto/md4.
25683         * modules/crypto/gc-md5 (Depends-on):
25684         Depend conditionally on crypto/md5.
25685         * modules/crypto/gc-rijndael (Depends-on):
25686         Depend conditionally on crypto/rijndael.
25687         * modules/crypto/gc-sha1 (Depends-on):
25688         Depend conditionally on crypto/sha1.
25689         * modules/crypto/gc-arcfour:
25690         * modules/crypto/gc-arctwo:
25691         * modules/crypto/gc-des:
25692         * modules/crypto/gc-hmac-md5:
25693         * modules/crypto/gc-hmac-sha1:
25694         * modules/crypto/gc-md2:
25695         * modules/crypto/gc-md4:
25696         * modules/crypto/gc-md5:
25697         * modules/crypto/gc-rijndael:
25698         * modules/crypto/gc-sha1:
25699         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
25700         now that the conditional dependencies do the work for us.
25702 2011-11-17  Jim Meyering  <meyering@redhat.com>
25704         tests: factor st_ctime-comparison out of two headers
25705         * tests/test-utimens-common.h (ctime_compare): Define.
25706         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
25707         * tests/test-lutimens.h (test_lutimens): Likewise.
25708         * tests/test-utimens.h (test_utimens): Likewise.
25710         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
25711         Invoke the test program via an init.sh-using wrapper.
25712         * tests/test-getcwd.sh: New file.
25713         * modules/getcwd-tests (Files): Add it.
25714         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
25716 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
25718         gitlog-to-changelog: support multi-author commits.
25719         The FSF cares about keeping track of all authors of patches to its
25720         projects, but Git doesn't provide obvious support for multi-author
25721         changesets. Consensus seems to be forming around the use of extra
25722         Signed-off-by inspired lines in the log message formatted as
25723         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
25724         multi-author commits between version control systems.
25725         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
25726         log message and output in standard ChangeLog multi-author format.
25727         Reported by Peter Rosin <peda@lysator.liu.se>
25729 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25730             Bruno Haible  <bruno@clisp.org>
25732         Fix some modules' file list.
25733         * modules/fstatat (Files): Add m4/lstat.m4.
25734         * modules/openat (Files): Likewise.
25735         * modules/unlinkat (Files): Likewise.
25737 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
25739         maint.mk: fix tight-scope.mk generation in VPATH builds.
25740         * top/maint.mk (tight-scope.mk): Make sure to prefix file
25741         reference with $(srcdir) so that the file is found correctly even
25742         when running `make syntax-check' in a VPATH build.
25744 2011-11-13  Bruno Haible  <bruno@clisp.org>
25745             Jim Meyering  <meyering@redhat.com>
25747         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
25748         * tests/init.sh (compare): Remove "No differences encountered" or
25749         synonymous output from the 'diff' program.
25751 2011-11-13  Bruno Haible  <bruno@clisp.org>
25753         Makefile: Tweak indentation.
25754         * Makefile: Use tab as first character in every line that contains rule
25755         commands.
25757 2011-11-13  Bruno Haible  <bruno@clisp.org>
25759         Syntax check for copyright statements.
25760         * check-copyright: New file.
25761         * Makefile (sc_check_copyright): New rule.
25763 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25765         * build-aux/git-version-gen: Add --prefix to configure the tag
25766         match string.
25768 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25770         * build-aux/git-version-gen: Add --help and --version.
25772 2011-11-12  Jim Meyering  <meyering@redhat.com>
25774         revamp the other test-exclude?.sh scripts to use init.sh, too
25775         * tests/test-exclude1.sh: Use init.sh.
25776         * tests/test-exclude2.sh: Likewise.
25777         * tests/test-exclude3.sh: Likewise.
25778         * tests/test-exclude4.sh: Likewise.
25779         * tests/test-exclude5.sh: Likewise.
25780         * tests/test-exclude6.sh: Likewise.
25781         * tests/test-exclude7.sh: Likewise.
25782         * tests/test-exclude8.sh: Likewise.
25783         * modules/exclude-tests (Files): List init.sh.
25785         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
25786         These shell scripts ignored failure of the binary test-exclude,
25787         so making the latter return 77 didn't cause them to be skipped.
25788         * tests/test-exclude5.sh: Exit with test-exclude's error status
25789         when that program fails.  Revamp to use init.sh.
25790         * tests/test-exclude2.sh: Likewise.
25792         test-exclude: fix a typo
25793         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
25795 2011-11-11  Bruno Haible  <bruno@clisp.org>
25797         obstack: Fix compilation error on MSVC 9.
25798         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
25800 2011-11-11  Jim Meyering  <meyering@redhat.com>
25802         test-exclude: skip tests rather than failing on deficient systems
25803         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
25804         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
25805         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
25806         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
25808 2011-11-10  Bruno Haible  <bruno@clisp.org>
25810         ptsname_r test: Avoid gcc warning on glibc systems.
25811         * tests/test-ptsname_r.c (null_ptr): New function.
25812         (test_errors): Use it.
25814 2011-11-10  Bruno Haible  <bruno@clisp.org>
25816         ptsname_r: Avoid compilation error on OSF/1 5.1.
25817         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
25818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
25819         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
25820         function is not declared or incompatibly declared.
25821         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
25822         * modules/ptsname_r (Depends-on, configure.ac): Update.
25823         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
25825 2011-11-10  Bruno Haible  <bruno@clisp.org>
25827         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
25828         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
25829         When cross-compiling, guess yes on all platforms except AIX.
25830         Reported by Ludovic Courtès <ludo@gnu.org>.
25832 2011-11-09  Bruno Haible  <bruno@clisp.org>
25834         ptsname_r tests: Fix bugs.
25835         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
25836         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
25838 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25840         fstatat: work with cross-compilation
25841         Problem reported by Ludovic Courtès in
25842         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
25843         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
25844         "cross-compiling" and assume the bug is present.  Replace
25845         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
25846         an inverted sense, to be more conservative about our assumptions.
25847         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
25849 2011-11-09  Bruno Haible  <bruno@clisp.org>
25851         Improve MODULES.html output.
25852         * modules/mkfifoat (Description): Use the word "function".
25853         * modules/readlinkat (Description): Likewise.
25854         * modules/symlinkat (Description): Likewise.
25856 2011-11-09  Eric Blake  <eblake@redhat.com>
25858         ptsname_r-tests: new test module
25859         * modules/ptsname_r-tests: New module.
25860         * tests/test-ptsname_r.c: New file.
25862         ptsname_r: new module
25863         * modules/ptsname_r: New module.
25864         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
25865         * lib/ptsname.c (__ptsname_r): Split...
25866         * lib/ptsname_r.c: ...into new file.
25867         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
25868         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
25869         * modules/stdlib (Makefile.am): Substitute witnesses.
25870         * lib/stdlib.in.h (ptsname_r): Declare it.
25871         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
25872         * MODULES.html.sh (Misc): Likewise.
25873         * modules/ptsname (Depends-on): Alter dependency.
25874         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
25876 2011-11-09  Jim Meyering  <meyering@redhat.com>
25878         announce-gen: be more concise when there's only one URL+tarball
25879         * build-aux/announce-gen (get_tool_versions): When you distribute
25880         only one type of tarball, combine the first two "Here are..."
25881         sections and make the key-checking grammar independent of
25882         how many tarballs there are.
25884 2011-11-09  Eric Blake  <eblake@redhat.com>
25886         openpty: provide a stub on mingw
25887         * lib/pty.in.h (includes): Provide forward declarations.
25888         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
25890         raise: fix mingw handling of SIGPIPE
25891         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
25893 2011-11-08  Bruno Haible  <bruno@clisp.org>
25895         More conditional dependencies.
25896         * modules/faccessat (Depends-on): Add conditions.
25897         * modules/fchmodat (Depends-on): Likewise.
25898         * modules/fchownat (Depends-on): Likewise.
25899         * modules/fstatat (Depends-on): Likewise.
25900         * modules/mkfifoat (Depends-on): Likewise.
25901         * modules/readlinkat (Depends-on): Likewise.
25902         * modules/symlinkat (Depends-on): Likewise.
25903         * modules/unlinkat (Depends-on): Likewise.
25904         * modules/utimensat (Depends-on): Likewise.
25905         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
25906         * modules/linkat (Depends-on): Refine the conditions.
25907         * modules/renameat (Depends-on): Likewise.
25909 2011-11-08  Bruno Haible  <bruno@clisp.org>
25911         faccessat: Move AC_LIBOBJ invocation to module description.
25912         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
25913         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
25914         invocation from here...
25915         * modules/faccessat (configure.ac): ... to here. Invoke
25916         gl_PREREQ_FACCESSAT.
25918 2011-11-08  Bruno Haible  <bruno@clisp.org>
25920         faccessat: Simplify autoconf macro.
25921         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
25922         gl_FUNC_EUIDACCESS.
25924 2011-11-08  Bruno Haible  <bruno@clisp.org>
25926         renameat: Fix dependencies.
25927         * modules/renameat (Depends-on): Add stdbool.
25929 2011-11-08  Bruno Haible  <bruno@clisp.org>
25931         mkfifoat: Fix module description.
25932         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
25933         not gl_UNISTD_MODULE_INDICATOR.
25935 2011-11-08  Bruno Haible  <bruno@clisp.org>
25937         fstatat: Remove unused dependency.
25938         * modules/fstatat (Depends-on): Remove fstat.
25940 2011-11-08  Simon Josefsson  <simon@josefsson.org>
25942         GNUmakefile: behave when Makefile is missing.
25943         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
25945 2011-11-08  Bruno Haible  <bruno@clisp.org>
25947         openat: Conditionalize dependencies.
25948         * lib/openat.c: Reduce the scope of some #includes.
25949         * modules/openat (Depends-on): Add conditions.
25951 2011-11-07  Jim Meyering  <meyering@redhat.com>
25953         maint.mk: extract GPG key ID without using a temporary file
25954         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
25955         without using a temporary file.  Based on a suggestion from Werner Koch
25956         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
25958 2011-11-07  Eric Blake  <eblake@redhat.com>
25960         grantpt: fix typo
25961         * lib/stdlib.in.h (grantpt): Check correct function.
25963         maint.mk: silence new syntax check
25964         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
25966 2011-11-06  Bruno Haible  <bruno@clisp.org>
25968         Doc about floating-point and math API.
25969         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
25970         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
25972 2011-11-06  Bruno Haible  <bruno@clisp.org>
25974         stdalign tests: Skip the test when compiled by Sun C.
25975         * tests/test-stdalign.c (main): Skip the test on Sun C.
25977 2011-11-06  Bruno Haible  <bruno@clisp.org>
25979         ansi-c++-opt: Complete the 2011-06-05 change.
25980         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
25981         does not support namespaces, set the variable to "no", not to ":".
25983 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25985         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
25987 2011-11-06  Bruno Haible  <bruno@clisp.org>
25989         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
25990         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
25991         (minus_zerol) [HP-UX]: New macro.
25992         (unary_minus) [HP-UX]: New function.
25993         (copysignl) [HP-UX]: Use unary_minus function.
25995 2011-11-06  Bruno Haible  <bruno@clisp.org>
25997         ldexp, ldexpf, ldexpl: Enhance tests.
25998         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
25999         and tests/test-ldexpl.c.
26000         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
26001         LDEXP, MIN_EXP, MAX_EXP): New macros.
26002         Include test-ldexp.h.
26003         (main): Just call test_function.
26004         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
26005         infinity.h, nan.h.
26006         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26007         MAX_EXP): New macros.
26008         Include test-ldexp.h.
26009         (x, y): Remove variables.
26010         (main): Just call test_function.
26011         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
26012         infinity.h, nan.h.
26013         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26014         MAX_EXP): New macros.
26015         Include test-ldexp.h.
26016         (x, y): Remove variables.
26017         (main): Just call test_function.
26018         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
26019         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
26020         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26021         (Depends-on): Add isnand-nolibm, signbit, float.
26022         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
26023         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26024         (Depends-on): Add isnanf-nolibm, signbit, float.
26026 2011-11-06  Bruno Haible  <bruno@clisp.org>
26028         math tests: Cosmetics.
26029         * tests/test-math-c++.cc: Reorder declarations.
26031 2011-11-05  Bruno Haible  <bruno@clisp.org>
26033         fma*: Simplify test.
26034         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
26035         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
26037         Tests for module 'fmal'.
26038         * modules/fmal-tests: New file.
26039         * tests/test-fmal1.c: New file.
26040         * tests/test-fmal2.c: New file.
26042         New module 'fmal'.
26043         * lib/math.in.h (fmal): New declaration.
26044         * lib/fmal.c: New file.
26045         * m4/fmal.m4: New file.
26046         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
26047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
26048         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
26049         REPLACE_FMAL.
26050         * modules/fmal: New file.
26051         * doc/posix-functions/fmal.texi: Mention the new module and the various
26052         bugs.
26054         Tests for module 'fmaf'.
26055         * modules/fmaf-tests: New file.
26056         * tests/test-fmaf1.c: New file.
26057         * tests/test-fmaf2.c: New file.
26059         New module 'fmaf'.
26060         * lib/math.in.h (fmaf): New declaration.
26061         * lib/fmaf.c: New file.
26062         * m4/fmaf.m4: New file.
26063         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
26064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
26065         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
26066         REPLACE_FMAF.
26067         * modules/fmaf: New file.
26068         * doc/posix-functions/fmaf.texi: Mention the new module and the various
26069         bugs.
26071         Tests for module 'fma'.
26072         * modules/fma-tests: New file.
26073         * tests/test-fma1.c: New file.
26074         * tests/test-fma1.h: New file.
26075         * tests/test-fma2.c: New file.
26076         * tests/test-fma2.h: New file.
26078         New module 'fma'.
26079         * lib/math.in.h (fma): New declaration.
26080         * lib/fma.c: New file.
26081         * m4/fma.m4: New file.
26082         * m4/fegetround.m4: New file.
26083         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
26084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
26085         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
26086         REPLACE_FMA.
26087         * modules/fma: New file.
26088         * doc/posix-functions/fma.texi: Mention the new module and the various
26089         bugs.
26091         Extend gl_MATHFUNC.
26092         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
26093         Support 'void' as argument type.
26094         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
26096 2011-11-05  Jim Meyering  <meyering@redhat.com>
26098         maint.mk: also prohibit inclusion of dirent.h without use
26099         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
26101 2011-11-05  Bruno Haible  <bruno@clisp.org>
26103         ldexpl tests: Avoid test failure on MSVC 9.
26104         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
26105         value. Needed in order to enforce the conversion from a value greater
26106         than LDBL_MAX to Infinity.
26108 2011-11-05  Bruno Haible  <bruno@clisp.org>
26110         New modules 'at-internal', 'openat-h', split off from module 'openat'.
26111         * modules/at-internal: New file, extracted from modules/openat.
26112         * modules/openat-h: New file.
26113         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
26114         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
26115         * modules/openat (Description): Add reference to POSIX function.
26116         (Files): Remove lib/openat.h, lib/openat-proc.c.
26117         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
26118         intprops, unistd.
26119         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
26120         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
26121         gl_FCNTL_MODULE_INDICATOR.
26122         (Include): Remove unistd.h, openat.h.
26123         * modules/areadlinkat (Files): Add lib/at-func.c.
26124         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26125         openat-die, openat-h, save-cwd.
26126         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
26127         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26128         openat-die, openat-h, save-cwd, unistd.
26129         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
26130         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26131         openat-h, save-cwd. Remove fcntl-h, openat.
26132         * modules/fchmodat (Files): Remove lib/openat.h.
26133         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26134         openat, stdbool, unistd.
26135         * modules/fchownat (Files): Remove lib/openat.h.
26136         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26137         openat, stdbool, sys_stat.
26138         * modules/fdopendir (Files): Remove lib/openat-priv.h,
26139         lib/openat-proc.c.
26140         (Depends-on): Add at-internal.
26141         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
26142         * modules/fstatat (Files): Remove lib/openat.h.
26143         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26144         stdbool, unistd.
26145         * modules/fts (Depends-on): Add openat-h.
26146         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
26147         openat.
26148         * modules/mkdirat (Files): Remove lib/openat.h.
26149         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26150         openat, stdbool, sys_stat.
26151         * modules/mkfifoat (Files): Add lib/at-func.c.
26152         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26153         openat-h, save-cwd. Remove fcntl-h, openat.
26154         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
26155         * modules/readlinkat (Files): Add lib/at-func.c.
26156         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26157         openat-h, save-cwd. Remove fcntl-h, openat.
26158         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
26159         openat.
26160         * modules/selinux-at (Files): Add lib/at-func.c.
26161         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26162         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
26163         * modules/symlinkat (Files): Add lib/at-func.c.
26164         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26165         openat-h, save-cwd. Remove fcntl-h, openat.
26166         * modules/unlinkat (Files): Remove lib/openat.h.
26167         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26168         stdbool.
26169         * modules/utimensat (Files): Add lib/at-func.c.
26170         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
26171         openat-die, openat-h, save-cwd.
26172         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
26173         * modules/fdutimensat-tests (Depends-on): Add openat.
26174         * modules/fstatat-tests (Depends-on): Add openat-h.
26175         * modules/readlinkat-tests (Depends-on): Add openat.
26176         * modules/symlinkat-tests (Depends-on): Add openat.
26178 2011-11-05  Bruno Haible  <bruno@clisp.org>
26180         openat: Include <stdbool.h>.
26181         * lib/openat.c: Include <stdbool.h>.
26183 2011-11-04  Bruno Haible  <bruno@clisp.org>
26185         fchownat, renameat, unlinkat: Fix dependencies.
26186         * modules/fchownat (Depends-on): Add fstatat.
26187         * modules/renameat (Depends-on): Likewise.
26188         * modules/unlinkat (Depends-on): Likewise.
26190 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26192         openat: remove direct dependency on dirent
26193         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
26194         and hasn't been needed ever since fdopendir was split into its own
26195         module on 2009-08-31.
26196         * modules/openat (Depends-on): Remove dirent.
26198 2011-11-04  Bruno Haible  <bruno@clisp.org>
26200         renameat: Optimize code size.
26201         * modules/renameat (configure.ac): Don't compile at-func2.c if
26202         REPLACE_RENAMEAT is 1.
26204 2011-11-04  Bruno Haible  <bruno@clisp.org>
26206         openat tests: Fix file list.
26207         * modules/openat-tests (Files): Add tests/test-open.h.
26209 2011-11-04  Bruno Haible  <bruno@clisp.org>
26211         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
26212         * modules/fchmodat (Depends-on): Add openat-die.
26213         * modules/fchownat (Depends-on): Likewise.
26214         * modules/linkat (Depends-on): Likewise.
26215         * modules/renameat (Depends-on): Likewise.
26216         * modules/openat (Depends-on): Add dirent.
26218 2011-11-04  Jim Meyering  <meyering@redhat.com>
26220         at-func*.c: fix comments
26221         * lib/at-func2.c: Correct/improve first-line comment.
26222         * lib/at-func.c: Correct grammar in first-line comment.
26224 2011-11-04  Bruno Haible  <bruno@clisp.org>
26226         New module 'mkdirat', split off from module 'openat'.
26227         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
26228         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
26229         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
26230         * modules/mkdirat: New file, extracted from modules/openat.
26231         * modules/openat (Files): Remove lib/mkdirat.c.
26232         (Depends-on): Remove mkdir.
26233         (configure.ac): Remove AC_LIBOBJ of mkdirat.
26234         (Include): Remove <sys/stat.h>.
26235         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
26236         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
26237         tests/test-mkdir.h.
26238         (Depends-on): Remove ignore-value.
26239         (Makefile.am): Remove rules for test-mkdirat.
26240         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
26241         of module 'openat'.
26242         * NEWS: Mention the change.
26244 2011-11-04  Bruno Haible  <bruno@clisp.org>
26246         closedir: Avoid warning on mingw.
26247         * lib/closedir.c: Include <unistd.h>.
26249 2011-11-04  Bruno Haible  <bruno@clisp.org>
26251         New module 'fstatat', split off from module 'openat'.
26252         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
26253         defined.
26254         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
26255         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
26256         gl_FUNC_FSTATAT.
26257         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
26258         * modules/fstatat: New file, extracted from modules/openat.
26259         * modules/openat (Files): Remove lib/fstatat.c.
26260         (Depends-on): Remove lstat.
26261         (configure.ac): Remove AC_LIBOBJ of fstatat.
26262         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
26263         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
26264         tests/test-lstat.h, tests/test-stat.h.
26265         (Depends-on): Remove getcwd-lgpl.
26266         (Makefile.am): Remove rules for test-fstatat.
26267         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
26268         of module 'openat'.
26269         * NEWS: Mention the change.
26270         * modules/getcwd (Depends-on): Add fstatat.
26271         * modules/linkat (Depends-on): Likewise.
26272         * modules/mkfifoat-tests (Depends-on): Likewise.
26273         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
26275 2011-11-03  Bruno Haible  <bruno@clisp.org>
26277         New module 'unlinkat', split off from module 'openat'.
26278         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
26279         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
26280         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
26281         * modules/unlinkat: New file, extracted from modules/openat. Correct
26282         the dependency conditions.
26283         * modules/openat (Files): Remove lib/unlinkat.c.
26284         (Depends-on): Remove rmdir, unlink.
26285         (configure.ac): Remove AC_LIBOBJ of unlinkat.
26286         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
26287         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
26288         tests/test-rmdir.h, tests/test-unlink.h.
26289         (Depends-on): Remove unlinkdir.
26290         (Makefile.am): Remove rules for test-unlinkat.
26291         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
26292         of module 'openat'.
26293         * NEWS: Mention the change.
26294         * modules/linkat-tests (Depends-on): Add unlinkat.
26295         * modules/mkfifoat-tests (Depends-on): Likewise.
26296         * modules/readlinkat-tests (Depends-on): Likewise.
26298 2011-11-02  Bruno Haible  <bruno@clisp.org>
26300         New module 'fchmodat', split off from module 'openat'.
26301         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
26302         defined.
26303         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
26304         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
26305         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
26306         * modules/fchmodat: New file, extracted from modules/openat.
26307         * modules/openat (Files): Remove lib/fchmodat.c.
26308         (configure.ac): Remove AC_LIBOBJ of fchmodat.
26309         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
26310         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
26311         (Makefile.am): Remove rules for test-fchmodat.
26312         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
26313         of module 'openat'.
26314         * NEWS: Mention the change.
26316 2011-11-02  Jim Meyering  <meyering@redhat.com>
26318         putenv: indent #definition of "environ" to placate cppi
26319         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
26321         gitlog-to-changelog: provide a ChangeLog-repair mechanism
26322         Git logs are often treated as immutable, because editing them
26323         changes the SHA1 checksums of all descendants.  Thus, errors in
26324         git logs tend to stay there forever.  However, when we generate
26325         a ChangeLog file -- typically for distribution -- from that git log,
26326         we can actually make corrections in the generated file.  The key
26327         lies in recording in machine-readable/applicable form the desired
26328         corrections.  See --help for description and an example.
26329         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
26330         (usage): Describe it; alphabetize option descriptions.
26331         (main): Honor the new option, carefully.
26333 2011-11-01  Jim Meyering  <meyering@redhat.com>
26335         gitlog-to-changelog: avoid an infloop
26336         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
26337         that ends up being empty.
26339 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26341         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
26342         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
26343         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
26344         contains (possibly-quoted) backslashes.  This should avoid
26345         all-too-common shell bugs if COMPLICATED contains backslashes in
26346         the "wrong" places.  Reported by David Evans in
26347         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
26348         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
26349         because we want ASCII ranges.  Is there some reason we don't use
26350         the C locale everywhere in this script?
26351         (func_module, top level): Avoid unwanted pathname expansion when
26352         $repo_url_prefix or $repo_url_suffix_repl contain shell
26353         metacharacters like '?' and '*'.
26355 2011-11-01  Bruno Haible  <bruno@clisp.org>
26357         fchownat: Improve description.
26358         * modules/fchownat (Description): Add link to function.
26360 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26362         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
26363         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
26364         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
26365         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
26367 2011-11-01  Bruno Haible  <bruno@clisp.org>
26369         alignof: Avoid collision with stdalign module.
26370         * lib/alignof.h (alignof): Remove macro.
26371         * NEWS: Mention the change.
26372         Reported by Paul Eggert.
26374 2011-11-01  Bruno Haible  <bruno@clisp.org>
26376         New module 'fchownat', split off from module 'openat'.
26377         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
26378         defined.
26379         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
26380         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
26381         invoke gl_FUNC_FCHOWNAT.
26382         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
26383         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
26384         * modules/fchownat: New file, extracted from modules/openat.
26385         * modules/openat (Files): Remove lib/fchownat.c.
26386         (Depends-on): Remove lchown.
26387         (configure.ac): Remove AC_LIBOBJ of fchownat.
26388         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
26389         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
26390         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
26391         (Depends-on): Remove mgetgroups, usleep, stat-time.
26392         (configure.ac): Remove test for getegid.
26393         (Makefile.am): Remove rules for test-fchownat.
26394         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
26395         of module 'openat'.
26396         * NEWS: Mention the change.
26398 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26400         stdalign: port better to MSVC and to Sun C 5.11
26401         This fixes some of the problems reported by Bruno Haible in
26402         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
26403         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
26404         shortcomings of MSVC and of Sun C 5.11.
26405         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
26406         around __declspec arg.
26407         * modules/stdalign-tests (Files): Add tests/macros.h.
26408         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
26409         Include macros.h, for ASSERT.
26410         (DECLARE_ALIGNED): Remove.
26411         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
26412         to catch bug), and to 1 if not (simplifies the rest of the code).
26413         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
26414         (CHECK_AUTO): Remove.
26415         (CHECK_ALIGNED): Check only the alignment of the static vars,
26416         since auto var alignment isn't supported by Sun C 5.11.
26417         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
26418         ASSERT failures are easier to diagnose.
26420 2011-10-31  Bruno Haible  <bruno@clisp.org>
26422         doc about some IRIX 5.3 problems.
26423         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
26424         on IRIX 5.3.
26425         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
26426         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
26427         5.3.
26428         * doc/posix-functions/grantpt.texi: Likewise.
26429         * doc/posix-functions/unlockpt.texi: Likewise.
26430         * doc/posix-functions/lgamma.texi: Likewise.
26431         * doc/posix-functions/nextafter.texi: Likewise.
26432         * doc/posix-functions/remainder.texi: Likewise.
26433         * doc/posix-functions/select.texi: Mention misplaced declaration on
26434         IRIX 5.3.
26435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26437 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
26439         gitlog-to-changelog: fix git-log invocation.
26440         git-log mishandles date strings before 1970-01-01 UTC, and there is
26441         no use to specify --since=1970-01-01 by default anyway.
26442         * build-aux/gitlog-to-changelog: By default, when no --since option
26443         was given, do not specify explicit --since option to git-log.
26445 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
26447         gitlog-to-changelog: new option --append-dot.
26448         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
26449         first non-blank line of each commit message terminated with a dot.
26451 2011-10-30  Bruno Haible  <bruno@clisp.org>
26453         ffsl, ffsll: Avoid compilation error due to 'restrict'.
26454         * lib/ffsl.h: Include <config.h>.
26455         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
26457 2011-10-30  Jim Meyering  <meyering@redhat.com>
26459         GNUmakefile: reenable "make syntax-check" for most projects
26460         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
26461         build-aux variable", "syntax-check" would do nothing but succeed with
26462         the "No version control files detected..." diagnostic (unless you
26463         happened to override _build-aux via cfg.mk).
26464         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
26465         to precede inclusion of maint.mk.  Otherwise, these variables would
26466         be used undefined in any project that does not override the default.
26468 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
26470         gitlog-to-changelog: treat a message with only blank lines as empty.
26471         * build-aux/gitlog-to-changelog: Move the code that removes leading and
26472         trailing blank lines before the code that issues a warning about an
26473         empty commit message.
26475 2011-10-30  Jim Meyering  <meyering@redhat.com>
26477         test-parse-datetime.c: avoid new DST-related false positive test failure
26478         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
26479         based on the time/date we'll convert, not the current time.
26480         Otherwise, the moment we cross a DST boundary like today's in
26481         Europe, (CEST to CET), that offset ends up being one hour off.
26483 2011-10-27  Bruno Haible  <bruno@clisp.org>
26485         fstat: Tweak documentation.
26486         * modules/fstat (Description): More precise description.
26488 2011-10-27  Bruno Haible  <bruno@clisp.org>
26490         Update documentation regarding 'largefile' module.
26491         * doc/posix-functions/fstat.texi: Tweak wording.
26492         * doc/posix-functions/opendir.texi: Mention that the module fixes the
26493         problems with huge directories and/or small ino_t types.
26494         * doc/posix-functions/readdir.texi: Likewise.
26495         * doc/posix-functions/rewinddir.texi: Likewise.
26497 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
26499         maint.mk: don't maintain a second build-aux variable.
26500         * maint.mk (build_aux): Removed.  The maintainer-makefile module
26501         depends on GNUmakefile, which already maintains a cfg.mk
26502         overridable $(_build-aux) for projects with a non-standard
26503         build-aux directory location, although without the $(srcdir)
26504         prefix.  Use that variable consistently instead of introducing a
26505         second one.  Adjust all call sites.
26507 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26509         Add stdalign module and use it in other modules.
26510         This is based on a previous proposal by Bruno Haible
26511         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
26513         stdalign: new module
26514         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
26515         * modules/stdalign: New files.
26516         * MODULES.html.sh (c1x_core_properties): Add stdalign.
26517         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
26519         stdalign-tests: new module
26520         * modules/stdalign-tests, tests/test-stdalign.c: New files.
26522         argp: use stdalign
26523         * lib/argp-parse.c: Include <stdalign.h>.
26524         (alignof): Remove.
26525         * modules/argp (Depends-on): Add stdalign.
26527         crypto libraries: use stdalign
26528         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
26529         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
26530         Do not include <stdlib.h> twice, in md4.c.
26531         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
26532         because we are accessing a pointer's bit-pattern, not a size.
26533         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
26534         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
26535         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
26536         * modules/crypto/sha512: Likewise.
26538         sys_socket: use stdalign, not alignof
26539         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
26540         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
26542 2011-10-27  Bruno Haible  <bruno@clisp.org>
26544         raise test: Avoid a test failure on Linux/MIPS.
26545         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
26546         because 99 is a valid signal on Linux/MIPS.
26548 2011-10-27  Bruno Haible  <bruno@clisp.org>
26550         nonblocking tests: Fix test failure on Linux/MIPS.
26551         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
26552         Set to 270000.
26554 2011-10-27  Bruno Haible  <bruno@clisp.org>
26556         utimensat: Work around problem on Linux/hppa.
26557         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
26558         values.
26559         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
26561 2011-10-25  Jim Meyering  <meyering@redhat.com>
26563         maint.mk: fix a bug in sc_prohibit_stddef_without_use
26564         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
26565         after symbols like NULL, size_t, etc.
26566         Reported by Alfred M. Szmidt.
26568         maint.mk: exempt ENODATA from a syntax-check rule
26569         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
26570         from the sc_prohibit_always-defined_macros syntax-check rule.
26571         Add a comment.  See this for more details:
26572         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
26574 2011-10-23  Jim Meyering  <meyering@redhat.com>
26576         fts: close parent dir FD before returning from post-traversal fts_read
26577         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
26578         unlink A, even though an FD open on A remained.  This is suboptimal
26579         (holding a file descriptor open longer than needed), but otherwise not
26580         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
26581         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
26582         that represents a real problem: it causes the removal of A to fail
26583         with e.g., "rm: cannot remove `A': Device or resource busy"
26585         fts visits each directory twice and keeps a cache (fts_fd_ring) of
26586         directory file descriptors.  After completing the final, FTS_DP,
26587         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
26588         cache, but then proceeded to add a new FD to it via the subsequent
26589         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
26590         final file descriptor would be closed only via fts_close's call to
26591         fd_ring_clear.  Now, it is usually closed earlier, via the final
26592         FTS_DP-returning fts_read call.
26593         * lib/fts.c (restore_initial_cwd): New function, converted from
26594         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
26595         Update callers.
26596         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
26597         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
26599 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
26600             Bruno Haible  <bruno@clisp.org>
26601             Jim Meyering  <jim@meyering.net>
26603         readme-release: improve safety of release prep instructions.
26604         * README-release: Don't git pull all branches when only master
26605         is needed for the release process.
26606         Run make maintainer-clean before changing trees and merging.
26607         Don't try to run ./configure right after git pull in case files
26608         that influence the bootstrap process have changed, move the
26609         ./configure step to after running ./bootstrap.
26610         Don't bootstrap "one last time"... it's the first time!
26612 2011-10-22  Bruno Haible  <bruno@clisp.org>
26614         errno, strerror-override: Support for MSVC 10.
26615         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
26616         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
26617         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
26618         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
26619         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
26620         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
26621         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
26622         Assign values compatible with MSVC 10.
26623         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
26624         New macros.
26625         (GNULIB_defined_EWINSOCK): New macro.
26626         * lib/strerror-override.c (strerror_override): Update accordingly.
26627         * lib/strerror-override.h: Likewise.
26628         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
26629         longer equal to the corresponding errno value.
26630         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26632 2011-10-22  Bruno Haible  <bruno@clisp.org>
26634         perror: Recognize when test program crashes.
26635         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
26636         strerror, set gl_cv_func_perror_works to no.
26637         Reported by Daniel Richard G. <skunk@iskunk.org>.
26639         perror: Fix indentation.
26640         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
26642 2011-10-22  Bruno Haible  <bruno@clisp.org>
26644         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
26645         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
26646         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
26647         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
26648         functions, not as a macro.
26649         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
26650         macros.
26651         (isfinite, isinf, isnan, signbit): Check overloaded functions and
26652         absence of macro.
26653         Suggested by Eric Blake.
26654         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26656 2011-10-21  Bruno Haible  <bruno@clisp.org>
26658         relocatable-prog-wrapper: Don't leave object files behind.
26659         * build-aux/install-reloc: Re-synchronize list of .o files to be
26660         removed with list of compilation units.
26662 2011-10-20  Bruno Haible  <bruno@clisp.org>
26664         openpty, posix_openpt: Remove code duplication.
26665         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
26666         * lib/openpty.c: Include <stdlib.h>.
26667         (openpty): Use posix_openpt on all platforms except IRIX.
26668         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
26670 2011-10-20  Bruno Haible  <bruno@clisp.org>
26672         unlockpt: Detect invalid argument.
26673         * lib/unlockpt.c: Include <fcntl.h>.
26674         (unlockpt): Check whether fd is valid, using fcntl().
26675         * modules/unlockpt (Depends-on): Add fcntl-h.
26677 2011-10-20  Bruno Haible  <bruno@clisp.org>
26679         openpty: Avoid compilation error on AIX 6.1.
26680         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
26682 2011-10-20  Bruno Haible  <bruno@clisp.org>
26684         posix_openpt: Support for OpenBSD.
26685         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
26686         (posix_openpt) [OpenBSD]: New code.
26687         * lib/grantpt.c: Include <fcntl.h>.
26688         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
26689         * modules/grantpt (Depends-on): Add fcntl-h.
26691 2011-10-20  Bruno Haible  <bruno@clisp.org>
26693         posix_openpt test: Coding style.
26694         * tests/test-posix_openpt.c: Use GNU coding style.
26696 2011-10-20  Bruno Haible  <bruno@clisp.org>
26698         grantpt: Support --avoid=pt_chown.
26699         * modules/grantpt (Files): Add lib/pty-private.h.
26701 2011-10-20  Bruno Haible  <bruno@clisp.org>
26703         posix_openpt: Fix autoconf macro.
26704         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
26705         unneeded check for _getpty.
26707 2011-10-20  Bruno Haible  <bruno@clisp.org>
26709         openpty: Update comments.
26710         * lib/openpty.c: Add comments about Minix.
26712 2011-10-19  Eric Blake  <eblake@redhat.com>
26714         openpty: relax license
26715         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
26717         pt_chown: use configmake to simplify build
26718         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
26720         ptsname and others: relax license
26721         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
26722         * modules/unlockpt (License): Likewise.
26723         * modules/pt_chown (License): Likewise.
26724         * modules/ptsname (License): Likewise.
26725         * modules/ttyname_r (License): Likewise.
26727 2011-10-19  Jim Meyering  <meyering@redhat.com>
26729         posix_openpt: remove spurious #endif
26730         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
26732 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
26734         maint.mk: Respect $(build_aux) in web-manual rule.
26735         * top/maint.mk (web-manual): Find gen-announce script in user's
26736         $(build_aux) directory instead of hard-coding 'build-aux'.
26738 2011-10-19  Bruno Haible  <bruno@clisp.org>
26740         posix_openpt: Fix compilation error.
26741         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
26742         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
26743         Mention the openpty module as an alternative.
26745 2011-10-19  Bruno Haible  <bruno@clisp.org>
26747         Support for old NeXTstep 3.3 frexp().
26748         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
26749         execution time of the test to 5 seconds.
26750         Reported by Daniel Richard G. <skunk@iskunk.org>.
26752 2011-10-19  Bruno Haible  <bruno@clisp.org>
26754         Support for old NeXTstep 3.3 sed.
26755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
26756         part, use /.../, not \|...|. Escape periods in the header file name.
26757         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26758         Reported by Daniel Richard G. <skunk@iskunk.org>.
26760 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26762         Support for old NeXTstep 3.3 gcc.
26763         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
26764         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
26765         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
26766         * lib/spawn.in.h (_Restrict_arr_): Likewise.
26767         * lib/regex.h (_Restrict_arr_): Likewise.
26768         * lib/regex_internal.h (re_token_t): Likewise.
26769         * lib/regexec.c (check_node_accept_bytes): Likewise.
26770         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
26772 2011-10-18  Eric Blake  <eblake@redhat.com>
26774         posix_openpt: new module
26775         * modules/posix_openpt: New module.
26776         * m4/posix_openpt.m4: New file.
26777         * lib/posix_openpt.c: Likewise.
26778         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26779         (gl_STDLIB_H_DEFAULTS): Set defaults.
26780         * modules/stdlib (Makefile.am): Substitute macros.
26781         * lib/stdlib.in.h (posix_openpt): Declare.
26782         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
26783         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
26784         * modules/posix_openpt-tests: New test module.
26785         * tests/test-posix_openpt.c: New test.
26787 2011-10-15  Bruno Haible  <bruno@clisp.org>
26789         xstrtoll: Fix compilation failure.
26790         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
26791         from lib/strtol.c.
26792         * doc/posix-headers/limits.texi: Mention missing numerical limits on
26793         some platforms.
26794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26796 2011-10-15  Bruno Haible  <bruno@clisp.org>
26798         vasnprintf: Optimize bit search operation.
26799         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
26800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
26801         gl_DOUBLE_EXPONENT_LOCATION.
26802         * modules/vasnprintf (Files): Add m4/exponentd.m4.
26803         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26804         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26805         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26806         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26807         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26808         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26809         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26810         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
26812 2011-10-15  Bruno Haible  <bruno@clisp.org>
26814         vasnprintf: Fix comments.
26815         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
26817 2011-10-14  Bruno Haible  <bruno@clisp.org>
26819         Tests for module 'integer_length_ll'.
26820         * modules/integer_length_ll-tests: New file.
26821         * tests/test-integer_length_ll.c: New file.
26823         New module 'integer_length_ll'.
26824         * lib/integer_length_ll.c: New file.
26825         * modules/integer_length_ll: New file.
26827 2011-10-14  Bruno Haible  <bruno@clisp.org>
26829         Tests for module 'integer_length_l'.
26830         * modules/integer_length_l-tests: New file.
26831         * tests/test-integer_length_l.c: New file.
26833         New module 'integer_length_l'.
26834         * lib/integer_length_l.c: New file.
26835         * modules/integer_length_l: New file.
26837 2011-10-14  Bruno Haible  <bruno@clisp.org>
26839         Tests for module 'integer_length'.
26840         * modules/integer_length-tests: New file.
26841         * tests/test-integer_length.c: New file.
26843         New module 'integer_length'.
26844         * lib/integer_length.h: New file.
26845         * lib/integer_length.c: New file.
26846         * modules/integer_length: New file.
26848 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26850         popen: Fix dependency conditions.
26851         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
26853 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26855         perror: Fix autoconf test.
26856         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
26857         <stdlib.h> and <string.h>.
26859 2011-10-14  Bruno Haible  <bruno@clisp.org>
26861         ffsl: Optimize on 64-bit platforms.
26862         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
26863         unrolling.
26865 2011-10-13  Bruno Haible  <bruno@clisp.org>
26867         ffsl: Optimize on 32-bit platforms.
26868         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
26869         use ffs() without a loop.
26871         ffsl, ffsll: Optimize for GCC.
26872         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
26873         * lib/ffsl.c (GCC_BUILTIN): New macro.
26874         * lib/ffsll.c (GCC_BUILTIN): Likewise.
26876 2011-10-13  Bruno Haible  <bruno@clisp.org>
26878         ffs, bcopy, memset: Support symbol renaming via config.h.
26879         * lib/ffs.c: Include <config.h>.
26880         * lib/bcopy.c: Likewise.
26881         * lib/memset.c: Likewise.
26883 2011-10-10  Bruno Haible  <bruno@clisp.org>
26885         atanl: Simplify for platforms where 'long double' == 'double'.
26886         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26887         alternative implementation.
26888         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26889         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26890         * modules/atanl (Depends-on): Add atan. Update conditions.
26892 2011-10-10  Bruno Haible  <bruno@clisp.org>
26894         acosl: Simplify for platforms where 'long double' == 'double'.
26895         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26896         alternative implementation.
26897         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26898         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26899         * modules/acosl (Depends-on): Add acos. Update conditions.
26901 2011-10-10  Bruno Haible  <bruno@clisp.org>
26903         asinl: Simplify for platforms where 'long double' == 'double'.
26904         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26905         alternative implementation.
26906         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26907         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26908         * modules/asinl (Depends-on): Add asin. Update conditions.
26910 2011-10-10  Bruno Haible  <bruno@clisp.org>
26912         tanl: Simplify for platforms where 'long double' == 'double'.
26913         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26914         implementation.
26915         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26916         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26917         * modules/tanl (Depends-on): Add tan. Update conditions.
26918         (configure.ac): Don't compile trigl.c if
26919         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26921 2011-10-10  Bruno Haible  <bruno@clisp.org>
26923         cosl: Simplify for platforms where 'long double' == 'double'.
26924         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26925         implementation.
26926         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26927         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26928         * modules/cosl (Depends-on): Add cos. Update conditions.
26929         (configure.ac): Don't compile sincosl.c and trigl.c if
26930         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26932 2011-10-10  Bruno Haible  <bruno@clisp.org>
26934         sinl: Simplify for platforms where 'long double' == 'double'.
26935         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26936         implementation.
26937         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26938         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26939         * modules/sinl (Depends-on): Add sin. Update conditions.
26940         (configure.ac): Don't compile sincosl.c and trigl.c if
26941         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26943 2011-10-10  Bruno Haible  <bruno@clisp.org>
26945         logl: Simplify for platforms where 'long double' == 'double'.
26946         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26947         implementation.
26948         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26949         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26950         * modules/logl (Depends-on): Add log. Update conditions.
26952 2011-10-10  Bruno Haible  <bruno@clisp.org>
26954         expl: Simplify for platforms where 'long double' == 'double'.
26955         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26956         implementation.
26957         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26958         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26959         * modules/expl (Depends-on): Add exp. Update conditions.
26961 2011-10-10  Bruno Haible  <bruno@clisp.org>
26963         sqrtl: Simplify for platforms where 'long double' == 'double'.
26964         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26965         alternative implementation.
26966         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26967         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26968         * modules/sqrtl (Depends-on): Update conditions.
26970 2011-10-10  Bruno Haible  <bruno@clisp.org>
26972         ldexpl: Simplify for platforms where 'long double' == 'double'.
26973         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26974         alternative implementation.
26975         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26976         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26977         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
26979 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
26981         ffsll: set correct witness
26982         * modules/ffsll (configure.ac): Fix typo.
26984 2011-10-10  Bruno Haible  <bruno@clisp.org>
26986         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
26987         * lib/printf-frexpl.c: Include <config.h>.
26988         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26989         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
26990         second time.
26991         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
26992         gl_LONG_DOUBLE_VS_DOUBLE.
26993         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
26994         conditions.
26996 2011-10-10  Bruno Haible  <bruno@clisp.org>
26998         frexpl: Simplify for platforms where 'long double' == 'double'.
26999         * lib/frexpl.c: Include <config.h>.
27000         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27001         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27002         time.
27003         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27004         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27005         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
27006         * modules/frexpl (Depends-on): Add frexp. Update conditions.
27007         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
27008         conditions.
27010 2011-10-10  Jim Meyering  <meyering@redhat.com>
27012         test-renameat: don't leave behind a temporary file
27013         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
27014           ERROR: files left in build directory after distclean:
27015           ./gltests/test-renameat.too
27016           make[1]: *** [distcleancheck] Error 1
27017         Reported by Tom G. Christensen.
27019 2011-10-09  Bruno Haible  <bruno@clisp.org>
27021         rint: Determine RINT_LIBM correctly on AIX 7.
27022         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
27023         directly, not only through a function pointer. Also accept an optional
27024         4th argument with extra code.
27025         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
27026         rintf() call by gcc when optimizing.
27028         mathfunc.m4: Refactor.
27029         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
27030         m4 variable.
27032 2011-10-09  Bruno Haible  <bruno@clisp.org>
27034         rintl: Simplify for platforms where 'long double' == 'double'.
27035         * lib/rintl.c: Include <config.h>.
27036         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27037         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27038         time.
27039         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27040         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27041         * modules/rintl (Depends-on): Add rint. Update conditions.
27043 2011-10-09  Bruno Haible  <bruno@clisp.org>
27045         roundl: Simplify for platforms where 'long double' == 'double'.
27046         * lib/roundl.c: Include <config.h>.
27047         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27048         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27049         time.
27050         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27051         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27052         * modules/roundl (Depends-on): Add round. Update conditions.
27054 2011-10-09  Bruno Haible  <bruno@clisp.org>
27056         truncl: Simplify for platforms where 'long double' == 'double'.
27057         * lib/truncl.c: Include <config.h>.
27058         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27059         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27060         time.
27061         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27062         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27063         * modules/truncl (Depends-on): Add trunc. Update conditions.
27065 2011-10-09  Bruno Haible  <bruno@clisp.org>
27067         ceill: Simplify for platforms where 'long double' == 'double'.
27068         * lib/ceill.c: Include <config.h>.
27069         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27070         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27071         time.
27072         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27073         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27074         * modules/ceill (Depends-on): Add ceil. Update conditions.
27076 2011-10-09  Bruno Haible  <bruno@clisp.org>
27078         floorl: Simplify for platforms where 'long double' == 'double'.
27079         * lib/floorl.c: Include <config.h>.
27080         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27081         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27082         time.
27083         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27084         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27085         * modules/floorl (Depends-on): Add floor. Update conditions.
27087 2011-10-09  Bruno Haible  <bruno@clisp.org>
27089         rint: Fix ordering constraints.
27090         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
27091         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
27092         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
27094 2011-10-09  Bruno Haible  <bruno@clisp.org>
27096         copysignl: Simplify for platforms where 'long double' == 'double'.
27097         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27098         alternative.
27099         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27100         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27101         * modules/copysignl (Depends-on): Add copysign. Update conditions.
27103 2011-10-09  Bruno Haible  <bruno@clisp.org>
27105         Tests for module 'rintl'.
27106         * modules/rintl-tests: New file.
27107         * tests/test-rintl.c: New file.
27109         New module 'rintl'.
27110         * lib/math.in.h (rintl): New declaration.
27111         * lib/rintl.c: New file.
27112         * m4/rintl.m4: New file.
27113         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
27114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
27115         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
27116         * modules/rintl: New file.
27117         * tests/test-math-c++.cc: Check the declaration of rintl.
27118         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27119         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
27120         * doc/posix-functions/rintl.texi: Mention the new module.
27122 2011-10-09  Bruno Haible  <bruno@clisp.org>
27124         Tests for module 'rintf'.
27125         * modules/rintf-tests: New file.
27126         * tests/test-rintf.c: New file.
27128         New module 'rintf'.
27129         * lib/math.in.h (rintf): New declaration.
27130         * lib/rintf.c: New file.
27131         * m4/rintf.m4: New file.
27132         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
27133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
27134         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
27135         * modules/rintf: New file.
27136         * tests/test-math-c++.cc: Check the declaration of rintf.
27137         * doc/posix-functions/rintf.texi: Mention the new module.
27139 2011-10-09  Bruno Haible  <bruno@clisp.org>
27141         rint: Support for MSVC.
27142         * lib/math.in.h (rint): New declaration.
27143         * lib/rint.c: New file.
27144         * m4/rint.m4: New file.
27145         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
27146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
27147         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
27148         * modules/rint (Description): Fix.
27149         (Files): Add lib/rint.c, m4/rint.m4.
27150         (Depends-on): Add math.
27151         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
27152         gl_MATH_MODULE_INDICATOR.
27153         * tests/test-math-c++.cc: Check the declaration of rint.
27154         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27155         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
27156         * doc/posix-functions/rint.texi: Mention the replacement provided by
27157         the module.
27159         rint tests: More tests.
27160         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
27161         minus-zero.h, infinity.h, nan.h.
27162         (main): Skip the test if the current rounding mode is not standard. Add
27163         tests for negative numbers, minus zero, infinity, NaN.
27164         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
27165         tests/nan.h.
27166         (Depends-on): Add isnand-nolibm.
27168 2011-10-09  Bruno Haible  <bruno@clisp.org>
27170         Tests for module 'copysignl'.
27171         * modules/copysignl-tests: New file.
27172         * tests/test-copysignl.c: New file.
27174         New module 'copysignl'.
27175         * lib/math.in.h (copysignl): New declaration.
27176         * lib/copysignl.c: New file.
27177         * m4/copysignl.m4: New file.
27178         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
27179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
27180         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
27181         HAVE_COPYSIGNL.
27182         * modules/copysignl: New file.
27183         * tests/test-math-c++.cc: Check the declaration of copysignl.
27184         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27185         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
27186         * doc/posix-functions/copysignl.texi: Mention the new module.
27188 2011-10-09  Bruno Haible  <bruno@clisp.org>
27190         Tests for module 'copysignf'.
27191         * modules/copysignf-tests: New file.
27192         * tests/test-copysignf.c: New file.
27194         New module 'copysignf'.
27195         * lib/math.in.h (copysignf): New declaration.
27196         * lib/copysignf.c: New file.
27197         * m4/copysignf.m4: New file.
27198         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
27199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
27200         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
27201         HAVE_COPYSIGNF.
27202         * modules/copysignf: New file.
27203         * tests/test-math-c++.cc: Check the declaration of copysignf.
27204         * doc/posix-functions/copysignf.texi: Mention the new module.
27206 2011-10-09  Bruno Haible  <bruno@clisp.org>
27208         Ensure that HAVE_* variables are set to 1 before they are set to 0.
27209         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
27210         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
27211         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27212         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
27213         gl_SIGNAL_H_DEFAULTS.
27215 2011-10-09  Bruno Haible  <bruno@clisp.org>
27217         poll: Make macro safer.
27218         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
27219         ac_cv_header_poll_h is not set.
27221 2011-10-09  Bruno Haible  <bruno@clisp.org>
27223         copysign: Provide replacement.
27224         * lib/math.in.h (copysign): New declaration.
27225         * lib/copysign.c: New file.
27226         * m4/copysign.m4: New file.
27227         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
27228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
27229         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
27230         HAVE_COPYSIGN.
27231         * modules/copysign (Description): Clarify.
27232         (Files): Add lib/copysign.c, m4/copysign.m4.
27233         (Depends-on): Add math, signbit.
27234         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
27235         gl_MATH_MODULE_INDICATOR.
27236         * tests/test-math-c++.cc: Check the declaration of copysign.
27237         * doc/posix-functions/copysign.texi: Mention the effects of the module
27238         on Minix and MSVC.
27240 2011-10-09  Bruno Haible  <bruno@clisp.org>
27242         isinf: Ensure macro on AIX 5.1.
27243         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
27244         macro.
27245         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
27247 2011-10-09  Bruno Haible  <bruno@clisp.org>
27249         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
27250         * modules/snprintf-posix-tests (configure.ac): Require
27251         gl_LONG_DOUBLE_VS_DOUBLE.
27252         * modules/sprintf-posix-tests (configure.ac): Likewise.
27253         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
27254         * modules/vasprintf-posix-tests (configure.ac): Likewise.
27255         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
27256         * modules/vsprintf-posix-tests (configure.ac): Likewise.
27257         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
27258         tests on platforms where 'long double' is the same as 'double'.
27259         * tests/test-sprintf-posix.h (test_function): Likewise.
27260         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27261         * tests/test-vasprintf-posix.c (test_function): Likewise.
27263         *printf: Fix for platforms where 'long double' == 'double'.
27264         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
27265         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
27266         * modules/dprintf-posix (Files): Add m4/math_h.m4.
27267         * modules/fprintf-posix (Files): Likewise.
27268         * modules/obstack-printf-posix (Files): Likewise.
27269         * modules/snprintf-posix (Files): Likewise.
27270         * modules/sprintf-posix (Files): Likewise.
27271         * modules/vasnprintf (Files): Likewise.
27272         * modules/vasnprintf-posix (Files): Likewise.
27273         * modules/vasprintf-posix (Files): Likewise.
27274         * modules/vdprintf-posix (Files): Likewise.
27275         * modules/vfprintf-posix (Files): Likewise.
27276         * modules/vsnprintf-posix (Files): Likewise.
27277         * modules/vsprintf-posix (Files): Likewise.
27278         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27279         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27280         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27281         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27282         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27283         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27284         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27286         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
27287         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
27288         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27289         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
27290         'long double'.
27291         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
27293         isinf: Fix for platforms where 'long double' == 'double'.
27294         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
27295         Don't blindly assume 80-bit 'long double'.
27297         isfinite: Fix for platforms where 'long double' == 'double'.
27298         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
27299         Don't blindly assume 80-bit 'long double'.
27301         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
27302         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
27303         * modules/isfinite-tests (configure.ac): Require
27304         gl_LONG_DOUBLE_VS_DOUBLE.
27305         * modules/isinf-tests (configure.ac): Likewise.
27306         * modules/isnan-tests (configure.ac): Likewise.
27307         * modules/isnanl-tests (configure.ac): Likewise.
27308         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
27309         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
27310         tests on platforms where 'long double' is the same as 'double'.
27311         * tests/test-isinf.c (test_isinfl): Likewise.
27312         * tests/test-isnan.c (test_long_double): Likewise.
27313         * tests/test-isnanl.h (main): Likewise.
27315 2011-10-08  Bruno Haible  <bruno@clisp.org>
27317         Tests for module 'tanhf'.
27318         * modules/tanhf-tests: New file.
27319         * tests/test-tanhf.c: New file.
27321         New module 'tanhf'.
27322         * lib/math.in.h (tanhf): New declaration.
27323         * lib/tanhf.c: New file.
27324         * m4/tanhf.m4: New file.
27325         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
27326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
27327         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
27328         * modules/tanhf: New file.
27329         * tests/test-math-c++.cc: Check the declaration of tanhf.
27330         * doc/posix-functions/tanhf.texi: Mention the new module.
27332         tanh: Use a .m4 file.
27333         * m4/tanh.m4: New file.
27334         * modules/tanh (Files): Add it.
27335         (configure.ac): Just invoke gl_FUNC_TANH.
27337 2011-10-08  Bruno Haible  <bruno@clisp.org>
27339         Tests for module 'coshf'.
27340         * modules/coshf-tests: New file.
27341         * tests/test-coshf.c: New file.
27343         New module 'coshf'.
27344         * lib/math.in.h (coshf): New declaration.
27345         * lib/coshf.c: New file.
27346         * m4/coshf.m4: New file.
27347         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
27348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
27349         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
27350         * modules/coshf: New file.
27351         * tests/test-math-c++.cc: Check the declaration of coshf.
27352         * doc/posix-functions/coshf.texi: Mention the new module.
27354         cosh: Use a .m4 file.
27355         * m4/cosh.m4: New file.
27356         * modules/cosh (Files): Add it.
27357         (configure.ac): Just invoke gl_FUNC_COSH.
27359 2011-10-08  Bruno Haible  <bruno@clisp.org>
27361         Tests for module 'sinhf'.
27362         * modules/sinhf-tests: New file.
27363         * tests/test-sinhf.c: New file.
27365         New module 'sinhf'.
27366         * lib/math.in.h (sinhf): New declaration.
27367         * lib/sinhf.c: New file.
27368         * m4/sinhf.m4: New file.
27369         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
27370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
27371         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
27372         * modules/sinhf: New file.
27373         * tests/test-math-c++.cc: Check the declaration of sinhf.
27374         * doc/posix-functions/sinhf.texi: Mention the new module.
27376         sinh: Use a .m4 file.
27377         * m4/sinh.m4: New file.
27378         * modules/sinh (Files): Add it.
27379         (configure.ac): Just invoke gl_FUNC_SINH.
27381 2011-10-08  Bruno Haible  <bruno@clisp.org>
27383         Tests for module 'atan2f'.
27384         * modules/atan2f-tests: New file.
27385         * tests/test-atan2f.c: New file.
27387         New module 'atan2f'.
27388         * lib/math.in.h (atan2f): New declaration.
27389         * lib/atan2f.c: New file.
27390         * m4/atan2f.m4: New file.
27391         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
27392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
27393         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
27394         * modules/atan2f: New file.
27395         * tests/test-math-c++.cc: Check the declaration of atan2f.
27396         * doc/posix-functions/atan2f.texi: Mention the new module.
27398         atan2: Use a .m4 file.
27399         * m4/atan2.m4: New file.
27400         * modules/atan2 (Files): Add it.
27401         (configure.ac): Just invoke gl_FUNC_ATAN2.
27403 2011-10-08  Bruno Haible  <bruno@clisp.org>
27405         Tests for module 'atanf'.
27406         * modules/atanf-tests: New file.
27407         * tests/test-atanf.c: New file.
27409         New module 'atanf'.
27410         * lib/math.in.h (atanf): New declaration.
27411         * lib/atanf.c: New file.
27412         * m4/atanf.m4: New file.
27413         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
27414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
27415         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
27416         * modules/atanf: New file.
27417         * tests/test-math-c++.cc: Check the declaration of atanf.
27418         * doc/posix-functions/atanf.texi: Mention the new module.
27420         atan: Use a .m4 file.
27421         * m4/atan.m4: New file.
27422         * modules/atan (Files): Add it.
27423         (configure.ac): Just invoke gl_FUNC_ATAN.
27425 2011-10-08  Bruno Haible  <bruno@clisp.org>
27427         Tests for module 'acosf'.
27428         * modules/acosf-tests: New file.
27429         * tests/test-acosf.c: New file.
27431         New module 'acosf'.
27432         * lib/math.in.h (acosf): New declaration.
27433         * lib/acosf.c: New file.
27434         * m4/acosf.m4: New file.
27435         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
27436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
27437         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
27438         * modules/acosf: New file.
27439         * tests/test-math-c++.cc: Check the declaration of acosf.
27440         * doc/posix-functions/acosf.texi: Mention the new module.
27442         acos: Use a .m4 file.
27443         * m4/acos.m4: New file.
27444         * modules/acos (Files): Add it.
27445         (configure.ac): Just invoke gl_FUNC_ACOS.
27447 2011-10-08  Bruno Haible  <bruno@clisp.org>
27449         Tests for module 'asinf'.
27450         * modules/asinf-tests: New file.
27451         * tests/test-asinf.c: New file.
27453         New module 'asinf'.
27454         * lib/math.in.h (asinf): New declaration.
27455         * lib/asinf.c: New file.
27456         * m4/asinf.m4: New file.
27457         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
27458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
27459         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
27460         * modules/asinf: New file.
27461         * tests/test-math-c++.cc: Check the declaration of asinf.
27462         * doc/posix-functions/asinf.texi: Mention the new module.
27464         asin: Use a .m4 file.
27465         * m4/asin.m4: New file.
27466         * modules/asin (Files): Add it.
27467         (configure.ac): Just invoke gl_FUNC_ASIN.
27469 2011-10-08  Bruno Haible  <bruno@clisp.org>
27471         Tests for module 'tanf'.
27472         * modules/tanf-tests: New file.
27473         * tests/test-tanf.c: New file.
27475         New module 'tanf'.
27476         * lib/math.in.h (tanf): New declaration.
27477         * lib/tanf.c: New file.
27478         * m4/tanf.m4: New file.
27479         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
27480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
27481         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
27482         * modules/tanf: New file.
27483         * tests/test-math-c++.cc: Check the declaration of tanf.
27484         * doc/posix-functions/tanf.texi: Mention the new module.
27486         tan: Use a .m4 file.
27487         * m4/tan.m4: New file.
27488         * modules/tan (Files): Add it.
27489         (configure.ac): Just invoke gl_FUNC_TAN.
27491 2011-10-08  Bruno Haible  <bruno@clisp.org>
27493         Tests for module 'cosf'.
27494         * modules/cosf-tests: New file.
27495         * tests/test-cosf.c: New file.
27497         New module 'cosf'.
27498         * lib/math.in.h (cosf): New declaration.
27499         * lib/cosf.c: New file.
27500         * m4/cosf.m4: New file.
27501         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
27502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
27503         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
27504         * modules/cosf: New file.
27505         * tests/test-math-c++.cc: Check the declaration of cosf.
27506         * doc/posix-functions/cosf.texi: Mention the new module.
27508         cos: Use a .m4 file.
27509         * m4/cos.m4: New file.
27510         * modules/cos (Files): Add it.
27511         (configure.ac): Just invoke gl_FUNC_COS.
27513 2011-10-08  Bruno Haible  <bruno@clisp.org>
27515         Tests for module 'sinf'.
27516         * modules/sinf-tests: New file.
27517         * tests/test-sinf.c: New file.
27519         New module 'sinf'.
27520         * lib/math.in.h (sinf): New declaration.
27521         * lib/sinf.c: New file.
27522         * m4/sinf.m4: New file.
27523         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
27524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
27525         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
27526         * modules/sinf: New file.
27527         * tests/test-math-c++.cc: Check the declaration of sinf.
27528         * doc/posix-functions/sinf.texi: Mention the new module.
27530         sin: Use a .m4 file.
27531         * m4/sin.m4: New file.
27532         * modules/sin (Files): Add it.
27533         (configure.ac): Just invoke gl_FUNC_SIN.
27535 2011-10-08  Bruno Haible  <bruno@clisp.org>
27537         Tests for module 'powf'.
27538         * modules/powf-tests: New file.
27539         * tests/test-powf.c: New file.
27541         New module 'powf'.
27542         * lib/math.in.h (powf): New declaration.
27543         * lib/powf.c: New file.
27544         * m4/powf.m4: New file.
27545         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
27546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
27547         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
27548         * modules/powf: New file.
27549         * tests/test-math-c++.cc: Check the declaration of powf.
27550         * doc/posix-functions/powf.texi: Mention the new module.
27552         pow: Use a .m4 file.
27553         * m4/pow.m4: New file.
27554         * modules/pow (Files): Add it.
27555         (configure.ac): Just invoke gl_FUNC_POW.
27557 2011-10-08  Bruno Haible  <bruno@clisp.org>
27559         Tests for module 'log10f'.
27560         * modules/log10f-tests: New file.
27561         * tests/test-log10f.c: New file.
27563         New module 'log10f'.
27564         * lib/math.in.h (log10f): New declaration.
27565         * lib/log10f.c: New file.
27566         * m4/log10f.m4: New file.
27567         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
27568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
27569         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
27570         * modules/log10f: New file.
27571         * tests/test-math-c++.cc: Check the declaration of log10f.
27572         * doc/posix-functions/log10f.texi: Mention the new module.
27574         log10: Use a .m4 file.
27575         * m4/log10.m4: New file.
27576         * modules/log10 (Files): Add it.
27577         (configure.ac): Just invoke gl_FUNC_LOG10.
27579 2011-10-08  Bruno Haible  <bruno@clisp.org>
27581         Tests for module 'logf'.
27582         * modules/logf-tests: New file.
27583         * tests/test-logf.c: New file.
27585         New module 'logf'.
27586         * lib/math.in.h (logf): New declaration.
27587         * lib/logf.c: New file.
27588         * m4/logf.m4: New file.
27589         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
27590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
27591         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
27592         * modules/logf: New file.
27593         * tests/test-math-c++.cc: Check the declaration of logf.
27594         * doc/posix-functions/logf.texi: Mention the new module.
27596         log: Use a .m4 file.
27597         * m4/log.m4: New file.
27598         * modules/log (Files): Add it.
27599         (configure.ac): Just invoke gl_FUNC_LOG.
27601 2011-10-08  Bruno Haible  <bruno@clisp.org>
27603         Tests for module 'expf'.
27604         * modules/expf-tests: New file.
27605         * tests/test-expf.c: New file.
27607         New module 'expf'.
27608         * lib/math.in.h (expf): New declaration.
27609         * lib/expf.c: New file.
27610         * m4/expf.m4: New file.
27611         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
27612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
27613         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
27614         * modules/expf: New file.
27615         * tests/test-math-c++.cc: Check the declaration of expf.
27616         * doc/posix-functions/expf.texi: Mention the new module.
27618         exp: Use a .m4 file.
27619         * m4/exp.m4: New file.
27620         * modules/exp (Files): Add it.
27621         (configure.ac): Just invoke gl_FUNC_EXP.
27623 2011-10-08  Bruno Haible  <bruno@clisp.org>
27625         Tests for module 'sqrtf'.
27626         * modules/sqrtf-tests: New file.
27627         * tests/test-sqrtf.c: New file.
27629         New module 'sqrtf'.
27630         * lib/math.in.h (sqrtf): New declaration.
27631         * lib/sqrtf.c: New file.
27632         * m4/sqrtf.m4: New file.
27633         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
27634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
27635         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
27636         * modules/sqrtf: New file.
27637         * tests/test-math-c++.cc: Check the declaration of sqrtf.
27638         * doc/posix-functions/sqrtf.texi: Mention the new module.
27640 2011-10-08  Bruno Haible  <bruno@clisp.org>
27642         Tests: Avoid link failures w.r.t. libintl.
27643         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
27644         $(LIBINTL).
27645         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
27646         $(LIBINTL).
27647         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
27648         against $(LIBINTL).
27649         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
27650         $(LIBINTL).
27651         * modules/openat-tests (Makefile.am): Link test-fchmodat against
27652         $(LIBINTL).
27653         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
27655 2011-10-08  Bruno Haible  <bruno@clisp.org>
27657         pow tests: Defeat compiler optimizations.
27658         * tests/test-pow.c (main): Assign arguments to x and y before use.
27660 2011-10-08  Bruno Haible  <bruno@clisp.org>
27662         gnulib-tool: Improve last commit.
27663         * gnulib-tool (func_modules_transitive_closure): Simplify code.
27664         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
27665         ignore dependencies that are not among the modules list.
27667 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
27669         gnulib-tool: don't follow dependencies to avoided modules
27670         This fixes a bug that is related to the previous one.
27671         * gnulib-tool (func_modules_transitive_closure)
27672         (func_emit_autoconf_snippets):
27673         Check whether a dependency is acceptable before using it.
27674         (--extract-dependencies): Report an error if --avoid is also used,
27675         since this combination of options is not yet supported.
27677         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
27678         Problem reported by Peter Dyballa in
27679         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
27680         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
27681         when echoing "$condition".
27683 2011-10-07  Bruno Haible  <bruno@clisp.org>
27685         Fix documentation about math functions on MacOS X.
27686         * doc/posix-functions/exp2.texi: Don't say the function is missing on
27687         MacOS X 10.5.
27688         * doc/posix-functions/fdim.texi: Likewise.
27689         * doc/posix-functions/feclearexcept.texi: Likewise.
27690         * doc/posix-functions/fegetenv.texi: Likewise.
27691         * doc/posix-functions/fegetround.texi: Likewise.
27692         * doc/posix-functions/feholdexcept.texi: Likewise.
27693         * doc/posix-functions/feraiseexcept.texi: Likewise.
27694         * doc/posix-functions/fesetenv.texi: Likewise.
27695         * doc/posix-functions/fesetround.texi: Likewise.
27696         * doc/posix-functions/fetestexcept.texi: Likewise.
27697         * doc/posix-functions/feupdateenv.texi: Likewise.
27698         * doc/posix-functions/fmax.texi: Likewise.
27699         * doc/posix-functions/fmin.texi: Likewise.
27700         * doc/posix-functions/log2.texi: Likewise.
27701         * doc/posix-functions/modff.texi: Likewise.
27702         * doc/posix-functions/nan.texi: Likewise.
27703         * doc/posix-functions/nanf.texi: Likewise.
27704         * doc/posix-functions/nextafterf.texi: Likewise.
27705         * doc/posix-functions/remquo.texi: Likewise.
27707 2011-10-07  Bruno Haible  <bruno@clisp.org>
27709         modff: Drop assumption about library that defines modff.
27710         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
27711         AC_CHECK_FUNCS.
27712         * modules/modff (Files): Add m4/mathfunc.m4.
27714 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
27716         raise tests: Avoid a GCC warning.
27717         * tests/test-raise.c (handler): Use _Noreturn.
27719 2011-10-07  Bruno Haible  <bruno@clisp.org>
27721         Tests for module 'ldexpf'.
27722         * modules/ldexpf-tests: New file.
27723         * tests/test-ldexpf.c: New file.
27725         New module 'ldexpf'.
27726         * lib/math.in.h (ldexpf): New declaration.
27727         * lib/ldexpf.c: New file.
27728         * m4/ldexpf.m4: New file.
27729         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
27730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
27731         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
27732         * modules/ldexpf: New file.
27733         * tests/test-math-c++.cc: Check the declaration of ldexpf.
27734         * doc/posix-functions/ldexpf.texi: Mention the new module.
27736 2011-10-06  Bruno Haible  <bruno@clisp.org>
27738         frexpf: Work around problems on IRIX and mingw.
27739         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
27740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
27741         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
27742         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
27743         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
27744         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
27745         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
27747 2011-10-06  Bruno Haible  <bruno@clisp.org>
27749         fabsf: Drop assumption about library that defines fabsf.
27750         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
27751         AC_CHECK_FUNCS.
27752         * modules/fabsf (Files): Add m4/mathfunc.m4.
27754 2011-10-06  Bruno Haible  <bruno@clisp.org>
27756         frexpf: Drop assumption about library that defines frexpf.
27757         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
27758         'int *', 'float *', 'long double *', 'float', 'long double'.
27759         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
27760         AC_CHECK_FUNCS.
27761         * modules/frexpf (Files): Add m4/mathfunc.m4.
27763         Tests for module 'frexpf'.
27764         * modules/frexpf-tests: New file.
27765         * tests/test-frexpf.c: New file.
27767         New module 'frexpf'.
27768         * lib/math.in.h (frexpf): New declaration.
27769         * lib/frexpf.c: New file.
27770         * m4/frexpf.m4: New file.
27771         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
27772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
27773         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
27774         * modules/frexpf: New file.
27775         * tests/test-math-c++.cc: Check the declaration of frexpf.
27776         * doc/posix-functions/frexpf.texi: Mention the new module.
27778 2011-10-06  Bruno Haible  <bruno@clisp.org>
27780         math: Sort function declarations of math.in.h.
27781         * lib/math.in.h (frexp, logb): Move declarations.
27783 2011-10-05  Bruno Haible  <bruno@clisp.org>
27785         Tests for module 'modff'.
27786         * modules/modff-tests: New file.
27787         * tests/test-modff.c: New file.
27789         New module 'modff'.
27790         * lib/math.in.h (modff): New declaration.
27791         * lib/modff.c: New file.
27792         * m4/modff.m4: New file.
27793         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
27794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
27795         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
27796         * modules/modff: New file.
27797         * tests/test-math-c++.cc: Check the declaration of modff.
27798         * doc/posix-functions/modff.texi: Mention the new module.
27800         modf tests: Make test sharper.
27801         * tests/test-modf.c (main): Strengthen upper bound.
27803         modf: Use a .m4 file.
27804         * m4/modf.m4: New file.
27805         * modules/modf (Files): Add it.
27806         (configure.ac): Just invoke gl_FUNC_MODF.
27808 2011-10-05  Bruno Haible  <bruno@clisp.org>
27810         Tests for module 'fmodf'.
27811         * modules/fmodf-tests: New file.
27812         * tests/test-fmodf.c: New file.
27814         New module 'fmodf'.
27815         * lib/math.in.h (fmodf): New declaration.
27816         * lib/fmodf.c: New file.
27817         * m4/fmodf.m4: New file.
27818         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
27819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
27820         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
27821         * modules/fmodf: New file.
27822         * tests/test-math-c++.cc: Check the declaration of fmodf.
27823         * doc/posix-functions/fmodf.texi: Mention the new module.
27825         fmod: Use a .m4 file.
27826         * m4/fmod.m4: New file.
27827         * modules/fmod (Files): Add it.
27828         (configure.ac): Just invoke gl_FUNC_FMOD.
27830 2011-10-05  Bruno Haible  <bruno@clisp.org>
27832         Tests for module 'fabsf'.
27833         * modules/fabsf-tests: New file.
27834         * tests/test-fabsf.c: New file.
27836         New module 'fabsf'.
27837         * lib/math.in.h (fabsf): New declaration.
27838         * lib/fabsf.c: New file.
27839         * m4/fabsf.m4: New file.
27840         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
27841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
27842         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
27843         * modules/fabsf: New file.
27844         * tests/test-math-c++.cc: Check the declaration of fabsf.
27845         * doc/posix-functions/fabsf.texi: Mention the new module.
27847         fabs: Use a .m4 file.
27848         * m4/fabs.m4: New file.
27849         * modules/fabs (Files): Add it.
27850         (configure.ac): Just invoke gl_FUNC_FABS.
27852 2011-10-05  Jim Meyering  <meyering@redhat.com>
27854         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
27855         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
27856         ls -lL regression introduced in coreutils-8.12, it does so at the
27857         cost of an additional stat call in the common case.  Besides, now
27858         that the kernel change that prompted commit 95f7c57f has been reverted
27859         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
27860         we have no use for commit 95f7c57f, "file-has-acl: use
27861         acl_extended_file_nofollow if available".
27863 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
27865         file-has-acl: revert unintended change in behavior of ls -L
27866         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
27867         derived from...
27868         (file_has_acl): ...code here.  Call it.
27869         This problem was introduced with 2011-07-22 commit 95f7c57f,
27870         "file-has-acl: use acl_extended_file_nofollow if available".
27871         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
27873 2011-10-03  Bruno Haible  <bruno@clisp.org>
27875         poll: Avoid link errors on MSVC.
27876         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
27877         * modules/poll (Depends-on): Add sockets.
27878         (Link): New section.
27879         * NEWS: Mention the change.
27880         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
27881         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
27882         $(LIB_POLL) instead of $(LIBSOCKET).
27884 2011-10-03  Bruno Haible  <bruno@clisp.org>
27886         sys_select tests: Fix link error on MSVC 9.
27887         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
27888         with $(LIB_SELECT) instead of $(LIBSOCKET).
27890 2011-10-03  Bruno Haible  <bruno@clisp.org>
27892         sys_select: Fix compilation error on mingw.
27893         * lib/sys_select.in.h: On native Windows, include <io.h>.
27895 2011-10-03  Bruno Haible  <bruno@clisp.org>
27897         wmemset: Support for MSVC.
27898         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
27899         whether wmemset() exists.
27901 2011-10-03  Bruno Haible  <bruno@clisp.org>
27903         wmemmove: Support for MSVC.
27904         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
27905         whether wmemmove() exists.
27907 2011-10-03  Bruno Haible  <bruno@clisp.org>
27909         wmemcpy: Support for MSVC.
27910         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
27911         whether wmemcpy() exists.
27913 2011-10-03  Bruno Haible  <bruno@clisp.org>
27915         wmemcmp: Support for MSVC.
27916         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
27917         whether wmemcmp() exists.
27919 2011-10-03  Bruno Haible  <bruno@clisp.org>
27921         wmemchr: Support for MSVC.
27922         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
27923         whether wmemchr() exists.
27925 2011-10-03  Bruno Haible  <bruno@clisp.org>
27927         glthread/*, strsignal: Support for MSVC.
27928         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
27929         including <winsock.h> on MSVC 9.
27930         * lib/glthread/lock.h: Likewise.
27931         * lib/glthread/thread.h: Likewise.
27932         * lib/glthread/tls.h: Likewise.
27933         * lib/glthread/yield.h: Likewise.
27934         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
27935         if HAVE_UNISTD_H is false.
27936         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
27938 2011-10-03  Bruno Haible  <bruno@clisp.org>
27940         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
27941         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
27942         Set to 100000.
27944 2011-10-03  Bruno Haible  <bruno@clisp.org>
27946         acl: Fix specification.
27947         * lib/file-has-acl.c (file_has_acl): Fix specification.
27949 2011-10-03  Bruno Haible  <bruno@clisp.org>
27951         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
27952         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
27953         (compute_curr_prefix, shared_library_fullname,
27954         find_shared_library_fullname, get_shared_library_fullname, relocate):
27955         Use it together with PIC && INSTALLDIR.
27956         Reported by <jojelino@gmail.com>
27957         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
27959 2011-10-01  Jim Meyering  <meyering@redhat.com>
27961         maint.mk: adjust a release-related rule not to require use of gzip
27962         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
27963         Instead, check each file in $(DIST_ARCHIVES).  This is better for
27964         projects that build only .tar.xz files.  Also fix an erroneous test.
27966         test-linkat: don't leave behind a temporary file
27967         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
27968         Otherwise, coreutils' "make distcheck" would fail with this:
27969           Only in /c/cu/tests/torture/coreutils/test/\
27970             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
27971           make[2]: *** [my-distcheck] Error 1
27973         float, math: add omitted file
27974         * lib/itold.c: Add file, required for yesterday's float change.
27976 2011-10-01  Bruno Haible  <bruno@clisp.org>
27978         isinf: Fix for OpenBSD/x86.
27979         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
27980         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
27981         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
27983 2011-10-01  Bruno Haible  <bruno@clisp.org>
27985         isfinite: Fix syntax error in configure test.
27986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
27988         isfinite: Fix typo.
27989         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
27990         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
27992 2011-10-01  Bruno Haible  <bruno@clisp.org>
27994         nonblocking tests: Fix test failure on Linux/IA-64.
27995         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
27996         Set to 270000.
27998 2011-10-01  Bruno Haible  <bruno@clisp.org>
28000         mkfifoat tests: Fix a test failure on mingw.
28001         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
28002         with error ENOSYS.
28004 2011-09-30  Bruno Haible  <bruno@clisp.org>
28006         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
28007         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
28008         'long double'. Set REPLACE_ITOLD.
28009         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
28010         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
28011         * lib/itold.c: New file.
28012         * modules/float (Files): Add lib/itold.c.
28013         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
28014         (Makefile.am): Substitute REPLACE_ITOLD.
28015         * modules/math (Depends-on): Add float.
28016         (Makefile.am): Substitute REPLACE_ITOLD.
28017         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
28018         * doc/posix-headers/math.texi: Likewise.
28019         * doc/posix-functions/logl.texi: Likewise.
28021 2011-09-30  Bruno Haible  <bruno@clisp.org>
28023         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
28024         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
28025         Set to 140000.
28027 2011-09-30  Bruno Haible  <bruno@clisp.org>
28029         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
28030         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
28031         invocation, say "right after AC_PROG_CC_STDC", not "right after
28032         AC_PROG_CC".
28033         Reported by Gary V. Vaughan <gary@gnu.org>.
28035 2011-09-30  Bruno Haible  <bruno@clisp.org>
28037         Centralize C99 requirement.
28038         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
28039         * modules/stdarg (configure.ac-early): Invoke it instead of
28040         AC_PROG_CC_STDC.
28041         Reported by Gary V. Vaughan and Paul Eggert.
28043 2011-09-29  Bruno Haible  <bruno@clisp.org>
28045         float: Fix LDBL_MAX value on Linux/PowerPC.
28046         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
28047         on Linux/PowerPC.
28048         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
28049         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
28050         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
28051         platform.
28052         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
28054 2011-09-29  Bruno Haible  <bruno@clisp.org>
28056         doc: Improve doc about gl_EARLY.
28057         * doc/gnulib-tool.texi (Initial import): Mention where to place an
28058         AC_PROG_CC_STDC invocation.
28059         Reported by Gary V. Vaughan <gary@gnu.org>.
28061 2011-09-28  Bruno Haible  <bruno@clisp.org>
28063         fgetc, fputc, fread, fwrite tests: Fix link error.
28064         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
28065         on non-MSVC platforms.
28066         * tests/test-fputc.c (main): Likewise.
28067         * tests/test-fread.c (main): Likewise.
28068         * tests/test-fwrite.c (main): Likewise.
28069         Reported by Jim Meyering.
28071 2011-09-27  Bruno Haible  <bruno@clisp.org>
28073         fputc, fwrite tests: Avoid test failure on MSVC.
28074         * tests/test-fgetc.c: Include msvc-inval.h.
28075         (main): Invoke gl_msvc_inval_ensure_handler.
28076         * tests/test-fputc.c: Include msvc-inval.h.
28077         (main): Invoke gl_msvc_inval_ensure_handler.
28078         * tests/test-fread.c: Include msvc-inval.h.
28079         (main): Invoke gl_msvc_inval_ensure_handler.
28080         * tests/test-fwrite.c: Include msvc-inval.h.
28081         (main): Invoke gl_msvc_inval_ensure_handler.
28082         * modules/fgetc-tests (Depends-on): Add msvc-inval.
28083         * modules/fputc-tests (Depends-on): Likewise.
28084         * modules/fread-tests (Depends-on): Likewise.
28085         * modules/fwrite-tests (Depends-on): Likewise.
28087 2011-09-27  Bruno Haible  <bruno@clisp.org>
28089         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
28090         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
28091         (raise): Remove older, duplicated declaration.
28092         (_gl_raise_SIGPIPE): New declaration.
28093         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
28094         (rpl_raise): Remove function.
28095         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
28096         a gnulib-defined SIGPIPE here.
28097         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
28098         'sigprocmask' has detected missing signal-blocking and the module
28099         'sigpipe' is enabled.
28100         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28102 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
28104         base64-tests: avoid memory leak
28105         * tests/test-base64.c (main): Plug memory leak.
28107         base32: new module
28108         * modules/base32: New module.
28109         * lib/base32.c: New file.
28110         * lib/base32.h: Likewise.
28111         * m4/base32.m4: Likewise.
28112         * modules/base32-tests: New test.
28113         * tests/test-base32.c: Likewise.
28114         * MODULES.html.sh (Misc): Mention it.
28116 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28118         gnulib: use more-standard license notice wording
28119         * gnulib-tool (func_emit_copyright_notice): When emitting a
28120         license notice into a file, use the standard wording as suggested
28121         by the current information for GNU maintainers, except say "file"
28122         rather than "program".  The new wording gives a license version
28123         number, which addresses an issue raised by Glenn Morris in
28124         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
28125         * m4/onceonly.m4: Use that same wording here, too.
28127         dup2: minor simplification
28128         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
28129         as lib/dup2.c no longer uses 'inline'.
28131 2011-09-25  Bruno Haible  <bruno@clisp.org>
28133         strings: Fix compilation error on MSVC.
28134         * lib/strings.in.h: Include <stddef.h> for size_t.
28136 2011-09-25  Bruno Haible  <bruno@clisp.org>
28138         fflush et al.: Document limitation on MSVC.
28139         * doc/posix-functions/fflush.texi: Document possible crash in handling
28140         mode other than DEFAULT_HANDLING.
28141         * doc/posix-functions/fgetc.texi: Likewise.
28142         * doc/posix-functions/fputc.texi: Likewise.
28143         * doc/posix-functions/fread.texi: Likewise.
28144         * doc/posix-functions/fwrite.texi: Likewise.
28146 2011-09-25  Bruno Haible  <bruno@clisp.org>
28148         msvc-inval: Allow three invalid parameter handling modes.
28149         * lib/msvc-inval.h: Don't include <stdlib.h> here.
28150         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
28151         macros.
28152         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
28153         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
28154         SANE_LIBRARY_HANDLING as a no-op.
28155         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
28156         <stdlib.h>.
28157         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
28159 2011-09-25  Bruno Haible  <bruno@clisp.org>
28161         msvc-inval: Make handler multithread-safe.
28162         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
28163         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
28164         declarations.
28165         (gl_msvc_inval_current): New declaration.
28166         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28167         Operate on the structure returned by gl_msvc_inval_current().
28168         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
28169         Remove varaiables.
28170         (tls_index, tls_initialized): New variables.
28171         (not_per_thread): New variable.
28172         (gl_msvc_inval_current): New function.
28173         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
28174         returned by gl_msvc_inval_current().
28176 2011-09-25  Bruno Haible  <bruno@clisp.org>
28178         msvc-inval: Install handler globally.
28179         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
28180         !_MSC_VER.
28181         (gl_msvc_invalid_parameter_handler): Remove declaration.
28182         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
28183         declarations.
28184         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28185         Install the handler globally, don't uninstall it.
28186         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
28187         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
28188         currently valid, call RaiseException instead.
28189         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
28190         for !_MSC_VER.
28192 2011-09-25  Bruno Haible  <bruno@clisp.org>
28194         strerror_r-posix: Fix for MSVC 9.
28195         * lib/strerror_r.c (local_snprintf): New function.
28196         (snprintf): Define to local_snprintf, not to _snprintf.
28198 2011-09-25  Bruno Haible  <bruno@clisp.org>
28200         ftruncate: Support for MSVC 9.
28201         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
28202         (chsize_nothrow): New function.
28203         (chsize): Redefine as a macro.
28204         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
28205         * modules/ftruncate (Depends-on): Add msvc-inval.
28207 2011-09-25  Bruno Haible  <bruno@clisp.org>
28209         New module 'fstat'.
28210         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
28211         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
28212         * lib/fchdir.c (rpl_fstat): Remove function.
28213         * m4/fstat.m4: New file.
28214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
28215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
28216         declared.
28217         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
28218         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
28219         * modules/fstat: New file.
28220         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
28221         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
28222         is set.
28223         * doc/posix-functions/fstat.texi: Mention the new module and the
28224         problem on MSVC.
28225         * NEWS: Mention the change.
28226         * modules/acl (Depends-on): Add fstat.
28227         * modules/chdir-safer (Depends-on): Likewise.
28228         * modules/chown (Depends-on): Likewise.
28229         * modules/copy-file (Depends-on): Likewise.
28230         * modules/fchdir (Depends-on): Likewise.
28231         * modules/fdopendir (Depends-on): Likewise.
28232         * modules/fopen (Depends-on): Likewise.
28233         * modules/fts (Depends-on): Likewise.
28234         * modules/getcwd (Depends-on): Likewise.
28235         * modules/isapipe (Depends-on): Likewise.
28236         * modules/linkat (Depends-on): Likewise.
28237         * modules/lseek (Depends-on): Likewise.
28238         * modules/mkdir-p (Depends-on): Likewise.
28239         * modules/open (Depends-on): Likewise.
28240         * modules/openat (Depends-on): Likewise.
28241         * modules/read-file (Depends-on): Likewise.
28242         * modules/renameat (Depends-on): Likewise.
28243         * modules/utimens (Depends-on): Likewise.
28245 2011-09-25  Bruno Haible  <bruno@clisp.org>
28247         linkat: Fix compilation on MSVC 9.
28248         * lib/linkat.c: Don't include <stdint.h>.
28250 2011-09-25  Bruno Haible  <bruno@clisp.org>
28252         fclose: Support for MSVC 9.
28253         * lib/fclose.c: Include msvc-inval.h.
28254         (fclose_nothrow): New function.
28255         (rpl_fclose): Use it.
28256         * modules/fclose (Depends-on): Add msvc-inval.
28257         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
28259 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28261         dup2: minor simplifications
28262         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
28263         that it's a performance win.
28264         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
28265         ! defined __CYGWIN__)" to "ifdef F_GETFL".
28267 2011-09-24  Jim Meyering  <meyering@redhat.com>
28269         test-futimens: avoid a warning from gcc -Wshadow
28270         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
28271         to avoid a shadowing warning.
28273 2011-09-24  Bruno Haible  <bruno@clisp.org>
28275         fdopen: Support for MSVC 9.
28276         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
28277         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
28278         * lib/fdopen.c: Include msvc-inval.h.
28279         (fdopen_nothrow): New function.
28280         (rpl_fdopen): Use it.
28281         * modules/fdopen (Depends-on): Add msvc-inval.
28282         * modules/fclose-tests (Depends-on): Add fdopen.
28283         * modules/fflush-tests (Depends-on): Likewise.
28284         * modules/fgetc-tests (Depends-on): Likewise.
28285         * modules/fputc-tests (Depends-on): Likewise.
28286         * modules/fread-tests (Depends-on): Likewise.
28287         * modules/freopen-tests (Depends-on): Likewise.
28288         * modules/fseeko-tests (Depends-on): Likewise.
28289         * modules/ftello-tests (Depends-on): Likewise.
28290         * modules/fwrite-tests  (Depends-on): Likewise.
28291         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
28293 2011-09-24  Bruno Haible  <bruno@clisp.org>
28295         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
28296         * modules/fgetc-tests (Depends-on): Add unistd.
28297         * modules/fputc-tests (Depends-on): Likewise.
28298         * modules/fread-tests (Depends-on): Likewise.
28299         * modules/fwrite-tests (Depends-on): Likewise.
28301 2011-09-24  Bruno Haible  <bruno@clisp.org>
28303         dup: Simplify autoconf test.
28304         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
28305         on gl_MSVC_INVAL's result.
28307 2011-09-24  Bruno Haible  <bruno@clisp.org>
28309         Tests for function fwrite().
28310         * modules/fwrite-tests: New file.
28311         * tests/test-fwrite.c: New file.
28312         * modules/stdio-tests (Depends-on): Add fwrite-tests.
28314         Tests for function fread().
28315         * modules/fread-tests: New file.
28316         * tests/test-fread.c: New file.
28317         * modules/stdio-tests (Depends-on): Add fread-tests.
28319         Activate fputc tests.
28320         * modules/stdio-tests (Depends-on): Add fputc-tests.
28322         Enhance fgetc, fputc tests.
28323         * tests/test-fgetc.c (main): Also test the stream's error indicator.
28324         * tests/test-fputc.c (main): Likewise.
28326 2011-09-24  Bruno Haible  <bruno@clisp.org>
28328         write: Support for MSVC 9.
28329         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
28330         is not 1.
28331         * lib/write.c (write_nothrow): New function.
28332         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
28333         not 1. Use write_nothrow.
28334         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
28335         invalid parameter handler.
28336         (gl_PREREQ_WRITE): New macro.
28337         * modules/write (Depends-on): Add msvc-inval.
28338         (configure.ac): Invoke gl_PREREQ_WRITE.
28339         * doc/posix-functions/write.texi: Mention the problem on MSVC.
28341 2011-09-24  Bruno Haible  <bruno@clisp.org>
28343         read: Fix last commit.
28344         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
28346 2011-09-24  Bruno Haible  <bruno@clisp.org>
28348         dup2: Fix last commit.
28349         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
28350         (rpl_dup2): Disable fcntl workaround on native Windows.
28352         sigprocmask: Make code safer.
28353         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
28354         section that changes macro definitions for this compilation unit.
28356 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28358         dup2: clarify by coalescing Windows-specific material
28359         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
28360         "msvc-nothrow.h"' to the Windows-specific section, so that the
28361         Emacs source need not contain these include files.
28362         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
28363         Windows-specific fixes into this function rather than just the
28364         nothrow fix, as this shortens and clarifies the code.  Always
28365         define as a function, as that's a bit cleaner than having it be
28366         sometimes a function and sometimes a macro.
28367         (rpl_dup2): Move the Windows-specific stuff out of here and into
28368         ms_windows_dup2.  Don't protect the Haiku-related fix with
28369         "#if !defined __linux__", as the same code also works around
28370         a Linux kernel bug, and it doesn't add any system calls on any
28371         platform.  Add comment about FreeBSD 6.1.
28373         sigprocmask: move #include directive
28374         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
28375         Windows-specific section, so that the Emacs source need not
28376         contain msvc-inval.h.
28378 2011-09-23  Bruno Haible  <bruno@clisp.org>
28380         read: Support for MSVC 9.
28381         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
28382         is not 1.
28383         * lib/read.c (read_nothrow): New function.
28384         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
28385         read_nothrow.
28386         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
28387         invalid parameter handler.
28388         (gl_PREREQ_READ): New macro.
28389         * modules/read (Depends-on): Add msvc-inval.
28390         (configure.ac): Invoke gl_PREREQ_READ.
28391         * doc/posix-functions/read.texi: Mention the problem on MSVC.
28393 2011-09-23  Bruno Haible  <bruno@clisp.org>
28395         close: Support for MSVC 9.
28396         * lib/close.c: Include <errno.h>, msvc-inval.h.
28397         (close_nothrow): New function.
28398         (rpl_close): Use it.
28399         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
28400         invalid parameter handler.
28401         * modules/close (Depends-on): Add msvc-inval.
28402         * modules/dup2-tests (Depends-on): Add close.
28403         * modules/dup3-tests (Depends-on): Likewise.
28404         * modules/fcntl-tests (Depends-on): Likewise.
28405         * modules/spawn-pipe-tests (Depends-on): Likewise.
28406         * modules/unistd-safer-tests (Depends-on): Likewise.
28407         * doc/posix-functions/close.texi: Mention the problem on MSVC.
28409 2011-09-23  Bruno Haible  <bruno@clisp.org>
28411         New module 'dup'.
28412         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
28413         Allow replacement.
28414         * lib/dup.c: New file.
28415         * lib/fchdir.c (rpl_dup): Remove function.
28416         * m4/dup.m4: New file.
28417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
28418         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
28419         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
28420         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
28421         * modules/dup: New file.
28422         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
28423         'dup' module is in use.
28424         * modules/fdopendir (Depends-on): Add dup.
28425         * modules/fdutimensat-tests (Depends-on): Likewise.
28426         * modules/fts (Depends-on): Likewise.
28427         * modules/futimens-tests (Depends-on): Likewise.
28428         * modules/posix_spawnp-tests (Depends-on): Likewise.
28429         * modules/unistd-safer-tests (Depends-on): Likewise.
28430         * modules/utimens-tests (Depends-on): Likewise.
28431         * doc/posix-functions/dup.texi: Mention the new module and the problem
28432         on MSVC.
28434 2011-09-23  Bruno Haible  <bruno@clisp.org>
28436         getdtablesize: Support for MSVC 9.
28437         * lib/getdtablesize.c: Include msvc-inval.h.
28438         (_setmaxstdio_nothrow): New function.
28439         (_setmaxstdio): Redefine it.
28440         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
28441         * modules/getdtablesize (Depends-on): Add msvc-inval.
28442         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
28444 2011-09-23  Bruno Haible  <bruno@clisp.org>
28446         signal-h: Rename from signal.
28447         * modules/signal-h: Renamed from modules/signal.
28448         * modules/pthread_sigmask (Depends-on): Update.
28449         * modules/raise (Depends-on): Likewise.
28450         * modules/sigaction (Depends-on): Likewise.
28451         * modules/sigpipe (Depends-on): Likewise.
28452         * modules/sigprocmask (Depends-on): Likewise.
28453         * modules/sys_select (Depends-on): Likewise.
28454         * modules/signal-h-tests: Renamed from modules/signal-tests.
28455         (Files, Depends-on, Makefile.am): Update.
28456         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
28457         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
28458         (Files, Makefile.am): Update.
28459         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
28460         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
28461         * modules/signal: New placeholder file.
28462         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
28463         * doc/posix-headers/signal.texi: Update.
28464         * NEWS: Mention the change.
28466 2011-09-23  Bruno Haible  <bruno@clisp.org>
28468         sigprocmask: Avoid crashes through signal() on MSVC 9.
28469         * lib/sigprocmask.c: Include msvc-inval.h.
28470         (signal_nothrow): New function.
28471         (signal): Redefine it.
28472         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
28473         * modules/sigprocmask (Depends-on): Add msvc-inval.
28474         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
28476 2011-09-23  Bruno Haible  <bruno@clisp.org>
28478         Tests for module 'raise'.
28479         * modules/raise-tests: New file.
28480         * tests/test-raise.c: New file.
28482         raise: Support for MSVC.
28483         * lib/signal.in.h (raise): New declaration.
28484         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
28485         for native Windows platforms.
28486         * m4/raise.m4: New file.
28487         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
28488         HAVE_RAISE, REPLACE_RAISE.
28489         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
28490         REPLACE_RAISE.
28491         * modules/raise (Status, Notice): Remove fields.
28492         (Files): Add m4/raise.m4.
28493         (Depends-on): Add signal, msvc-inval.
28494         (configure.ac): Use the common idioms.
28495         (Maintainer): Add me.
28496         * tests/test-signal-c++.cc: Check the signature of raise.
28497         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
28499 2011-09-23  Bruno Haible  <bruno@clisp.org>
28501         pipe2: Fix compilation on pre-C99 compilers.
28502         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
28504 2011-09-23  Bruno Haible  <bruno@clisp.org>
28506         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
28507         * lib/msvc-nothrow.h: New file.
28508         * lib/msvc-nothrow.c: New file.
28509         * m4/msvc-nothrow.m4: New file.
28510         * modules/msvc-nothrow: New file.
28511         * lib/dup2.c: Include msvc-nothrow.h.
28512         (rpl_dup2): No need to protect _get_osfhandle call here.
28513         * lib/accept4.c: Include msvc-nothrow.h.
28514         * lib/error.c: Likewise.
28515         * lib/fcntl.c: Likewise.
28516         * lib/lseek.c: Likewise.
28517         * lib/nonblocking.c: Likewise.
28518         * lib/poll.c: Likewise.
28519         * lib/read.c: Likewise.
28520         * lib/select.c: Likewise.
28521         * lib/sockets.h: Likewise.
28522         * lib/sockets.c: Likewise.
28523         * lib/stdio-read.c: Likewise.
28524         * lib/stdio-write.c: Likewise.
28525         * lib/write.c: Likewise.
28526         * lib/w32sock.h: Likewise.
28527         * lib/w32spawn.h: Likewise.
28528         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
28529         * lib/fsync.c: Likewise.
28530         * lib/isapipe.c: Likewise.
28531         * modules/dup2 (Depends-on): Add msvc-nothrow.
28532         * modules/accept4 (Depends-on): Likewise.
28533         * modules/error (Depends-on): Likewise.
28534         * modules/fcntl (Depends-on): Likewise.
28535         * modules/lseek (Depends-on): Likewise.
28536         * modules/nonblocking (Depends-on): Likewise.
28537         * modules/poll (Depends-on): Likewise.
28538         * modules/read (Depends-on): Likewise.
28539         * modules/select (Depends-on): Likewise.
28540         * modules/sockets (Depends-on): Likewise.
28541         * modules/sigpipe (Depends-on): Likewise.
28542         * modules/write (Depends-on): Likewise.
28543         * modules/accept (Depends-on): Likewise.
28544         * modules/bind (Depends-on): Likewise.
28545         * modules/connect (Depends-on): Likewise.
28546         * modules/gethostname (Depends-on): Likewise.
28547         * modules/getpeername (Depends-on): Likewise.
28548         * modules/getsockname (Depends-on): Likewise.
28549         * modules/getsockopt (Depends-on): Likewise.
28550         * modules/ioctl (Depends-on): Likewise.
28551         * modules/listen (Depends-on): Likewise.
28552         * modules/recv (Depends-on): Likewise.
28553         * modules/recvfrom (Depends-on): Likewise.
28554         * modules/send (Depends-on): Likewise.
28555         * modules/sendto (Depends-on): Likewise.
28556         * modules/setsockopt (Depends-on): Likewise.
28557         * modules/shutdown (Depends-on): Likewise.
28558         * modules/socket (Depends-on): Likewise.
28559         * modules/execute (Depends-on): Likewise.
28560         * modules/spawn-pipe (Depends-on): Likewise.
28561         * modules/flock (Depends-on): Likewise.
28562         * modules/fsync (Depends-on): Likewise.
28563         * modules/isapipe (Depends-on): Likewise.
28564         * tests/test-cloexec.c: Include msvc-nothrow.h.
28565         * tests/test-dup-safer.c: Likewise.
28566         * tests/test-dup2.c: Likewise.
28567         * tests/test-dup3.c: Likewise.
28568         * tests/test-fcntl.c: Likewise.
28569         * tests/test-pipe.c: Likewise.
28570         * tests/test-pipe2.c: Likewise.
28571         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
28572         * modules/unistd-safer-tests (Depends-on): Likewise.
28573         * modules/dup2-tests (Depends-on): Likewise.
28574         * modules/dup3-tests (Depends-on): Likewise.
28575         * modules/fcntl-tests (Depends-on): Likewise.
28576         * modules/pipe-posix-tests (Depends-on): Likewise.
28577         * modules/pipe2-tests (Depends-on): Likewise.
28579 2011-09-23  Bruno Haible  <bruno@clisp.org>
28581         dup2: Make code more maintainable.
28582         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
28583         (rpl_dup2): Use it.
28584         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
28585         * modules/dup2 (configure.ac): Invoke it.
28586         Reported by Paul Eggert.
28588 2011-09-23  Bruno Haible  <bruno@clisp.org>
28590         msvc-inval: Fix compilation error.
28591         * lib/msvc-inval.h: Include <excpt.h>.
28593 2011-09-23  Bruno Haible  <bruno@clisp.org>
28595         mkdir: Tweak for MSVC 9.
28596         * lib/sys_stat.in.h: Update comments.
28597         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
28599         Tests for module 'chdir'.
28600         * modules/chdir-tests: New file.
28601         * tests/test-chdir.c: New file.
28603         New module 'chdir'.
28604         * modules/chdir: New file.
28605         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
28606         (chdir): New declaration.
28607         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
28608         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
28609         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
28610         * tests/test-unistd-c++.cc: Check signature of chdir.
28611         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
28612         * modules/chdir-long (Depends-on): Add chdir.
28613         * modules/fchdir (Depends-on): Likewise.
28614         * modules/rename (Depends-on): Likewise.
28615         * modules/savewd (Depends-on): Likewise.
28617         rmdir: Support for mingw, MSVC 9.
28618         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
28619         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
28621         getcwd: Tweak for MSVC 9.
28622         * lib/unistd.in.h: Update comments.
28623         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
28625 2011-09-22  Bruno Haible  <bruno@clisp.org>
28627         strerror_r-posix: Avoid a link error on MSVC.
28628         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
28629         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
28631 2011-09-22  Bruno Haible  <bruno@clisp.org>
28633         select: Avoid link errors on MSVC.
28634         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
28635         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
28636         * modules/pselect (Link): Likewise.
28637         * NEWS: Mention the change.
28638         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
28639         test-select-stdin against $(LIB_SELECT).
28640         * modules/pselect-tests (Makefile.am): Link test-pselect against
28641         $(LIB_SELECT).
28643 2011-09-22  Bruno Haible  <bruno@clisp.org>
28645         select: Avoid compilation error on MSVC.
28646         * lib/select.c: Don't include <stdbool.h>.
28648 2011-09-21  Bruno Haible  <bruno@clisp.org>
28650         Consolidate all uses of PATH_MAX in *.m4 files.
28651         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
28652         macros.
28653         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
28654         and gl_PATHMAX_SNIPPET.
28655         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28656         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28657         * modules/chdir-long (Files): Add m4/pathmax.m4.
28658         * modules/getcwd (Files): Likewise.
28660 2011-09-21  Bruno Haible  <bruno@clisp.org>
28662         ftruncate: Un-deprecate, concentrate on Win32 support.
28663         * modules/ftruncate (Status, Notice): Remove sections.
28664         (Depends-on): Add largefile.
28665         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
28666         non-mingw platforms.
28667         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
28668         include <io.h>.
28669         * modules/perror-tests (Depends-on): Add ftruncate.
28670         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
28671         'ftruncate' module.
28673 2011-09-21  Bruno Haible  <bruno@clisp.org>
28675         Add dependencies to new dirent related modules.
28676         * modules/opendir (Depends-on): Add closedir.
28677         * modules/getcwd (Depends-on): Add opendir, closedir.
28678         * modules/dirent-safer-tests (Depends-on): Likewise.
28679         * modules/fdopendir-tests (Depends-on): Likewise.
28680         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
28681         * modules/renameat-tests (Depends-on): Likewise.
28683 2011-09-21  Bruno Haible  <bruno@clisp.org>
28685         opendir: Avoid compilation error on mingw.
28686         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
28687         * modules/opendir (Depends-on): Add unistd.
28689 2011-09-21  Bruno Haible  <bruno@clisp.org>
28691         ftruncate tests: Avoid a test failure on mingw.
28692         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
28694 2011-09-21  Bruno Haible  <bruno@clisp.org>
28696         select tests: Avoid test failures on OSF/1 5.1 and mingw.
28697         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
28698         native Windows.
28700 2011-09-21  Bruno Haible  <bruno@clisp.org>
28702         New module 'fdopen'.
28703         * lib/stdio.in.h (fdopen): New declaration.
28704         * lib/fdopen.c: New file.
28705         * m4/fdopen.m4: New file.
28706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
28707         REPLACE_FDOPEN.
28708         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
28709         REPLACE_FDOPEN.
28710         * modules/fdopen: New file.
28711         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
28712         * tests/test-stdio-c++.cc: Check signature of fdopen.
28713         * doc/posix-functions/fdopen.texi: Mention the new module.
28715 2011-09-21  Bruno Haible  <bruno@clisp.org>
28717         unlockpt tests: Avoid test failure on NetBSD 5.1.
28718         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
28719         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
28721 2011-09-21  Bruno Haible  <bruno@clisp.org>
28723         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
28724         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
28725         * tests/test-getlogin_r.c (main): Likewise.
28727 2011-09-20  Bruno Haible  <bruno@clisp.org>
28729         time tests: Don't require pid_t.
28730         * doc/posix-headers/time.texi: Revert last change.
28731         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
28732         * tests/test-time.c: Comment out the check for pid_t.
28734 2011-09-20  Bruno Haible  <bruno@clisp.org>
28736         fsync tests: Avoid a test failure on mingw.
28737         * tests/test-fsync.c (main): Allow a failure with EIO.
28739 2011-09-20  Bruno Haible  <bruno@clisp.org>
28741         euidaccess: Update comments.
28742         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
28744 2011-09-20  Bruno Haible  <bruno@clisp.org>
28746         Ensure EBADF returns for socket functions on mingw.
28747         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
28748         descriptor is invalid.
28749         * lib/bind.c (rpl_bind): Likewise.
28750         * lib/connect.c (rpl_connect): Likewise.
28751         * lib/getpeername.c (rpl_getpeername): Likewise.
28752         * lib/getsockname.c (rpl_getsockname): Likewise.
28753         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28754         * lib/listen.c (rpl_listen): Likewise.
28755         * lib/recv.c (rpl_recv): Likewise.
28756         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28757         * lib/send.c (rpl_send): Likewise.
28758         * lib/sendto.c (rpl_sendto): Likewise.
28759         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28760         * lib/shutdown.c (rpl_shutdown): Likewise.
28762 2011-09-20  Bruno Haible  <bruno@clisp.org>
28764         select tests: EBADF tests.
28765         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
28766         test_bad_fd): New functions.
28767         (test_function): Invoke also test_bad_fd.
28769 2011-09-20  Bruno Haible  <bruno@clisp.org>
28771         Tests for module 'posix_spawn_file_actions_addopen.
28772         * modules/posix_spawn_file_actions_addopen-tests: New file.
28773         * tests/test-posix_spawn_file_actions_addopen.c: New file.
28775         Tests for module 'posix_spawn_file_actions_adddup2'.
28776         * modules/posix_spawn_file_actions_adddup2-tests: New file.
28777         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
28779         Tests for module 'posix_spawn_file_actions_addclose'.
28780         * modules/posix_spawn_file_actions_addclose-tests: New file.
28781         * tests/test-posix_spawn_file_actions_addclose.c: New file.
28783 2011-09-20  Bruno Haible  <bruno@clisp.org>
28785         Tests for module 'unlockpt'.
28786         * modules/unlockpt-tests: New file.
28787         * tests/test-unlockpt.c: New file.
28788         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
28790         Tests for module 'grantpt'.
28791         * modules/grantpt-tests: New file.
28792         * tests/test-grantpt.c: New file.
28793         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
28795 2011-09-20  Bruno Haible  <bruno@clisp.org>
28797         freopen tests: EBADF tests.
28798         * tests/test-freopen.c: Include errno.h, unistd.h.
28799         (main): Add tests for EBADF, commented out for the moment.
28801         fclose tests: EBADF tests.
28802         * tests/test-fclose.c (main): Add tests for EBADF.
28804         fflush tests: EBADF tests.
28805         * tests/test-fflush.c: Include errno.h, macros.h.
28806         (main): Add tests for EBADF.
28808         ftello tests: EBADF tests.
28809         * tests/test-ftello4.sh: New file.
28810         * tests/test-ftello4.c: New file.
28811         * modules/ftello-tests (Files): Add them.
28812         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
28814         fseeko tests: EBADF tests.
28815         * tests/test-fseeko4.sh: New file.
28816         * tests/test-fseeko4.c: New file.
28817         * modules/fseeko-tests (Files): Add them.
28818         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
28820         Tests for function fputc().
28821         * modules/fputc-tests: New file.
28822         * tests/test-fputc.c: New file.
28823         * modules/stdio-tests (Depends-on): Add fputc-tests.
28825         Tests for function fgetc().
28826         * modules/fgetc-tests: New file.
28827         * tests/test-fgetc.c: New file.
28828         * modules/stdio-tests (Depends-on): Add fgetc-tests.
28830         Tests for function fdopen().
28831         * modules/fdopen-tests: New file.
28832         * tests/test-fdopen.c: New file.
28833         * modules/stdio-tests (Depends-on): Add fdopen-tests.
28835         Tests for module 'vdprintf'.
28836         * modules/vdprintf-tests: New file.
28837         * tests/test-vdprintf.c: New file.
28839         Tests for module 'dprintf'.
28840         * modules/dprintf-tests: New file.
28841         * tests/test-dprintf.c: New file.
28843 2011-09-20  Bruno Haible  <bruno@clisp.org>
28845         Tests for module 'ioctl'.
28846         * modules/ioctl-tests: New file.
28847         * tests/test-ioctl.c: New file.
28849 2011-09-20  Bruno Haible  <bruno@clisp.org>
28851         fcntl tests: EBADF tests.
28852         * tests/test-fcntl.c (main): Add more tests for EBADF.
28854 2011-09-20  Bruno Haible  <bruno@clisp.org>
28856         utimensat tests: EBADF tests.
28857         * tests/test-utimensat.c (main): Add tests for EBADF.
28859         renameat tests: EBADF tests.
28860         * tests/test-renameat.c (main): Add tests for EBADF.
28862         mkfifoat tests: EBADF tests.
28863         * tests/test-mkfifoat.c (main): Add tests for EBADF.
28865         readlinkat tests: EBADF tests.
28866         * tests/test-readlinkat.c (main): Add tests for EBADF.
28868         symlinkat tests: EBADF tests.
28869         * tests/test-symlinkat.c (main): Add tests for EBADF.
28871         linkat tests: EBADF tests.
28872         * tests/test-linkat.c (main): Add tests for EBADF.
28874         Tests for module 'faccessat'.
28875         * modules/faccessat-tests: New file.
28876         * tests/test-faccessat.c: New file.
28878         fdopendir tests: EBADF tests.
28879         * tests/test-fdopendir.c (main): Add more tests for EBADF.
28881         openat tests: EBADF tests.
28882         * tests/test-fchownat.c (main): Add tests for EBADF.
28883         * tests/test-fstatat.c (main): Likewise.
28884         * tests/test-mkdirat.c (main): Likewise.
28885         * tests/test-openat.c (main): Likewise.
28886         * tests/test-unlinkat.c (main): Likewise.
28887         * tests/test-fchmodat.c: New file.
28888         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
28889         (Makefile.am): Also run 'test-fchmodat'.
28891 2011-09-20  Bruno Haible  <bruno@clisp.org>
28893         utimens, futimens, fdutimensat tests: EBADF tests.
28894         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
28896         Tests for function fstat().
28897         * modules/fstat-tests: New file.
28898         * tests/test-fstat.c: New file.
28899         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
28901 2011-09-20  Bruno Haible  <bruno@clisp.org>
28903         test-ttyname_r tests: EBADF tests.
28904         * tests/test-ttyname_r.c (main): Add tests for EBADF.
28906         Tests for module 'isatty'.
28907         * modules/isatty-tests: New file.
28908         * tests/test-isatty.c: New file.
28910         Tests for module 'write'.
28911         * modules/write-tests: New file.
28912         * tests/test-write.c: New file.
28914         Tests for module 'read'.
28915         * modules/read-tests: New file.
28916         * tests/test-read.c: New file.
28918         pwrite tests: EBADF tests.
28919         * tests/test-pwrite.c (main): Add tests for EBADF.
28921         pread tests: EBADF tests.
28922         * tests/test-pread.c (main): Add tests for EBADF.
28924         lseek tests: EBADF tests.
28925         * tests/test-lseek.c (main): Add more tests for EBADF.
28927         Tests for module 'ftruncate'.
28928         * modules/ftruncate-tests: New file.
28929         * tests/test-ftruncate.sh: New file.
28930         * tests/test-ftruncate.c: New file.
28932         fsync tests: EBADF tests.
28933         * tests/test-fsync.c (main): Add more tests for EBADF.
28935         fdatasync tests: EBADF tests.
28936         * tests/test-fdatasync.c (main): Add more tests for EBADF.
28938         Tests for module 'fchown'.
28939         * modules/fchown-tests: New file.
28940         * tests/test-fchown.c: New file.
28942         Tests for module 'fchmod'.
28943         * modules/fchmod-tests: New file.
28944         * tests/test-fchmod.c: New file.
28946         fchdir tests: EBADF tests.
28947         * tests/test-fchdir.c (main): Add more tests for EBADF.
28949         dup2 tests: EBADF tests.
28950         * tests/test-dup2.c (main): Add more tests for EBADF.
28952         Tests for module 'dup'.
28953         * modules/dup-tests: New file.
28954         * tests/test-dup.c: New file.
28956         Tests for module 'close'.
28957         * modules/close-tests: New file.
28958         * tests/test-close.c: New file.
28960 2011-09-20  Bruno Haible  <bruno@clisp.org>
28962         Tests for module 'shutdown'.
28963         * modules/shutdown-tests: New file.
28964         * tests/test-shutdown.c: New file.
28966         Tests for module 'setsockopt'.
28967         * modules/setsockopt-tests: New file.
28968         * tests/test-setsockopt.c: New file.
28970         Tests for module 'sendto'.
28971         * modules/sendto-tests: New file.
28972         * tests/test-sendto.c: New file.
28974         Tests for module 'send'.
28975         * modules/send-tests: New file.
28976         * tests/test-send.c: New file.
28978         Tests for module 'recvfrom'.
28979         * modules/recvfrom-tests: New file.
28980         * tests/test-recvfrom.c: New file.
28982         Tests for module 'recv'.
28983         * modules/recv-tests: New file.
28984         * tests/test-recv.c: New file.
28986         Tests for module 'listen'.
28987         * modules/listen-tests: New file.
28988         * tests/test-listen.c: New file.
28990         Tests for module 'getsockopt'.
28991         * modules/getsockopt-tests: New file.
28992         * tests/test-getsockopt.c: New file.
28994         Tests for module 'getsockname'.
28995         * modules/getsockname-tests: New file.
28996         * tests/test-getsockname.c: New file.
28998         Tests for module 'getpeername'.
28999         * modules/getpeername-tests: New file.
29000         * tests/test-getpeername.c: New file.
29002         Tests for module 'connect'.
29003         * modules/connect-tests: New file.
29004         * tests/test-connect.c: New file.
29006         Tests for module 'bind'.
29007         * modules/bind-tests: New file.
29008         * tests/test-bind.c: New file.
29010         accept4 tests: Fix for native Windows.
29011         * tests/test-accept4.c: Include sockets.h.
29012         (main): Invoke gl_sockets_startup.
29013         * modules/accept4-tests (Depends-on): Add sockets.
29015         accept tests: Fix for native Windows.
29016         * tests/test-accept.c: Include sockets.h.
29017         (main): Invoke gl_sockets_startup.
29018         * modules/accept-tests (Depends-on): Add sockets.
29020 2011-09-19  Bruno Haible  <bruno@clisp.org>
29022         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
29023         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
29024         do...while(0).
29025         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
29026         Suggested by Paul Eggert.
29028 2011-09-19  Bruno Haible  <bruno@clisp.org>
29030         sched: Ensure pid_t is defined.
29031         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
29032         not define pid_t.
29033         * lib/sched.in.h: Include <sys/types.h>.
29034         * doc/posix-headers/sched.texi: Mention the pid_t problem.
29035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29037 2011-09-19  Bruno Haible  <bruno@clisp.org>
29039         msvc-inval: Ensure the entire expansion is a single statement.
29040         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
29041         of braces.
29043 2011-09-19  Jim Meyering  <meyering@redhat.com>
29045         tests: use printf, not echo in init.sh's warn_ function
29046         * tests/init.sh (warn_): Use printf, not echo.  The latter would
29047         misbehave when given strings containing a backslash or starting
29048         with e.g., -n.  James Youngman suggested setting IFS.
29050 2011-09-19  Eric Blake  <eblake@redhat.com>
29052         futimens: enhance test
29053         * tests/test-futimens.h (test_futimens): Also check for EBADF on
29054         closed non-negative fd.
29056         date: accept 'hence' as opposite of 'ago'
29057         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
29058         * tests/test-parse-datetime.c (main): Enhance test.
29059         Suggested by Jesse Wilson.
29061 2011-09-19  Jim Meyering  <meyering@redhat.com>
29063         getcwd: don't fail in a deep directory on a system without openat
29064         Before this change, getcwd would fail when called from a directory
29065         of depth PATH_MAX / 3 or greater.  That was due to the fact that
29066         the non-openat implementation used "..", "../..", "../../..", etc.
29067         to access ancestor directories.  With too many, that string would
29068         be longer than PATH_MAX.
29069         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
29070         using gnulib's openat replacement.
29071         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
29072         we're using the replacement function.
29074 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
29076         maint.mk: avoid warnings from perl about missing files
29077         * top/maint.mk (def_sym_regex): Ignore files listed in
29078         $(gl_other_headers_) that do not exist, say because a project
29079         does not use a corresponding module.
29081 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29083         stat: use pathmax.h only if needed
29084         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
29085         This is better for Emacs, which does not have a mingw port and
29086         therefore can avoid the pathmax module.
29088         utimens: remove dependency on dup2
29089         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
29090         to work around the Linux kernel bug.
29091         * modules/utimens (Depends-on): Remove dup2.
29093 2011-09-18  Bruno Haible  <bruno@clisp.org>
29095         inet_ntop, inet_pton: Look for it also in libresolv.
29096         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
29097         libnsl, search for it in libresolv.
29098         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29099         Needed on Solaris 7.
29101 2011-09-18  Bruno Haible  <bruno@clisp.org>
29103         accept, accept4 tests: Avoid link error on Solaris.
29104         * modules/accept-tests (Makefile.am): Link test-accept against
29105         $(LIBSOCKET).
29106         * modules/accept4-tests (Makefile.am): Link test-accept4 against
29107         $(LIBSOCKET).
29109         accept4: Avoid link error on Solaris.
29110         * modules/accept4 (Link): New section.
29112         socket functions: Avoid link errors on Solaris.
29113         * modules/accept (Depends-on): Add socketlib.
29114         (Link): New section.
29115         * modules/bind (Depends-on): Add socketlib.
29116         (Link): New section.
29117         * modules/connect (Depends-on): Add socketlib.
29118         (Link): New section.
29119         * modules/getpeername (Depends-on): Add socketlib.
29120         (Link): New section.
29121         * modules/getsockname (Depends-on): Add socketlib.
29122         (Link): New section.
29123         * modules/getsockopt (Depends-on): Add socketlib.
29124         (Link): New section.
29125         * modules/listen (Depends-on): Add socketlib.
29126         (Link): New section.
29127         * modules/recv (Depends-on): Add socketlib.
29128         (Link): New section.
29129         * modules/recvfrom (Depends-on): Add socketlib.
29130         (Link): New section.
29131         * modules/send (Depends-on): Add socketlib.
29132         (Link): New section.
29133         * modules/sendto (Depends-on): Add socketlib.
29134         (Link): New section.
29135         * modules/setsockopt (Depends-on): Add socketlib.
29136         (Link): New section.
29137         * modules/shutdown (Depends-on): Add socketlib.
29138         (Link): New section.
29139         * modules/socket (Depends-on): Add socketlib.
29140         (Link): New section.
29142 2011-09-18  Bruno Haible  <bruno@clisp.org>
29144         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
29145         * tests/test-ptsname.c (main): Terminate the test if it takes longer
29146         than 5 seconds.
29147         * modules/ptsname-tests (configure.ac): Test for alarm.
29149 2011-09-18  Bruno Haible  <bruno@clisp.org>
29151         posix_spawn_file_actions_add*: Fix module dependencies.
29152         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
29153         posix_spawn_file_actions_init.
29154         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
29155         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
29157 2011-09-18  Bruno Haible  <bruno@clisp.org>
29159         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
29160         * tests/test-rename.h (test_rename): Allow error code EEXIST.
29161         * tests/test-renameat.c (main): Likewise.
29163 2011-09-18  Bruno Haible  <bruno@clisp.org>
29165         Tests for module 'accept4'.
29166         * modules/accept4-tests: New file.
29167         * tests/test-accept4.c: New file.
29169 2011-09-18  Bruno Haible  <bruno@clisp.org>
29171         Tests for module 'accept'.
29172         * modules/accept-tests: New file.
29173         * tests/test-accept.c: New file.
29175 2011-09-18  Bruno Haible  <bruno@clisp.org>
29177         dup2: Support for MSVC.
29178         * lib/dup2.c: Include msvc-inval.h.
29179         (rpl_dup2): Handle invalid parameter notifications during dup2 and
29180         _get_osfhandle calls.
29181         * modules/dup2 (Depends-on): Add msvc-inval.
29182         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
29184         New module 'msvc-inval'.
29185         * lib/msvc-inval.h: New file.
29186         * lib/msvc-inval.c: New file.
29187         * m4/msvc-inval.m4: New file.
29188         * modules/msvc-inval: New file.
29190 2011-09-17  Bruno Haible  <bruno@clisp.org>
29192         Tests for module 'pclose'.
29193         * modules/pclose-tests: New file.
29195         New module 'pclose'.
29196         * lib/stdio.in.h (pclose): New declaration.
29197         * lib/pclose.c: New file.
29198         * m4/pclose.m4: New file.
29199         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
29200         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
29201         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
29202         * modules/pclose: New file.
29203         * modules/popen-tests (Depends-on): Add pclose.
29204         * modules/popen-safer-tests (Depends-on): Likewise.
29205         * doc/posix-functions/pclose.texi: Mention the new module.
29207 2011-09-17  Bruno Haible  <bruno@clisp.org>
29209         popen: Support for MSVC.
29210         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
29211         * lib/popen.c (popen): Provide alternate definition for native Windows.
29212         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
29213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
29214         * modules/popen (Depends-on, configure.ac): Update condition.
29215         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
29216         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
29217         fixed.
29219 2011-09-17  Bruno Haible  <bruno@clisp.org>
29221         isnanl, isnand, isnanf: Work around MSVC bug.
29222         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
29224 2011-09-17  Bruno Haible  <bruno@clisp.org>
29226         sys_socket tests: Fix recent mistake.
29227         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
29229 2011-09-17  Bruno Haible  <bruno@clisp.org>
29231         putenv: Support for MSVC.
29232         * modules/putenv (Depends-on): Add environ.
29233         * lib/putenv.c (environ): Disable declaration.
29234         * lib/unistd.in.h: Update comment.
29236 2011-09-17  Bruno Haible  <bruno@clisp.org>
29238         math: Avoid macro redefinition warnings on MSVC.
29239         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
29240         Undefine before redefining.
29242 2011-09-17  Bruno Haible  <bruno@clisp.org>
29244         doc: Mention functions which are declared as macros.
29245         * doc/posix-functions/*[fl].texi: Mention that some functions are
29246         defined as macros with arguments only.
29248 2011-09-17  Bruno Haible  <bruno@clisp.org>
29250         Add dependencies to new dirent related modules.
29251         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
29252         * modules/fts (Depends-on): Likewise.
29253         * modules/glob (Depends-on): Likewise.
29254         * modules/savedir (Depends-on): Likewise.
29255         * modules/scandir (Depends-on): Likewise.
29256         * modules/dirent-safer (Depends-on): Add opendir, closedir.
29257         * modules/fdopendir (Depends-on): Add opendir.
29259 2011-09-17  Bruno Haible  <bruno@clisp.org>
29261         inet_pton: Support for MSVC on Windows Vista or newer.
29262         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
29263         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
29264         HAVE_DECL_INET_PTON is defined.
29265         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
29266         On platforms with <winsock2.h>, test whether inet_pton is declared in
29267         <ws2tcpip.h>. If so, arrange to replace it.
29268         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
29269         REPLACE_INET_PTON.
29270         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
29271         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
29272         (Depends-on, configure.ac): Update condition.
29273         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
29275 2011-09-17  Bruno Haible  <bruno@clisp.org>
29277         inet_ntop: Support for MSVC on Windows Vista or newer.
29278         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
29279         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
29280         HAVE_DECL_INET_NTOP is defined.
29281         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
29282         On platforms with <winsock2.h>, test whether inet_ntop is declared in
29283         <ws2tcpip.h>. If so, arrange to replace it.
29284         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
29285         REPLACE_INET_NTOP.
29286         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
29287         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
29288         (Depends-on, configure.ac): Update condition.
29289         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
29291 2011-09-16  Eric Blake  <eblake@redhat.com>
29293         test-fsync: yet another enhancement
29294         * tests/test-fsync.c (main): Also test behavior on read-only text
29295         file.
29297 2011-09-16  Bruno Haible  <bruno@clisp.org>
29299         Enhance fsync, fdatasync tests.
29300         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
29301         * tests/test-fdatasync.c (main): Likewise.
29303 2011-09-16  Bruno Haible  <bruno@clisp.org>
29305         Support for MSVC compiler: Ensure mode_t gets defined.
29306         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
29307         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29309         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
29310         * tests/test-fcntl-h.c: Check that mode_t is defined.
29311         * tests/test-sys_stat.c: Likewise.
29312         * tests/test-sys_types.c: Likewise.
29313         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
29314         * doc/posix-headers/sys_stat.texi: Likewise.
29315         * doc/posix-headers/sys_types.texi: Likewise.
29317 2011-09-16  Bruno Haible  <bruno@clisp.org>
29319         sys_stat: Support for MSVC.
29320         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
29321         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
29322         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
29323         MSVC.
29325 2011-09-16  Bruno Haible  <bruno@clisp.org>
29327         Support for MSVC compiler: Ensure off_t gets defined.
29328         * lib/unistd.in.h: Include <sys/types.h>.
29329         * tests/test-fcntl-h.c: Check that off_t is defined.
29330         * tests/test-sys_stat.c: Likewise.
29331         * tests/test-sys_types.c: Likewise.
29333 2011-09-16  Eric Blake  <eblake@redhat.com>
29335         fdatasync: port to Solaris
29336         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
29337         * modules/fdatasync (Link): Document it.
29338         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
29340         fdatasync: port to MacOS X 10.7
29341         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
29342         declared.
29343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
29344         * modules/unistd (Makefile.am): Substitute it.
29345         * lib/unistd.in.h (fdatasync): Declare on MacOS.
29346         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
29348         fdatasync: minor improvements
29349         * modules/fdatasync (Depends-on): Add condition for fsync.
29350         * lib/fdatasync.c (fdatasync): Add comment.
29351         * tests/test-unistd-c++.cc: Test fdatasync.
29353         unistd: update refs to newer POSIX
29354         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
29355         Suggested by Bruno Haible.
29357         fdatasync: new module
29358         * modules/fsync (Description): Document difference to fdatasync.
29359         * modules/fdatasync: New module.
29360         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
29361         * lib/fdatasync.c (fdatasync): Likewise.
29362         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
29363         defaults.
29364         * modules/unistd (Makefile.am): Set witnesses.
29365         * lib/unistd.in.h (fdatasync): Declare.
29366         * MODULES.html.sh: Document it.
29367         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
29368         * modules/fdatasync-tests: New test.
29369         * tests/test-fdatasync.c: Likewise.
29371 2011-09-16  Eric Blake  <eblake@redhat.com>
29373         test-fsync: enhance tests
29374         * modules/fsync-tests (Depends-on): Add errno, for mingw.
29375         * tests/test-fsync.c (main): Enhance test.
29377 2011-09-15  Bruno Haible  <bruno@clisp.org>
29379         Support for MSVC compiler: Ensure ssize_t gets defined.
29380         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
29381         * doc/posix-headers/stdio.texi: Likewise.
29382         * modules/stdio (Depends-on): Add ssize_t.
29383         * modules/sys_socket (Depends-on): Likewise.
29384         * modules/sys_types (Depends-on): Likewise.
29385         * modules/sys_uio (Depends-on): Likewise.
29386         * modules/unistd (Depends-on): Likewise.
29387         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
29388         * tests/test-sys_types.c: Check that ssize_t is defined.
29390 2011-09-14  Bruno Haible  <bruno@clisp.org>
29392         Avoid using #, the m4 comment starter character, near brackets.
29393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
29394         delimiter character in sed expressions.
29395         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
29396         Suggested by Eric Blake.
29398         Properly quote AC_CHECK_DECLS' 4th argument.
29399         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
29400         argument.
29401         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29402         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29404         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29405         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29406         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
29407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
29408         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
29409         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
29410         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
29411         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
29412         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29413         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29414         * m4/isinf.m4 (gl_ISINF): Likewise.
29415         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29416         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29417         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29418         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29419         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29420         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29421         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29422         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29423         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
29424         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29425         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
29428         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29430         Reported by Eric Blake.
29432         Properly quote AC_CHECK_DECL's 4th argument.
29433         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
29434         argument.
29435         * m4/argp.m4 (gl_ARGP): Likewise.
29436         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29437         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29438         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29439         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29440         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
29441         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
29442         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
29443         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29444         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29445         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29446         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29447         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29448         Reported by Eric Blake.
29450 2011-09-14  Eric Blake  <eblake@redhat.com>
29452         opendir: avoid compile warning
29453         * lib/opendir.c (includes): Always include errno.h.
29454         Reported by Tatsuro MATSUOKA.
29456 2011-09-14  Jim Meyering  <meyering@redhat.com>
29458         maint.mk: sc_tight_scope: propagate failure from sub-make
29459         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
29460         Reported by Martin von Gagern.
29462 2011-09-13  Bruno Haible  <bruno@clisp.org>
29464         tempname: Support for MSVC.
29465         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
29466         MSVC.
29467         * modules/tempname (Depends-on): Add fcntl-h.
29469 2011-09-13  Bruno Haible  <bruno@clisp.org>
29471         sys_time: Support for MSVC.
29472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
29473         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
29474         include <winsock2.h>.
29475         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
29476         function declarations that collide with POSIX.
29477         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
29478         (Makefile.am): Substitute HAVE_WINSOCK2_H.
29480 2011-09-13  Bruno Haible  <bruno@clisp.org>
29482         stat: Support for MSVC.
29483         * lib/stat.c: Include pathmax.h.
29484         * modules/stat (Depends-on): Add pathmax.
29486         pathmax: Support for native Windows.
29487         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
29489 2011-09-12  Bruno Haible  <bruno@clisp.org>
29491         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
29492         * lib/dirent.in.h (struct dirent): New type.
29493         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
29494         DT_WHT): New macros.
29495         (DIR): New type.
29496         (opendir, closedir): Declare only if the module 'opendir' is enabled.
29497         (readdir, rewinddir): New declarations.
29498         * lib/dirent-private.h: New file.
29499         * lib/opendir.c: New file.
29500         * lib/readdir.c: New file.
29501         * lib/rewinddir.c: New file.
29502         * lib/closedir.c: New file.
29503         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
29504         * m4/opendir.m4: New file.
29505         * m4/readdir.m4: New file.
29506         * m4/rewinddir.m4: New file.
29507         * m4/closedir.m4: New file.
29508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
29509         REPLACE_CLOSEDIR here.
29510         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
29511         readdir, rewinddir are declared.
29512         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
29513         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
29514         HAVE_REWINDDIR, HAVE_CLOSEDIR.
29515         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
29516         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
29517         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
29518         * modules/opendir: New file.
29519         * modules/readdir: New file.
29520         * modules/rewinddir: New file.
29521         * modules/closedir: New file.
29522         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
29523         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
29524         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
29525         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
29526         * NEWS: Mention the 'fchdir' change.
29528 2011-09-11  Bruno Haible  <bruno@clisp.org>
29530         asm-underscore.m4: Support for MSVC.
29531         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
29532         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
29534 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
29536         Doc about crypt functions.
29537         * doc/posix-functions/crypt.texi: Expand range of glibc versions
29538         needing for _GNU_SOURCE to get crypt.
29539         * doc/posix-functions/encrypt.texi: Likewise.
29540         * doc/posix-functions/setkey.texi: Likewise.
29542 2011-09-11  Bruno Haible  <bruno@clisp.org>
29544         doc: Update regarding MSVC 9.
29545         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
29546         tested".
29547         * doc/posix-functions/*.texi: Update with info about MSVC 9.
29548         * doc/posix-headers/*.texi: Likewise.
29549         * doc/pastposix-functions/*.texi: Likewise.
29550         * doc/glibc-functions/*.texi: Likewise.
29551         * doc/glibc-headers/*.texi: Likewise.
29553 2011-09-11  Bruno Haible  <bruno@clisp.org>
29555         unistd et al.: Don't assume <unistd.h> exists.
29556         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
29557         does not exist.
29558         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
29559         exist. But include <stdlib.h>.
29560         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
29561         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
29562         symlink() does not exist.
29563         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
29564         include <io.h> instead.
29565         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
29566         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
29567         include <direct.h> instead.
29568         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29570         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
29571         <io.h> instead.
29572         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
29573         correctly if the system does not have hard links.
29574         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
29575         <direct.h> instead.
29576         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
29577         it when looking for function declarations.
29578         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
29579         <direct.h> and <io.h> instead.
29580         * doc/posix-headers/unistd.texi: More details about MSVC problem.
29582 2011-09-11  Bruno Haible  <bruno@clisp.org>
29584         strcase: Support for MSVC.
29585         * modules/strcase (Status, Notice): Remove obsoletion mark.
29586         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
29587         * doc/posix-functions/strncasecmp.texi: Likewise.
29589         strings: Don't assume <strings.h> exists.
29590         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
29591         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
29592         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
29593         * doc/posix-headers/strings.texi: Mention the MSVC problem.
29595 2011-09-11  Bruno Haible  <bruno@clisp.org>
29597         dirent: Don't assume <dirent.h> exists.
29598         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
29599         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
29600         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
29601         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
29603 2011-09-11  Bruno Haible  <bruno@clisp.org>
29605         Fix wint_t on MSVC.
29606         * lib/wchar.in.h (wint_t): On MSVC, override it.
29607         * lib/wctype.in.h (wint_t): Likewise.
29608         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
29609         MSVC.
29610         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
29611         * doc/posix-headers/wctype.texi: Likewise.
29613 2011-09-11  Bruno Haible  <bruno@clisp.org>
29615         sys_types: Fix typo.
29616         * lib/sys_types.in.h: Fix typo in comment.
29617         Reported by Paul Eggert.
29619         Support for MSVC compiler: Ensure size_t gets defined.
29620         * modules/strings (Depends-on): Add 'sys_types'.
29621         * modules/sys_uio (Depends-on): Likewise.
29622         * lib/sys_uio.in.h: Update comment.
29624         C++ tests for module 'sys_types'.
29625         * modules/sys_types-c++-tests: New file.
29626         * tests/test-sys_types-c++.cc: New file.
29628         Tests for module 'sys_types'.
29629         * modules/sys_types-tests: New file.
29630         * tests/test-sys_types.c: New file.
29632         New module 'sys_types'.
29633         * lib/sys_types.in.h: New file.
29634         * m4/sys_types_h.m4: New file.
29635         * modules/sys_types: New file.
29636         * doc/posix-headers/sys_types.texi: Mention the new module and the
29637         size_t problem on MSVC 9.
29639 2011-09-11  Bruno Haible  <bruno@clisp.org>
29641         Support for MSVC compiler: Avoid division by a literal 0.
29642         * lib/math.in.h (NAN): Define through a function call also on MSVC.
29643         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
29644         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
29645         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
29646         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
29647         * tests/infinity.h: New file.
29648         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
29649         on MSVC.
29650         * tests/test-ceilf1.c: Include infinity.h.
29651         (main): Use Infinityf.
29652         * tests/test-ceil1.c: Include infinity.h.
29653         (main): Use Infinityd.
29654         * tests/test-ceill.c: Include infinity.h.
29655         (main): Use Infinityl.
29656         * tests/test-dprintf-posix.c: Include infinity.h.
29657         (test_function): Use Infinityd.
29658         * tests/test-floorf1.c: Include infinity.h.
29659         (main): Use Infinityf.
29660         * tests/test-floor1.c: Include infinity.h.
29661         (main): Use Infinityd.
29662         * tests/test-floorl.c: Include infinity.h.
29663         (main): Use Infinityl.
29664         * tests/test-fprintf-posix.c: Include infinity.h.
29665         (test_function): Use Infinityd.
29666         * tests/test-frexp.c: Include infinity.h.
29667         (main): Use Infinityd.
29668         * tests/test-frexpl.c: Include infinity.h.
29669         (main): Use Infinityl.
29670         * tests/test-isfinite.c: Include infinity.h.
29671         (test_isfinitef): Use Infinityf.
29672         (test_isfinited): Use Infinityd.
29673         (test_isfinitel): Use Infinityl.
29674         * tests/test-isinf.c: Include infinity.h.
29675         (test_isinff): Use Infinityf.
29676         (test_isinfd): Use Infinityd.
29677         (test_isinfl): Use Infinityl.
29678         * tests/test-isnan.c: Include infinity.h.
29679         (test_float): Use Infinityf.
29680         (test_double): Use Infinityd.
29681         (test_long_double): Use Infinityl.
29682         * tests/test-isnanf.h: Include infinity.h.
29683         (main): Use Infinityf.
29684         * tests/test-isnand.h: Include infinity.h.
29685         (main): Use Infinityd.
29686         * tests/test-isnanl.h: Include infinity.h.
29687         (main): Use Infinityl.
29688         * tests/test-ldexpl.c: Include infinity.h.
29689         (main): Use Infinityl.
29690         * tests/test-printf-posix.h: Include infinity.h.
29691         (test_function): Use Infinityd.
29692         * tests/test-roundf1.c: Include infinity.h.
29693         (main): Use Infinityf.
29694         * tests/test-round1.c: Include infinity.h.
29695         (main): Use Infinityd.
29696         * tests/test-roundl.c: Include infinity.h.
29697         (main): Use Infinityl.
29698         * tests/test-signbit.c: Include infinity.h.
29699         (test_signbitf): Use Infinityf.
29700         (test_signbitd): Use Infinityd.
29701         (test_signbitl): Use Infinityl.
29702         * tests/test-snprintf-posix.h: Include infinity.h.
29703         (test_function): Use Infinityd, Infinityl.
29704         * tests/test-sprintf-posix.h: Include infinity.h.
29705         (test_function): Use Infinityd, Infinityl.
29706         * tests/test-truncf1.c: Include infinity.h.
29707         (main): Use Infinityf.
29708         * tests/test-trunc1.c: Include infinity.h.
29709         (main): Use Infinityd.
29710         * tests/test-truncl.c: Include infinity.h.
29711         (main): Use Infinityl.
29712         * tests/test-vasnprintf-posix.c: Include infinity.h.
29713         (test_function): Use Infinityd, Infinityl.
29714         * tests/test-vasprintf-posix.c: Include infinity.h.
29715         (test_function): Use Infinityd, Infinityl.
29716         * modules/ceilf-tests (Files): Add tests/infinity.h.
29717         * modules/ceil-tests (Files): Likewise.
29718         * modules/ceill-tests (Files): Likewise.
29719         * modules/dprintf-posix-tests (Files): Likewise.
29720         * modules/floorf-tests (Files): Likewise.
29721         * modules/floor-tests (Files): Likewise.
29722         * modules/floorl-tests (Files): Likewise.
29723         * modules/fprintf-posix-tests (Files): Likewise.
29724         * modules/frexp-tests (Files): Likewise.
29725         * modules/frexp-nolibm-tests (Files): Likewise.
29726         * modules/frexpl-tests (Files): Likewise.
29727         * modules/frexpl-nolibm-tests (Files): Likewise.
29728         * modules/isfinite-tests (Files): Likewise.
29729         * modules/isinf-tests (Files): Likewise.
29730         * modules/isnan-tests (Files): Likewise.
29731         * modules/isnanf-tests (Files): Likewise.
29732         * modules/isnanf-nolibm-tests (Files): Likewise.
29733         * modules/isnand-tests (Files): Likewise.
29734         * modules/isnand-nolibm-tests (Files): Likewise.
29735         * modules/isnanl-tests (Files): Likewise.
29736         * modules/isnanl-nolibm-tests (Files): Likewise.
29737         * modules/ldexpl-tests (Files): Likewise.
29738         * modules/printf-posix-tests (Files): Likewise.
29739         * modules/roundf-tests (Files): Likewise.
29740         * modules/round-tests (Files): Likewise.
29741         * modules/roundl-tests (Files): Likewise.
29742         * modules/signbit-tests (Files): Likewise.
29743         * modules/snprintf-posix-tests (Files): Likewise.
29744         * modules/sprintf-posix-tests (Files): Likewise.
29745         * modules/truncf-tests (Files): Likewise.
29746         * modules/trunc-tests (Files): Likewise.
29747         * modules/truncl-tests (Files): Likewise.
29748         * modules/vasnprintf-posix-tests (Files): Likewise.
29749         * modules/vasprintf-posix-tests (Files): Likewise.
29750         * modules/vdprintf-posix-tests (Files): Likewise.
29751         * modules/vfprintf-posix-tests (Files): Likewise.
29752         * modules/vprintf-posix-tests (Files): Likewise.
29753         * modules/vsnprintf-posix-tests (Files): Likewise.
29754         * modules/vsprintf-posix-tests (Files): Likewise.
29755         * modules/xprintf-posix-tests (Files): Likewise.
29757 2011-09-11  Bruno Haible  <bruno@clisp.org>
29759         Ensure pid_t gets defined.
29760         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
29761         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
29762         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29763         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29764         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29765         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
29766         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29767         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29768         * tests/test-fcntl-h.c: Check that pid_t is defined.
29769         * tests/test-sched.c: Likewise.
29770         * tests/test-termios.c: Likewise.
29771         * tests/test-time.c: Likewise.
29772         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
29773         * doc/posix-headers/signal.texi: Likewise.
29774         * doc/posix-headers/sys_types.texi: Likewise.
29775         * doc/posix-headers/time.texi: Likewise.
29777 2011-09-11  Bruno Haible  <bruno@clisp.org>
29779         acl: Fix compilation on Solaris 10 (older version).
29780         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
29781         of ACE_EVERYONE.
29782         * lib/set-mode-acl.c (qset_acl): Likewise.
29783         Reported by Christian Jullien <eligis@orange.fr>.
29785 2011-09-10  Bruno Haible  <bruno@clisp.org>
29787         iconv, unsetenv: Add support for MSVC compiler.
29788         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
29789         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
29791 2011-09-10  Bruno Haible  <bruno@clisp.org>
29793         *printf: Add support for MSVC compiler.
29794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
29795         handles the exception caused by the %n directive. When cross-compiling,
29796         guess no on native Windows.
29797         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29798         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
29799         emulate it through vsnprintf.
29800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
29801         * doc/posix-functions/dprintf.texi: Update documentation regarding
29802         MSVC 9.
29803         * doc/posix-functions/fprintf.texi: Likewise.
29804         * doc/posix-functions/printf.texi: Likewise.
29805         * doc/posix-functions/snprintf.texi: Likewise.
29806         * doc/posix-functions/sprintf.texi: Likewise.
29807         * doc/posix-functions/swprintf.texi: Likewise.
29808         * doc/posix-functions/vdprintf.texi: Likewise.
29809         * doc/posix-functions/vfprintf.texi: Likewise.
29810         * doc/posix-functions/vprintf.texi: Likewise.
29811         * doc/posix-functions/vsnprintf.texi: Likewise.
29812         * doc/posix-functions/vsprintf.texi: Likewise.
29813         * doc/glibc-functions/asprintf.texi: Likewise.
29814         * doc/glibc-functions/obstack_printf.texi: Likewise.
29815         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29816         * doc/glibc-functions/vasprintf.texi: Likewise.
29818 2011-09-10  Bruno Haible  <bruno@clisp.org>
29820         nocrash: Add support for native Windows.
29821         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
29823 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
29824             Bruno Haible  <bruno@clisp.org>
29826         absolute-header, include-next: Add support for MSVC compiler.
29827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
29828         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
29829         directory separator in #line directives.
29830         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
29831         recognize also backslash as directory separator in #line directives.
29833 2011-09-08  Jim Meyering  <meyering@redhat.com>
29835         maint.mk: mark the post-release commit log with "maint: " prefix
29836         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
29837         one-line commit-log summary.
29839 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
29840             Bruno Haible  <bruno@clisp.org>
29842         Doc about crypt functions.
29843         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
29844         systems.
29845         * doc/posix-functions/encrypt.texi: Likewise.
29846         * doc/posix-functions/setkey.texi: Likewise.
29848 2011-09-08  Simon Josefsson  <simon@josefsson.org>
29850         * lib/gc.h: Fix copyright header.
29852 2011-09-07  Bruno Haible  <bruno@clisp.org>
29854         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
29855         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
29856         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
29858 2011-09-07  Bruno Haible  <bruno@clisp.org>
29860         openat: Work around compilation error with OSF/1 5.1 DTK cc.
29861         * lib/fopen.c: Use different syntax for include of <stdio.h>.
29862         * lib/freopen.c: Likewise.
29863         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
29864         * lib/lstat.c: Likewise.
29865         * lib/stat.c: Likewise.
29866         * lib/open.c: Use different syntax for include of <fcntl.h>.
29867         * lib/openat.c: Include fcntl.h again, explicitly.
29869 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
29871         parse-datetime: document the newly accepted format
29872         * doc/parse-datetime.texi (Combined date and time of day items):
29873         New section.
29875 2011-09-06  Bruno Haible  <bruno@clisp.org>
29877         acl: Fix a test failure on newer Solaris 10 with ZFS.
29878         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
29879         ENOSYS as no ACL.
29880         Reported by Jim Meyering.
29882 2011-09-06  Bruno Haible  <bruno@clisp.org>
29884         acl: Update for AIX >= 5.3 with NFS.
29885         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
29886         ENOSYS as no ACL.
29888         acl: Fix a test failure on AIX >= 5.3 with NFS.
29889         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
29890         as no ACL.
29892 2011-09-06  Bruno Haible  <bruno@clisp.org>
29894         acl: Fix a test failure on IRIX 6.5 with NFS.
29895         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
29896         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
29897         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
29898         * lib/copy-acl.c (qcopy_acl): Likewise.
29900 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
29902         openat: port to AIX 7.1 with large files
29903         AIX 7.1 does a "#define openat open64at" if large files are in use,
29904         so we can't simply #undef openat.  Use the orig_openat trick (similar
29905         to orig_open in lib/open.c) to work around the problem.  Problem
29906         reported by Kevin Brott for GNU tar, in the thread containing
29907         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
29908         * lib/openat.c (__need_system_fcntl_h): Define first.
29909         Include <fcntl.h> and <sys/types.h> before undefining.
29910         (orig_openat) [HAVE_OPENAT]: New inline function.
29911         (openat) [HAVE_OPENAT]: Do not undef.
29912         (rpl_openat): Use orig_openat, not openat.
29914 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29915             Bruno Haible  <bruno@clisp.org>
29917         acl: Avoid errors on NonStop Kernel.
29918         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
29919         ENOTSUP errors.
29921 2011-09-05  Bruno Haible  <bruno@clisp.org>
29923         acl: Clean up Solaris code.
29924         * lib/acl-internal.h: Remove no-op #if.
29925         * lib/file-has-acl.c: Likewise.
29926         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
29927         * lib/copy-acl.c (qcopy_acl): Likewise.
29929 2011-09-05  Bruno Haible  <bruno@clisp.org>
29931         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
29932         binaries built on the original Solaris 10.
29933         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
29934         trivial.
29936 2011-09-05  Bruno Haible  <bruno@clisp.org>
29938         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29939         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
29940         10.
29941         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
29942         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
29943         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
29944         instead of acl_get, facl_get, acl_set, facl_set.
29946 2011-09-05  Bruno Haible  <bruno@clisp.org>
29948         copy-file: Try unit tests on more file systems.
29949         * tests/test-copy-file-1.sh: New file.
29950         * tests/test-copy-file-2.sh: New file.
29951         * modules/copy-file-tests (Files): Add them.
29952         (Makefile.am): Add them to TESTS.
29954         acl: Try unit tests on more file systems.
29955         * tests/test-file-has-acl-1.sh: New file.
29956         * tests/test-file-has-acl-2.sh: New file.
29957         * tests/test-set-mode-acl-1.sh: New file.
29958         * tests/test-set-mode-acl-2.sh: New file.
29959         * tests/test-copy-acl-1.sh: New file.
29960         * tests/test-copy-acl-2.sh: New file.
29961         * modules/acl-tests (Files): Add them.
29962         (Makefile.am): Add them to TESTS.
29964 2011-09-04  Bruno Haible  <bruno@clisp.org>
29966         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29967         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
29968         10.
29969         (OLD_ALLOW, OLD_DENY): New macros.
29970         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
29971         ACE_ACCESS_ALLOWED_ACE_TYPE.
29972         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
29973         ACE_ACCESS_DENIED_ACE_TYPE.
29974         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
29975         (NEW_ACE_EXECUTE): Fix value.
29976         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
29977         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
29978         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
29979         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
29980         NEW_ACE_SYNCHRONIZE): New macros.
29981         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
29982         instead of acl_fromtext, acl_set, facl_set.
29983         Fixes a coreutils/tests/cp/perm failure.
29985 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
29987         openat: test for fstatat (..., 0) bug
29988         Further testing with tar suggests that fstatat (..., 0)
29989         does not work in general, on AIX 7.1; see
29990         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
29991         So, give up entirely on AIX 7.1's fstatat, and fall back on our
29992         replacement fstatat (which is what older AIX releases were using
29993         anyway).
29994         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
29995         use is now changed to orig_fstatat.  This was probably the right
29996         thing to do anyway.
29997         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
29998         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
29999         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
30000         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
30001         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
30002         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
30003         if the bug is found.
30005         openat: test for fstatat (AT_FDCWD, ..., 0) bug
30006         This tests for another fstatat bug on AIX 7.1:
30007         fstatat (AT_FDCWD, ..., 0) does not work.  See
30008         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
30009         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
30010         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
30011         (rpl_fstatat): Adjust so that it works around either (or both)
30012         bugs if present.
30013         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
30015 2011-09-03  Karl Berry  <karl@gnu.org>
30017         * doc/regex.texi (Character Class Operators): Avoid literal ":"
30018         in index entries.
30020 2011-09-02  Bruno Haible  <bruno@clisp.org>
30022         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
30023         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
30024         values of AR, ARFLAGS, RANLIB.
30025         Reported by John W. Eaton <jwe@gnu.org> for Octave.
30027 2011-09-02  Bruno Haible  <bruno@clisp.org>
30029         Find 'ar' program that fits with --host argument.
30030         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
30032 2011-09-02  Bruno Haible  <bruno@clisp.org>
30034         tests: init.sh: Support any non-GNU diff.
30035         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
30036         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
30037         Solaris 8.
30039 2011-09-02  Bruno Haible  <bruno@clisp.org>
30041         tests: init.sh: work also with any non-GNU diff that supports -u
30042         * tests/init.sh: Relax check for diff -u support.
30043         Rather than checking for GNU diff via --version, simply check
30044         for support for -u itself.  Useful at least on OpenBSD 4.9,
30045         AIX 7.1, IRIX 6.5, and Solaris 10.
30047 2011-09-01  Bruno Haible  <bruno@clisp.org>
30049         strtoimax, strtoumax: Document problem on HP-UX 11.
30050         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
30051         * doc/posix-functions/strtoumax.texi: Likewise.
30053 2011-09-01  Bruno Haible  <bruno@clisp.org>
30055         strtoumax: Avoid link error on OSF/1 with DTK cc.
30056         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
30057         defined as a function.
30058         * modules/strtoumax (Depends-on, configure.ac): Test only whether
30059         strtoumax is defined, not whether it is declared.
30061 2011-09-01  Bruno Haible  <bruno@clisp.org>
30063         strtoimax: Avoid link error on OSF/1 with DTK cc.
30064         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
30065         defined as a function.
30066         * modules/strtoimax (Depends-on, configure.ac): Test only whether
30067         strtoimax is defined, not whether it is declared.
30069 2011-09-01  Bruno Haible  <bruno@clisp.org>
30071         imaxdiv: Avoid link error on OSF/1 with DTK cc.
30072         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
30073         as a function.
30074         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
30075         whether it is declared.
30077 2011-09-01  Bruno Haible  <bruno@clisp.org>
30079         imaxabs: Avoid link error on OSF/1 with DTK cc.
30080         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
30081         as a function.
30082         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
30083         whether it is declared.
30085 2011-09-01  Bruno Haible  <bruno@clisp.org>
30087         Tests for module 'strtoumax'.
30088         * modules/strtoumax-tests: New file.
30089         * tests/test-strtoumax.c: New file.
30091         Tests for module 'strtoimax'.
30092         * modules/strtoimax-tests: New file.
30093         * tests/test-strtoimax.c: New file.
30095         Tests for module 'imaxdiv'.
30096         * modules/imaxdiv-tests: New file.
30097         * tests/test-imaxdiv.c: New file.
30099         Tests for module 'imaxabs'.
30100         * modules/imaxabs-tests: New file.
30101         * tests/test-imaxabs.c: New file.
30103 2011-09-01  Bruno Haible  <bruno@clisp.org>
30105         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
30106         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
30107         pthread_create.
30109 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30111         openat: work around AIX 7.1 fstatat issue
30112         This should fix the problem that was not properly fixed
30113         in the previous change, dated 2011-08-30.
30114         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
30115         __need_system_stat_h defined.
30116         (orig_fstatat) [HAVE_FSTATAT]: New function.
30117         (rpl_fstatat): Go back to the old way of doing things,
30118         except call orig_fstatat instead of fstatat.
30119         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
30120         Remove unnecessary check whether fstatat fills in st_size etc.
30122 2011-09-01  Bruno Haible  <bruno@clisp.org>
30124         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
30125         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
30126         just include the system's header.
30128 2011-08-31  Jim Meyering  <meyering@redhat.com>
30130         tests: avoid spurious assertion failure in test-float.c on ppc64
30131         * tests/test-float.c (test_long_double): Comment out an assertion,
30132         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
30133         with gcc-4.4.4.
30135         maint: indent with spaces, not TABs
30136         I need to get in the habit of running gnulib's "make check".
30137         Both of these would have been caught.
30138         * m4/largefile.m4: Indent with spaces, not TABs.
30139         * lib/parse-datetime.y (iso_8601_time): Likewise.
30140         Spotted by Pádraig Brady.
30142         test-parse-datetime.c: accommodate a relatively strict gcc warning
30143         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
30144         to avoid a warning from gcc's -Werror=missing-declarations.
30145         Insert a few spaces-before-funcall-parenthesis.
30147 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
30149         parse-datetime: accept ISO 8601 date and time rep with "T" separator
30150         The parser now accepts ISO 8601 date-time strings with "T" as the
30151         separator.  It has long parsed dates like "2004-02-29 16:21:42"
30152         with a space between the date and time strings.  Now it also parses
30153         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
30154         variants like "2004-02-29T16:21:42.333-07:00"
30155         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
30156         of day representation using the 'T' separator character.
30157         * doc/parse-datetime.texi (General date syntax): replace use of
30158         deprecated --iso-8601 option with --rfc-3339 in example of date
30159         command output formats that can be parsed.
30160         * tests/test-parse-datetime.c (tm_diff): New function, taken from
30161         lib/parse-datetime.y.
30162         (gmt_offset): New function.
30163         (main): Add additional test cases to validate ISO8601 extended
30164         date and time of day parsing.
30166 2011-08-31  Bruno Haible  <bruno@clisp.org>
30168         freopen: Documentation.
30169         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
30170         name.
30171         Reported by Claudio Bley <claudio.bley@gmail.com>.
30173 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
30175         freopen: Don't crash if the filename argument is NULL.
30176         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
30177         NULL.
30179 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30181         openat: work around AIX 7.1 fstatat bug
30182         Problem reported by Kevin Brott for GNU tar, in the thread containing
30183         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
30184         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
30185         FSTATAT_ST_SIZE_ETC_BROKEN.
30186         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
30187         rpl_fstatat.
30188         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
30189         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
30190         AC_CHECK_FUNCS_ONCE for fstatat.
30191         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
30192         fchmodat, mkdirat, openat and unlinkat.
30194 2011-08-30  Bruno Haible  <bruno@clisp.org>
30196         Avoid endless recursions if config.h includes some header files.
30197         * lib/fopen.c (__need_FILE): Define already before including config.h.
30198         * lib/freopen.c (__need_FILE): Likewise.
30199         * lib/open.c (__need_system_fcntl_h): Likewise.
30200         * lib/stat.c (__need_system_sys_stat_h): Likewise.
30201         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
30202         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30204 2011-08-25  Karl Berry  <karl@gnu.org>
30206         * config/srclist.txt (ylwrap): new try.
30207         * build-aux/ylwrap: new file.
30209 2011-08-23  Bruno Haible  <bruno@clisp.org>
30211         tmpdir: Use a good default directory on native Windows.
30212         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
30213         (P_tmpdir): Default to _P_tmpdir on native Windows.
30214         (path_search): On native Windows, try the value returned by GetTempPath
30215         before trying P_tmpdir.
30216         * modules/tmpdir (Depends-on): Add pathmax.
30217         Suggested by John Darrington <john@darrington.wattle.id.au>.
30219 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
30221         doc: fix typo in README-release
30222         * top/README-release: Capitalize first word of a sentence.
30224 2011-08-19  Jim Meyering  <meyering@redhat.com>
30226         fts: do not exhaust memory when processing million-entry directories
30227         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
30228         directory would require about 256*N bytes of memory.  Thus, it was
30229         easy to construct a directory too large to be processed by any of
30230         those tools.  With this change, fts' maximum memory utilization is
30231         now limited to around 30MB.
30232         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
30233         (fts_read): When we've processed the final entry (i.e., when
30234         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
30235         using the parent entry to read any remaining entries.  Dispatch
30236         depending on what fts_build returns:
30237         - NULL+stop, aka failure: stop
30238         - NULL otherwise: move up in the dir hierarchy
30239         - non-NULL: handle this new entry
30240         (fts_build): Declare and use new local, continue_readdir.
30241         Prepare to be called from fts_read, when the entries
30242         from a partially-read directory have just been exhausted.
30243         In that case, we'll skip the opendir and instead use the parent's
30244         fts_dirp and derive dir_fd from that.
30245         Finally, in the readdir loop, if we read max_entries entries,
30246         exit the loop ensuring *not* to call closedir.  This is required
30247         so that fts_dirp can be reused on a subsequent call.
30248         Prompted by Ben England's report of memory exhaustion in find
30249         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
30251         maint: fts: move decl of `dp' down into while loop; split a long line
30252         * lib/fts.c (fts_build): No semantic change.
30254         fts: add/use new struct member, fts_dirp
30255         We are about to use this to manage any directory with
30256         too many entries to read all of them into memory at once.
30257         To do that, we'll need to save the DIR* pointer in each
30258         affected FTSENT struct.
30259         * lib/fts_.h: Include <dirent.h>.
30260         (struct FTSENT) [fts_dirp]: New member.
30261         * lib/fts.c (closedir_and_clear): Define.
30262         Use it in place of closedir so that we are sure to
30263         clear the new fts_dirp member when done with it.
30264         (fts_alloc): Initialize the new member.
30265         (fts_lfree): Free, if needed.
30267         maint: fts: give __opendir2 a new parameter and rename
30268         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
30269         than surreptitiously using sole caller's "dir_fd".
30270         (fts_opendir): Rename from __opendir2.
30272         maint: fts.c: remove __opendir2's now-unused parameter, oflag
30273         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
30275         maint: fts.c: correct off-by-one indentation
30276         * lib/fts.c (fts_build): Correct indentation, change style
30277         of a couple of block comments, and bracing style.
30279         maint: fts.c: move __opendir2 #define "up" out of function body
30280         * lib/fts.c (__opendir2): Move "up".  No semantic change.
30282         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
30283         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
30284         out for a long time and besides was useful only on BSD systems.
30286 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30288         regex: port to Stratus OpenVOS
30289         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
30290         define to empty, rather than attempting nonportable optimizations.
30291         Problem reported by Paul Green in:
30292         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
30293         and fix suggested by Eric Blake in:
30294         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
30296 2011-08-17  Eric Blake  <eblake@redhat.com>
30298         getcwd: fix test failures on mingw
30299         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
30300         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
30301         test if long directory cannot be created, and allow mingw errno.
30303         getcwd-lgpl: fix m4 to match relaxed test for BSD
30304         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
30305         (gl_FUNC_GETCWD_SIGNATURE): New macro.
30306         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
30307         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
30308         signature problem.
30310         getcwd: fix compilation on mingw64
30311         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
30312         getcwd.
30313         Reported by Marc-André Lureau.
30315         pipe2: silence compiler warning
30316         * lib/pipe2.c (pipe2): Hide label if it is not used.
30318 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
30320         relocatable-prog: fix link error
30321         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
30322         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
30323         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
30324         into modules/relocatable-lib without noticing that
30325         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
30326         also needs to build relocatable.c.
30328 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30330         getaddrinfo: fix sh typo in gai_strerrorA decl checking
30331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
30332         shell code: it contained a 'break' that was not in a loop.
30333         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
30334         via a shell-language loop; this may have been true in old Autoconf
30335         versions, but it's not true in Autoconf 2.68.  I found this bug
30336         when testing coreutils git on Solaris 8, whose shell complains
30337         about the syntax error.
30339 2011-08-12  Simon Josefsson  <simon@josefsson.org>
30341         * lib/base64.c: Fix comment to reference RFC 4648.
30342         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
30343         <gvtulder@gmail.com>.
30345 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30347         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
30349         po/Makefile.in.in: fix make -q problem
30350         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
30351         rule, since there's no file named 'check-macro-version' and its
30352         use as a file breaks make -q.
30353         (all): Don't depend on check-macro-version.
30354         (CHECK_MACRO_VERSION): New macro.
30355         (stamp-po): Use it.
30357         configmake: fix make -q problem
30358         * modules/configmake (configmake.h): Update configmake.h's time stamp
30359         even if the file does not change.  Otherwise, 'make -q' fails.
30360         Problem reported by Simon Josefsson in
30361         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
30363 2011-08-11  Jim Meyering  <meyering@redhat.com>
30365         git-version-gen: correct the advice in a comment
30366         * build-aux/git-version-gen: Correct comment.
30367         Don't recommend to list .tarball-version in .gitignore.
30369 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30371         base64: fix off-by-one buffer size bug
30372         Problem and (trivial) fix reported by Gijs van Tulder in
30373         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
30374         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
30375         * tests/test-base64.c (main): Catch the bug.
30377 2011-08-10  Eric Blake  <eblake@redhat.com>
30379         closein: correct comments
30380         * lib/closein.c (close_stdin): Improve comments.
30382 2011-08-09  Bruno Haible  <bruno@clisp.org>
30384         More tests for 'fseeko'.
30385         * tests/test-fseeko3.c: New file, from Eric Blake.
30386         * tests/test-fseeko3.sh: New file.
30387         * modules/fseeko-tests (Files): Add them.
30388         (TESTS): Add test-fseeko3.sh.
30389         (check_PROGRAMS): Add test-fseeko3.
30391 2011-08-09  Eric Blake  <eblake@redhat.com>
30393         fseeko: remove unneeded hack
30394         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
30396         fseeko: fix bug on glibc
30397         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
30398         Reported by John W. Eaton.
30400 2011-08-08  Bruno Haible  <bruno@clisp.org>
30402         unictype/base: Fix interoperability with preinstalled libunistring.
30403         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
30404         Reported by Simon Josefsson.
30406 2011-08-08  Bruno Haible  <bruno@clisp.org>
30408         iswblank: Detect declaration correctly.
30409         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
30410         AC_CHECK_DECLS invocation.
30412 2011-08-08  Bruno Haible  <bruno@clisp.org>
30414         tcgetsid: Detect declaration correctly.
30415         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
30416         AC_CHECK_DECLS invocation.
30417         Reported by Simon Josefsson.
30419 2011-08-08  Eric Blake  <eblake@redhat.com>
30421         largefile: fix typo that regressed large file support
30422         * modules/largefile (configure.ac-early): Fix section name.
30424 2011-08-06  Karl Berry  <karl@gnu.org>
30426         * MODULES.html.sh (func_all_files): _Noreturn is no longer
30427         a separate module.
30429 2011-08-05  Simon Josefsson  <simon@josefsson.org>
30431         openat: Fix warnings and commens when building unlinkat.c on Hurd.
30432         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
30433         get prototype for free.
30435 2011-08-04  Bruno Haible  <bruno@clisp.org>
30437         Tests for module 'pathmax'.
30438         * modules/pathmax-tests: New file.
30439         * tests/test-pathmax.c: New file.
30441         canonicalize-lgpl: Support larger filenames on the Hurd.
30442         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
30443         Reported by Paul Eggert.
30445         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
30446         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
30447         * lib/chdir-long.h: Include pathmax.h.
30448         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
30449         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
30450         (PATH_MAX): Remove code that is done by pathmax.h.
30451         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
30452         * lib/tmpfile.c: Add a comment.
30453         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
30454         * modules/chdir-long (Depends-on): Add pathmax.
30455         * modules/getcwd (Depends-on): Add pathmax.
30456         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
30457         is not defined.
30458         * doc/posix-headers/limits.texi: Mention the pathmax module.
30459         * NEWS: Mention the change.
30461 2011-08-02  Bruno Haible  <bruno@clisp.org>
30463         pthread_sigmask: Actually use results of gl_THREADLIB.
30464         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
30465         gl_THREADLIB, not gl_[]THREADLIB.
30466         Reported by Eric Blake.
30468 2011-08-02  Jim Meyering  <meyering@redhat.com>
30470         maint.mk: relax the default _gl_TS_function_match regexp
30471         * top/maint.mk (_gl_TS_function_match): Don't require at least one
30472         space between function name and "(" in an "extern" declaration.
30473         That would fail to match a decl with no space there: extern void foo();
30475 2011-07-31  Iain Nicol  <iain@thenicols.net>
30477         git-version-gen: document that EXTRA_DIST must include .version
30478         * build-aux/git-version-gen: In the how-to-use comment, document
30479         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
30480         will fail when run from an unpacked distribution tarball.
30482 2011-08-01  Bruno Haible  <bruno@clisp.org>
30484         wctype-h: Fix last change.
30485         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
30486         REPLACE_TOWLOWER to 0.
30487         Reported by Sam Steingold <sds@gnu.org>.
30489 2011-07-31  Bruno Haible  <bruno@clisp.org>
30491         frexpl: Update autoconf test.
30492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
30493         according to changes of 2011-06-20.
30495 2011-07-31  Bruno Haible  <bruno@clisp.org>
30497         sys_utsname: Add support for Minix.
30498         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
30499         <sys/utsname.h>.
30500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30501         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
30503 2011-07-31  Bruno Haible  <bruno@clisp.org>
30505         strings: Add support for Minix.
30506         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
30507         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30508         * doc/posix-headers/strings.texi: Document the Minix problem.
30510 2011-07-31  Bruno Haible  <bruno@clisp.org>
30512         wctype-h: Add support for Minix.
30513         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
30514         REPLACE_TOWLOWER.
30515         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
30516         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
30517         REPLACE_ISWCNTRL.
30519 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
30521         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
30522         This is a performance improvement for 64-bit hosts: it causes the
30523         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
30525 2011-07-31  Bruno Haible  <bruno@clisp.org>
30527         stdioext: Add support for Minix.
30528         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
30529         * lib/fpurge.c (fpurge): Likewise.
30530         * lib/freadahead.c (freadahead): Likewise.
30531         * lib/freadable.c (freadable): Likewise.
30532         * lib/freading.c (freading): Likewise.
30533         * lib/freadptr.c (freadptr): Likewise.
30534         * lib/freadseek.c (freadptrinc): Likewise.
30535         * lib/fseeko.c (rpl_fseeko): Likewise.
30536         * lib/fseterr.c (fseterr): Likewise.
30537         * lib/fwritable.c (fwritable): Likewise.
30538         * lib/fwriting.c (fwriting): Likewise.
30539         * lib/fflush.c (clear_ungetc_buffer): Update comment.
30540         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
30542 2011-07-31  Bruno Haible  <bruno@clisp.org>
30544         errno: Port to Minix.
30545         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
30546         ECONNABORTED are defined.
30547         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
30548         GNULIB_defined_ECONNABORTED): New macros.
30549         * lib/strerror-override.h (strerror_override): Test also
30550         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
30551         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
30552         ECONNABORTED.
30553         * doc/posix-headers/errno.texi: Mention the Minix problem.
30555 2011-07-31  Bruno Haible  <bruno@clisp.org>
30557         Work around declaration collisions on Minix.
30558         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
30559         defined, set REPLACE_MBSINIT.
30560         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
30561         defined, set REPLACE_MBRTOWC.
30562         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
30563         set REPLACE_MBRLEN.
30564         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
30565         defined, set REPLACE_MBSRTOWCS.
30566         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
30567         defined, set REPLACE_WCRTOMB.
30568         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
30569         defined, set REPLACE_WCSRTOMBS.
30571 2011-07-31  Bruno Haible  <bruno@clisp.org>
30573         Add support for Minix with ACK compiler.
30574         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
30575         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
30576         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
30578 2011-07-31  Bruno Haible  <bruno@clisp.org>
30580         Documentation about Minix.
30581         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
30582         * doc/glibc-headers/*.texi: Likewise.
30583         * doc/posix-functions/*.texi: Likewise.
30584         * doc/glibc-functions/*.texi: Likewise.
30586 2011-07-31  Bruno Haible  <bruno@clisp.org>
30588         snippet/warn-on-use: Fix indentation.
30589         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
30591 2011-07-25  Jim Meyering  <meyering@redhat.com>
30593         tests: test-update-copyright.sh: remove unnecessary "rm" commands
30594         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
30595         commands.
30597 2011-07-27  Jim Meyering  <meyering@redhat.com>
30599         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
30600         * top/maint.mk (gl_extract_significant_defines_): Now that
30601         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
30602         gnulib/lib/signal.in.h, and now that we recommend to
30603         define-if-undefined those two symbols in application code,
30604         we must filter them out of the "significant" list.
30605         This avoids a "make syntax-check" failure in coreutils.
30607 2011-07-26  Eric Blake  <eblake@redhat.com>
30609         warnings: add comments about previous patch
30610         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
30611         * m4/include_next.m4: Likewise.
30612         * m4/warn-on-use.m4: Likewise.
30613         * m4/warnings.m4: Likewise, and simplify use.
30614         Suggested by Stefano Lattarini.
30616         include-next, warnings: support older autoconf
30617         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
30618         AS_VAR_PUSHDEF in a way that works with older autoconf.
30619         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
30620         Reported by Daniel P. Berrange.
30622 2011-07-25  Bruno Haible  <bruno@clisp.org>
30624         fseek, ftell: Fix doc.
30625         * doc/posix-functions/fseek.texi: Reword statement about
30626         AC_SYS_LARGEFILE.
30627         * doc/posix-functions/ftell.texi: Likewise.
30629 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30630             Bruno Haible  <bruno@clisp.org>
30632         Add dependencies to the 'largefile' module.
30633         * modules/fopen (Depends-on): Add 'largefile'.
30634         * modules/freopen (Depends-on): Likewise.
30635         * modules/fseeko (Depends-on): Likewise.
30636         * modules/ftello (Depends-on): Likewise.
30637         * modules/glob (Depends-on): Likewise.
30638         * modules/lseek (Depends-on): Likewise.
30639         * modules/lstat (Depends-on): Likewise.
30640         * modules/mkostemp (Depends-on): Likewise.
30641         * modules/mkostemps (Depends-on): Likewise.
30642         * modules/mkstemp (Depends-on): Likewise.
30643         * modules/mkstemps (Depends-on): Likewise.
30644         * modules/open (Depends-on): Likewise.
30645         * modules/openat (Depends-on): Likewise.
30646         * modules/pread (Depends-on): Likewise.
30647         * modules/pwrite (Depends-on): Likewise.
30648         * modules/scandir (Depends-on): Likewise.
30649         * modules/stat (Depends-on): Likewise.
30650         * modules/tmpfile (Depends-on): Likewise.
30651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
30652         since the containing module now depends on the largefile module.
30653         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
30654         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
30655         off_t is fixed by gnulib.
30656         * doc/posix-functions/freopen.texi: Likewise.
30657         * doc/posix-functions/fseeko.texi: Likewise.
30658         * doc/posix-functions/fstatat.texi: Likewise.
30659         * doc/posix-functions/ftello.texi: Likewise.
30660         * doc/posix-functions/glob.texi: Likewise.
30661         * doc/posix-functions/lseek.texi: Likewise.
30662         * doc/posix-functions/lstat.texi: Likewise.
30663         * doc/posix-functions/mkstemp.texi: Likewise.
30664         * doc/posix-functions/open.texi: Likewise.
30665         * doc/posix-functions/openat.texi: Likewise.
30666         * doc/posix-functions/pread.texi: Likewise.
30667         * doc/posix-functions/pwrite.texi: Likewise.
30668         * doc/posix-functions/scandir.texi: Likewise.
30669         * doc/posix-functions/stat.texi: Likewise.
30670         * doc/posix-functions/tmpfile.texi: Likewise.
30671         * doc/glibc-functions/mkostemp.texi: Likewise.
30672         * doc/glibc-functions/mkostemps.texi: Likewise.
30673         * doc/glibc-functions/mkstemps.texi: Likewise.
30675 2011-07-25  Bruno Haible  <bruno@clisp.org>
30677         fcntl: Move AC_LIBOBJ invocation to module description.
30678         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
30679         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
30681         fcntl: Remove call-in from fchdir.m4.
30682         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
30683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
30685         dup3: Remove potential call-in from fchdir.m4.
30686         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
30687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
30689         dup2: Move AC_LIBOBJ invocation to module description.
30690         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
30691         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
30692         Don't invoke AC_LIBOBJ.
30693         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
30695         dup2: Remove call-in from fchdir.m4.
30696         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
30697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
30699         fclose: Move AC_LIBOBJ invocation to module description.
30700         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
30701         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
30702         to 1.
30703         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
30705         fclose: Remove call-in from close.m4.
30706         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
30707         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
30709         close: Move AC_LIBOBJ invocation to module description.
30710         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
30711         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
30712         1.
30713         * modules/close (configure.ac): Invoke AC_LIBOBJ.
30715         close: Remove call-in from fchdir.m4.
30716         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
30717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
30719         open: Move AC_LIBOBJ invocation to module description.
30720         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
30721         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
30722         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
30724         open: Remove call-in from fchdir.m4.
30725         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
30726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
30728         fchdir: Start to remove gl_REPLACE_* idiom.
30729         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
30730         (gl_FUNC_FCHDIR): Invoke it.
30732 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30734         * lib/ftell.c (ftell): Comment out cast.
30736         close: use gl_REPLACE_FCLOSE only if defined
30737         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
30738         is defined.  The close module doesn't depend on the fclose module
30739         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
30740         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
30741         I reproduced the problem with "./gnulib-tool --test close sys_socket".
30743 2011-07-24  Jim Meyering  <meyering@redhat.com>
30745         test-select.h: avoid warning when using gcc's -Wmissing-declarations
30746         * tests/test-select.h (test_function): Declare as "static".
30748 2011-07-24  Bruno Haible  <bruno@clisp.org>
30750         doc: Mention the effects of AC_SYS_LARGEFILE.
30751         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
30752         on this function.
30753         * doc/posix-functions/aio_error.texi: Likewise.
30754         * doc/posix-functions/aio_fsync.texi: Likewise.
30755         * doc/posix-functions/aio_read.texi: Likewise.
30756         * doc/posix-functions/aio_return.texi: Likewise.
30757         * doc/posix-functions/aio_suspend.texi: Likewise.
30758         * doc/posix-functions/aio_write.texi: Likewise.
30759         * doc/posix-functions/fgetpos.texi: Likewise.
30760         * doc/posix-functions/fopen.texi: Likewise.
30761         * doc/posix-functions/freopen.texi: Likewise.
30762         * doc/posix-functions/fsetpos.texi: Likewise.
30763         * doc/posix-functions/fstatvfs.texi: Likewise.
30764         * doc/posix-functions/ftruncate.texi: Likewise.
30765         * doc/posix-functions/ftw.texi: Likewise.
30766         * doc/posix-functions/getrlimit.texi: Likewise.
30767         * doc/posix-functions/glob.texi: Likewise.
30768         * doc/posix-functions/lio_listio.texi: Likewise.
30769         * doc/posix-functions/lockf.texi: Likewise.
30770         * doc/posix-functions/mkstemp.texi: Likewise.
30771         * doc/posix-functions/mmap.texi: Likewise.
30772         * doc/posix-functions/nftw.texi: Likewise.
30773         * doc/posix-functions/openat.texi: Likewise.
30774         * doc/posix-functions/opendir.texi: Likewise.
30775         * doc/posix-functions/posix_fadvise.texi: Likewise.
30776         * doc/posix-functions/posix_fallocate.texi: Likewise.
30777         * doc/posix-functions/pread.texi: Likewise.
30778         * doc/posix-functions/pwrite.texi: Likewise.
30779         * doc/posix-functions/readdir.texi: Likewise.
30780         * doc/posix-functions/readdir_r.texi: Likewise.
30781         * doc/posix-functions/rewinddir.texi: Likewise.
30782         * doc/posix-functions/scandir.texi: Likewise.
30783         * doc/posix-functions/seekdir.texi: Likewise.
30784         * doc/posix-functions/setrlimit.texi: Likewise.
30785         * doc/posix-functions/statvfs.texi: Likewise.
30786         * doc/posix-functions/telldir.texi: Likewise.
30787         * doc/posix-functions/tmpfile.texi: Likewise.
30788         * doc/posix-functions/truncate.texi: Likewise.
30789         * doc/glibc-functions/fallocate.texi: Likewise.
30790         * doc/glibc-functions/fstatfs.texi: Likewise.
30791         * doc/glibc-functions/fts_children.texi: Likewise.
30792         * doc/glibc-functions/fts_read.texi: Likewise.
30793         * doc/glibc-functions/getdirentries.texi: Likewise.
30794         * doc/glibc-functions/mkostemp.texi: Likewise.
30795         * doc/glibc-functions/mkostemps.texi: Likewise.
30796         * doc/glibc-functions/mkstemps.texi: Likewise.
30797         * doc/glibc-functions/preadv.texi: Likewise.
30798         * doc/glibc-functions/pwritev.texi: Likewise.
30799         * doc/glibc-functions/sendfile.texi: Likewise.
30800         * doc/glibc-functions/statfs.texi: Likewise.
30802 2011-07-24  Bruno Haible  <bruno@clisp.org>
30804         doc: Fix typo.
30805         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
30807 2011-07-24  Bruno Haible  <bruno@clisp.org>
30809         doc: Mention fsusage.
30810         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
30812 2011-07-24  Bruno Haible  <bruno@clisp.org>
30814         doc: Mention new glibc headers and functions.
30815         * doc/glibc-headers/gshadow.texi: New file.
30816         * doc/glibc-functions/endsgent.texi: New file.
30817         * doc/glibc-functions/fgetsgent.texi: New file.
30818         * doc/glibc-functions/fgetsgent_r.texi: New file.
30819         * doc/glibc-functions/getsgent.texi: New file.
30820         * doc/glibc-functions/getsgent_r.texi: New file.
30821         * doc/glibc-functions/getsgnam.texi: New file.
30822         * doc/glibc-functions/getsgnam_r.texi: New file.
30823         * doc/glibc-functions/putsgent.texi: New file.
30824         * doc/glibc-functions/setsgent.texi: New file.
30825         * doc/glibc-functions/sgetsgent.texi: New file.
30826         * doc/glibc-functions/sgetsgent_r.texi: New file.
30827         * doc/glibc-functions/malloc_info.texi: New file.
30828         * doc/glibc-functions/preadv.texi: New file.
30829         * doc/glibc-functions/pwritev.texi: New file.
30830         * doc/glibc-functions/register_printf_modifier.texi: New file.
30831         * doc/glibc-functions/register_printf_specifier.texi: New file.
30832         * doc/glibc-functions/register_printf_type.texi: New file.
30833         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
30834         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
30835         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
30836         * doc/glibc-functions/pthread_getname_np.texi: New file.
30837         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
30838         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
30839         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
30840         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
30841         * doc/glibc-functions/pthread_setname_np.texi: New file.
30842         * doc/glibc-functions/pthread_sigqueue.texi: New file.
30843         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
30844         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
30845         * doc/glibc-functions/qsort_r.texi: New file.
30846         * doc/glibc-functions/quick_exit.texi: New file.
30847         * doc/glibc-functions/syncfs.texi: New file.
30848         * doc/gnulib.texi: Include them.
30849         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
30850         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
30851         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
30852         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
30853         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
30854         * doc/glibc-functions/execvpe.texi: Likewise.
30856 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30858         ftell: don't include <unistd.h>
30859         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
30860         guaranteed to define off_t, and the ftell module depends on the
30861         stdio module.
30863         ftell: do not assume wraparound signed arithmetic
30864         * lib/ftell.c: Include <limits.h>.
30865         (ftell): Don't assume wraparound signed arithmetic.
30867 2011-07-24  Bruno Haible  <bruno@clisp.org>
30869         close: No longer depend on module 'fclose'.
30870         * modules/close (Depends-on): Remove fclose.
30871         * NEWS: Mention the change.
30872         Suggested by Sam Steingold <sds@gnu.org>.
30874 2011-07-24  Bruno Haible  <bruno@clisp.org>
30876         fsusage: Enable large volume support on AIX >= 5.2.
30877         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
30878         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
30879         instead of STAT_STATVFS.
30880         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
30882         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
30883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
30884         f_blocks field only on MacOS X.
30886         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
30887         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
30888         * modules/fsusage (Depends-on): Add largefile.
30890 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30892         * README: Modernize discussion of signed integers.
30893         Assuming overflow wraparound is no longer safe.
30894         Mention ones' complement and signed magnitude.
30896 2011-07-22  Bruno Haible  <bruno@clisp.org>
30898         select tests, pselect tests: Refactor.
30899         * tests/test-select.h: New file, extracted from tests/test-select.c.
30900         (select_fn): New type.
30901         (test, do_select, do_select_nowait, do_select_wait, test_tty,
30902         test_connect_first, test_accept_first, test_pair, test_socket_pair,
30903         test_pipe): Add my_select argument.
30904         (test_function): Renamed from main. Add my_select argument.
30905         * tests/test-select.c: Move most code to tests/test-select.h. Include
30906         test-select.h.
30907         * modules/select-tests (Files): Add tests/test-select.h.
30908         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
30909         (my_select, main): New functions.
30910         * modules/pselect-tests (Files): Add tests/test-select.h,
30911         tests/macros.h, tests/signature.h.
30912         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
30913         (configure.ac): Check for <sys/wait.h>.
30915 2011-07-22  Bruno Haible  <bruno@clisp.org>
30917         sys_select tests: Check the signature of FD_*.
30918         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
30919         signature tests from here...
30920         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
30921         here.
30922         * modules/sys_select-tests (Files): Add tests/signature.h.
30924 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30926         largefile: new module, replacing large-inode
30927         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
30928         * MODULES.html.sh: Add largefile, remove large-inode.
30929         * modules/largefile, m4/largefile.m4: New files.
30930         * modules/large-inode, m4/large-inode.m4: Remove.
30932         fsusage: port to MacOS X 10.7 with 4 TiB file systems
30933         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
30934         implementations that use only 32 bits to count blocks.
30935         On typical hosts with 1024-byte blocks, this fails with file
30936         systems as small as 4 TiB.  Problem reported by Herb Wartens
30937         <http://debbugs.gnu.org/9140> and this should also fix a similar
30938         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
30940         large-inode: New module
30941         * MODULES.html.sh: Add it.
30942         * modules/large-inode, m4/large-inode.m4: New files.
30944         extensions: Enable extensions on MacOS X 10.5 and later.
30945         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
30947 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
30949         file-has-acl: use acl_extended_file_nofollow if available
30950         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
30951         (acl_extended_file): New macro.
30952         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
30953         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
30955 2011-07-21  Bruno Haible  <bruno@clisp.org>
30957         Declare system functions in a way that works with C++.
30958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
30959         declare fdopendir as extern "C".
30960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
30961         declare frexpl as extern "C".
30962         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
30963         declare gai_strerror as extern "C".
30964         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
30965         programs, declare gai_strerror as extern "C".
30966         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
30967         declare getlogin_r as extern "C".
30968         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
30969         as extern "C".
30970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
30971         declare ldexpl as extern "C".
30972         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
30973         as extern "C".
30974         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
30975         program, declare getmntinfo as extern "C".
30976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
30977         stpncpy as extern "C".
30978         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
30979         program, declare __xpg_strerror_r as extern "C".
30980         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
30981         strndup as extern "C".
30982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
30983         declare memset and bzero as extern "C".
30984         Reported by Sam Steingold <sds@gnu.org>.
30986 2011-07-12  Jim Meyering  <meyering@redhat.com>
30988         maint.mk: prohibit inclusion of "verify.h" without use
30989         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
30991 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30993         timer-time: A new module to check for timer_settime()
30994         * m4/timer_time.m4: Check for the posix function.
30995         * modules/timer-time: Add the new module.
30996         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
30997         Mention it.
30999 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
31000             Bruno Haible  <bruno@clisp.org>
31002         pthread_sigmask: assume POSIX threads if --avoid=threadlib
31003         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
31004         not defined, assume POSIX threads and look for pthread_sigmask in
31005         $LIBS, without changing $CPPFLAGS.
31007 2011-07-19  Bruno Haible  <bruno@clisp.org>
31009         strstr: Update cross-compilation guess.
31010         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
31011         CPUs, guess no, in view of glibc
31012         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
31013         Suggested by Eric Blake. Reported by Reuben Thomas.
31015 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31017         getopt-gnu: suppress core dumps from detection code
31018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
31019         to suppress core dumps that may well occur on glibc systems.
31020         * modules/getopt-gnu: Depend on nocrash.
31022 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31024         pthread_sigmask: ensure usleep is declared
31025         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
31026         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
31028 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31030         doc: Document NonStop portability issues.
31031         * doc/posix-functions/sigaction.texi (sigaction):
31032         * doc/posix-headers/signal.texi (signal.h):
31033         Document NonStop.  See Joachim Schmitz in
31034         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
31036 2011-07-15  Bruno Haible  <bruno@clisp.org>
31038         ffsl, ffsll: Avoid unportable behaviour.
31039         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
31041 2011-07-15  Bruno Haible  <bruno@clisp.org>
31043         ffs: More tests.
31044         * tests/test-ffs.c (NBITS): New macro.
31045         (main): Add more tests.
31046         * tests/test-ffsl.c (NBITS): New macro.
31047         (main): Add more tests.
31048         * tests/test-ffsll.c (NBITS): New macro.
31049         (main): Add more tests.
31051 2011-07-15  Eric Blake  <eblake@redhat.com>
31053         ffsl, ffsll: new modules
31054         * modules/ffsl: New file.
31055         * modules/ffsll: Likewise.
31056         * m4/ffsl.m4: Likewise.
31057         * m4/ffsll.m4: Likewise.
31058         * lib/ffsl.c: Likewise.
31059         * lib/ffsl.h: Likewise.
31060         * lib/ffsll.c: Likewise.
31061         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
31062         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
31063         * modules/string (Makefile.am): Substitute witnesses.
31064         * lib/strings.in.h (ffsl, ffsll): Declare.
31065         * modules/ffsl-tests: New test file.
31066         * modules/ffsll-tests: Likewise.
31067         * tests/test-ffsl.c: Likewise.
31068         * tests/test-ffsll.c: Likewise.
31069         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31070         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
31071         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
31073         ffs: fix m4 prerequisite
31074         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
31076         ffs: avoid undefined behavior
31077         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
31078         * tests/test-ffs.c (naive, main): Avoid signed shifts.
31079         Reported by Bruno Haible.
31081 2011-07-12  Bruno Haible  <bruno@clisp.org>
31083         pthread_sigmask: Rely on module 'threadlib'.
31084         * modules/pthread_sigmask (Depends-on): Add threadlib.
31085         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
31086         is defined.
31088 2011-07-12  Bruno Haible  <bruno@clisp.org>
31090         regex: Depend on module 'strcase'.
31091         * modules/regex (Depends-on): Add strcase, for strcasecmp().
31093 2011-07-12  Jim Meyering  <meyering@redhat.com>
31095         warn-on-use: fix typo in file name
31096         * modules/snippet/warn-on-use (Files): Correct file name:
31097         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
31099 2011-07-12  Bruno Haible  <bruno@clisp.org>
31101         strings: Document module.
31102         * doc/posix-headers/strings.texi: Mention module 'strings'.
31104 2011-07-12  Bruno Haible  <bruno@clisp.org>
31106         Rename module '_Noreturn' to 'snippet/_Noreturn'.
31107         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
31108         (Files, Makefile.am): Update.
31109         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
31110         * modules/stdlib (Depends-on): Update.
31112 2011-07-12  Bruno Haible  <bruno@clisp.org>
31114         * NEWS: Mention the changes.
31116         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
31117         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
31118         (Files, Makefile.am): Update.
31119         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
31120         * modules/arpa_inet (Depends-on): Update.
31121         * modules/ctype (Depends-on): Update.
31122         * modules/dirent (Depends-on): Update.
31123         * modules/fcntl-h (Depends-on): Update.
31124         * modules/glob (Depends-on): Update.
31125         * modules/iconv-h (Depends-on): Update.
31126         * modules/inttypes-incomplete (Depends-on): Update.
31127         * modules/langinfo (Depends-on): Update.
31128         * modules/locale (Depends-on): Update.
31129         * modules/math (Depends-on): Update.
31130         * modules/netdb (Depends-on): Update.
31131         * modules/poll-h (Depends-on): Update.
31132         * modules/pty (Depends-on): Update.
31133         * modules/search (Depends-on): Update.
31134         * modules/signal (Depends-on): Update.
31135         * modules/spawn (Depends-on): Update.
31136         * modules/stdio (Depends-on): Update.
31137         * modules/stdlib (Depends-on): Update.
31138         * modules/string (Depends-on): Update.
31139         * modules/strings (Depends-on): Update.
31140         * modules/sys_file (Depends-on): Update.
31141         * modules/sys_ioctl (Depends-on): Update.
31142         * modules/sys_select (Depends-on): Update.
31143         * modules/sys_socket (Depends-on): Update.
31144         * modules/sys_stat (Depends-on): Update.
31145         * modules/sys_time (Depends-on): Update.
31146         * modules/sys_times (Depends-on): Update.
31147         * modules/sys_utsname (Depends-on): Update.
31148         * modules/sys_wait (Depends-on): Update.
31149         * modules/termios (Depends-on): Update.
31150         * modules/time (Depends-on): Update.
31151         * modules/unistd (Depends-on): Update.
31152         * modules/wchar (Depends-on): Update.
31153         * modules/wctype-h (Depends-on): Update.
31154         * MODULES.html.sh (Support for building libraries and executables):
31155         Update.
31157         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
31158         * modules/snippet/unused-parameter: Renamed from
31159         modules/unused-parameter.
31160         (Files, Makefile.am): Update.
31161         * build-aux/snippet/unused-parameter.h: Renamed from
31162         build-aux/unused-parameter.h.
31163         * modules/selinux-h (Depends-on): Update.
31164         * modules/unistr/base (Depends-on): Update.
31165         * MODULES.html.sh (Core language properties): Update.
31167         Rename module 'link-warning' to 'snippet/link-warning'.
31168         * modules/snippet/link-warning: Renamed from modules/link-warning.
31169         (Files, Makefile.am): Update.
31170         * build-aux/snippet/link-warning.h: Renamed from
31171         build-aux/link-warning.h.
31172         * MODULES.html.sh (Support for building libraries and executables):
31173         Update.
31175         Rename module 'c++defs' to 'snippet/c++defs'.
31176         * modules/snippet/c++defs: Renamed from modules/c++defs.
31177         (Files, Makefile.am): Update.
31178         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
31179         * modules/arpa_inet (Depends-on): Update.
31180         * modules/ctype (Depends-on): Update.
31181         * modules/dirent (Depends-on): Update.
31182         * modules/fcntl-h (Depends-on): Update.
31183         * modules/glob (Depends-on): Update.
31184         * modules/iconv-h (Depends-on): Update.
31185         * modules/langinfo (Depends-on): Update.
31186         * modules/locale (Depends-on): Update.
31187         * modules/math (Depends-on): Update.
31188         * modules/netdb (Depends-on): Update.
31189         * modules/poll-h (Depends-on): Update.
31190         * modules/pty (Depends-on): Update.
31191         * modules/search (Depends-on): Update.
31192         * modules/signal (Depends-on): Update.
31193         * modules/spawn (Depends-on): Update.
31194         * modules/stdio (Depends-on): Update.
31195         * modules/stdlib (Depends-on): Update.
31196         * modules/string (Depends-on): Update.
31197         * modules/strings (Depends-on): Update.
31198         * modules/sys_ioctl (Depends-on): Update.
31199         * modules/sys_select (Depends-on): Update.
31200         * modules/sys_socket (Depends-on): Update.
31201         * modules/sys_stat (Depends-on): Update.
31202         * modules/sys_time (Depends-on): Update.
31203         * modules/sys_wait (Depends-on): Update.
31204         * modules/termios (Depends-on): Update.
31205         * modules/time (Depends-on): Update.
31206         * modules/unistd (Depends-on): Update.
31207         * modules/wchar (Depends-on): Update.
31208         * modules/wctype-h (Depends-on): Update.
31210         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
31211         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
31212         (Files, Makefile.am): Update.
31213         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
31214         * modules/argv-iter (Depends-on): Update.
31215         * modules/arpa_inet (Depends-on): Update.
31216         * modules/dirent (Depends-on): Update.
31217         * modules/fcntl-h (Depends-on): Update.
31218         * modules/fnmatch (Depends-on): Update.
31219         * modules/getopt-posix (Depends-on): Update.
31220         * modules/glob (Depends-on): Update.
31221         * modules/iconv-h (Depends-on): Update.
31222         * modules/inttypes-incomplete (Depends-on): Update.
31223         * modules/locale (Depends-on): Update.
31224         * modules/math (Depends-on): Update.
31225         * modules/netdb (Depends-on): Update.
31226         * modules/search (Depends-on): Update.
31227         * modules/signal (Depends-on): Update.
31228         * modules/spawn (Depends-on): Update.
31229         * modules/stdio (Depends-on): Update.
31230         * modules/stdlib (Depends-on): Update.
31231         * modules/string (Depends-on): Update.
31232         * modules/strings (Depends-on): Update.
31233         * modules/sys_socket (Depends-on): Update.
31234         * modules/sys_stat (Depends-on): Update.
31235         * modules/sys_time (Depends-on): Update.
31236         * modules/sys_times (Depends-on): Update.
31237         * modules/sys_utsname (Depends-on): Update.
31238         * modules/time (Depends-on): Update.
31239         * modules/unistd (Depends-on): Update.
31240         * modules/wchar (Depends-on): Update.
31241         * MODULES.html.sh (Support for building libraries and executables):
31242         Update.
31244 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
31246         Improvements on _Noreturn and related modules.
31248         modules/_Exit-tests: test _Noreturn too
31249         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
31250         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
31251         (main): Use them.
31253         stdnoreturn, stdnoreturn-tests: remove modules
31254         They're not needed here and a bit premature for use elsewhere.  See
31255         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
31256         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
31257         * tests/test-stdnoreturn.c: Remove files.
31258         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
31259         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
31260         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
31261         and using noreturn.
31262         * modules/openat, modules/sigpipe-die, modules/xalloc:
31263         * modules/xmemdup0, modules/xstrtol:
31264         Remove dependency on stdnoreturn.
31266         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
31267         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
31268         Reparenthesize to avoid GCC warning.
31269         Support Microsoft's syntax.
31270         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
31272         _Noreturn-tests: remove module
31273         * modules/_Noreturn-tests: Remove.
31274         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
31275         * tests/test-_Noreturn.c: Remove.
31276         * tests/test-stdnoreturn.c: Merge from the old
31277         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
31279 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
31281         _Noreturn, stdnoreturn, and related modules.
31283         * top/maint.mk: Adjust to new noreturn support.
31284         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
31285         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
31287         xalloc: use stdnoreturn.h
31288         * lib/xalloc.h: Include <stdnoreturn.h>.
31289         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31290         * modules/xalloc (Depends-on): Add stdnoreturn.
31292         xstrtol: use stdnoreturn.h
31293         * lib/xstrtol.h: Include <stdnoreturn.h>.
31294         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31295         * modules/xstrtol (Depends-on): Add stdnoreturn.
31297         xmemdup0: use stdnoreturn.h
31298         * lib/xmemdup0.h: Include <stdnoreturn.h>.
31299         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31300         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
31302         sigpipe-die: use stdnoreturn.h
31303         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
31304         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31305         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
31307         openat: use stdnoreturn.h
31308         * lib/openat.h: Include <stdnoreturn.h>.
31309         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31310         * modules/openat (Depends-on): Add stdnoreturn.
31312         * lib/openat-die.c (openat_save_fail): Modernize comment.
31314         * lib/xalloc-die.c (xalloc_die): Modernize comment.
31316         * lib/glthread/thread.h: Modernize comment.
31318         obstack: use _Noreturn
31319         * lib/obstack.c (__attribute__): Remove macro.
31320         (print_and_abort): Use _Noreturn.
31322         c-stack: use _Noreturn
31323         * lib/c-stack.c (die, overflow_handler, segv_handler):
31324         Use _Noreturn rather than __attribute__((noreturn)).
31326         argmatch-tests, exclude_tests: use _Noreturn
31327         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
31328         Remove.
31329         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
31331         stdlib: use _Noreturn
31332         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
31333         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
31334         * modules/stdlib (Depends-on): Add _Noreturn.
31335         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
31337         stdnoreturn-tests: new module
31338         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
31340         stdnoreturn: new module
31341         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
31342         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
31344         _Noreturn-tests: new module
31345         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
31347         _Noreturn: new module
31348         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
31349         New section, mentioning it.
31350         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
31352         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
31354 2011-07-11  Eric Blake  <eblake@redhat.com>
31356         ffs: new module
31357         * modules/ffs: New file.
31358         * m4/ffs.m4: Likewise.
31359         * lib/ffs.c: Likewise.
31360         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
31361         * modules/strings (Makefile.am): Substitute witness.
31362         (Depends-on): Add c++defs.
31363         * lib/strings.in.h (ffs): Declare.
31364         * modules/ffs-tests: New test file.
31365         * tests/test-ffs.c: Test new module.
31366         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31367         * doc/posix-functions/ffs.texi (ffs): Likewise.
31369         regex: avoid compiler warning
31370         * lib/regex.c (includes): Include <strings.h>, for use of
31371         strcasecmp in regcomp.c.
31372         Reported by Joachim Schmitz.
31374 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31376         stdint: respect system's intmax_t if INTMAX_MAX
31377         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
31378         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
31379         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
31380         long but int64_t is long long, and where we will clash with the
31381         system intmax_t if we override it.  See
31382         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
31383         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
31384         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
31385         similarly for UINTMAX_C.
31387 2011-07-08  Bruno Haible  <bruno@clisp.org>
31389         pthread_sigmask tests: Avoid a compiler warning.
31390         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
31391         non-zero.
31393         sigprocmask tests: A better way to avoid a compiler warning.
31394         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
31395         (main): Complain if system() returns non-zero.
31396         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
31398 2011-07-08  Bruno Haible  <bruno@clisp.org>
31400         pthread_sigmask: Work around IRIX bug.
31401         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
31402         bug.
31403         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
31404         there may be unblocked pending signals.
31405         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
31407 2011-07-08  Bruno Haible  <bruno@clisp.org>
31409         pthread_sigmask: Work around Cygwin bug.
31410         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
31411         bug.
31412         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
31413         the system's pthread_sigmask function.
31414         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
31416 2011-07-08  Bruno Haible  <bruno@clisp.org>
31418         pthread_sigmask: Work around bug in single-threaded implementation.
31419         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
31420         FreeBSD, HP-UX, Solaris bug.
31421         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
31422         * lib/pthread_sigmask.c: Include <stddef.h>.
31423         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
31424         the system's pthread_sigmask function.
31425         * modules/pthread_sigmask (configure.ac): Invoke
31426         gl_PREREQ_PTHREAD_SIGMASK.
31427         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
31428         HP-UX, Solaris.
31430 2011-07-08  Eric Blake  <eblake@redhat.com>
31432         test-sigprocmask: avoid compiler warning
31433         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
31434         * tests/test-sigprocmask.c (main): Use it to silence warning.
31435         Reported by Jim Meyering.
31437         test-snprintf: avoid compiler warning
31438         * tests/test-snprintf.c (main): Avoid shadowed declaration.
31439         * tests/test-vsnprintf.c (main): Likewise.
31440         Reported by Jim Meyering.
31442 2011-07-08  Bruno Haible  <bruno@clisp.org>
31444         Tests for module 'pthread_sigmask'.
31445         * modules/pthread_sigmask-tests: New file.
31446         * tests/test-pthread_sigmask1.c: New file, based on
31447         tests/test-sigprocmask.c.
31448         * tests/test-pthread_sigmask2.c: New file.
31450 2011-07-08  Jim Meyering  <meyering@redhat.com>
31452         test-getopt.h: avoid warning about an unused variable
31453         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
31455 2011-07-07  Jim Meyering  <meyering@redhat.com>
31457         maint: reduce list of files exempt from sc_prohibit_leading_TABs
31458         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
31459         now that it no longer contains leading TABs.
31460         Remove unused "url=FIXME" statement.
31462 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31464         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
31465         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31466         When gl_THREADLIB is not in use, assume that the POSIX sematics
31467         are desired.  This is better for Emacs, which uses POSIX semantics
31468         on GNUish and/or POSIXish platforms, and does not use threads at
31469         all otherwise.
31471         pthread_sigmask: fix typo when testing for libraries
31472         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31473         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
31475 2011-07-08  Eric Blake  <eblake@redhat.com>
31477         fts: introduce FTS_NOATIME
31478         * lib/fts_.h (FTS_NOATIME): New bit flag.
31479         (FTS_OPTIONMASK): Adjust.
31480         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
31481         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
31483 2011-07-08  Bruno Haible  <bruno@clisp.org>
31485         Tests for module 'thread'.
31486         * modules/thread-tests: New file.
31487         * tests/test-thread_self.c: New file.
31488         * tests/test-thread_create.cc: New file.
31490 2011-07-08  Bruno Haible  <bruno@clisp.org>
31492         thread: Avoid gcc warnings when using gl_thread_self().
31493         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
31494         'void *'.
31495         (gl_thread_self_pointer): Update.
31497 2011-07-07  Bruno Haible  <bruno@clisp.org>
31499         signal-c++-tests: Check declaration of pthread_sigmask.
31500         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
31501         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
31502         $(LIB_PTHREAD_SIGMASK).
31504 2011-07-07  Bruno Haible  <bruno@clisp.org>
31506         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
31507         * lib/signal.in.h (pthread_sigmask): Override if
31508         REPLACE_PTHREAD_SIGMASK is 1.
31509         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31510         REPLACE_PTHREAD_SIGMASK.
31511         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
31512         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
31513         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
31514         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
31515         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
31517 2011-07-07  Bruno Haible  <bruno@clisp.org>
31519         pthread_sigmask: Ensure declaration in <signal.h>.
31520         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
31521         include <pthread.h>.
31522         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
31523         problem.
31525 2011-07-07  Bruno Haible  <bruno@clisp.org>
31527         pthread_sigmask: Document the module.
31528         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
31530 2011-07-07  Bruno Haible  <bruno@clisp.org>
31532         pthread_sigmask: Follow gnulib conventions.
31533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
31534         gl_PTHREAD_SIGMASK.
31535         * modules/pthread_sigmask (configure.ac): Update.
31537 2011-07-07  Bruno Haible  <bruno@clisp.org>
31539         pthread_sigmask: Make declaration C++ safe.
31540         * lib/signal.in.h: In two special conditions, just do an #include_next.
31541         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
31542         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
31543         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31544         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
31545         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
31546         not REPLACE_PTHREAD_MASK.
31547         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
31548         not REPLACE_PTHREAD_MASK.
31549         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
31551 2011-07-07  Bruno Haible  <bruno@clisp.org>
31553         pthread_sigmask: Fix return value.
31554         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
31555         * lib/pthread_sigmask.c: New file.
31556         * modules/pthread_sigmask (Files): Add it.
31557         (configure.ac): Invoke AC_LIBOBJ.
31559 2011-07-07  Eric Blake  <eblake@redhat.com>
31561         getopt: more portable argv creation
31562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
31563         const, use char arrays rather than strings.
31564         Suggested by Paul Eggert.
31566 2011-07-07  Bruno Haible  <bruno@clisp.org>
31568         Tests for module 'sigprocmask'.
31569         * modules/sigprocmask-tests: New file.
31570         * tests/test-sigprocmask.c: New file.
31572 2011-07-07  Bruno Haible  <bruno@clisp.org>
31574         float tests: Tweak.
31575         * tests/test-float.c (main): Tweak skip message.
31577 2011-07-07  Eric Blake  <eblake@redhat.com>
31579         getopt: avoid compiler warning during configure
31580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
31581         assigning string literals to non-const pointer.
31583         getopt-gnu: avoid crash in glibc getopt
31584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
31585         * tests/test-getopt.h (test_getopt): Enhance test.
31586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31587         * doc/posix-functions/getopt.texi (getopt): Document it.
31588         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31589         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31590         Likewise.
31592 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
31594         getopt: handle W; without long options in getopt [BZ #12922]
31595         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
31596         but no long options are defined, just return 'W'.
31598 2011-07-07  Bruno Haible  <bruno@clisp.org>
31600         Avoid literal tabs.
31601         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
31602         variable containing a tab instead of a literal tab.
31603         Reported by Jim Meyering.
31605 2011-07-07  Bruno Haible  <bruno@clisp.org>
31607         Comments.
31608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
31610 2011-07-06  Bruno Haible  <bruno@clisp.org>
31612         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
31613         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
31614         <winsock2.h>.
31615         (rpl_fd_isset, FD_ISSET): New definitions, copied from
31616         lib/sys_socket.in.h.
31617         (close, gethostname): Hide declarations from <winsock2.h>.
31618         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31619         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
31620         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
31621         (select): Don't override if gnulib's <sys/select.h> was already
31622         included.
31623         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31624         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31625         setsockopt, shutdown, select): Tweak indentation.
31627 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31629         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
31630         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
31631         in an application that does not use the sys_select module.
31633 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
31635         poll: do not return 0 on timeout=-1
31636         * lib/poll.c: Loop with yield if no events occurred.
31638 2011-07-06  Eric Blake  <eblake@redhat.com>
31640         pthread_sigmask: always replace when not using pthread
31641         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
31642         replacement when using some threading other than pthread.  Fix
31643         logic bug.
31645 2011-07-06  Bruno Haible  <bruno@clisp.org>
31647         Comments.
31648         * m4/printf.m4: Update comments about mingw.
31650 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31652         sys_select: define sigset_t more portably
31653         * lib/sys_select.in.h: Always include <sys/types.h>, since
31654         we now need sigset_t and mingw defines it there.
31655         Include <signal.h> before split inclusion guard, to avoid
31656         mishaps on Solaris, whose <signal.h> eventually includes us.
31657         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
31658         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
31659         which come from ...
31660         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31661         gl_CHECK_TYPE_SIGSET_T.
31662         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
31663         does the real work.
31664         * modules/sys_select (Depends-on): Add 'signal'.
31666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
31667         Suggested by Bruno Haible.
31669         pselect: Use pthread_sigmask, not sigprocmask.
31670         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
31671         multithreaded apps better than sigprocmask does.
31672         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
31673         sigprocmask directly.
31675 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31677         * lib/pselect.c (pselect): Use plain name, without "rpl_".
31678         Don't #undef,  since we don't need any underlying pselect.
31679         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
31680         (Depends-on): Add select.
31681         (Link): Add $(LIBSOCKET).
31682         These changes suggested by Bruno Haible.
31684         pselect: document better
31685         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31686         * doc/posix-functions/pselect.texi (pselect): Document new module.
31688         pthread_sigmask: new module
31689         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31690         * doc/posix-functions/pthread_sigmask.texi: Document new module.
31691         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
31692         This is done only as a macro; I don't know how well that'll
31693         work for C++.  Move <sys/types.h> include before the include_next,
31694         to avoid mishap on Solaris.
31695         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
31696         * modules/signal (Makefile.am): Substitute the check's results.
31697         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
31699         test-pselect: new module
31700         * modules/pselect-tests, tests/test-pselect.c: New files.
31701         * tests/test-select.c, tests/test-sys_select-c++.cc:
31702         If TEST_PSELECT is defined, test pselect instead of testing select.
31704         * tests/test-sys_select.c (sigset_t): Test for it, too.
31705         Suggested by Bruno Haible.
31707 2011-07-05  Eric Blake  <eblake@redhat.com>
31709         snprintf: guarantee %1$d, for libintl
31710         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
31711         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31712         * doc/posix-functions/snprintf.texi (snprintf): Update.
31713         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31714         * tests/test-snprintf.c (main): Enhance test.
31715         * tests/test-vsnprintf.c (main): Likewise.
31717 2011-07-05  Jim Meyering  <meyering@redhat.com>
31719         maint: exempt stdio-read.c and stdio-write.c from the cppi check
31720         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
31721         per Bruno's request, to accommodate this idiom (no space after "#")
31722         even when the function is inside an #if block:
31723         char *
31724         gets (char *s)
31725         #undef gets
31726         {
31727           ...
31728         }
31730 2011-07-04  Jim Meyering  <meyering@redhat.com>
31732         maint: indent with spaces, not TABs, and add a rule to check this
31733         * tests/test-userspec.c: Indent with spaces, not TABs.
31734         * tests/test-argp.c: Likewise.
31735         * tests/test-c-stack2.sh: Likewise.
31736         * tests/test-parse-duration.sh: Likewise
31737         * m4/strtod.m4: Likewise.
31738         * m4/alloca.m4: Likewise.
31739         * m4/pselect.m4: Likewise.
31740         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
31742 2011-07-03  Jim Meyering  <meyering@redhat.com>
31744         maint.mk: correct omissions in prohibit_argmatch_without_use check
31745         This rule would mistakenly report that argmatch.h is included without
31746         use even when both the argmatch and invalid_arg macro were used.
31747         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
31748         of argmatch and invalid_arg.
31750 2011-07-03  Bruno Haible  <bruno@clisp.org>
31752         Comments about EINTR.
31753         * lib/safe-read.h: Explain the purpose of this module.
31754         * lib/safe-write.h: Likewise.
31755         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
31756         module.
31757         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
31758         module.
31759         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31761 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31763         xnanosleep: Rewrite to use new dtotimespec module.
31764         It has the conversion code that used to be in xnanosleep.
31765         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
31766         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
31767         (TIME_T_MAX): Remove.
31768         (xnanosleep): Rewrite in terms of dtotimespec.
31769         * modules/xnanosleep (Depends-on): Add dtotimespec.
31770         Remove intprops, stdbool.
31772         timespec-add, timespec-sub: new modules
31773         * lib/timespec.h (timespec_add, timespec_sub): New decls.
31774         * lib/timespec-add.c, lib/timespec-sub.c:
31775         * modules/timespec-add, modules/timespec-sub: New files.
31777         dtotimespec: new module
31778         * lib/timespec.h (dtotimespec): New decl.
31779         * lib/dtotimespec.c, modules/dtotimespec: New files.
31781         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
31783         pselect: new module
31784         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
31785         (pselect): New decls.
31786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
31787         since the standard pselect decl uses 'restrict'.
31788         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
31789         HAVE_PSELECT, REPLACE_PSELECT.
31790         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
31791         HAVE_PSELECT, REPLACE_PSELECT.
31792         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
31794         sys_select: don't depend on sys_socket
31795         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
31796         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
31797         This fix works on GNU and GNU-like platforms, but has not been tested
31798         on native Windows.
31799         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
31800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
31801         gl_HEADER_SYS_SOCKET.
31802         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
31803         gl_PREREQ_SYS_H_WINSOCK2.
31805 2011-06-29  Eric Blake  <eblake@redhat.com>
31807         pipe2: fix C89 compile problem
31808         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
31809         Reported by Bruno Haible.
31811         pipe, pipe2: don't corrupt fd on error
31812         * lib/pipe.c (pipe): Leave fd unchanged on error.
31813         * lib/pipe2.c (pipe2): Likewise.
31814         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
31815         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31817 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
31819         mmap-anon: do not use regular expressions inadvertently
31820         * m4/mmap-anon.m4: Remove trailing period from strings sought
31821         in the output.
31823 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
31825         nanosleep: fix integer overflow problem
31826         * lib/nanosleep.c (my_usleep): Don't assume signed integer
31827         arithmetic wraps around on overflow.
31829         nanosleep: simplify carrying
31830         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
31831         first call to the underyling nanosleep, not for the last one.
31832         This doesn't fix any bugs, but it simplifies the computation of
31833         the remaining delay.  Found while auditing integer overflow issues.
31835         dup2: remove test for existence of fcntl
31836         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
31837         "#if HAVE_FCNTL", in the configure-time test program.
31838         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
31839         and therefore speeds up "configure" a bit.  Found while
31840         adding the dup2 module to Emacs.
31842 2011-06-24  Eric Blake  <eblake@redhat.com>
31844         maint.mk: enhance useless header checks
31845         * top/maint.mk (_sc_header_without_use): Check both include
31846         styles.
31847         (sc_prohibit_assert_without_use)
31848         (sc_prohibit_close_stream_without_use)
31849         (sc_prohibit_getopt_without_use)
31850         (sc_prohibit_quotearg_without_use)
31851         (sc_prohibit_quote_without_use)
31852         (sc_prohibit_long_options_without_use)
31853         (sc_prohibit_inttostr_without_use)
31854         (sc_prohibit_ignore_value_without_use)
31855         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
31856         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
31857         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
31858         (sc_prohibit_hash_pjw_without_use)
31859         (sc_prohibit_safe_read_without_use)
31860         (sc_prohibit_argmatch_without_use)
31861         (sc_prohibit_canonicalize_without_use)
31862         (sc_prohibit_root_dev_ino_without_use)
31863         (sc_prohibit_openat_without_use)
31864         (sc_prohibit_c_ctype_without_use)
31865         (sc_prohibit_signal_without_use)
31866         (sc_prohibit_stdio--_without_use)
31867         (sc_prohibit_stdio-safer_without_use)
31868         (sc_prohibit_strings_without_use)
31869         (sc_prohibit_intprops_without_use)
31870         (sc_prohibit_stddef_without_use)
31871         (sc_prohibit_xfreopen_without_use): Update clients.
31873 2011-06-24  Jim Meyering  <meyering@redhat.com>
31875         syntax-check: keep one maint.mk rule in sync with its header
31876         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
31877         of the bug Eric has just fixed, with today's commit 25e4c2ec.
31878         I prefer to avoid temporary files here, so use <(...), but that
31879         is not supported by /bin/sh, so...
31880         (SHELL): Define to /bin/bash.
31882 2011-06-24  Eric Blake  <eblake@redhat.com>
31884         maint.mk: update sc_prohibit_intprops_without_use
31885         * top/maint.mk (_intprops_names): Match recent changes.
31887 2011-06-24  Bruno Haible  <bruno@clisp.org>
31889         strerror-override: No-op tweak.
31890         * lib/strerror-override.h (strerror_override): Reorder conditions,
31891         for consistency with lib/strerror-override.c.
31893 2011-06-23  Eric Blake  <eblake@redhat.com>
31895         maint.mk: test further PATH_MAX issues
31896         * top/maint.mk (sc_prohibit_path_max_array): Rename...
31897         (sc_prohibit_path_max_allocation): ...and also test alloca.
31898         Suggested by Jim Meyering.
31900 2011-06-22  Eric Blake  <eblake@redhat.com>
31902         maint.mk: add syntax-check to avoid char[PATH_MAX]
31903         * top/maint.mk (sc_prohibit_path_max_array): New rule.
31905         stat: be robust to PATH_MAX definition
31906         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
31907         * modules/stat (Depends-on): Add verify.
31909         link: work around IRIX bug
31910         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
31911         * lib/link.c (rpl_link): Work around it.
31912         * tests/test-link.h (test_link): Enhance test.
31913         * doc/posix-functions/link.texi (link): Document the bug.
31915         getopt: silence clang warning
31916         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
31917         dereference.
31918         Reported by Gustavo Martin Domato.
31920 2011-06-22  Jim Meyering  <meyering@redhat.com>
31922         bootstrap: do not insert a blank line into each .gitignore file
31923         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
31925 2011-06-21  Eric Blake  <eblake@redhat.com>
31927         perror: test for output mismatch
31928         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
31929         perror on IRIX.
31931         strerror_r: fix OpenBSD behavior on out-of-range
31932         * lib/strerror_r.c (strerror_r): Always use maximal string.
31933         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31935         strerror_r: fix OpenBSD behavior on 0
31936         * lib/strerror-override.c (strerror_override): Also override 0
31937         when needed.
31938         * lib/strerror-override.h (strerror_override): Likewise.
31939         * lib/strerror.c (strerror): Simplify, now that 0 override is done
31940         earlier.
31941         * lib/strerror_r.c (strerror_r): Likewise.
31942         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
31943         behavior...
31944         (gl_FUNC_STRERROR_0): ...into new macro.
31945         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
31946         is overridden.
31947         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
31948         * modules/strerror-override (Files): Add strerror.m4.
31949         (configure.ac): Also provide override for 0 when needed.
31950         * doc/posix-functions/strerror.texi (strerror): Document this.
31951         * doc/posix-functions/perror.texi (perror): Likewise.
31953         perror: adjust array size
31954         * modules/perror (Depends-on): Add strerror-override.
31955         * lib/perror.c (perror): Use it to avoid magic number.
31957         strerror-override: reduce size
31958         * lib/strerror-override.c (strerror_override): Use fewer lines.
31960 2011-06-20  Bruno Haible  <bruno@clisp.org>
31962         pathmax: Ensure correct value for PATH_MAX on HP-UX.
31963         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
31965 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31967         alloca: port to compilers that can optimize like GCC 4.6.0
31968         * lib/alloca.c (find_stack_direction): New signature, taken from
31969         Autoconf git.  This works with GCC 4.6.0.  This code should never
31970         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
31971         be used with other compilers that optimize as well as GCC 4.6.0 does.
31972         (alloca): Adjust to new signature.
31973         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
31974         New macro, which patches Autoconf in a similar way.
31976         c-stack: stop worrying about stack direction
31977         * lib/c-stack.c (find_stack_direction): Remove.
31978         (segv_handler): Don't worry about stack direction growth, as it's
31979         too much of a pain to configure this correctly, given how compilers
31980         are optimizing-away our stack-growth detection code.  Instead, assume
31981         that any access to just before or just after the stack is OK.
31982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
31983         Don't require AC_FUNC_ALLOCA; no longer needed.
31985 2011-06-20  Eric Blake  <eblake@redhat.com>
31987         test-stat: don't allocate PATH_MAX bytes
31988         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
31989         PATH_MAX-sized buffer.
31990         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
31991         * modules/stat-tests (Depends-on): Likewise.
31992         * tests/test-fstatat.c (includes): Drop pathmax.h.
31993         * tests/test-stat.c (includes): Likewise.
31994         Reported by Bruno Haible.
31996 2011-06-20  Bruno Haible  <bruno@clisp.org>
31998         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
31999         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
32000         * lib/float.c: New file.
32001         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
32002         REPLACE_FLOAT_LDBL.
32003         * modules/float (Files): Add lib/float.c.
32004         (configure.ac): Invoke AC_LIBOBJ.
32005         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
32007 2011-06-20  Bruno Haible  <bruno@clisp.org>
32009         Tests for module 'float'.
32010         * modules/float-tests: New file.
32011         * tests/test-float.c: New file.
32013 2011-06-19  Bruno Haible  <bruno@clisp.org>
32015         isinf: Coding style.
32016         * lib/isinf.c: Use GNU coding style.
32018 2011-06-19  Bruno Haible  <bruno@clisp.org>
32020         linkat test: Avoid test failure on AIX 7.1.
32021         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
32022         * tests/test-link.h (test_link): Likewise.
32024 2011-06-19  Bruno Haible  <bruno@clisp.org>
32026         pread test: Avoid test failure on OpenBSD 4.9.
32027         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
32029 2011-06-19  Bruno Haible  <bruno@clisp.org>
32031         sprintf-posix: Fix test failure on AIX 7.1.
32032         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
32033         * doc/posix-functions/dprintf.texi: Mention limited precision problem
32034         on AIX.
32035         * doc/posix-functions/fprintf.texi: Likewise.
32036         * doc/posix-functions/printf.texi: Likewise.
32037         * doc/posix-functions/snprintf.texi: Likewise.
32038         * doc/posix-functions/sprintf.texi: Likewise.
32039         * doc/posix-functions/vdprintf.texi: Likewise.
32040         * doc/posix-functions/vfprintf.texi: Likewise.
32041         * doc/posix-functions/vprintf.texi: Likewise.
32042         * doc/posix-functions/vsnprintf.texi: Likewise.
32043         * doc/posix-functions/vsprintf.texi: Likewise.
32045 2011-06-19  Bruno Haible  <bruno@clisp.org>
32047         roundl-ieee: Fix test failure on AIX 7.1.
32048         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
32049         * doc/posix-functions/roundl.texi: Mention problem with negative
32050         arguments.
32052 2011-06-19  Bruno Haible  <bruno@clisp.org>
32054         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32055         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
32056         * doc/posix-functions/round.texi: Mention problem with negative
32057         arguments.
32058         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
32060 2011-06-19  Bruno Haible  <bruno@clisp.org>
32062         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32063         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
32064         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
32065         * doc/posix-functions/roundf.texi: Mention problem with negative
32066         arguments.
32067         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
32069 2011-06-19  Bruno Haible  <bruno@clisp.org>
32071         ceilf-ieee: Work around bug on MacOS X 10.5.
32072         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
32074         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
32075         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
32076         IEEE compliant, avoid compiler optimizations.
32077         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
32078         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32079         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
32080         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32081         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32082         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32083         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32085         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32088 2011-06-19  Bruno Haible  <bruno@clisp.org>
32090         ceilf-ieee: Work around bug on AIX 7.1.
32091         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
32092         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
32094 2011-06-19  Bruno Haible  <bruno@clisp.org>
32096         ceil-ieee: Work around bug on AIX 7.1.
32097         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
32098         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
32100 2011-06-18  Bruno Haible  <bruno@clisp.org>
32102         fsync test: Avoid test failure on MacOS X and AIX.
32103         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
32104         EINVAL.
32106 2011-06-18  Bruno Haible  <bruno@clisp.org>
32108         openat, fdopendir tests: Fix link errors.
32109         * modules/openat-tests (Depends-on): Add progname.
32110         * modules/fdopendir-tests (Depends-on): Likewise.
32111         * tests/test-fchownat.c: Include progname.h.
32112         (main): Call set_program_name.
32113         * tests/test-fstatat.c: Include progname.h.
32114         (main): Call set_program_name.
32115         * tests/test-mkdirat.c: Include progname.h.
32116         (main): Call set_program_name.
32117         * tests/test-openat.c: Include progname.h.
32118         (main): Call set_program_name.
32119         * tests/test-unlinkat.c: Include progname.h.
32120         (main): Call set_program_name.
32121         * tests/test-fdopendir.c: Include progname.h.
32122         (main): Call set_program_name.
32124 2011-06-18  Bruno Haible  <bruno@clisp.org>
32126         Doc update.
32127         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
32128         HP-UX.
32129         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
32131 2011-06-18  Bruno Haible  <bruno@clisp.org>
32133         getcwd tests: Avoid compilation error on HP-UX 11.31.
32134         * modules/getcwd-tests (Depends-on): Add pathmax.
32135         * tests/test-getcwd.c: Include pathmax.h.
32137 2011-06-18  Bruno Haible  <bruno@clisp.org>
32139         isfinite, isinf: Fix link error on AIX 6 and 7.
32140         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
32141         needed, also test the macro with a 'float' argument.
32142         * m4/isinf.m4 (gl_ISINF): Likewise.
32144 2011-06-18  Bruno Haible  <bruno@clisp.org>
32146         getloadavg: Don't clobber LIBS. Regression from previous commit.
32147         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
32148         AC_CHECK_LIB from here...
32149         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
32150         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
32151         gl_func_getloadavg_done.
32152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32154 2011-06-18  Bruno Haible  <bruno@clisp.org>
32156         clean-temp: Improve documentation.
32157         * lib/clean-temp.h: Explain better how to use this module.
32158         Reported by John Darrington <john@darrington.wattle.id.au>.
32160 2011-06-17  Bruno Haible  <bruno@clisp.org>
32162         pread, pwrite: Avoid cc warning on AIX.
32163         * lib/unistd.in.h (pread): Undefine before defining as a macro.
32164         (pwrite): Likewise.
32166 2011-06-17  Bruno Haible  <bruno@clisp.org>
32168         spawn-pipe tests: Fix link error.
32169         * tests/test-spawn-pipe-child.c: Undefine fprintf.
32170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32172 2011-06-17  Bruno Haible  <bruno@clisp.org>
32174         Tests: Remove unnecessary dependency.
32175         * modules/canonicalize-tests (Depends-on): Remove progname.
32176         * modules/chown-tests (Depends-on): Likewise.
32177         * modules/dirname-tests (Depends-on): Likewise.
32178         * modules/fdopendir-tests (Depends-on): Likewise.
32179         * modules/fdutimensat-tests (Depends-on): Likewise.
32180         * modules/hash-tests (Depends-on): Likewise.
32181         * modules/lchown-tests (Depends-on): Likewise.
32182         * modules/linkat-tests (Depends-on): Likewise.
32183         * modules/renameat-tests (Depends-on): Likewise.
32184         * modules/spawn-pipe-tests (Depends-on): Likewise.
32185         * modules/utimensat-tests (Depends-on): Likewise.
32187 2011-06-17  Bruno Haible  <bruno@clisp.org>
32189         spawn-pipe tests: Fix link error.
32190         * tests/test-spawn-pipe-child.c: Undefine fflush.
32192 2011-06-17  Bruno Haible  <bruno@clisp.org>
32194         Fix tests link errors.
32195         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
32196         * modules/chown-tests (Makefile.am): Don't link test-chown with
32197         LIBINTL.
32198         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
32199         LIBINTL.
32200         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
32201         LIBINTL.
32202         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
32203         LIBINTL.
32205 2011-06-16  Bruno Haible  <bruno@clisp.org>
32207         crypto/gc-sha1: Fix recent regression.
32208         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
32209         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
32211         crypto/gc-md5: Fix recent regression.
32212         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
32214         crypto/gc-md4: Fix recent regression.
32215         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
32216         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
32218         crypto/gc-arctwo: Fix recent regression.
32219         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
32220         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
32222         crypto/gc-rijndael: Fix recent regression.
32223         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
32224         (configure.ac): Invoke AC_LIBOBJ here.
32225         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
32226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32228         crypto/gc-hmac-sha1: Fix recent regression.
32229         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
32230         (configure.ac): Invoke AC_LIBOBJ here.
32231         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
32232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32234         crypto/gc-hmac-md5: Fix recent regression.
32235         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
32236         (configure.ac): Invoke AC_LIBOBJ here.
32237         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
32238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32240         crypto/gc-des: Fix recent regression.
32241         * modules/crypto/gc-des (Files): Remove m4/des.m4.
32242         (configure.ac): Invoke AC_LIBOBJ here.
32243         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
32244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32246         crypto/gc-arcfour: Fix recent regression.
32247         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
32248         (configure.ac): Invoke AC_LIBOBJ here.
32249         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
32250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32252 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
32254         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
32255         After the 2011-05-21 change, this macro requires
32256         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
32257         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32259 2011-06-16  Bruno Haible  <bruno@clisp.org>
32261         fprintftime: Move AC_LIBOBJ invocations to module description.
32262         * m4/fprintftime.m4: Remove file.
32263         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
32264         (configure.ac): Remove gl_FPRINTFTIME call.
32265         (Makefile.am): Augment lib_SOURCES.
32266         Reported by Jim Meyering.
32268 2011-06-16  Bruno Haible  <bruno@clisp.org>
32270         tmpfile-safer: Finish 2011-05-23 commit.
32271         * m4/stdio-safer.m4: Really remove file.
32272         Reported by Jim Meyering.
32274 2011-06-16  Bruno Haible  <bruno@clisp.org>
32276         syntax-check: Fix typo.
32277         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
32278         printf-posix.m4.
32279         Reported by Jim Meyering.
32281 2011-06-13  Jim Meyering  <meyering@redhat.com>
32283         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
32284         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
32286 2011-05-23  Bruno Haible  <bruno@clisp.org>
32288         yesno: Move AC_LIBOBJ invocations to module description.
32289         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
32290         * modules/yesno (Makefile.am): Augment lib_SOURCES.
32292 2011-05-23  Bruno Haible  <bruno@clisp.org>
32294         xstrtol: Move AC_LIBOBJ invocations to module description.
32295         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
32296         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
32298 2011-05-23  Bruno Haible  <bruno@clisp.org>
32300         xstrtold: Move AC_LIBOBJ invocations to module description.
32301         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
32302         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
32304 2011-05-23  Bruno Haible  <bruno@clisp.org>
32306         xstrtod: Move AC_LIBOBJ invocations to module description.
32307         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
32308         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
32310 2011-05-23  Bruno Haible  <bruno@clisp.org>
32312         xnanosleep: Move AC_LIBOBJ invocations to module description.
32313         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
32314         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
32316 2011-05-23  Bruno Haible  <bruno@clisp.org>
32318         xgetcwd: Move AC_LIBOBJ invocations to module description.
32319         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
32320         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
32322 2011-05-23  Bruno Haible  <bruno@clisp.org>
32324         xalloc: Move AC_LIBOBJ invocations to module description.
32325         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
32326         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
32328 2011-05-23  Bruno Haible  <bruno@clisp.org>
32330         write-any-file: Move AC_LIBOBJ invocations to module description.
32331         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
32332         invocation.
32333         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
32335 2011-05-23  Bruno Haible  <bruno@clisp.org>
32337         utimens: Move AC_LIBOBJ invocations to module description.
32338         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
32339         * modules/utimens (Makefile.am): Augment lib_SOURCES.
32341 2011-05-23  Bruno Haible  <bruno@clisp.org>
32343         utimecmp: Move AC_LIBOBJ invocations to module description.
32344         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
32345         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
32347 2011-05-23  Bruno Haible  <bruno@clisp.org>
32349         userspec: Move AC_LIBOBJ invocations to module description.
32350         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
32351         * modules/userspec (Makefile.am): Augment lib_SOURCES.
32353 2011-05-23  Bruno Haible  <bruno@clisp.org>
32355         unlinkdir: Move AC_LIBOBJ invocations to module description.
32356         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
32357         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
32359 2011-05-23  Bruno Haible  <bruno@clisp.org>
32361         unistd-safer: Move AC_LIBOBJ invocations to module description.
32362         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
32363         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
32365 2011-05-23  Bruno Haible  <bruno@clisp.org>
32367         tempname: Move AC_LIBOBJ invocations to module description.
32368         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
32369         * modules/tempname (Makefile.am): Augment lib_SOURCES.
32371 2011-05-23  Bruno Haible  <bruno@clisp.org>
32373         strftime: Move AC_LIBOBJ invocations to module description.
32374         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
32375         * modules/strftime (Makefile.am): Augment lib_SOURCES.
32377 2011-05-23  Bruno Haible  <bruno@clisp.org>
32379         stdlib-safer: Move AC_LIBOBJ invocations to module description.
32380         * m4/stdlib-safer.m4: Remove file.
32381         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
32382         (configure.ac): Remove gl_STDLIB_SAFER call.
32383         (Makefile.am): Augment lib_SOURCES.
32385 2011-05-23  Bruno Haible  <bruno@clisp.org>
32387         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
32388         * m4/stdio-safer.m4: Remove file.
32389         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
32390         (configure.ac): Remove gl_TMPFILE_SAFER call.
32391         (Makefile.am): Augment lib_SOURCES.
32393 2011-05-23  Bruno Haible  <bruno@clisp.org>
32395         popen-safer: Move AC_LIBOBJ invocations to module description.
32396         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
32397         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
32398         (configure.ac): Remove gl_POPEN_SAFER call.
32399         (Makefile.am): Augment lib_SOURCES.
32401 2011-05-23  Bruno Haible  <bruno@clisp.org>
32403         freopen-safer: Move AC_LIBOBJ invocations to module description.
32404         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
32405         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
32406         (configure.ac): Remove gl_FREOPEN_SAFER call.
32407         (Makefile.am): Augment lib_SOURCES.
32409 2011-05-23  Bruno Haible  <bruno@clisp.org>
32411         fopen-safer: Move AC_LIBOBJ invocations to module description.
32412         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
32413         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
32414         (configure.ac): Remove gl_FOPEN_SAFER call.
32415         (Makefile.am): Augment lib_SOURCES.
32417 2011-05-23  Bruno Haible  <bruno@clisp.org>
32419         crypto/sha512: Move AC_LIBOBJ invocations to module description.
32420         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
32421         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
32423 2011-05-23  Bruno Haible  <bruno@clisp.org>
32425         crypto/sha256: Move AC_LIBOBJ invocations to module description.
32426         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
32427         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
32429 2011-05-23  Bruno Haible  <bruno@clisp.org>
32431         crypto/sha1: Move AC_LIBOBJ invocations to module description.
32432         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
32433         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
32435 2011-05-23  Bruno Haible  <bruno@clisp.org>
32437         settime: Move AC_LIBOBJ invocations to module description.
32438         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
32439         * modules/settime (Makefile.am): Augment lib_SOURCES.
32441 2011-05-23  Bruno Haible  <bruno@clisp.org>
32443         savedir: Move AC_LIBOBJ invocations to module description.
32444         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
32445         * modules/savedir (Makefile.am): Augment lib_SOURCES.
32447 2011-05-23  Bruno Haible  <bruno@clisp.org>
32449         save-cwd: Move AC_LIBOBJ invocations to module description.
32450         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
32451         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
32453 2011-05-23  Bruno Haible  <bruno@clisp.org>
32455         same: Move AC_LIBOBJ invocations to module description.
32456         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
32457         * modules/same (Makefile.am): Augment lib_SOURCES.
32459 2011-05-23  Bruno Haible  <bruno@clisp.org>
32461         safe-write: Move AC_LIBOBJ invocations to module description.
32462         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
32463         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
32464         instead of gl_SAFE_WRITE.
32465         (Makefile.am): Augment lib_SOURCES.
32467 2011-05-23  Bruno Haible  <bruno@clisp.org>
32469         safe-read: Move AC_LIBOBJ invocations to module description.
32470         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
32471         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
32472         of gl_SAFE_READ.
32473         (Makefile.am): Augment lib_SOURCES.
32475 2011-05-23  Bruno Haible  <bruno@clisp.org>
32477         safe-alloc: Move AC_LIBOBJ invocations to module description.
32478         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
32479         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
32481 2011-05-23  Bruno Haible  <bruno@clisp.org>
32483         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
32484         * m4/rijndael.m4: Remove file.
32485         * modules/crypto/rijndael (Files): Remove it.
32486         (configure.ac): Remove gl_RIJNDAEL call.
32487         (Makefile.am): Augment lib_SOURCES.
32489 2011-05-23  Bruno Haible  <bruno@clisp.org>
32491         readtokens: Move AC_LIBOBJ invocations to module description.
32492         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
32493         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
32495 2011-05-23  Bruno Haible  <bruno@clisp.org>
32497         read-file: Move AC_LIBOBJ invocations to module description.
32498         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
32499         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
32500         of gl_FUNC_READ_FILE.
32501         (Makefile.am): Augment lib_SOURCES.
32503 2011-05-23  Bruno Haible  <bruno@clisp.org>
32505         quotearg: Move AC_LIBOBJ invocations to module description.
32506         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
32507         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
32509 2011-05-23  Bruno Haible  <bruno@clisp.org>
32511         quote: Move AC_LIBOBJ invocations to module description.
32512         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
32513         * modules/quote (Makefile.am): Augment lib_SOURCES.
32515 2011-05-23  Bruno Haible  <bruno@clisp.org>
32517         posixver: Move AC_LIBOBJ invocations to module description.
32518         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
32519         * modules/posixver (Makefile.am): Augment lib_SOURCES.
32521 2011-05-23  Bruno Haible  <bruno@clisp.org>
32523         posixtm: Move AC_LIBOBJ invocations to module description.
32524         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
32525         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
32527 2011-05-23  Bruno Haible  <bruno@clisp.org>
32529         physmem: Move AC_LIBOBJ invocations to module description.
32530         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
32531         * modules/physmem (Makefile.am): Augment lib_SOURCES.
32533 2011-05-23  Bruno Haible  <bruno@clisp.org>
32535         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
32536         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
32537         invocation.
32538         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
32540 2011-05-23  Bruno Haible  <bruno@clisp.org>
32542         mpsort: Move AC_LIBOBJ invocations to module description.
32543         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
32544         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
32546 2011-05-23  Bruno Haible  <bruno@clisp.org>
32548         modechange: Move AC_LIBOBJ invocations to module description.
32549         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
32550         * modules/modechange (Makefile.am): Augment lib_SOURCES.
32552 2011-05-23  Bruno Haible  <bruno@clisp.org>
32554         mkdir-p: Move AC_LIBOBJ invocations to module description.
32555         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
32556         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
32558 2011-05-23  Bruno Haible  <bruno@clisp.org>
32560         mkancesdirs: Move AC_LIBOBJ invocations to module description.
32561         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
32562         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
32564 2011-05-23  Bruno Haible  <bruno@clisp.org>
32566         mgetgroups: Move AC_LIBOBJ invocations to module description.
32567         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
32568         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
32570 2011-05-23  Bruno Haible  <bruno@clisp.org>
32572         memxor: Move AC_LIBOBJ invocations to module description.
32573         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
32574         * modules/memxor (Makefile.am): Augment lib_SOURCES.
32576 2011-05-23  Bruno Haible  <bruno@clisp.org>
32578         memcoll: Move AC_LIBOBJ invocations to module description.
32579         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
32580         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
32582 2011-05-23  Bruno Haible  <bruno@clisp.org>
32584         memcasecmp: Move AC_LIBOBJ invocations to module description.
32585         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
32586         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
32588 2011-05-23  Bruno Haible  <bruno@clisp.org>
32590         crypto/md5: Move AC_LIBOBJ invocations to module description.
32591         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
32592         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
32594 2011-05-23  Bruno Haible  <bruno@clisp.org>
32596         crypto/md4: Move AC_LIBOBJ invocations to module description.
32597         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
32598         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
32600 2011-05-23  Bruno Haible  <bruno@clisp.org>
32602         crypto/md2: Move AC_LIBOBJ invocations to module description.
32603         * m4/md2.m4: Remove file.
32604         * modules/crypto/md2 (Files): Remove it.
32605         (configure.ac): Remove gl_MD2 call.
32606         (Makefile.am): Augment lib_SOURCES.
32608 2011-05-23  Bruno Haible  <bruno@clisp.org>
32610         long-options: Move AC_LIBOBJ invocations to module description.
32611         * m4/long-options.m4: Remove file.
32612         * modules/long-options (Files): Remove it.
32613         (configure.ac): Remove gl_LONG_OPTIONS call.
32614         (Makefile.am): Augment lib_SOURCES.
32616 2011-05-23  Bruno Haible  <bruno@clisp.org>
32618         i-ring: Move AC_LIBOBJ invocations to module description.
32619         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
32620         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
32622 2011-05-23  Bruno Haible  <bruno@clisp.org>
32624         idcache: Move AC_LIBOBJ invocations to module description.
32625         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
32626         * modules/idcache (Makefile.am): Augment lib_SOURCES.
32628 2011-05-23  Bruno Haible  <bruno@clisp.org>
32630         human: Move AC_LIBOBJ invocations to module description.
32631         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
32632         * modules/human (Makefile.am): Augment lib_SOURCES.
32634 2011-05-23  Bruno Haible  <bruno@clisp.org>
32636         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
32637         * m4/hmac-sha1.m4: Remove file.
32638         * modules/crypto/hmac-sha1 (Files): Remove it.
32639         (configure.ac): Remove gl_HMAC_SHA1 call.
32640         (Makefile.am): Augment lib_SOURCES.
32642 2011-05-23  Bruno Haible  <bruno@clisp.org>
32644         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
32645         * m4/hmac-md5.m4: Remove file.
32646         * modules/crypto/hmac-md5 (Files): Remove it.
32647         (configure.ac): Remove gl_HMAC_MD5 call.
32648         (Makefile.am): Augment lib_SOURCES.
32650 2011-05-23  Bruno Haible  <bruno@clisp.org>
32652         hash: Move AC_LIBOBJ invocations to module description.
32653         * m4/hash.m4: Remove file.
32654         * modules/hash (Files): Remove it.
32655         (configure.ac): Remove gl_HASH call.
32656         (Makefile.am): Augment lib_SOURCES.
32658 2011-05-23  Bruno Haible  <bruno@clisp.org>
32660         hard-locale: Move AC_LIBOBJ invocations to module description.
32661         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
32662         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
32664 2011-05-23  Bruno Haible  <bruno@clisp.org>
32666         getugroups: Move AC_LIBOBJ invocations to module description.
32667         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
32668         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
32670 2011-05-23  Bruno Haible  <bruno@clisp.org>
32672         gettime: Move AC_LIBOBJ invocations to module description.
32673         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
32674         * modules/gettime (Makefile.am): Augment lib_SOURCES.
32676 2011-05-23  Bruno Haible  <bruno@clisp.org>
32678         getndelim2: Move AC_LIBOBJ invocations to module description.
32679         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
32680         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
32682 2011-05-23  Bruno Haible  <bruno@clisp.org>
32684         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
32685         * m4/gc-pbkdf2-sha1.m4: Remove file.
32686         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
32687         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
32688         (Makefile.am): Augment lib_SOURCES.
32690 2011-05-23  Bruno Haible  <bruno@clisp.org>
32692         fts: Move AC_LIBOBJ invocations to module description.
32693         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
32694         * modules/fts (configure.ac): ... to here.
32696 2011-05-23  Bruno Haible  <bruno@clisp.org>
32698         file-type: Move AC_LIBOBJ invocations to module description.
32699         * m4/file-type.m4: Remove file.
32700         * modules/file-type (Files): Remove it.
32701         (configure.ac): Remove gl_FILE_TYPE call.
32702         (Makefile.am): Augment lib_SOURCES.
32704 2011-05-23  Bruno Haible  <bruno@clisp.org>
32706         filenamecat*: Respect rules for use of AC_LIBOBJ.
32707         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
32708         Remove AC_LIBOBJ invocation.
32709         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
32710         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
32712 2011-05-23  Bruno Haible  <bruno@clisp.org>
32714         filemode: Move AC_LIBOBJ invocations to module description.
32715         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
32716         * modules/filemode (Makefile.am): Augment lib_SOURCES.
32718 2011-05-23  Bruno Haible  <bruno@clisp.org>
32720         openat-safer: Move AC_LIBOBJ invocations to module description.
32721         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
32722         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
32724 2011-05-23  Bruno Haible  <bruno@clisp.org>
32726         fcntl-safer: Move AC_LIBOBJ invocations to module description.
32727         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
32728         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
32730 2011-05-23  Bruno Haible  <bruno@clisp.org>
32732         exclude: Move AC_LIBOBJ invocations to module description.
32733         * m4/exclude.m4: Remove file.
32734         * modules/exclude (Files): Remove it.
32735         (configure.ac): Remove gl_EXCLUDE call.
32736         (Makefile.am): Augment lib_SOURCES.
32738 2011-05-23  Bruno Haible  <bruno@clisp.org>
32740         dirname*: Respect rules for use of AC_LIBOBJ.
32741         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
32742         invocations.
32743         * modules/dirname (Makefile.am): Augment lib_SOURCES.
32744         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
32746 2011-05-23  Bruno Haible  <bruno@clisp.org>
32748         dirent-safer: Move AC_LIBOBJ invocations to module description.
32749         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
32750         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
32752 2011-05-23  Bruno Haible  <bruno@clisp.org>
32754         crypto/des: Move AC_LIBOBJ invocations to module description.
32755         * m4/des.m4: Remove file.
32756         * modules/crypto/des (Files): Remove it.
32757         (configure.ac): Remove gl_DES call.
32758         (Makefile.am): Augment lib_SOURCES.
32760 2011-05-23  Bruno Haible  <bruno@clisp.org>
32762         cycle-check: Move AC_LIBOBJ invocations to module description.
32763         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
32764         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
32766 2011-05-23  Bruno Haible  <bruno@clisp.org>
32768         c-strtold: Move AC_LIBOBJ invocations to module description.
32769         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
32770         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
32772 2011-05-23  Bruno Haible  <bruno@clisp.org>
32774         c-strtod: Move AC_LIBOBJ invocations to module description.
32775         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
32776         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
32778 2011-05-23  Bruno Haible  <bruno@clisp.org>
32780         crc: Move AC_LIBOBJ invocations to module description.
32781         * m4/crc.m4: Remove file.
32782         * modules/crc (Files): Remove it.
32783         (configure.ac): Remove gl_CRC call.
32784         (Makefile.am): Augment lib_SOURCES.
32786 2011-05-23  Bruno Haible  <bruno@clisp.org>
32788         close-stream: Move AC_LIBOBJ invocations to module description.
32789         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
32790         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
32792 2011-05-23  Bruno Haible  <bruno@clisp.org>
32794         closeout: Move AC_LIBOBJ invocations to module description.
32795         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
32796         * modules/closeout (Makefile.am): Augment lib_SOURCES.
32798 2011-05-23  Bruno Haible  <bruno@clisp.org>
32800         closein: Move AC_LIBOBJ invocations to module description.
32801         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
32802         * modules/closein (Makefile.am): Augment lib_SOURCES.
32804 2011-05-23  Bruno Haible  <bruno@clisp.org>
32806         cloexec: Move AC_LIBOBJ invocations to module description.
32807         * m4/cloexec.m4: Remove file.
32808         * modules/cloexec (Files): Remove it.
32809         (configure.ac): Remove gl_CLOEXEC call.
32810         (Makefile.am): Augment lib_SOURCES.
32812 2011-05-23  Bruno Haible  <bruno@clisp.org>
32814         check-version: Move AC_LIBOBJ invocations to module description.
32815         * m4/check-version.m4: Remove file.
32816         * modules/check-version (Files): Remove it.
32817         (configure.ac): Remove gl_CHECK_VERSION call.
32818         (Makefile.am): Augment lib_SOURCES.
32820 2011-05-23  Bruno Haible  <bruno@clisp.org>
32822         chdir-safer: Move AC_LIBOBJ invocations to module description.
32823         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
32824         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
32826 2011-05-23  Bruno Haible  <bruno@clisp.org>
32828         canonicalize: Move AC_LIBOBJ invocations to module description.
32829         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
32830         AC_LIBOBJ invocation.
32831         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
32833 2011-05-23  Bruno Haible  <bruno@clisp.org>
32835         canon-host: Move AC_LIBOBJ invocations to module description.
32836         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
32837         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
32838         instead of gl_CANON_HOST.
32839         (Makefile.am): Augment lib_SOURCES.
32841 2011-05-23  Bruno Haible  <bruno@clisp.org>
32843         backupfile: Move AC_LIBOBJ invocations to module description.
32844         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
32845         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
32847 2011-05-23  Bruno Haible  <bruno@clisp.org>
32849         argmatch: Move AC_LIBOBJ invocations to module description.
32850         * m4/argmatch.m4: Remove file.
32851         * modules/argmatch (Files): Remove it.
32852         (configure.ac): Remove gl_ARGMATCH call.
32853         (Makefile.am): Augment lib_SOURCES.
32855 2011-05-23  Bruno Haible  <bruno@clisp.org>
32857         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
32858         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
32859         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
32861 2011-05-23  Bruno Haible  <bruno@clisp.org>
32863         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
32864         * m4/arcfour.m4: Remove file.
32865         * modules/crypto/arcfour (Files): Remove it.
32866         (configure.ac): Remove gl_ARCFOUR call.
32867         (Makefile.am): Augment lib_SOURCES.
32869 2011-05-22  Bruno Haible  <bruno@clisp.org>
32871         write: Move AC_LIBOBJ invocations to module description.
32872         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
32873         * modules/write (configure.ac): ... to here.
32875 2011-05-22  Bruno Haible  <bruno@clisp.org>
32877         wmemset: Move AC_LIBOBJ invocations to module description.
32878         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
32879         here...
32880         * modules/wmemset (configure.ac): ... to here.
32882 2011-05-22  Bruno Haible  <bruno@clisp.org>
32884         wmemmove: Move AC_LIBOBJ invocations to module description.
32885         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
32886         here...
32887         * modules/wmemmove (configure.ac): ... to here.
32889 2011-05-22  Bruno Haible  <bruno@clisp.org>
32891         wmemcpy: Move AC_LIBOBJ invocations to module description.
32892         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
32893         here...
32894         * modules/wmemcpy (configure.ac): ... to here.
32896 2011-05-22  Bruno Haible  <bruno@clisp.org>
32898         wmemcmp: Move AC_LIBOBJ invocations to module description.
32899         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
32900         here...
32901         * modules/wmemcmp (configure.ac): ... to here.
32903 2011-05-22  Bruno Haible  <bruno@clisp.org>
32905         wmemchr: Move AC_LIBOBJ invocations to module description.
32906         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
32907         here...
32908         * modules/wmemchr (configure.ac): ... to here.
32910 2011-05-22  Bruno Haible  <bruno@clisp.org>
32912         wcswidth: Move AC_LIBOBJ invocations to module description.
32913         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
32914         here...
32915         * modules/wcswidth (configure.ac): ... to here.
32917 2011-05-22  Bruno Haible  <bruno@clisp.org>
32919         wcwidth: Respect rules for use of AC_LIBOBJ.
32920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
32921         invocation from here...
32922         * modules/wcwidth (configure.ac): ... to here.
32923         (Depends-on): Update conditions.
32925 2011-05-22  Bruno Haible  <bruno@clisp.org>
32927         wctype: Move AC_LIBOBJ invocations to module description.
32928         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
32929         invocation from here...
32930         * modules/wctype (configure.ac): ... to here.
32931         (Depends-on): Update conditions.
32933 2011-05-22  Bruno Haible  <bruno@clisp.org>
32935         wctrans: Move AC_LIBOBJ invocations to module description.
32936         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
32937         invocation from here...
32938         * modules/wctrans (configure.ac): ... to here.
32940 2011-05-22  Bruno Haible  <bruno@clisp.org>
32942         wctomb: Move AC_LIBOBJ invocations to module description.
32943         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
32944         invocations from here...
32945         * modules/wctomb (configure.ac): ... to here.
32947 2011-05-22  Bruno Haible  <bruno@clisp.org>
32949         wctob: Move AC_LIBOBJ invocations to module description.
32950         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
32951         gl_PREREQ_WCTOB invocations from here...
32952         * modules/wctob (configure.ac): ... to here.
32953         (Depends-on): Update conditions.
32955 2011-05-22  Bruno Haible  <bruno@clisp.org>
32957         wcsxfrm: Move AC_LIBOBJ invocations to module description.
32958         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
32959         here...
32960         * modules/wcsxfrm (configure.ac): ... to here.
32962 2011-05-22  Bruno Haible  <bruno@clisp.org>
32964         wcstok: Move AC_LIBOBJ invocations to module description.
32965         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
32966         * modules/wcstok (configure.ac): ... to here.
32968 2011-05-22  Bruno Haible  <bruno@clisp.org>
32970         wcsstr: Move AC_LIBOBJ invocations to module description.
32971         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
32972         * modules/wcsstr (configure.ac): ... to here.
32974 2011-05-22  Bruno Haible  <bruno@clisp.org>
32976         wcsspn: Move AC_LIBOBJ invocations to module description.
32977         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
32978         * modules/wcsspn (configure.ac): ... to here.
32980 2011-05-22  Bruno Haible  <bruno@clisp.org>
32982         wcsrtombs: Move AC_LIBOBJ invocations to module description.
32983         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
32984         gl_PREREQ_WCSRTOMBS invocations from here...
32985         * modules/wcsrtombs (configure.ac): ... to here.
32987 2011-05-22  Bruno Haible  <bruno@clisp.org>
32989         wcsrchr: Move AC_LIBOBJ invocations to module description.
32990         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
32991         here...
32992         * modules/wcsrchr (configure.ac): ... to here.
32994 2011-05-22  Bruno Haible  <bruno@clisp.org>
32996         wcspbrk: Move AC_LIBOBJ invocations to module description.
32997         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
32998         here...
32999         * modules/wcspbrk (configure.ac): ... to here.
33001 2011-05-22  Bruno Haible  <bruno@clisp.org>
33003         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
33004         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
33005         gl_PREREQ_WCSNRTOMBS invocations from here...
33006         * modules/wcsnrtombs (configure.ac): ... to here.
33008 2011-05-22  Bruno Haible  <bruno@clisp.org>
33010         wcsnlen: Move AC_LIBOBJ invocations to module description.
33011         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
33012         here...
33013         * modules/wcsnlen (configure.ac): ... to here.
33015 2011-05-22  Bruno Haible  <bruno@clisp.org>
33017         wcsncpy: Move AC_LIBOBJ invocations to module description.
33018         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
33019         here...
33020         * modules/wcsncpy (configure.ac): ... to here.
33022 2011-05-22  Bruno Haible  <bruno@clisp.org>
33024         wcsncmp: Move AC_LIBOBJ invocations to module description.
33025         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
33026         here...
33027         * modules/wcsncmp (configure.ac): ... to here.
33029 2011-05-22  Bruno Haible  <bruno@clisp.org>
33031         wcsncat: Move AC_LIBOBJ invocations to module description.
33032         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
33033         here...
33034         * modules/wcsncat (configure.ac): ... to here.
33036 2011-05-22  Bruno Haible  <bruno@clisp.org>
33038         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
33039         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
33040         from here...
33041         * modules/wcsncasecmp (configure.ac): ... to here.
33043 2011-05-22  Bruno Haible  <bruno@clisp.org>
33045         wcslen: Move AC_LIBOBJ invocations to module description.
33046         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
33047         * modules/wcslen (configure.ac): ... to here.
33049 2011-05-22  Bruno Haible  <bruno@clisp.org>
33051         wcsdup: Move AC_LIBOBJ invocations to module description.
33052         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
33053         * modules/wcsdup (configure.ac): ... to here.
33055 2011-05-22  Bruno Haible  <bruno@clisp.org>
33057         wcscspn: Move AC_LIBOBJ invocations to module description.
33058         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
33059         here...
33060         * modules/wcscspn (configure.ac): ... to here.
33062 2011-05-22  Bruno Haible  <bruno@clisp.org>
33064         wcscpy: Move AC_LIBOBJ invocations to module description.
33065         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
33066         * modules/wcscpy (configure.ac): ... to here.
33068 2011-05-22  Bruno Haible  <bruno@clisp.org>
33070         wcscoll: Move AC_LIBOBJ invocations to module description.
33071         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
33072         here...
33073         * modules/wcscoll (configure.ac): ... to here.
33075 2011-05-22  Bruno Haible  <bruno@clisp.org>
33077         wcscmp: Move AC_LIBOBJ invocations to module description.
33078         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
33079         * modules/wcscmp (configure.ac): ... to here.
33081 2011-05-22  Bruno Haible  <bruno@clisp.org>
33083         wcschr: Move AC_LIBOBJ invocations to module description.
33084         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
33085         * modules/wcschr (configure.ac): ... to here.
33087 2011-05-22  Bruno Haible  <bruno@clisp.org>
33089         wcscat: Move AC_LIBOBJ invocations to module description.
33090         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
33091         * modules/wcscat (configure.ac): ... to here.
33093 2011-05-22  Bruno Haible  <bruno@clisp.org>
33095         wcscasecmp: Move AC_LIBOBJ invocations to module description.
33096         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
33097         here...
33098         * modules/wcscasecmp (configure.ac): ... to here.
33100 2011-05-22  Bruno Haible  <bruno@clisp.org>
33102         wcrtomb: Move AC_LIBOBJ invocations to module description.
33103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
33104         invocations from here...
33105         * modules/wcrtomb (configure.ac): ... to here.
33107 2011-05-22  Bruno Haible  <bruno@clisp.org>
33109         wcpncpy: Move AC_LIBOBJ invocations to module description.
33110         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
33111         here...
33112         * modules/wcpncpy (configure.ac): ... to here.
33114 2011-05-22  Bruno Haible  <bruno@clisp.org>
33116         wcpcpy: Move AC_LIBOBJ invocations to module description.
33117         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
33118         * modules/wcpcpy (configure.ac): ... to here.
33120 2011-05-22  Bruno Haible  <bruno@clisp.org>
33122         waitpid: Move AC_LIBOBJ invocations to module description.
33123         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
33124         invocation from here...
33125         * modules/waitpid (configure.ac): ... to here.
33127 2011-05-22  Bruno Haible  <bruno@clisp.org>
33129         utimensat: Move AC_LIBOBJ invocations to module description.
33130         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
33131         here...
33132         * modules/utimensat (configure.ac): ... to here.
33134 2011-05-22  Bruno Haible  <bruno@clisp.org>
33136         usleep: Move AC_LIBOBJ invocations to module description.
33137         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
33138         here...
33139         * modules/usleep (configure.ac): ... to here.
33141 2011-05-22  Bruno Haible  <bruno@clisp.org>
33143         unlockpt: Move AC_LIBOBJ invocations to module description.
33144         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
33145         gl_PREREQ_UNLOCKPT invocations from here...
33146         * modules/unlockpt (configure.ac): ... to here.
33148 2011-05-22  Bruno Haible  <bruno@clisp.org>
33150         unlink: Respect rules for use of AC_LIBOBJ.
33151         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
33152         * modules/unlink (configure.ac): ... to here.
33154 2011-05-22  Bruno Haible  <bruno@clisp.org>
33156         uname: Move AC_LIBOBJ invocations to module description.
33157         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
33158         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
33159         here...
33160         * modules/uname (configure.ac): ... to here.
33162 2011-05-22  Bruno Haible  <bruno@clisp.org>
33164         ttyname_r: Move AC_LIBOBJ invocations to module description.
33165         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
33166         gl_PREREQ_TTYNAME_R invocations from here...
33167         * modules/ttyname_r (configure.ac): ... to here.
33169 2011-05-22  Bruno Haible  <bruno@clisp.org>
33171         tsearch: Move AC_LIBOBJ invocations to module description.
33172         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
33173         invocations from here...
33174         * modules/tsearch (configure.ac): ... to here.
33176 2011-05-22  Bruno Haible  <bruno@clisp.org>
33178         towctrans: Move AC_LIBOBJ invocations to module description.
33179         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
33180         AC_LIBOBJ invocation from here...
33181         * modules/towctrans (configure.ac): ... to here.
33183 2011-05-22  Bruno Haible  <bruno@clisp.org>
33185         tmpfile: Move AC_LIBOBJ invocations to module description.
33186         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
33187         invocations from here...
33188         * modules/tmpfile (configure.ac): ... to here.
33190 2011-05-22  Bruno Haible  <bruno@clisp.org>
33192         times: Move AC_LIBOBJ invocations to module description.
33193         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
33194         * modules/times (configure.ac): ... to here.
33196 2011-05-22  Bruno Haible  <bruno@clisp.org>
33198         time_r: Move AC_LIBOBJ invocations to module description.
33199         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
33200         invocations from here...
33201         * modules/time_r (configure.ac): ... to here.
33203 2011-05-22  Bruno Haible  <bruno@clisp.org>
33205         timegm: Move AC_LIBOBJ invocations to module description.
33206         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
33207         invocations from here...
33208         * modules/timegm (configure.ac): ... to here.
33210 2011-05-22  Bruno Haible  <bruno@clisp.org>
33212         tcgetsid: Move AC_LIBOBJ invocations to module description.
33213         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
33214         and gl_PREREQ_TCGETSID invocations from here...
33215         * modules/tcgetsid (configure.ac): ... to here.
33216         (Depends-on): Update conditions.
33218 2011-05-22  Bruno Haible  <bruno@clisp.org>
33220         symlinkat: Move AC_LIBOBJ invocations to module description.
33221         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
33222         here...
33223         * modules/symlinkat (configure.ac): ... to here.
33225 2011-05-22  Bruno Haible  <bruno@clisp.org>
33227         symlink: Move AC_LIBOBJ invocations to module description.
33228         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
33229         here...
33230         * modules/symlink (configure.ac): ... to here.
33232 2011-05-22  Bruno Haible  <bruno@clisp.org>
33234         strverscmp: Move AC_LIBOBJ invocations to module description.
33235         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
33236         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
33237         from here...
33238         * modules/strverscmp (configure.ac): ... to here.
33240 2011-05-22  Bruno Haible  <bruno@clisp.org>
33242         strtok_r: Move AC_LIBOBJ invocations to module description.
33243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
33244         and gl_PREREQ_STRTOK_R invocations from here...
33245         * modules/strtok_r (configure.ac): ... to here.
33246         (Depends-on): Update conditions.
33248 2011-05-22  Bruno Haible  <bruno@clisp.org>
33250         strtoumax: Move AC_LIBOBJ invocations to module description.
33251         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
33252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
33253         from here...
33254         * modules/strtoumax (configure.ac): ... to here.
33256 2011-05-22  Bruno Haible  <bruno@clisp.org>
33258         strtoimax: Move AC_LIBOBJ invocations to module description.
33259         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
33260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
33261         from here...
33262         * modules/strtoimax (configure.ac): ... to here.
33264 2011-05-22  Bruno Haible  <bruno@clisp.org>
33266         strtoull: Move AC_LIBOBJ invocations to module description.
33267         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
33268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
33269         from here...
33270         * modules/strtoull (configure.ac): ... to here.
33272 2011-05-22  Bruno Haible  <bruno@clisp.org>
33274         strtoll: Move AC_LIBOBJ invocations to module description.
33275         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
33276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
33277         here...
33278         * modules/strtoll (configure.ac): ... to here.
33280 2011-05-22  Bruno Haible  <bruno@clisp.org>
33282         strtoul: Move AC_LIBOBJ invocations to module description.
33283         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
33284         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
33285         * modules/strtoul (configure.ac): ... to here.
33287 2011-05-22  Bruno Haible  <bruno@clisp.org>
33289         strtol: Move AC_LIBOBJ invocations to module description.
33290         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
33291         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
33292         * modules/strtol (configure.ac): ... to here.
33294 2011-05-22  Bruno Haible  <bruno@clisp.org>
33296         strtod: Move AC_LIBOBJ invocations to module description.
33297         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
33298         invocations from here...
33299         * modules/strtod (configure.ac): ... to here.
33301 2011-05-22  Bruno Haible  <bruno@clisp.org>
33303         strstr*: Move AC_LIBOBJ invocations to module description.
33304         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
33305         invocations from here...
33306         * modules/strstr-simple (configure.ac): ... to here.
33307         * modules/strstr (configure.ac): ... and here.
33309 2011-05-22  Bruno Haible  <bruno@clisp.org>
33311         strsignal: Move AC_LIBOBJ invocations to module description.
33312         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
33313         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
33314         * modules/strsignal (configure.ac): ... to here.
33315         (Depends-on): Update conditions.
33317 2011-05-22  Bruno Haible  <bruno@clisp.org>
33319         strsep: Move AC_LIBOBJ invocations to module description.
33320         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
33321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
33322         here...
33323         * modules/strsep (configure.ac): ... to here.
33325 2011-05-22  Bruno Haible  <bruno@clisp.org>
33327         strptime: Move AC_LIBOBJ invocations to module description.
33328         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
33329         gl_PREREQ_STRPTIME invocations from here...
33330         * modules/strptime (configure.ac): ... to here.
33332 2011-05-22  Bruno Haible  <bruno@clisp.org>
33334         strpbrk: Move AC_LIBOBJ invocations to module description.
33335         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
33336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
33337         here...
33338         * modules/strpbrk (configure.ac): ... to here.
33340 2011-05-22  Bruno Haible  <bruno@clisp.org>
33342         strnlen: Move AC_LIBOBJ invocations to module description.
33343         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
33344         invocations from here...
33345         * modules/strnlen (configure.ac): ... to here.
33347 2011-05-22  Bruno Haible  <bruno@clisp.org>
33349         strndup: Move AC_LIBOBJ invocations to module description.
33350         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
33351         invocations from here...
33352         * modules/strndup (configure.ac): ... to here.
33353         (Depends-on): Update conditions.
33355 2011-05-22  Bruno Haible  <bruno@clisp.org>
33357         strncat: Move AC_LIBOBJ invocations to module description.
33358         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
33359         invocations from here...
33360         * modules/strncat (configure.ac): ... to here.
33362 2011-05-22  Bruno Haible  <bruno@clisp.org>
33364         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
33365         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
33366         invocations from here...
33367         * modules/strdup (configure.ac): ... to here.
33368         * modules/strdup-posix (configure.ac): ... and here.
33370 2011-05-22  Bruno Haible  <bruno@clisp.org>
33372         strcspn: Move AC_LIBOBJ invocations to module description.
33373         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
33374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
33375         here...
33376         * modules/strcspn (configure.ac): ... to here.
33378 2011-05-22  Bruno Haible  <bruno@clisp.org>
33380         strchrnul: Move AC_LIBOBJ invocations to module description.
33381         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
33382         gl_PREREQ_STRCHRNUL invocations from here...
33383         * modules/strchrnul (configure.ac): ... to here.
33385 2011-05-22  Bruno Haible  <bruno@clisp.org>
33387         strcasestr*: Move AC_LIBOBJ invocations to module description.
33388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
33389         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
33390         * modules/strcasestr-simple (configure.ac): ... to here.
33391         * modules/strcasestr (configure.ac): ... and here.
33393 2011-05-22  Bruno Haible  <bruno@clisp.org>
33395         strcase: Move AC_LIBOBJ invocations to module description.
33396         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
33397         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
33398         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
33399         gl_PREREQ_STRNCASECMP invocations from here...
33400         * modules/strcase (configure.ac): ... to here.
33402 2011-05-22  Bruno Haible  <bruno@clisp.org>
33404         stpncpy: Move AC_LIBOBJ invocations to module description.
33405         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
33406         here...
33407         * modules/stpncpy (configure.ac): ... to here.
33409 2011-05-22  Bruno Haible  <bruno@clisp.org>
33411         stpcpy: Move AC_LIBOBJ invocations to module description.
33412         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
33413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
33414         here...
33415         * modules/stpcpy (configure.ac): ... to here.
33417 2011-05-21  Bruno Haible  <bruno@clisp.org>
33419         stat: Move AC_LIBOBJ invocations to module description.
33420         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
33421         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
33422         here...
33423         * modules/stat (configure.ac): ... to here.
33425 2011-05-21  Bruno Haible  <bruno@clisp.org>
33427         sleep: Move AC_LIBOBJ invocations to module description.
33428         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
33429         * modules/sleep (configure.ac): ... to here.
33431 2011-05-21  Bruno Haible  <bruno@clisp.org>
33433         signbit: Move AC_LIBOBJ invocations to module description.
33434         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
33435         * modules/signbit (configure.ac): ... to here.
33437 2011-05-21  Bruno Haible  <bruno@clisp.org>
33439         sigprocmask: Move AC_LIBOBJ invocations to module description.
33440         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
33441         gl_PREREQ_SIGPROMASK invocations from here...
33442         * modules/sigprocmask (configure.ac): ... to here.
33444 2011-05-21  Bruno Haible  <bruno@clisp.org>
33446         sigaction: Move AC_LIBOBJ invocations to module description.
33447         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
33448         gl_PREREQ_SIGACTION invocations from here...
33449         * modules/sigaction (configure.ac): ... to here.
33451 2011-05-21  Bruno Haible  <bruno@clisp.org>
33453         sig2str: Move AC_LIBOBJ invocations to module description.
33454         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
33455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
33456         here...
33457         * modules/sig2str (configure.ac): ... to here.
33459 2011-05-21  Bruno Haible  <bruno@clisp.org>
33461         setlocale: Move AC_LIBOBJ invocations to module description.
33462         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
33463         gl_PREREQ_SETLOCALE invocations from here...
33464         * modules/setlocale (configure.ac): ... to here.
33466 2011-05-21  Bruno Haible  <bruno@clisp.org>
33468         unsetenv: Move AC_LIBOBJ invocations to module description.
33469         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
33470         and gl_PREREQ_UNSETENV invocations from here...
33471         * modules/unsetenv (configure.ac): ... to here.
33472         (Depends-on): Update.
33474 2011-05-21  Bruno Haible  <bruno@clisp.org>
33476         setenv: Move AC_LIBOBJ invocations to module description.
33477         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
33478         here...
33479         * modules/setenv (configure.ac): ... to here.
33481 2011-05-21  Bruno Haible  <bruno@clisp.org>
33483         selinux-h: Move AC_LIBOBJ invocations to module description.
33484         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
33485         AC_LIBOBJ invocation from here...
33486         * modules/selinux-h (configure.ac): ... to here.
33488 2011-05-21  Bruno Haible  <bruno@clisp.org>
33490         select: Respect rules for use of AC_LIBOBJ.
33491         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
33492         here...
33493         * modules/select (configure.ac): ... to here.
33495 2011-05-21  Bruno Haible  <bruno@clisp.org>
33497         scandir: Move AC_LIBOBJ invocations to module description.
33498         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
33499         invocations from here...
33500         * modules/scandir (configure.ac): ... to here.
33502 2011-05-21  Bruno Haible  <bruno@clisp.org>
33504         rpmatch: Move AC_LIBOBJ invocations to module description.
33505         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
33506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
33507         here...
33508         * modules/rpmatch (configure.ac): ... to here.
33510 2011-05-21  Bruno Haible  <bruno@clisp.org>
33512         rmdir: Respect rules for use of AC_LIBOBJ.
33513         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
33514         * modules/rmdir (configure.ac): ... to here.
33516 2011-05-21  Bruno Haible  <bruno@clisp.org>
33518         renameat: Move AC_LIBOBJ invocations to module description.
33519         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
33520         here...
33521         * modules/renameat (configure.ac): ... to here.
33523 2011-05-21  Bruno Haible  <bruno@clisp.org>
33525         rename: Respect rules for use of AC_LIBOBJ.
33526         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
33527         here...
33528         * modules/rename (configure.ac): ... to here.
33530 2011-05-21  Bruno Haible  <bruno@clisp.org>
33532         remove: Move AC_LIBOBJ invocations to module description.
33533         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
33534         here...
33535         * modules/remove (configure.ac): ... to here.
33537 2011-05-21  Bruno Haible  <bruno@clisp.org>
33539         relocatable-lib: Move AC_LIBOBJ invocations to module description.
33540         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
33541         macro.
33542         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
33543         * modules/relocatable-lib (configure.ac): ... to here.
33544         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33545         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
33547 2011-05-21  Bruno Haible  <bruno@clisp.org>
33549         relocatable-prog: Move AC_LIBOBJ invocations to module description.
33550         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
33551         here...
33552         * modules/relocatable-prog (configure.ac): ... to here.
33554 2011-05-21  Bruno Haible  <bruno@clisp.org>
33556         regex: Move AC_LIBOBJ invocations to module description.
33557         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
33558         invocations from here...
33559         * modules/regex (configure.ac): ... to here.
33561 2011-05-21  Bruno Haible  <bruno@clisp.org>
33563         realloc-*: Move AC_LIBOBJ invocations to module description.
33564         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
33565         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
33566         AC_LIBOBJ invocations from here...
33567         * modules/realloc-gnu (configure.ac): ... to here.
33568         * modules/realloc-posix (configure.ac): ... and here.
33570 2011-05-21  Bruno Haible  <bruno@clisp.org>
33572         readutmp: Move AC_LIBOBJ invocations to module description.
33573         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
33574         * modules/readutmp (configure.ac): ... to here.
33576 2011-05-21  Bruno Haible  <bruno@clisp.org>
33578         readlinkat: Move AC_LIBOBJ invocations to module description.
33579         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
33580         here...
33581         * modules/readlinkat (configure.ac): ... to here.
33583 2011-05-21  Bruno Haible  <bruno@clisp.org>
33585         readlink: Move AC_LIBOBJ invocations to module description.
33586         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
33587         gl_PREREQ_READLINK invocations from here...
33588         * modules/readlink (configure.ac): ... to here.
33590 2011-05-21  Bruno Haible  <bruno@clisp.org>
33592         readline: Move AC_LIBOBJ invocations to module description.
33593         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
33594         gl_PREREQ_READLINE invocations from here...
33595         * modules/readline (configure.ac): ... to here.
33597 2011-05-21  Bruno Haible  <bruno@clisp.org>
33599         read: Move AC_LIBOBJ invocations to module description.
33600         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
33601         * modules/read (configure.ac): ... to here.
33603 2011-05-21  Bruno Haible  <bruno@clisp.org>
33605         rawmemchr: Move AC_LIBOBJ invocations to module description.
33606         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
33607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
33608         from here...
33609         * modules/rawmemchr (configure.ac): ... to here.
33611 2011-05-21  Bruno Haible  <bruno@clisp.org>
33613         random_r: Move AC_LIBOBJ invocations to module description.
33614         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
33615         gl_PREREQ_RANDOM_R invocations from here...
33616         * modules/random_r (configure.ac): ... to here.
33618 2011-05-21  Bruno Haible  <bruno@clisp.org>
33620         pwrite: Move AC_LIBOBJ invocations to module description.
33621         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
33622         * modules/pwrite (configure.ac): ... to here.
33624 2011-05-21  Bruno Haible  <bruno@clisp.org>
33626         putenv: Move AC_LIBOBJ invocations to module description.
33627         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
33628         * modules/putenv (configure.ac): ... to here.
33630 2011-05-21  Bruno Haible  <bruno@clisp.org>
33632         login_tty: Move AC_LIBOBJ invocations to module description.
33633         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
33634         * modules/login_tty (configure.ac): ... to here.
33636 2011-05-21  Bruno Haible  <bruno@clisp.org>
33638         openpty: Move AC_LIBOBJ invocations to module description.
33639         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
33640         * modules/openpty (configure.ac): ... to here.
33642 2011-05-21  Bruno Haible  <bruno@clisp.org>
33644         forkpty: Move AC_LIBOBJ invocations to module description.
33645         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
33646         * modules/forkpty (configure.ac): ... to here.
33648 2011-05-21  Bruno Haible  <bruno@clisp.org>
33650         ptsname: Move AC_LIBOBJ invocations to module description.
33651         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
33652         invocations from here...
33653         * modules/ptsname (configure.ac): ... to here.
33655 2011-05-21  Bruno Haible  <bruno@clisp.org>
33657         pread: Move AC_LIBOBJ invocations to module description.
33658         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
33659         * modules/pread (configure.ac): ... to here.
33661 2011-05-21  Bruno Haible  <bruno@clisp.org>
33663         posix_spawn*: Move AC_LIBOBJ invocations to module description.
33664         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
33665         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
33666         * modules/posix_spawn (configure.ac): ... to here.
33667         * modules/posix_spawnp (configure.ac): ... and here.
33669 2011-05-21  Bruno Haible  <bruno@clisp.org>
33671         popen: Move AC_LIBOBJ invocations to module description.
33672         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
33673         invocations from here...
33674         * modules/popen (configure.ac): ... to here.
33676 2011-05-21  Bruno Haible  <bruno@clisp.org>
33678         poll: Move AC_LIBOBJ invocations to module description.
33679         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
33680         invocations from here...
33681         * modules/poll (configure.ac): ... to here.
33683 2011-05-21  Bruno Haible  <bruno@clisp.org>
33685         pipe-posix: Move AC_LIBOBJ invocations to module description.
33686         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
33687         * modules/pipe-posix (configure.ac): ... to here.
33689 2011-05-21  Bruno Haible  <bruno@clisp.org>
33691         openat: Respect rules for use of AC_LIBOBJ.
33692         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
33693         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33694         * modules/openat (configure.ac): ... to here.
33696 2011-05-21  Bruno Haible  <bruno@clisp.org>
33698         obstack-printf*: Move AC_LIBOBJ invocations to module description.
33699         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
33700         invocation from here...
33701         * modules/obstack-printf (configure.ac): ... to here.
33702         * modules/obstack-printf-posix (configure.ac): ... and here.
33704 2011-05-21  Bruno Haible  <bruno@clisp.org>
33706         nl_langinfo: Move AC_LIBOBJ invocations to module description.
33707         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
33708         from here...
33709         * modules/nl_langinfo (configure.ac): ... to here.
33711 2011-05-21  Bruno Haible  <bruno@clisp.org>
33713         nanosleep: Move AC_LIBOBJ invocations to module description.
33714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
33715         gl_PREREQ_NANOSLEEP invocations from here...
33716         * modules/nanosleep (configure.ac): ... to here.
33718 2011-05-21  Bruno Haible  <bruno@clisp.org>
33720         mountlist: Move AC_LIBOBJ invocations to module description.
33721         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
33722         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
33723         * modules/mountlist (configure.ac): ... to here.
33725 2011-05-21  Bruno Haible  <bruno@clisp.org>
33727         mktime: Respect rules for use of AC_LIBOBJ.
33728         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
33729         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
33730         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
33731         (gl_FUNC_MKTIME_INTERNAL): ... and here...
33732         * modules/mktime (configure.ac): ... to here.
33733         * modules/mktime-internal (configure.ac): ... and here.
33734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
33736 2011-05-21  Bruno Haible  <bruno@clisp.org>
33738         mkstemps: Move AC_LIBOBJ invocations to module description.
33739         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
33740         here...
33741         * modules/mkstemps (configure.ac): ... to here.
33743 2011-05-21  Bruno Haible  <bruno@clisp.org>
33745         mkstemp: Move AC_LIBOBJ invocations to module description.
33746         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
33747         gl_PREREQ_MKSTEMP invocations from here...
33748         * modules/mkstemp (configure.ac): ... to here.
33750 2011-05-21  Bruno Haible  <bruno@clisp.org>
33752         mkostemps: Move AC_LIBOBJ invocations to module description.
33753         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
33754         here...
33755         * modules/mkostemps (configure.ac): ... to here.
33757 2011-05-21  Bruno Haible  <bruno@clisp.org>
33759         mkostemp: Move AC_LIBOBJ invocations to module description.
33760         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
33761         gl_PREREQ_MKOSTEMP invocations from here...
33762         * modules/mkostemp (configure.ac): ... to here.
33764 2011-05-21  Bruno Haible  <bruno@clisp.org>
33766         mknod: Move AC_LIBOBJ invocations to module description.
33767         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
33768         * modules/mknod (configure.ac): ... to here.
33770 2011-05-21  Bruno Haible  <bruno@clisp.org>
33772         mkfifoat: Move AC_LIBOBJ invocations to module description.
33773         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
33774         here...
33775         * modules/mkfifoat (configure.ac): ... to here.
33777 2011-05-21  Bruno Haible  <bruno@clisp.org>
33779         mkfifo: Respect rules for use of AC_LIBOBJ.
33780         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
33781         here...
33782         * modules/mkfifo (configure.ac): ... to here.
33784 2011-05-21  Bruno Haible  <bruno@clisp.org>
33786         mkdtemp: Move AC_LIBOBJ invocations to module description.
33787         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
33788         invocations from here...
33789         * modules/mkdtemp (configure.ac): ... to here.
33791 2011-05-21  Bruno Haible  <bruno@clisp.org>
33793         mkdir: Move AC_LIBOBJ invocations to module description.
33794         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
33795         * modules/mkdir (configure.ac): ... to here.
33797 2011-05-21  Bruno Haible  <bruno@clisp.org>
33799         memset: Move AC_LIBOBJ invocations to module description.
33800         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
33801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
33802         here...
33803         * modules/memset (configure.ac): ... to here.
33805 2011-05-21  Bruno Haible  <bruno@clisp.org>
33807         memrchr: Move AC_LIBOBJ invocations to module description.
33808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
33809         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
33810         here...
33811         * modules/memrchr (configure.ac): ... to here.
33813 2011-05-21  Bruno Haible  <bruno@clisp.org>
33815         mempcpy: Move AC_LIBOBJ invocations to module description.
33816         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
33817         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
33818         here...
33819         * modules/mempcpy (configure.ac): ... to here.
33821 2011-05-21  Bruno Haible  <bruno@clisp.org>
33823         memmove: Move AC_LIBOBJ invocations to module description.
33824         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
33825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
33826         here...
33827         * modules/memmove (configure.ac): ... to here.
33829 2011-05-21  Bruno Haible  <bruno@clisp.org>
33831         memmem*: Move AC_LIBOBJ invocations to module description.
33832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
33833         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
33834         here...
33835         (gl_FUNC_MEMMEM): ... and here...
33836         * modules/memmem-simple (configure.ac): ... to here.
33837         * modules/memmem (configure.ac): ... and here.
33839 2011-05-21  Bruno Haible  <bruno@clisp.org>
33841         memcpy: Move AC_LIBOBJ invocations to module description.
33842         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
33843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
33844         here...
33845         * modules/memcpy (configure.ac): ... to here.
33847 2011-05-21  Bruno Haible  <bruno@clisp.org>
33849         memcmp: Simplify autoconf macro.
33850         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
33851         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
33852         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
33854 2011-05-21  Bruno Haible  <bruno@clisp.org>
33856         memcmp: Move AC_LIBOBJ invocations to module description.
33857         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
33858         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
33859         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
33860         * modules/memcmp (configure.ac): ... to here.
33861         (Depends-on): Update conditions.
33863 2011-05-21  Bruno Haible  <bruno@clisp.org>
33865         memchr: Respect rules for use of AC_LIBOBJ.
33866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
33867         invocations from here...
33868         * modules/memchr (configure.ac): ... to here.
33870 2011-05-21  Bruno Haible  <bruno@clisp.org>
33872         mbtowc: Move AC_LIBOBJ invocations to module description.
33873         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
33874         invocations from here...
33875         * modules/mbtowc (configure.ac): ... to here.
33877 2011-05-21  Bruno Haible  <bruno@clisp.org>
33879         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
33880         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
33881         gl_PREREQ_MBSRTOWCS invocations from here...
33882         * modules/mbsrtowcs (configure.ac): ... to here.
33884 2011-05-21  Bruno Haible  <bruno@clisp.org>
33886         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
33887         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
33888         gl_PREREQ_MBSNRTOWCS invocations from here...
33889         * modules/mbsnrtowcs (configure.ac): ... to here.
33891 2011-05-21  Bruno Haible  <bruno@clisp.org>
33893         mbsinit: Move AC_LIBOBJ invocations to module description.
33894         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
33895         invocations from here...
33896         * modules/mbsinit (configure.ac): ... to here.
33898 2011-05-21  Bruno Haible  <bruno@clisp.org>
33900         mbrlen: Move AC_LIBOBJ invocations to module description.
33901         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
33902         invocations from here...
33903         * modules/mbrlen (configure.ac): ... to here.
33905 2011-05-21  Bruno Haible  <bruno@clisp.org>
33907         mbrtowc: Respect rules for use of AC_LIBOBJ.
33908         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
33909         invocations from here...
33910         * modules/mbrtowc (configure.ac): ... to here.
33912 2011-05-21  Bruno Haible  <bruno@clisp.org>
33914         malloc-*: Move AC_LIBOBJ invocations to module description.
33915         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
33916         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
33917         AC_LIBOBJ invocations from here...
33918         * modules/malloc-gnu (configure.ac): ... to here.
33919         * modules/malloc-posix (configure.ac): ... and here.
33921 2011-05-21  Bruno Haible  <bruno@clisp.org>
33923         lstat, openat: Respect rules for use of AC_LIBOBJ.
33924         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
33925         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
33926         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
33927         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
33928         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
33929         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
33930         here.
33931         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
33933 2011-05-21  Bruno Haible  <bruno@clisp.org>
33935         lseek: Move AC_LIBOBJ invocations to module description.
33936         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
33937         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
33938         * modules/lseek (configure.ac): ... to here.
33940 2011-05-21  Bruno Haible  <bruno@clisp.org>
33942         linkat: Move AC_LIBOBJ invocations to module description.
33943         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
33944         here...
33945         * modules/linkat (configure.ac): ... to here.
33947 2011-05-21  Bruno Haible  <bruno@clisp.org>
33949         link: Respect rules for use of AC_LIBOBJ.
33950         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
33951         * modules/link (configure.ac): ... to here.
33953 2011-05-21  Bruno Haible  <bruno@clisp.org>
33955         lchown: Move AC_LIBOBJ invocations to module description.
33956         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
33957         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33958         * modules/lchown (configure.ac): ... to here.
33960 2011-05-21  Bruno Haible  <bruno@clisp.org>
33962         iswctype: Move AC_LIBOBJ invocations to module description.
33963         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
33964         here...
33965         * modules/iswctype (configure.ac): ... to here.
33967 2011-05-21  Bruno Haible  <bruno@clisp.org>
33969         iswblank: Move AC_LIBOBJ invocations to module description.
33970         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
33971         here...
33972         * modules/iswblank (configure.ac): ... to here.
33974 2011-05-21  Bruno Haible  <bruno@clisp.org>
33976         atanl: Move AC_LIBOBJ invocations to module description.
33977         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
33978         * modules/atanl (configure.ac): ... to here.
33980 2011-05-21  Bruno Haible  <bruno@clisp.org>
33982         acosl: Move AC_LIBOBJ invocations to module description.
33983         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
33984         * modules/acosl (configure.ac): ... to here.
33986 2011-05-21  Bruno Haible  <bruno@clisp.org>
33988         asinl: Respect rules for use of AC_LIBOBJ.
33989         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
33990         * modules/asinl (configure.ac): ... to here.
33992 2011-05-21  Bruno Haible  <bruno@clisp.org>
33994         tanl: Move AC_LIBOBJ invocations to module description.
33995         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
33996         * modules/tanl (configure.ac): ... to here.
33998 2011-05-21  Bruno Haible  <bruno@clisp.org>
34000         cosl: Move AC_LIBOBJ invocations to module description.
34001         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
34002         * modules/cosl (configure.ac): ... to here.
34004 2011-05-21  Bruno Haible  <bruno@clisp.org>
34006         sinl: Move AC_LIBOBJ invocations to module description.
34007         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
34008         * modules/sinl (configure.ac): ... to here.
34010 2011-05-21  Bruno Haible  <bruno@clisp.org>
34012         logl: Move AC_LIBOBJ invocations to module description.
34013         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
34014         * modules/logl (configure.ac): ... to here.
34016 2011-05-21  Bruno Haible  <bruno@clisp.org>
34018         expl: Move AC_LIBOBJ invocations to module description.
34019         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
34020         * modules/expl (configure.ac): ... to here.
34022 2011-05-21  Bruno Haible  <bruno@clisp.org>
34024         roundl: Move AC_LIBOBJ invocations to module description.
34025         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
34026         * modules/roundl (configure.ac): ... to here.
34028 2011-05-21  Bruno Haible  <bruno@clisp.org>
34030         round: Move AC_LIBOBJ invocations to module description.
34031         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
34032         * modules/round (configure.ac): ... to here.
34034 2011-05-21  Bruno Haible  <bruno@clisp.org>
34036         roundf: Move AC_LIBOBJ invocations to module description.
34037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
34038         * modules/roundf (configure.ac): ... to here.
34040 2011-05-21  Bruno Haible  <bruno@clisp.org>
34042         truncl: Move AC_LIBOBJ invocations to module description.
34043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
34044         * modules/truncl (configure.ac): ... to here.
34046 2011-05-21  Bruno Haible  <bruno@clisp.org>
34048         trunc: Move AC_LIBOBJ invocations to module description.
34049         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
34050         * modules/trunc (configure.ac): ... to here.
34052 2011-05-21  Bruno Haible  <bruno@clisp.org>
34054         truncf: Move AC_LIBOBJ invocations to module description.
34055         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
34056         * modules/truncf (configure.ac): ... to here.
34058 2011-05-21  Bruno Haible  <bruno@clisp.org>
34060         ceill: Move AC_LIBOBJ invocations to module description.
34061         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
34062         * modules/ceill (configure.ac): ... to here.
34064 2011-05-21  Bruno Haible  <bruno@clisp.org>
34066         ceil: Move AC_LIBOBJ invocations to module description.
34067         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
34068         * modules/ceil (configure.ac): ... to here.
34070 2011-05-21  Bruno Haible  <bruno@clisp.org>
34072         ceilf: Move AC_LIBOBJ invocations to module description.
34073         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
34074         * modules/ceilf (configure.ac): ... to here.
34076 2011-05-21  Bruno Haible  <bruno@clisp.org>
34078         floorl: Respect rules for use of AC_LIBOBJ.
34079         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
34080         * modules/floorl (configure.ac): ... to here.
34082 2011-05-21  Bruno Haible  <bruno@clisp.org>
34084         floor: Respect rules for use of AC_LIBOBJ.
34085         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
34086         * modules/floor (configure.ac): ... to here.
34088 2011-05-21  Bruno Haible  <bruno@clisp.org>
34090         floorf: Move AC_LIBOBJ invocations to module description.
34091         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
34092         * modules/floorf (configure.ac): ... to here.
34094 2011-05-20  Bruno Haible  <bruno@clisp.org>
34096         sqrtl: Respect rules for use of AC_LIBOBJ.
34097         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
34098         * modules/sqrtl (configure.ac): ... to here.
34100 2011-05-20  Bruno Haible  <bruno@clisp.org>
34102         ldexpl: Respect rules for use of AC_LIBOBJ.
34103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
34104         * modules/ldexpl (configure.ac): ... to here.
34106 2011-05-20  Bruno Haible  <bruno@clisp.org>
34108         frexpl*: Respect rules for use of AC_LIBOBJ.
34109         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
34110         invocation from here...
34111         * modules/frexpl (configure.ac): ... to here.
34112         * modules/frexpl-nolibm (configure.ac): ... and here.
34114 2011-05-20  Bruno Haible  <bruno@clisp.org>
34116         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
34117         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
34118         invocation from here...
34119         * modules/frexp (configure.ac): ... to here.
34120         * modules/frexp-nolibm (configure.ac): ... and here.
34122 2011-05-20  Bruno Haible  <bruno@clisp.org>
34124         isnan: Respect rules for use of AC_LIBOBJ.
34125         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
34126         invocations here.
34127         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
34128         REPLACE_ISNAN.
34129         * modules/isnand (configure.ac): Likewise.
34130         * modules/isnanl (configure.ac): Likewise.
34132 2011-05-20  Bruno Haible  <bruno@clisp.org>
34134         isnanl*: Respect rules for use of AC_LIBOBJ.
34135         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
34136         invocation from here...
34137         * modules/isnanl (configure.ac): ... to here.
34138         * modules/isnanl-nolibm (configure.ac): ... and here.
34140 2011-05-20  Bruno Haible  <bruno@clisp.org>
34142         isnand*: Move AC_LIBOBJ invocations to module description.
34143         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
34144         invocation from here...
34145         * modules/isnand (configure.ac): ... to here.
34146         * modules/isnand-nolibm (configure.ac): ... and here.
34148 2011-05-20  Bruno Haible  <bruno@clisp.org>
34150         isnanf*: Move AC_LIBOBJ invocations to module description.
34151         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
34152         invocation from here...
34153         * modules/isnanf (configure.ac): ... to here.
34154         * modules/isnanf-nolibm (configure.ac): ... and here.
34156 2011-05-20  Bruno Haible  <bruno@clisp.org>
34158         isnan*: Separate the AC_LIBOBJ invocations.
34159         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
34160         AC_LIBOBJ invocation.
34161         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
34162         here.
34163         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
34164         AC_LIBOBJ invocation.
34165         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
34166         here.
34167         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
34168         AC_LIBOBJ invocation.
34169         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
34170         here.
34171         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
34173 2011-05-08  Bruno Haible  <bruno@clisp.org>
34175         isinf: Move AC_LIBOBJ invocations to module description.
34176         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
34177         * modules/isinf (configure.ac): ... to here.
34179 2011-05-08  Bruno Haible  <bruno@clisp.org>
34181         isfinite: Move AC_LIBOBJ invocations to module description.
34182         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
34183         * modules/isfinite (configure.ac): ... to here.
34185 2011-05-08  Bruno Haible  <bruno@clisp.org>
34187         isblank: Move AC_LIBOBJ invocations to module description.
34188         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
34189         here...
34190         * modules/isblank (configure.ac): ... to here.
34192 2011-05-08  Bruno Haible  <bruno@clisp.org>
34194         isapipe: Move AC_LIBOBJ invocations to module description.
34195         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
34196         gl_PREREQ_ISAPIPE invocations from here...
34197         * modules/isapipe (configure.ac): ... to here.
34198         (Depends-on): Update condition.
34200 2011-05-08  Bruno Haible  <bruno@clisp.org>
34202         ioctl: Move AC_LIBOBJ invocations to module description.
34203         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
34204         invocations from here...
34205         * modules/ioctl (configure.ac): ... to here.
34206         (Depends-on): Update condition.
34208 2011-05-08  Bruno Haible  <bruno@clisp.org>
34210         imaxdiv: Move AC_LIBOBJ invocations to module description.
34211         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
34212         invocations from here...
34213         * modules/imaxdiv (configure.ac): ... to here.
34215 2011-05-08  Bruno Haible  <bruno@clisp.org>
34217         imaxabs: Move AC_LIBOBJ invocations to module description.
34218         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
34219         invocations from here...
34220         * modules/imaxabs (configure.ac): ... to here.
34222 2011-05-08  Bruno Haible  <bruno@clisp.org>
34224         getaddrinfo: Move AC_LIBOBJ invocations to module description.
34225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
34226         AC_LIBOBJ invocations from here...
34227         * modules/getaddrinfo (configure.ac): ... to here.
34228         (Depends-on): Add conditions.
34230 2011-05-08  Bruno Haible  <bruno@clisp.org>
34232         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
34233         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
34234         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
34235         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
34236         (gl_PREREQ_INET_PTON): ... from here.
34237         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
34238         gl_PREREQ_INET_PTON here.
34239         (Depends-on): Update condition.
34241 2011-05-08  Bruno Haible  <bruno@clisp.org>
34243         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
34244         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
34245         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
34246         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
34247         (gl_PREREQ_INET_NTOP): ... from here.
34248         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
34249         gl_PREREQ_INET_NTOP here.
34250         (Depends-on): Update condition.
34252 2011-05-08  Bruno Haible  <bruno@clisp.org>
34254         iconv_open: Move AC_LIBOBJ invocations to module description.
34255         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
34256         AC_LIBOBJ invocations from here...
34257         * modules/iconv_open (configure.ac): ... to here.
34259 2011-05-08  Bruno Haible  <bruno@clisp.org>
34261         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
34262         If module 'iconv_open' is among the main modules and module
34263         'iconv_open-utf' is among the tests dependencies, then
34264         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
34265         return the special iconv_t values. Therefore iconv() and iconv_close()
34266         must support these special iconv_t values, already in lib, not only in
34267         tests.
34268         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
34269         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
34270         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
34271         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
34272         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
34273         (Depends-on): Add the dependencies of iconv_open-utf.
34274         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
34275         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
34276         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
34278 2011-05-08  Bruno Haible  <bruno@clisp.org>
34280         group-member: Move AC_LIBOBJ invocations to module description.
34281         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
34282         gl_PREREQ_GROUP_MEMBER invocations from here...
34283         * modules/group-member (configure.ac): ... to here.
34285 2011-05-08  Bruno Haible  <bruno@clisp.org>
34287         grantpt: Move AC_LIBOBJ invocations to module description.
34288         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
34289         invocations from here...
34290         * modules/grantpt (configure.ac): ... to here.
34292 2011-05-08  Bruno Haible  <bruno@clisp.org>
34294         glob: Move AC_LIBOBJ invocations to module description.
34295         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
34296         from here...
34297         * modules/glob (configure.ac): ... to here.
34299 2011-05-08  Bruno Haible  <bruno@clisp.org>
34301         getusershell: Move AC_LIBOBJ invocations to module description.
34302         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
34303         Move AC_LIBOBJ invocation from here...
34304         * modules/getusershell (configure.ac): ... to here.
34305         (Depends-on): Update condition.
34307 2011-05-08  Bruno Haible  <bruno@clisp.org>
34309         gettimeofday: Move AC_LIBOBJ invocations to module description.
34310         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
34311         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
34312         gl_PREREQ_GETTIMEOFDAY invocations from here...
34313         * modules/gettimeofday (configure.ac): ... to here.
34315 2011-05-08  Bruno Haible  <bruno@clisp.org>
34317         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
34318         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
34319         just gl_FUNC_TZSET.
34320         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
34321         (gl_FUNC_TZSET_CLOBBER): Remove actions.
34322         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
34323         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
34325 2011-05-08  Bruno Haible  <bruno@clisp.org>
34327         getsubopt: Move AC_LIBOBJ invocations to module description.
34328         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
34329         gl_PREREQ_GETSUBOPT invocations from here...
34330         * modules/getsubopt (configure.ac): ... to here.
34332 2011-05-08  Bruno Haible  <bruno@clisp.org>
34334         getpass-gnu: Move AC_LIBOBJ invocations to module description.
34335         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
34336         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
34337         * modules/getpass-gnu (configure.ac): ... to here.
34339 2011-05-08  Bruno Haible  <bruno@clisp.org>
34341         getpass: Move AC_LIBOBJ invocations to module description.
34342         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
34343         gl_PREREQ_GETPASS invocations from here...
34344         * modules/getpass (configure.ac): ... to here.
34346 2011-05-08  Bruno Haible  <bruno@clisp.org>
34348         getpagesize: Move AC_LIBOBJ invocations to module description.
34349         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
34350         from here...
34351         * modules/getpagesize (configure.ac): ... to here.
34353 2011-05-08  Bruno Haible  <bruno@clisp.org>
34355         getopt: Move AC_LIBOBJ invocations to module description.
34356         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
34357         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
34358         invocations from here...
34359         * modules/getopt-gnu (configure.ac): ... to here.
34360         * modules/getopt-posix (configure.ac): ... and here.
34361         (Depends-on): Update condition.
34363 2011-05-08  Bruno Haible  <bruno@clisp.org>
34365         getopt, argp: Respect rules for use of AC_LIBOBJ.
34366         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
34367         (gl_REPLACE_GETOPT_ALWAYS): New macro.
34368         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
34369         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
34371 2011-05-08  Bruno Haible  <bruno@clisp.org>
34373         getlogin_r: Move AC_LIBOBJ invocations to module description.
34374         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
34375         gl_PREREQ_GETLOGIN_R invocations from here...
34376         * modules/getlogin_r (configure.ac): ... to here.
34378 2011-05-08  Bruno Haible  <bruno@clisp.org>
34380         getlogin: Move AC_LIBOBJ invocations to module description.
34381         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
34382         here...
34383         * modules/getlogin (configure.ac): ... to here.
34385 2011-05-08  Bruno Haible  <bruno@clisp.org>
34387         getloadavg: Move AC_LIBOBJ invocations to module description.
34388         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
34389         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
34390         * modules/getloadavg (configure.ac): ... to here.
34392 2011-05-08  Bruno Haible  <bruno@clisp.org>
34394         gethrxtime: Move AC_LIBOBJ invocations to module description.
34395         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
34396         LIB_GETHRXTIME from here...
34397         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
34398         invocations from here...
34399         * modules/gethrxtime (configure.ac): ... to here.
34401 2011-05-08  Bruno Haible  <bruno@clisp.org>
34403         gethostname: Move AC_LIBOBJ invocations to module description.
34404         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
34405         gl_PREREQ_GETHOSTNAME invocations from here...
34406         * modules/gethostname (configure.ac): ... to here.
34408 2011-05-08  Bruno Haible  <bruno@clisp.org>
34410         getgroups: Move AC_LIBOBJ invocations to module description.
34411         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
34412         here...
34413         * modules/getgroups (configure.ac): ... to here.
34415 2011-05-08  Bruno Haible  <bruno@clisp.org>
34417         getdtablesize: Move AC_LIBOBJ invocations to module description.
34418         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
34419         invocation from here...
34420         * modules/getdtablesize (configure.ac): ... to here.
34422 2011-05-08  Bruno Haible  <bruno@clisp.org>
34424         getdomainname: Move AC_LIBOBJ invocations to module description.
34425         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
34426         gl_PREREQ_GETDOMAINNAME invocations from here...
34427         * modules/getdomainname (configure.ac): ... to here.
34429 2011-05-08  Bruno Haible  <bruno@clisp.org>
34431         getline: Move AC_LIBOBJ invocations to module description.
34432         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
34433         invocations from here...
34434         * modules/getline (configure.ac): ... to here.
34436 2011-05-08  Bruno Haible  <bruno@clisp.org>
34438         getline: Simplify.
34439         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
34440         It's already handled through the module dependency.
34442 2011-05-08  Bruno Haible  <bruno@clisp.org>
34444         getdelim: Move AC_LIBOBJ invocations to module description.
34445         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
34446         and gl_PREREQ_GETDELIM invocations from here...
34447         * modules/getdelim (configure.ac): ... to here.
34448         (Depends-on): Fix condition.
34450 2011-05-08  Bruno Haible  <bruno@clisp.org>
34452         getcwd: Move AC_LIBOBJ invocations to module description.
34453         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
34454         invocations from here...
34455         * modules/getcwd (configure.ac): ... to here.
34457 2011-05-08  Bruno Haible  <bruno@clisp.org>
34459         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
34460         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
34461         here...
34462         * modules/getcwd-lgpl (configure.ac): ... to here.
34464 2011-05-07  Bruno Haible  <bruno@clisp.org>
34466         crypto/gc: Move AC_LIBOBJ invocations to module description.
34467         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
34468         * modules/crypto/gc (configure.ac): ... to here.
34470 2011-05-07  Bruno Haible  <bruno@clisp.org>
34472         fwriting: Move AC_LIBOBJ invocations to module description.
34473         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
34474         here...
34475         * modules/fwriting (configure.ac): ... to here.
34477 2011-05-07  Bruno Haible  <bruno@clisp.org>
34479         fwritable: Move AC_LIBOBJ invocations to module description.
34480         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
34481         here...
34482         * modules/fwritable (configure.ac): ... to here.
34484 2011-05-07  Bruno Haible  <bruno@clisp.org>
34486         futimens: Move AC_LIBOBJ invocations to module description.
34487         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
34488         here...
34489         * modules/futimens (configure.ac): ... to here.
34491 2011-05-07  Bruno Haible  <bruno@clisp.org>
34493         ftruncate: Move AC_LIBOBJ invocations to module description.
34494         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
34495         gl_PREREQ_FTRUNCATE invocations from here...
34496         * modules/ftruncate (configure.ac): ... to here.
34498 2011-05-07  Bruno Haible  <bruno@clisp.org>
34500         fsync: Move AC_LIBOBJ invocations to module description.
34501         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
34502         invocations from here...
34503         * modules/fsync (configure.ac): ... to here.
34505 2011-05-07  Bruno Haible  <bruno@clisp.org>
34507         fsusage: Move AC_LIBOBJ invocations to module description.
34508         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
34509         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
34510         * modules/fsusage (configure.ac): ... to here.
34512 2011-05-07  Bruno Haible  <bruno@clisp.org>
34514         freopen: Move AC_LIBOBJ invocations to module description.
34515         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
34516         invocations from here...
34517         * modules/freopen (configure.ac): ... to here.
34519 2011-05-07  Bruno Haible  <bruno@clisp.org>
34521         free: Move AC_LIBOBJ invocations to module description.
34522         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
34523         invocations from here...
34524         * modules/free (configure.ac): ... to here.
34526 2011-05-07  Bruno Haible  <bruno@clisp.org>
34528         freadable: Move AC_LIBOBJ invocations to module description.
34529         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
34530         here...
34531         * modules/freadable (configure.ac): ... to here.
34533 2011-05-07  Bruno Haible  <bruno@clisp.org>
34535         fpurge: Move AC_LIBOBJ invocations to module description.
34536         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
34537         invocations from here...
34538         * modules/fpurge (configure.ac): ... to here.
34540 2011-05-07  Bruno Haible  <bruno@clisp.org>
34542         fpending: Move AC_LIBOBJ invocations to module description.
34543         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
34544         gl_FUNC_FPENDING.
34545         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
34546         invocations from here...
34547         * modules/fpending (configure.ac): ... to here.
34549 2011-05-07  Bruno Haible  <bruno@clisp.org>
34551         fopen: Move AC_LIBOBJ invocations to module description.
34552         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
34553         invocations from here...
34554         * modules/fopen (configure.ac): ... to here.
34556 2011-05-07  Bruno Haible  <bruno@clisp.org>
34558         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
34559         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
34560         gl_FUNC_FNMATCH_POSIX.
34561         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
34562         invocations from here...
34563         * modules/fnmatch (configure.ac): ... to here.
34564         * modules/fnmatch-gnu (configure.ac): ... and here.
34566 2011-05-07  Bruno Haible  <bruno@clisp.org>
34568         flock: Move AC_LIBOBJ invocations to module description.
34569         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
34570         invocations from here...
34571         * modules/flock (configure.ac): ... to here.
34573 2011-05-07  Bruno Haible  <bruno@clisp.org>
34575         fileblocks: Move AC_LIBOBJ invocations to module description.
34576         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
34577         gl_PREREQ_FILEBLOCKS invocations from here...
34578         * modules/fileblocks (configure.ac): ... to here.
34580 2011-05-06  Bruno Haible  <bruno@clisp.org>
34582         fflush: Move AC_LIBOBJ invocations to module description.
34583         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
34584         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
34585         invocations from here...
34586         * modules/fflush (configure.ac): ... to here.
34588 2011-05-06  Bruno Haible  <bruno@clisp.org>
34590         fdopendir: Move AC_LIBOBJ invocations to module description.
34591         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
34592         here...
34593         * modules/fdopendir (configure.ac): ... to here.
34594         (Depends-on): Improve conditions.
34596 2011-05-06  Bruno Haible  <bruno@clisp.org>
34598         _Exit: Move AC_LIBOBJ invocations to module description.
34599         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
34600         invocations from here...
34601         * modules/_Exit (configure.ac): ... to here.
34603 2011-05-21  Bruno Haible  <bruno@clisp.org>
34605         euidaccess: Respect rules for use of AC_LIBOBJ.
34606         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
34608         from here...
34609         * modules/euidaccess (configure.ac): ... to here.
34611 2011-05-06  Bruno Haible  <bruno@clisp.org>
34613         error: Move AC_LIBOBJ invocations to module description.
34614         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
34615         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
34616         invocations from here...
34617         * modules/error (configure.ac): ... to here.
34619 2011-05-06  Bruno Haible  <bruno@clisp.org>
34621         duplocale: Move AC_LIBOBJ invocations to module description.
34622         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
34623         gl_PREREQ_DUPLOCALE invocations from here...
34624         * modules/duplocale (configure.ac): ... to here.
34626 2011-05-05  Bruno Haible  <bruno@clisp.org>
34628         dirfd: Move AC_LIBOBJ invocations to module description.
34629         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
34630         gl_FUNC_DIRFD.
34631         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
34632         here...
34633         * modules/dirfd (configure.ac): ... to here.
34634         (Depends-on): Fix condition.
34636 2011-05-05  Bruno Haible  <bruno@clisp.org>
34638         chown: Respect rules for use of AC_LIBOBJ.
34639         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
34640         * modules/chown (configure.ac): ... to here.
34642 2011-05-05  Bruno Haible  <bruno@clisp.org>
34644         chdir-long: Move AC_LIBOBJ invocations to module description.
34645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
34646         gl_PREREQ_CHDIR_LONG invocations from here...
34647         * modules/chdir-long (configure.ac): ... to here.
34649 2011-05-05  Bruno Haible  <bruno@clisp.org>
34651         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
34652         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
34653         from here...
34654         * modules/canonicalize-lgpl (configure.ac): ... to here.
34656 2011-05-05  Bruno Haible  <bruno@clisp.org>
34658         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
34659         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
34660         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
34661         REPLACE_CALLOC.
34662         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
34663         * modules/calloc-gnu (configure.ac): Likewise.
34665 2011-05-05  Bruno Haible  <bruno@clisp.org>
34667         btowc: Move AC_LIBOBJ invocations to module description.
34668         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
34669         invocations from here...
34670         * modules/btowc (configure.ac): ... to here.
34672 2011-05-21  Bruno Haible  <bruno@clisp.org>
34674         atexit: Move AC_LIBOBJ invocations to module description.
34675         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
34676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
34677         here...
34678         * modules/atexit (configure.ac): ... to here.
34680 2011-05-05  Bruno Haible  <bruno@clisp.org>
34682         atoll: Move AC_LIBOBJ invocations to module description.
34683         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
34684         invocations from here...
34685         * modules/atoll (configure.ac): ... to here.
34687 2011-05-05  Bruno Haible  <bruno@clisp.org>
34689         argz: Move AC_LIBOBJ invocations to module description.
34690         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
34691         * modules/argz (configure.ac): ... to here.
34693 2011-05-05  Bruno Haible  <bruno@clisp.org>
34695         alphasort: Move AC_LIBOBJ invocations to module description.
34696         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
34697         gl_PREREQ_ALPHASORT invocations from here...
34698         * modules/alphasort (configure.ac): ... to here.
34700 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34702         verify: new macro verify_expr; verify_true deprecated
34703         * NEWS: Mention this.
34704         * doc/verify.texi (Compile-time Assertions): Document this.
34705         * lib/verify.h (verify_true): Deprecate.
34706         (verify_expr): New macro.
34707         * tests/test-verify.c (function): Test verify_expr.
34709 2011-06-14  Jim Meyering  <meyering@redhat.com>
34711         init.sh: give more portable redirection-related advice in a comment
34712         * tests/init.sh (stderr_fileno_): Update the advice in comments.
34713         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
34714         for lots of discussion.  Stefano Lattarini suggested the solution
34715         of putting "9>&2" after the command.  Reported by Bruno Haible.
34717 2011-06-13  Bruno Haible  <bruno@clisp.org>
34719         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
34720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
34721         'none'.
34723 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
34725         ftoastr: use strtof only if HAVE_STRTOF
34726         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
34727         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
34728         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
34729         * modules/ftoastr (configure.ac): Check for strtof.
34731 2011-06-13  Bruno Haible  <bruno@clisp.org>
34733         gnulib-tool: Addendum to 2011-06-08 commit.
34734         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
34735         and --witness-c-macro have been given, augment AM_CPPFLAGS.
34737 2011-06-13  Bruno Haible  <bruno@clisp.org>
34739         fseeko: Provide a non-inline replacement of fseek().
34740         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
34741         * modules/fseeko (Depends-on): Add fseek.
34742         * modules/fseek (License): Change to LGPLv2+.
34744 2011-06-13  Bruno Haible  <bruno@clisp.org>
34746         ftello: Provide a non-inline replacement of ftell().
34747         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
34748         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
34749         not have ftello() (such as on mingw).
34750         * modules/ftello (Depends-on): Add ftell.
34751         * modules/ftell (License): Change to LGPLv2+.
34753 2011-05-07  Bruno Haible  <bruno@clisp.org>
34755         ftell: Move AC_LIBOBJ invocations to module description.
34756         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
34757         * modules/ftell (configure.ac): ... to here.
34759 2011-05-07  Bruno Haible  <bruno@clisp.org>
34761         ftello: Respect rules for use of AC_LIBOBJ.
34762         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
34763         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
34764         here...
34765         * modules/ftello (configure.ac): ... to here.
34767 2011-05-07  Bruno Haible  <bruno@clisp.org>
34769         fseeko: Simplify.
34770         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
34771         (gl_FUNC_FSEEKO): Inline it here.
34773 2011-05-07  Bruno Haible  <bruno@clisp.org>
34775         fseek: Move AC_LIBOBJ invocations to module description.
34776         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
34777         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34778         * modules/fseek (configure.ac): ... to here.
34780 2011-05-07  Bruno Haible  <bruno@clisp.org>
34782         fseek: Respect rules for use of AC_LIBOBJ.
34783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
34784         here...
34785         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
34787 2011-05-07  Bruno Haible  <bruno@clisp.org>
34789         fseeko: Respect rules for use of AC_LIBOBJ.
34790         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
34791         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
34792         here...
34793         * modules/fseeko (configure.ac): ... to here.
34795 2011-06-13  Bruno Haible  <bruno@clisp.org>
34797         gnulib-tool: Allow comments in the 'Depends-on' section.
34798         * doc/gnulib.texi (Module description): Mention comment syntax in the
34799         Depends-on section.
34800         * gnulib-tool (func_get_dependencies): Filter out comment lines.
34802 2011-06-13  Bruno Haible  <bruno@clisp.org>
34804         file-set.h: guard __attibute__ use, now that it's not always defined
34805         * lib/file-set.h (record_file): Use __attribute__ only with compiler
34806         versions that support it.  This fixes a coreutils build failure with
34807         the vendor cc on HP-UX 11.31.
34809 2011-06-12  Bruno Haible  <bruno@clisp.org>
34811         acl: Add support for HP-UX >= 11.11 JFS ACLs.
34812         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
34813         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
34814         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
34815         (acl, aclsort): New declarations.
34816         (aclv_nontrivial): New declaration.
34817         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
34818         (file_has_acl): Read also the second kind of HP-UX ACLs.
34819         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
34820         kind of HP-UX ACLs if the first kind fails.
34821         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
34822         second kind of HP-UX ACLs.
34823         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
34824         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
34825         agree.
34826         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34827         hpuxjfs.
34828         Handle hpuxjfs.
34829         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34830         hpuxjfs.
34831         Handle hpuxjfs.
34832         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34833         (func_test_same_acls): Use both lsacl and getacl.
34834         Handle hpuxjfs.
34835         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34836         (func_test_same_acls): Use both lsacl and getacl.
34837         Handle hpuxjfs.
34839 2011-06-12  Bruno Haible  <bruno@clisp.org>
34841         acl: Complete the 2010-08-10 fix.
34842         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
34843         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
34844         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
34845         explicitly.
34846         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
34847         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
34849 2011-06-12  Bruno Haible  <bruno@clisp.org>
34851         spawn-pipe tests: Comments.
34852         * tests/test-spawn-pipe-child.c (main): Update comment.
34853         Reported by James Youngman <jay@gnu.org>.
34855 2011-06-11  James Youngman  <jay@gnu.org>
34857         New module 'stat-size'.
34858         * modules/stat-size: New module.  Provides macros for accessing
34859         file size information in instances of struct stat.  Depends on the
34860         fileblocks module because it calls st_blocks.
34861         * lib/stat-size.h: New file, adapted from coreutils' system.h.
34862         * doc/gnulib.texi: Include stat-size.texi.
34863         * doc/stat-size.texi: Documentation for this module.
34864         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
34865         * m4/fileblocks.m4: Mention that stat-size depends on the call to
34866         AC_STRUCT_ST_BLOCKS.
34868 2011-06-09  Bruno Haible  <bruno@clisp.org>
34870         thread: Support pthreads-win32.
34871         * lib/glthread/thread.h (gl_thread_self): Define differently on
34872         pthreads-win32.
34873         (gl_null_thread): New declaration.
34874         (gl_thread_self_pointer): New macro.
34875         * lib/glthread/thread.c (gl_null_thread): New constant.
34876         * tests/test-lock.c: Use gl_thread_self_pointer instead of
34877         gl_thread_self.
34878         * tests/test-tls.c: Likewise.
34879         Suggested by Paul Eggert. Reported by Eric Blake.
34881 2011-06-09  Bruno Haible  <bruno@clisp.org>
34883         thread: Fix confusion between NULL and 0.
34884         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
34885         Reported by Paul Eggert.
34887 2011-06-09  Bruno Haible  <bruno@clisp.org>
34889         spawn-pipe tests: Avoid test failure on HP-UX 11.
34890         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
34891         is closed.
34893 2011-06-09  Bruno Haible  <bruno@clisp.org>
34895         acl tests: Fix compilation error on HP-UX 11.
34896         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
34898 2011-06-09  Bruno Haible  <bruno@clisp.org>
34900         rmdir: Avoid test failure on HP-UX 10.20.
34901         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
34902         EEXIST.
34904 2011-06-08  Eric Blake  <eblake@redhat.com>
34906         perror: fix test on mingw
34907         * modules/perror-tests (Depends-on): Add dup2.
34909         strerror_r-posix: fix on MacOS
34910         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
34911         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
34912         logic bug.
34913         * lib/strerror_r.c (strerror_r): Fix the bug.
34914         * lib/strerror.c (strerror): Likewise.
34915         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
34916         problem.
34917         * doc/posix-functions/strerror.texi (strerror): Likewise.
34918         * doc/posix-functions/perror.texi (perror): Likewise.
34919         * tests/test-strerror.c (main): Enhance test.
34920         * tests/test-strerror_r.c (main): Likewise.
34922 2011-06-08  Bruno Haible  <bruno@clisp.org>
34924         gnulib-tool: Better isolation between different gnulib-tool invocations.
34925         * gnulib-tool: New option --witness-c-macro.
34926         (witness_c_macro): New variable.
34927         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
34928         AM_CPPFLAGS define it as a C macro.
34929         (func_emit_tests_Makefile_am): Likewise.
34930         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
34931         read it from there.
34932         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
34933         m4_define, not AC_DEFUN.
34934         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
34935         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
34936         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
34937         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
34938         s|...|...|, to substitute the values of the GNULIB_* module indicator
34939         variables.
34940         * modules/dirent (Makefile.am): Likewise.
34941         * modules/fcntl-h (Makefile.am): Likewise.
34942         * modules/iconv-h (Makefile.am): Likewise.
34943         * modules/langinfo (Makefile.am): Likewise.
34944         * modules/locale (Makefile.am): Likewise.
34945         * modules/math (Makefile.am): Likewise.
34946         * modules/netdb (Makefile.am): Likewise.
34947         * modules/poll-h (Makefile.am): Likewise.
34948         * modules/pty (Makefile.am): Likewise.
34949         * modules/search (Makefile.am): Likewise.
34950         * modules/signal (Makefile.am): Likewise.
34951         * modules/spawn (Makefile.am): Likewise.
34952         * modules/stdio (Makefile.am): Likewise.
34953         * modules/stdlib (Makefile.am): Likewise.
34954         * modules/string (Makefile.am): Likewise.
34955         * modules/sys_ioctl (Makefile.am): Likewise.
34956         * modules/sys_select (Makefile.am): Likewise.
34957         * modules/sys_socket (Makefile.am): Likewise.
34958         * modules/sys_stat (Makefile.am): Likewise.
34959         * modules/sys_times (Makefile.am): Likewise.
34960         * modules/sys_utsname (Makefile.am): Likewise.
34961         * modules/sys_wait (Makefile.am): Likewise.
34962         * modules/termios (Makefile.am): Likewise.
34963         * modules/time (Makefile.am): Likewise.
34964         * modules/unistd (Makefile.am): Likewise.
34965         * modules/wchar (Makefile.am): Likewise.
34967 2011-06-08  Eric Blake  <eblake@redhat.com>
34969         strerror: simplify replacement
34970         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
34971         * modules/strerror (configure.ac): No prereqs needed here...
34972         * modules/strerror-override (configure.ac): ...but this needs it.
34973         (Files): Add file for needed prereq macro.
34975 2011-06-08  Bruno Haible  <bruno@clisp.org>
34977         strerror_r-posix: Tweaks.
34978         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
34979         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
34980         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
34981         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
34982         (gl_FUNC_STRERROR_R): ... to here.
34983         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
34985 2011-06-07  Eric Blake  <eblake@redhat.com>
34987         perror: document fixed bugs
34988         * doc/posix-functions/perror.texi (perror): Document recent
34989         patches.
34991 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
34993         stat-time: get_stat_birthtime failure is better-defined
34994         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
34995         return a timestamp whose tv_sec and tv_nsec values are both -1.
34996         Previously, the spec said only that the tv_nsec value was negative.
34997         This upward-compatible change simplifies GNU tar a bit.
34999 2011-06-07  Eric Blake  <eblake@redhat.com>
35001         strerror_r-posix: work around cygwin 1.7.9
35002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
35003         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
35004         bug without replacing strerror_r.
35005         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
35006         strerror_r is buggy, but without requiring strerror_r compilation.
35007         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
35009         test-perror: relax test to ignore cygwin bug
35010         * tests/test-perror2.c (main): Relax test on requiring detection
35011         of stream errors, and use unbuffered stream.
35012         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
35013         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
35014         * doc/posix-functions/fputc.texi (fputc): Likewise.
35015         * doc/posix-functions/fputs.texi (fputs): Likewise.
35016         * doc/posix-functions/fputws.texi (fputws): Likewise.
35017         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
35018         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
35019         * doc/posix-functions/getopt.texi (getopt): Likewise.
35020         * doc/posix-functions/perror.texi (perror): Likewise.
35021         * doc/posix-functions/printf.texi (printf): Likewise.
35022         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
35023         * doc/posix-functions/psignal.texi (psignal): Likewise.
35024         * doc/posix-functions/putc.texi (putc): Likewise.
35025         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
35026         Likewise.
35027         * doc/posix-functions/putchar.texi (putchar): Likewise.
35028         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
35029         Likewise.
35030         * doc/posix-functions/puts.texi (puts): Likewise.
35031         * doc/posix-functions/putwc.texi (putwc): Likewise.
35032         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35033         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35034         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35035         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
35036         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35037         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35038         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35039         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
35041 2011-05-22  Bruno Haible  <bruno@clisp.org>
35043         strerror: Move AC_LIBOBJ invocations to module description.
35044         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
35045         gl_PREREQ_STRERROR invocations from here...
35046         * modules/strerror (configure.ac): ... to here.
35048 2011-05-21  Bruno Haible  <bruno@clisp.org>
35050         perror: Use common idiom.
35051         * modules/perror (configure.ac): Reorder statements.
35053 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35055         tests: fix usage message in 'mktempd_'
35056         * tests/init.sh (mktempd_): In the usage message, use literal
35057         'mktempd_', not '$ME' (which is even undefined), as the name of
35058         the subroutine.
35060 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35062         tests init: new function 'fatal_', for hard errors
35063         Before this patch, the only way offered by tests/init.sh to
35064         properly signal a hard error was the `framework_failure_'
35065         function.  But the error message issued by that function,
35066         as its name would suggest, refers to a set-up failure in the
35067         testsuite, while hard errors can obviously also be due to
35068         other reasons.  The best way to fix this inconsistency is to
35069         introduce a new function with a more general error message.
35070         * tests/init.sh (fatal_): New function.
35072 2011-06-06  Eric Blake  <eblake@redhat.com>
35074         canonicalize-lgpl: use common idiom
35075         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
35076         over newer POSIX -Rf.
35077         Reported by Bruno Haible.
35079         canonicalize-lgpl: work around AIX realpath bug
35080         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
35081         * doc/posix-functions/realpath.texi (realpath): Document it.
35082         Reported by Bruno Haible.
35084         strerror: work around FreeBSD bug
35085         * lib/strerror.c (strerror): Special case 0.
35086         Reported by Bruno Haible.
35088         strerror-override: avoid bloating errno module
35089         * modules/errno (Files, configure.ac): Move replacement strings...
35090         * modules/strerror-override: ...to new module.
35091         * modules/strerror (Depends-on): Add strerror-override.
35092         * modules/strerror_r-posix (Depends-on): Likewise.
35093         * MODULES.html.sh: Document new module.
35094         Reported by Bruno Haible.
35096 2011-06-06  Bruno Haible  <bruno@clisp.org>
35098         spawn-pipe tests: Rename program.
35099         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
35100         * tests/test-spawn-pipe-child.c: Update comment.
35101         * tests/test-spawn-pipe.sh: Update.
35102         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
35104         spawn-pipe tests: Link the child program only against libc.
35105         * tests/test-spawn-pipe-child.c: New file, extracted from
35106         tests/test-spawn-pipe.c.
35107         (main): Expect only one argument.
35108         (is_open): New function, copied from tests/test-pipe.c.
35109         * tests/test-spawn-pipe.c: Don't include <errno.h>.
35110         (child_main): Remove function.
35111         (test_pipe): Pass only one argument to the child program.
35112         (main): Remove child process code. Expect the child program's name as
35113         first argument.
35114         * tests/test-spawn-pipe.sh: Pass the child program's name as first
35115         argument.
35116         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
35117         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
35118         test-spawn-pipe-child against no libraries.
35120 2011-06-06  Bruno Haible  <bruno@clisp.org>
35122         careadlinkat: Avoid mismatch between ssize_t and int.
35123         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
35124         * lib/careadlinkat.c (careadlinkatcwd): Define always.
35126 2011-06-06  Jim Meyering  <meyering@redhat.com>
35128         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
35129         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
35130         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
35132 2011-06-05  Bruno Haible  <bruno@clisp.org>
35134         ansi-c++-opt: Interoperability with libtool.
35135         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
35136         set the variable to "no", not to ":".
35137         * NEWS: Mention the change.
35139 2011-06-05  Bruno Haible  <bruno@clisp.org>
35141         acl: Fix test failure on AIX 7.
35142         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
35143         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
35145 2011-06-05  Bruno Haible  <bruno@clisp.org>
35147         pipe-filter-ii: Fix test failure on AIX and IRIX.
35148         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
35149         with EAGAIN, retry with a smaller buffer size.
35151 2011-06-05  Bruno Haible  <bruno@clisp.org>
35153         localename: Fix link dependencies.
35154         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
35155         * modules/localename-tests (Makefile.am): Link test-localename with
35156         $(LIBTHREAD).
35158 2011-06-05  Bruno Haible  <bruno@clisp.org>
35160         error: Avoid gcc warning.
35161         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
35163 2011-06-05  Bruno Haible  <bruno@clisp.org>
35165         unsetenv: Avoid gcc warning.
35166         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
35168 2011-06-05  Bruno Haible  <bruno@clisp.org>
35170         setenv: Avoid gcc warning.
35171         * lib/setenv.c (setenv): Provide declaration if system lacks it.
35173 2011-06-05  Bruno Haible  <bruno@clisp.org>
35175         sys_select: Ensure memset is declared also on AIX 7.
35176         * lib/sys_select.in.h: Include <string.h> also on AIX.
35177         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
35178         self-contained also on AIX 7.1.
35180 2011-06-04  Jim Meyering  <meyering@redhat.com>
35182         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
35183         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
35184         function name, "error".
35185         (_gl_translatable_diag_func_re): New configurable variable.
35187 2011-06-04  Bruno Haible  <bruno@clisp.org>
35189         getopt: Avoid gcc warning.
35190         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
35192 2011-06-04  Bruno Haible  <bruno@clisp.org>
35194         strerror_r: Fix comments.
35195         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
35196         commit.
35198 2011-06-04  Bruno Haible  <bruno@clisp.org>
35200         perror: Fix compilation error.
35201         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
35202         Undefine fprintf, not sprintf.
35203         * modules/perror (Depends-on): Remove intprops, verify.
35205 2011-06-04  Bruno Haible  <bruno@clisp.org>
35207         setlocale: Enable replacement on Cygwin 1.5.
35208         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
35209         Cygwin 1.5.x.
35210         * doc/posix-functions/setlocale.texi: Mention that the problem with the
35211         LC_CTYPE category also exists on Cygwin 1.5.x.
35213 2011-06-04  Bruno Haible  <bruno@clisp.org>
35215         strerror-override: Don't disable symbol renamings.
35216         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
35217         * lib/strerror-override.c: Include config.h.
35218         (strerror_override): Don't undefine.
35220 2011-06-03  Bruno Haible  <bruno@clisp.org>
35222         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
35223         * lib/localename.h: Update copyright header.
35224         * lib/localename.c: Likewise.
35225         * lib/relocatable.h: Likewise.
35226         * lib/relocatable.c: Likewise.
35228 2011-06-02  Bruno Haible  <bruno@clisp.org>
35230         doc: Fix a module name.
35231         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
35233 2011-06-02  Bruno Haible  <bruno@clisp.org>
35235         pipe2: Remove dependency on 'nonblocking' module.
35236         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
35237         O_NONBLOCK is defined by gnulib.
35238         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
35239         is zero.
35240         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
35241         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
35242         defined by gnulib.
35243         (get_nonblocking_flag): New function.
35244         (main): Test O_NONBLOCK flag only if it is nonzero.
35245         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
35247 2011-06-03  Jim Meyering  <meyering@redhat.com>
35249         maint: three new prohibit-header-without-use rules
35250         Prohibit use of cloexec.h, posixver.h, same.h without use.
35251         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
35252         (sc_prohibit_posixver_without_use): Likewise.
35253         (sc_prohibit_same_without_use): Likewise.
35255 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35257         allocator: 'die' routine is now given requested size
35258         * lib/allocator.h (struct allocator.die): New size arg.
35259         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
35260         If the actual problem is an ssize_t limitation, not a size_t or
35261         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
35263 2011-06-01  Eric Blake  <eblake@redhat.com>
35265         strerror: drop strerror_r dependency
35266         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
35267         * lib/strerror-override.c (strerror_override): ...to new file.
35268         * lib/strerror-override.h: Add prototype.
35269         * lib/strerror-impl.h: Delete.
35270         * lib/strerror.c (strerror): New implementation.
35271         * modules/errno (Files): Add new files.
35272         (configure.ac): Compile new file as appropriate.
35273         * modules/strerror (Files): Drop unused file.
35274         (Depends-on): Drop strerror_r-posix.
35275         * MODULES.html.sh: Document strerror_r-posix.
35276         Requested by Sam Steingold.
35278         perror: call strerror_r directly
35279         * modules/perror (Files): Drop strerror-impl.h.
35280         * lib/perror.c (perror): Use our own stack buffer, rather than
35281         calling a wrapper that uses static storage.
35282         * doc/posix-functions/perror.texi (perror): Document a limitation
35283         of our replacement.
35285         strerror_r: fix includes for FreeBSD
35286         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
35287         since we use abort on some platforms.
35288         Reported by Matthias Bolte.
35290 2011-05-31  Bruno Haible  <bruno@clisp.org>
35292         Fix link errors in tests: openat-die uses gettext-h.
35293         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
35294         against $(LIBINTL).
35295         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
35296         against $(LIBINTL).
35297         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
35298         $(LIBINTL).
35299         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
35300         against $(LIBINTL).
35301         * modules/linkat-tests (Makefile.am): Link test-linkat against
35302         $(LIBINTL).
35303         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
35304         $(LIBINTL).
35305         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
35306         against $(LIBINTL).
35307         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
35308         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
35309         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
35310         $(LIBINTL).
35311         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
35312         $(LIBINTL).
35313         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
35314         $(LIBINTL).
35315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35317 2011-05-31  Bruno Haible  <bruno@clisp.org>
35319         Fix link errors in tests: wait-process uses gettext-h.
35320         * modules/nonblocking-pipe-tests (Makefile.am): Set
35321         test_nonblocking_pipe_main_LDADD.
35322         * modules/nonblocking-socket-tests (Makefile.am): Link
35323         test-nonblocking-socket-main against $(LIBINTL).
35324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35326 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35328         assert-h: work around 'verify' incompatibility
35329         * lib/verify.h: Use @...@ directives, not ifdef.
35330         * modules/assert-h (assert.h): Implement the directives.
35331         (assert.h): Substitute the symbol-prefix more consistently.
35333 2011-05-29  Jim Meyering  <meyering@redhat.com>
35335         trim: remove three superfluous assignments
35336         * lib/trim.c (trim2): Remove three superfluous assignments
35337         and correct brace positioning.
35339 2011-05-29  Bruno Haible  <bruno@clisp.org>
35341         wctype-h: Avoid namespace pollution on Solaris 2.6.
35342         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
35343         identifiers.
35344         * doc/posix-headers/wctype.texi: Mention the problem.
35345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35347 2011-05-28  Jim Meyering  <meyering@redhat.com>
35349         parse-datetime.y: accommodate -Wstrict-overflow
35350         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
35351         placate -Wstrict-overflow.
35353         trim: avoid a warning from -O2 -Wstrict-overflow
35354         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
35356 2011-05-29  Bruno Haible  <bruno@clisp.org>
35358         gnulib-tool: Fix bug in yesterday's commit.
35359         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
35360         twice.
35362 2011-05-29  Bruno Haible  <bruno@clisp.org>
35364         Allow multiple gnulib generated include files to be combined.
35365         * gnulib-tool (func_compute_include_guard_prefix): New function.
35366         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
35367         ${gl_include_guard_prefix} references.
35368         (func_import, func_create_testdir): Invoke
35369         func_compute_include_guard_prefix.
35370         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
35371         * lib/ctype.in.h: Likewise.
35372         * lib/dirent.in.h: Likewise.
35373         * lib/errno.in.h: Likewise.
35374         * lib/fcntl.in.h: Likewise.
35375         * lib/float.in.h: Likewise.
35376         * lib/getopt.in.h: Likewise.
35377         * lib/iconv.in.h: Likewise.
35378         * lib/langinfo.in.h: Likewise.
35379         * lib/locale.in.h: Likewise.
35380         * lib/math.in.h: Likewise.
35381         * lib/netdb.in.h: Likewise.
35382         * lib/netinet_in.in.h: Likewise.
35383         * lib/poll.in.h: Likewise.
35384         * lib/pthread.in.h: Likewise.
35385         * lib/pty.in.h: Likewise.
35386         * lib/sched.in.h: Likewise.
35387         * lib/se-selinux.in.h: Likewise.
35388         * lib/search.in.h: Likewise.
35389         * lib/signal.in.h: Likewise.
35390         * lib/spawn.in.h: Likewise.
35391         * lib/stdarg.in.h: Likewise.
35392         * lib/stddef.in.h: Likewise.
35393         * lib/stdint.in.h: Likewise.
35394         * lib/stdio.in.h: Likewise.
35395         * lib/stdlib.in.h: Likewise.
35396         * lib/string.in.h: Likewise.
35397         * lib/strings.in.h: Likewise.
35398         * lib/sys_file.in.h: Likewise.
35399         * lib/sys_ioctl.in.h: Likewise.
35400         * lib/sys_select.in.h: Likewise.
35401         * lib/sys_socket.in.h: Likewise.
35402         * lib/sys_stat.in.h: Likewise.
35403         * lib/sys_time.in.h: Likewise.
35404         * lib/sys_times.in.h: Likewise.
35405         * lib/sys_uio.in.h: Likewise.
35406         * lib/sys_utsname.in.h: Likewise.
35407         * lib/sys_wait.in.h: Likewise.
35408         * lib/sysexits.in.h: Likewise.
35409         * lib/termios.in.h: Likewise.
35410         * lib/time.in.h: Likewise.
35411         * lib/unistd.in.h: Likewise.
35412         * lib/wchar.in.h: Likewise.
35413         * lib/wctype.in.h: Likewise.
35414         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
35415         * modules/ctype (Makefile.am): Likewise.
35416         * modules/dirent (Makefile.am): Likewise.
35417         * modules/errno (Makefile.am): Likewise.
35418         * modules/fcntl-h (Makefile.am): Likewise.
35419         * modules/float (Makefile.am): Likewise.
35420         * modules/getopt-posix (Makefile.am): Likewise.
35421         * modules/iconv-h (Makefile.am): Likewise.
35422         * modules/langinfo (Makefile.am): Likewise.
35423         * modules/locale (Makefile.am): Likewise.
35424         * modules/math (Makefile.am): Likewise.
35425         * modules/netdb (Makefile.am): Likewise.
35426         * modules/netinet_in (Makefile.am): Likewise.
35427         * modules/poll-h (Makefile.am): Likewise.
35428         * modules/pthread (Makefile.am): Likewise.
35429         * modules/pty (Makefile.am): Likewise.
35430         * modules/sched (Makefile.am): Likewise.
35431         * modules/search (Makefile.am): Likewise.
35432         * modules/selinux-h (Makefile.am): Likewise.
35433         * modules/signal (Makefile.am): Likewise.
35434         * modules/spawn (Makefile.am): Likewise.
35435         * modules/stdarg (Makefile.am): Likewise.
35436         * modules/stddef (Makefile.am): Likewise.
35437         * modules/stdint (Makefile.am): Likewise.
35438         * modules/stdio (Makefile.am): Likewise.
35439         * modules/stdlib (Makefile.am): Likewise.
35440         * modules/string (Makefile.am): Likewise.
35441         * modules/strings (Makefile.am): Likewise.
35442         * modules/sys_file (Makefile.am): Likewise.
35443         * modules/sys_ioctl (Makefile.am): Likewise.
35444         * modules/sys_select (Makefile.am): Likewise.
35445         * modules/sys_socket (Makefile.am): Likewise.
35446         * modules/sys_stat (Makefile.am): Likewise.
35447         * modules/sys_time (Makefile.am): Likewise.
35448         * modules/sys_times (Makefile.am): Likewise.
35449         * modules/sys_uio (Makefile.am): Likewise.
35450         * modules/sys_utsname (Makefile.am): Likewise.
35451         * modules/sys_wait (Makefile.am): Likewise.
35452         * modules/sysexits (Makefile.am): Likewise.
35453         * modules/termios (Makefile.am): Likewise.
35454         * modules/time (Makefile.am): Likewise.
35455         * modules/unistd (Makefile.am): Likewise.
35456         * modules/wchar (Makefile.am): Likewise.
35457         * modules/wctype-h (Makefile.am): Likewise.
35458         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
35460 2011-05-29  Bruno Haible  <bruno@clisp.org>
35462         assert-h: Allow multiple gnulib generated replacements to coexist.
35463         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
35465 2011-05-29  Bruno Haible  <bruno@clisp.org>
35467         argp: Allow coexistence with strerror_r-posix module.
35468         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
35469         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
35470         by gnulib's <string.h> replacement), assume it has the POSIX signature,
35471         not the glibc signature.
35473 2011-05-28  Bruno Haible  <bruno@clisp.org>
35475         gnulib-tool: Alternative structure of testdirs, similar to --import.
35476         * gnulib-tool: New option --single-configure.
35477         (func_usage): Document it.
35478         (single_configure): New variable.
35479         (func_modules_transitive_closure_separately,
35480         func_modules_transitive_closure_separately,
35481         func_determine_use_libtests, func_modules_add_dummy_separately,
35482         func_modules_to_filelist_separately): New functions, extracted from
35483         func_import.
35484         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
35485         (func_import): Use the new functions.
35486         (func_create_testdir): Set final_modules. Handle $single_configure =
35487         true case.
35489 2011-05-28  Bruno Haible  <bruno@clisp.org>
35491         getloadavg: Remove an unreliable safety check.
35492         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
35493         getloadavg.c is in place.
35494         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
35495         Reported by Sam Steingold <sds@gnu.org>.
35497 2011-05-28  Bruno Haible  <bruno@clisp.org>
35499         doc: Cleanup yet another file produced by texinfo.tex.
35500         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
35502 2011-05-28  Bruno Haible  <bruno@clisp.org>
35504         Finish the conditional dependencies mechanism.
35505         * gnulib-tool: New option --no-conditional-dependencies.
35506         (func_usage): Document it. Don't mark --conditional-dependencies as
35507         experimental.
35508         (cond_dependencies): The possible values can now be true, false, empty.
35509         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
35510         (func_import): Store setting in gnulib-cache.m4 and read it from there.
35511         * doc/gnulib-tool.texi (Conditional dependencies): New section.
35513 2011-05-28  Bruno Haible  <bruno@clisp.org>
35515         doc: Use a recent texinfo.tex.
35516         * doc/Makefile (tex_opts): New variable.
35517         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
35519 2011-05-28  Jim Meyering  <meyering@redhat.com>
35521         intprops.h: adjust comment to match code change
35522         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
35523         only once, it *may* have side effects.  Also fix an unrelated typo.
35524         (_GL_INT_SIGNED): Likewise.
35526 2011-05-26  Simon Josefsson  <simon@josefsson.org>
35528         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
35530 2011-05-26  Bruno Haible  <bruno@clisp.org>
35532         mbsrchr: Avoid collision with system function on Interix.
35533         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
35534         Reported by Markus Duft <mduft@gentoo.org>.
35536 2011-05-15  James Youngman  <jay@gnu.org>
35538         getopt: for ambiguous options, enumerate the possibilities.
35539         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
35540         the ambiguous options when an ambiguous prefix is given. This was
35541         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
35542         glibc change was
35543         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
35545 2011-05-25  Eric Blake  <eblake@redhat.com>
35547         getcwd: work around mingw bug
35548         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
35549         * doc/posix-functions/getcwd.texi (getcwd): Document it.
35550         Reported by Matthias Bolte.
35552 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
35554         test-intprops: disable -Wtype-limits diagnostics
35555         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
35556         diagnostics.  Otherwise, the integer overflow macros generate many
35557         diagnostics.  Reported by Jim Meyering in
35558         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
35560         intprops: shorten, to pacify gcc -Woverlength-strings
35561         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
35562         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
35563         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
35564         likely to run afoul of C compiler limits for string constant lengths.
35565         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
35567 2011-05-24  Eric Blake  <eblake@redhat.com>
35569         docs: document recently fixed glibc printf bug
35570         * doc/posix-functions/fprintf.texi (fprintf): Document it.
35571         * doc/posix-functions/printf.texi (printf): Likewise.
35572         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35573         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35575         closein-tests: convert to init.sh
35576         * modules/closein-tests (Files): Add init.sh
35577         * tests/test-closein.sh Use it.
35579         yesno-tests: convert to init.sh
35580         * modules/yesno-tests (Files): Add init.sh.
35581         * tests/test-yesno.sh: Use it.
35583         atexit-tests: ensure reliable exit status
35584         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
35585         Reported by Bruno Haible.
35587 2011-05-24  Bruno Haible  <bruno@clisp.org>
35589         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
35590         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
35591         gl_PREREQ_STRERROR_R invocations from here...
35592         * modules/strerror_r-posix (configure.ac): ... to here.
35594 2011-05-24  Eric Blake  <eblake@redhat.com>
35596         strerror_r: fix missing header
35597         * lib/strerror_r.c: Avoid compiler warning about snprintf.
35599         strerror_r: fix AIX test failures
35600         * lib/strerror_r.c (strerror_r): Convert silent truncation to
35601         ERANGE failure.
35603         strerror_r: fix Solaris test failures
35604         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
35605         failures.
35606         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35608         strerror_r: enforce POSIX recommendations
35609         * lib/strerror_r.c (safe_copy): New helper method.
35610         (strerror_r): Guarantee a non-empty string.
35611         * tests/test-strerror_r.c (main): Enhance tests to incorporate
35612         recent POSIX rulings and to match our strerror guarantees.
35613         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35615 2011-05-24  Jim Meyering  <meyering@redhat.com>
35617         test-perror2.c: avoid warning about unused variable
35618         * tests/test-perror2.c (main): Remove declaration of unused "fp".
35620 2011-05-24  Eric Blake  <eblake@redhat.com>
35622         perror: avoid spurious test failure on HP-UX
35623         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
35625         tests: fix logic bug in init.sh
35626         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
35627         shell.
35629 2011-05-24  Jim Meyering  <meyering@redhat.com>
35631         utimensat: do not reference an out-of-scope buffer
35632         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
35633         declared in an inner scope, yet "times" would be dereferenced outside
35634         the scope in which "ts" was valid.
35635         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
35636         of ts[2] "out/up", so that the use of aliased "times" (via
35637         "times = ts;") does not end up referencing an out-of-scope "ts"
35639         opendir-safer.c: don't clobber errno; don't close negative FD
35640         * lib/opendir-safer.c (opendir_safer):
35641         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
35642         file descriptor, and more importantly, don't clobber the
35643         offending errno value with EINVAL.  Before, upon failure
35644         of dup_safer, we would pass the negative file descriptor to
35645         fdopendir, which would clobber errno.
35647 2011-05-23  Bruno Haible  <bruno@clisp.org>
35649         idcache: Fix module description.
35650         * modules/idcache (Include): Set to "idcache.h".
35652 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35654         gnulib-tool: fix portability problem with MacOS sed
35655         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
35656         before the "}".  Problem reported by Leo in
35657         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
35658         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
35659         sed_extract_condition1, sed_extract_condition2.
35661 2011-05-23  Bruno Haible  <bruno@clisp.org>
35663         hash: Simplify autoconf macro.
35664         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
35666 2011-05-23  Bruno Haible  <bruno@clisp.org>
35668         getugroups: Fix module description.
35669         * modules/getugroups (Include): Set to "getugroups.h".
35671 2011-05-23  Bruno Haible  <bruno@clisp.org>
35673         linkat: Simplify autoconf macro.
35674         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
35676 2011-05-23  Bruno Haible  <bruno@clisp.org>
35677             Eric Blake  <eblake@redhat.com>
35679         linkat, renameat: Update dependencies.
35680         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
35681         * modules/linkat (Depends-on): Likewise. Remove also readlink,
35682         symlinkat.
35684 2011-05-23  Jim Meyering  <meyering@redhat.com>
35686         maint.mk: more tight_scope improvements
35687         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
35688         (_gl_TS_headers): Define only in if-0'd block.
35689         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
35690         sometimes we must *not* use it.  Adjust uses accordingly.
35691         (sc_tight_scope): Use much simpler grep-based test to determine
35692         whether we skip this rule.
35694         maint.mk: generalize/improve the tight-scope rule
35695         * top/maint.mk: Emit a warning when the test is skipped.
35696         (_gl_TS_dir): Add $(srcdir)/ prefix.
35697         (_gl_TS_function_match): Simplify, rather than trying
35698         to enumerate common types.  Otherwise, it would fail to match an
35699         "extern unsigned char const *" declaration in idutils.
35700         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
35701         a way to support use of that type of macro.
35702         (_gl_TS_var_match): Simplify regexp.
35703         (_gl_TS_obj_files): New configurable variable.
35704         (_gl_TS_headers): Likewise.
35706 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35708         verify: fix bug when gnulib <assert.h> is also included
35709         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
35710         is defined, not if _GL_STATIC_ASSERT_H is not defined.
35711         Perhaps there's a better way, but this fixes the immediate problem.
35712         Problem reported by Bruno Haible in
35713         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
35715 2011-05-22  Bruno Haible  <bruno@clisp.org>
35717         xgetcwd: Simplify autoconf macro.
35718         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
35720 2011-05-22  Bruno Haible  <bruno@clisp.org>
35722         New module 'mktime-internal'.
35723         * modules/mktime-internal: New file.
35724         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
35725         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
35726         mktime_internal as a C macro if libc has __mktime_internal.
35727         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
35728         conditions.
35729         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
35731 2011-05-22  Bruno Haible  <bruno@clisp.org>
35733         timegm: Correct mktime replacement statements.
35734         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
35735         defining mktime as a C macro. This completes a 2009-07-28 commit.
35737 2011-05-22  Bruno Haible  <bruno@clisp.org>
35739         timegm: Simplify autoconf macro.
35740         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
35742 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
35744         clock-time: change to LGPLv2+.
35745         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
35746         BSD-like but we have no mark for that; this is good enough for now.
35748 2011-05-21  Bruno Haible  <bruno@clisp.org>
35750         strerror_r: Fix comments.
35751         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
35753 2011-05-21  Bruno Haible  <bruno@clisp.org>
35755         relocatable-prog-wrapper: Fix possible link error.
35756         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
35757         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
35758         (gl_FUNC_SETENV): ... to here.
35759         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
35760         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
35762 2011-05-21  Bruno Haible  <bruno@clisp.org>
35764         relocatable-prog-wrapper: Assume strerror() exists.
35765         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
35766         m4/strerror.m4.
35767         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
35768         * lib/relocwrapper.c: Remove mention of strerror module.
35769         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
35770         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
35771         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
35772         C macro.
35774 2011-05-21  Bruno Haible  <bruno@clisp.org>
35776         select: Simplify replacement idiom.
35777         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
35778         Win32 platforms.
35779         * lib/sys_select.in.h (select): Simplify accordingly.
35780         * modules/select (Depends-on): Likewise.
35782 2011-05-21  Bruno Haible  <bruno@clisp.org>
35784         mkdir-p: Simplify autoconf macro.
35785         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
35786         gl_FUNC_LCHOWN.
35788 2011-05-21  Eric Blake  <eblake@redhat.com>
35790         strerror_r: avoid clobbering strerror on cygwin
35791         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
35792         fall back instead to sys_errlist.
35793         * modules/strerror (configure.ac): Add witness.
35794         * tests/test-strerror_r.c (main): Enhance test.
35795         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35796         * tests/test-perror2.c (main): Free memory before exit.
35798 2011-05-21  Bruno Haible  <bruno@clisp.org>
35800         mkdtemp: Use gnulib naming conventions.
35801         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
35802         * modules/mkdtemp (configure.ac): Update.
35804 2011-05-20  Eric Blake  <eblake@redhat.com>
35806         strerror_r: avoid corrupting errno on Solaris
35807         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
35808         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35810         strerror_r: avoid compiler warning
35811         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
35813         strerror_r: simplify AIX code
35814         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
35816         test-perror: avoid spurious failure on FreeBSD
35817         * modules/perror-tests (Depends-on): Add strerror, now that
35818         strerror_r no longer pulls it in.
35820 2011-05-20  Bruno Haible  <bruno@clisp.org>
35822         strerror_r-posix: Remove unused dependencies.
35823         * modules/strerror_r-posix (Depends-on): Remove strerror.
35824         Reported by Eric Blake.
35826 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35828         intprops: remove assumption about A|B representation
35829         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
35830         is a valid integer if both A and B are.  Although this is true for
35831         all known practical hosts, the C standard doesn't guarantee it,
35832         and the code need not assume it.  Also, this change may work around
35833         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
35834         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
35836 2011-05-20  Eric Blake  <eblake@redhat.com>
35838         perror: work around FreeBSD bug
35839         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
35840         is broken.  Move AC_LIBOBJ...
35841         * modules/perror (configure.ac): Here.
35842         * doc/posix-functions/perror.texi (perror): Document this.
35843         * tests/test-perror2.c (main): Enhance test.
35845         test-perror: check for strerror interactions
35846         * tests/macros.h (STREQ): Add macro.
35847         * modules/perror-tests (Files): Add second test.
35848         * tests/test-perror2.c (main): New file.
35849         * doc/posix-functions/perror.texi (perror): Document glibc bug.
35851         test-perror: rewrite to use init script
35852         * modules/perror-tests (Files): Add init.sh.
35853         * tests/test-perror.sh: Use temporary directory.
35855 2011-05-20  Jim Meyering  <meyering@redhat.com>
35857         maint: replace misused "a" with "an"
35858         * doc/intprops.texi: "a integer"
35859         * doc/regex.texi: "a explanation"
35860         * lib/alignof.h: "a object"
35861         * lib/argmatch.h: "a explanation"
35862         * lib/argp-help.c: "a option" and "a OPTION_DOC"
35863         * lib/stdint.in.h: "a integer"
35864         * lib/userspec.c: "a owner"
35865         * doc/gnulib.texi: Fix "a idea", and reword.
35867 2011-05-19  Jim Meyering  <meyering@redhat.com>
35869         maint: correct misuse of "a" and "an"
35870         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
35871         * lib/argp-help.c: "an docum...": s/an/a/
35872         * lib/argp-parse.c: "An vector": s/An/A/
35873         * lib/execute.c: "an native": s/an/a/
35874         * lib/spawn-pipe.c: Likewise.
35875         * lib/gc.h: "an Gc_rc": s/an/a/
35876         * lib/unigbrk.in.h: "an grapheme": s/an/a/
35877         * lib/fts.c: "an stat.st_dev": s/an/a/
35879 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35881         intprops-tests: work around HP-UX 11.23 cc bug with constants
35882         * tests/test-intprops.c (VERIFY): New macro.
35883         (main): Use it, instead of verify, to work around the compiler bug; see
35884         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35886         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
35887         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
35888         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
35889         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
35890         (_GL_REMAINDER_OVERFLOW): Use it.
35892         intprops-tests: revert unsigned part of previous change
35893         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
35894         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
35895         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
35896         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
35898 2011-05-19  Bruno Haible  <bruno@clisp.org>
35900         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
35901         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
35902         strerror_r() returned without filling the buffer.
35903         Reported by Eric Blake.
35905 2011-05-19  Eric Blake  <eblake@redhat.com>
35907         strerror_r: guarantee unchanged errno
35908         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
35909         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
35910         failure.
35911         * tests/test-strerror_r.c (main): Enhance test.
35913 2011-05-19  Bruno Haible  <bruno@clisp.org>
35915         strerror_r: Reorder #if blocks.
35916         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
35917         for consistency with the previous commit.
35919 2011-05-19  Bruno Haible  <bruno@clisp.org>
35921         perror: Avoid clobbering the strerror buffer when possible.
35922         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
35923         * lib/strerror.c: Include it.
35924         * modules/strerror (Files): Add lib/strerror-impl.h.
35925         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
35926         (my_strerror): New function, defined through lib/strerror-impl.h.
35927         (perror): Use it instead of strerror.
35928         * modules/perror (Files): Add lib/strerror-impl.h.
35929         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
35931 2011-05-19  Eric Blake  <eblake@redhat.com>
35933         strerror_r: fix on newer cygwin
35934         * lib/strerror_r.c (strerror_r): Cygwin now has
35935         __xpg_strerror_r, use it.
35937 2011-05-19  Bruno Haible  <bruno@clisp.org>
35939         strerror_r: Avoid clobbering the strerror buffer when possible.
35940         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
35941         (sys_nerr, sys_errlist): New declarations.
35942         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
35943         HP-UX, native Win32, IRIX, and 32-bit Solaris.
35944         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
35946 2011-05-19  Bruno Haible  <bruno@clisp.org>
35948         strerror_r: Fix test failure on mingw.
35949         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
35950         EXTEND_STRERROR_R.
35951         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
35952         macros from errno.in.h instead.
35954 2011-05-19  Eric Blake  <eblake@redhat.com>
35956         strerror: relax test for Solaris
35957         * tests/test-strerror.c (main): Permit Solaris behavior.
35958         * tests/test-strerror_r.c (main): Likewise.
35960         strerror: enforce POSIX ruling on strerror(0)
35961         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
35962         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
35963         * lib/strerror_r.c (rpl_strerror_r): Work around it.
35964         * doc/posix-functions/strerror.texi (strerror): Document it.
35965         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
35966         * tests/test-strerror.c (main): Strengthen test.
35967         * tests/test-strerror_r.c (main): Likewise.
35969 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35971         intprop-tests: port to older and more-pedantic compilers
35972         * modules/intprops-tests (Files): Add tests/macros.h.
35973         * tests/test-intprops.c: Include macros.h.
35974         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
35975         it's no longer documented to expand to an integer constant expression.
35976         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
35977         argument is floating point, as it's no longer documented to expand
35978         to an integer constant expression in that case.
35979         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
35980         compiler bugs reported by Bruno Haible.  See
35981         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35982         (U0, U1): New constants, to work around the same bugs.  Also,
35983         in tests, use e.g., "(unsigned int) 39" rather than "39u".
35985         intprops: work around C compiler bugs
35986         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
35987         bug in Sun C 5.11 2010/08/13 and other compilers; see
35988         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35990         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
35991         * doc/intprops.texi (Integer Type Determination): Fix
35992         documentation for TYPE_IS_INTEGER: it returns an constant
35993         expression, not an integer constant expression.  Fix doc for
35994         TYPE_SIGNED: it returns an integer constant expression only if its
35995         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
35996         hardly worth documented that way....)
35998 2011-05-18  Bruno Haible  <bruno@clisp.org>
36000         strerror_r: Avoid clobbering the strerror buffer when possible.
36001         * lib/strerror_r.c (strerror_r): Merge the three implementations.
36002         Handle gnulib defined errno values here. When strerror() returns NULL
36003         or an empty string, return EINVAL.
36004         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
36005         gnulib defined errno values here.
36006         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
36008 2011-05-18  Eric Blake  <eblake@redhat.com>
36010         fnmatch: avoid compiler warning
36011         * lib/fnmatch_loop.c (FCT): Use correct type.
36012         Reported by Matthias Bolte.
36014 2011-05-13  Jim Meyering  <meyering@redhat.com>
36016         maint.mk: three new prohibit_<HDR>_without_use rules
36017         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
36018         (sc_prohibit_stdio-safer_without_use): Likewise.
36019         (sc_prohibit_xfreopen_without_use): Likewise.
36021 2011-05-17  Jim Meyering  <meyering@redhat.com>
36023         announce-gen: fail if the NEWS delta is empty
36024         If there's nothing noteworthy in NEWS, then either you forgot
36025         or you shouldn't be releasing.
36026         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
36028 2011-05-17  Pádraig Brady  <P@draigBrady.com>
36030         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
36031         reserved symbols starting with double underscore from the check.
36033 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36035         intprops: add doc
36036         * doc/intprops.texi: New file, documenting intprops.
36037         * doc/gnulib.texi (Particular Modules): Include it.
36039         verify: add doc to gnulib manual and fix example
36040         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
36041         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
36042         (Compile-time Assertions): Fix example so it can't overflow.
36044 2011-05-17  Jim Meyering  <meyering@redhat.com>
36046         warnings.m4: don't usurp save_CPPFLAGS variable name
36047         * m4/warnings.m4: Prefix local temporary variable name with gl_.
36049         doc: fix typo
36050         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
36052 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36053             Bruno Haible  <bruno@clisp.org>
36055         doc: Tweak recent change.
36056         * README (Portability guidelines): Tweak new text.
36057         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
36058         Interix 6.1.
36060 2011-05-16  Eric Blake  <eblake@redhat.com>
36062         inttypes: avoid autoconf warning
36063         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
36064         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36066 2011-05-16  Sam Steingold  <sds@gnu.org>
36067         and Eric Blake  <eblake@redhat.com>
36069         vc-list-files: accept multiple directory operands
36070         * build-aux/vc-list-files: Iterate over all remaining operands.
36072 2011-05-16  Bruno Haible  <bruno@clisp.org>
36074         Fix confusion regarding deprecated modules.
36075         * modules/calloc (Status, Notice): Mark module as deprecated, not
36076         obsolete.
36077         * modules/fnmatch-posix (Status, Notice): Likewise.
36078         * modules/getdate (Status, Notice): Likewise.
36079         * modules/getopt (Status, Notice): Likewise.
36080         * modules/malloc (Status, Notice): Likewise.
36081         * modules/pipe (Status, Notice): Likewise.
36082         * modules/realloc (Status, Notice): Likewise.
36083         * modules/rename-dest-slash (Status, Notice): Likewise.
36084         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
36085         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
36086         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
36087         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
36088         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
36090 2011-05-16  Bruno Haible  <bruno@clisp.org>
36092         doc: List the target platforms.
36093         * doc/gnulib-intro.texi (Target Platforms): New section.
36094         * doc/gnulib.texi (Introduction): Update menu.
36095         * README (Portability guidelines): Refer to the new section. Update
36096         statement about oldest supported environment. Remove rationale why
36097         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
36098         unportable C89 function.
36099         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
36100         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
36102 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36104         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
36106 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36108         intprops-tests: new module
36109         * modules/intprops-tests, tests/test-intprops.c: New files.
36111         intprops: add safe, portable integer overflow checking
36112         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
36113         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
36114         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
36115         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
36116         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
36117         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
36118         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
36119         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
36120         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
36121         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
36122         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
36124 2011-05-12  James Youngman  <jay@gnu.org>
36126         Add a test for glibc's Bugzilla bug #12378.
36127         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
36128         doesn't allow the literal matching of a lone "[" (which is
36129         required by POSIX).
36130         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
36132 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36134         Sync glibc change fixing Bugzilla bug #12378.
36135         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
36136         beginning and fall back to matching as normal character if the
36137         string ends before the matching ']' is found.  This is what POSIX
36138         requires.
36140 2011-05-13  Eric Blake  <eblake@redhat.com>
36142         getcwd-lgpl: relax test for FreeBSD
36143         * doc/posix-functions/getcwd.texi (getcwd): Document portability
36144         issue.
36145         * tests/test-getcwd-lgpl.c (main): Relax test.
36146         Reported by Matthias Bolte.
36148 2011-05-11  Eric Blake  <eblake@redhat.com>
36150         test-fflush: silence compiler warning
36151         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
36153 2011-05-11  Bruno Haible  <bruno@clisp.org>
36155         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
36156         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
36157         * modules/canonicalize (Depends-on): Add 'nocrash'.
36158         * modules/canonicalize-lgpl (Depends-on): Likewise.
36159         * doc/posix-functions/realpath.texi: Update platforms list.
36160         Reported by Ryan Schmidt <ryandesign@macports.org>.
36162 2011-05-11  Bruno Haible  <bruno@clisp.org>
36164         group-member: Declare function in <unistd.h>.
36165         * lib/unistd.in.h (group_member): New declaration.
36166         * lib/group-member.h: Remove file.
36167         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
36168         * tests/test-unistd-c++.cc: Check signature of group_member.
36169         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
36170         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
36171         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
36172         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
36173         HAVE_GROUP_MEMBER.
36174         * modules/group-member (Files): Remove lib/group-member.h.
36175         (Depends-on): Add unistd. Specify conditions.
36176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36177         (Include): Change to <unistd.h>.
36178         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
36179         HAVE_GROUP_MEMBER.
36180         * NEWS: Mention the change.
36181         * lib/euidaccess.c: Don't include group-member.h.
36183 2011-05-11  Bruno Haible  <bruno@clisp.org>
36185         group-member: Document module.
36186         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
36187         module.
36189 2011-05-11  Bruno Haible  <bruno@clisp.org>
36191         fclose: Fix mistake earlier today.
36192         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
36194 2011-05-11  Eric Blake  <eblake@redhat.com>
36196         fclose: preserve fflush errors
36197         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
36198         Reported by Jim Meyering.
36200         bootstrap: support a prereq of 'rpcgen -' on RHEL5
36201         * build-aux/bootstrap (check_versions): When no specific version
36202         is required, merely check that the app produces an exit status
36203         that indicates its existence.
36205         maint.mk: drop redundant check
36206         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
36207         the same but better.
36209 2011-05-11  Bruno Haible  <bruno@clisp.org>
36211         fclose: Fix possible link error.
36212         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
36213         unregister_shadow_fd. Improve comments.
36214         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
36215         Eric Blake.
36217 2011-05-11  Jim Meyering  <meyering@redhat.com>
36219         maint.mk: improve "can not" detection and generalize rule name
36220         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
36221         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
36222         Use the same technique as in sc_prohibit_doubled_word, so that
36223         we recognize "can not" also when the words are separated by a newline.
36224         Suggested by Eric Blake.
36225         (perl_filename_lineno_text_): Define.  Factored out of...
36226         (prohibit_doubled_word_): ...here.  Use the new definition.
36227         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
36228         (prohibit_undesirable_word_seq_RE_): New overridable variable.
36229         (ignore_undesirable_word_sequence_RE_): New overridable variable.
36231 2011-05-10  Eric Blake  <eblake@redhat.com>
36233         fclose: avoid double close race when possible
36234         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
36235         all but WINDOWS_SOCKETS.
36237 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
36239         openat: correct new comment
36240         * lib/openat-proc.c (openat_proc_name): Correct the comment.
36242 2011-05-10  Jim Meyering  <meyering@redhat.com>
36244         openat: add comments
36245         * lib/openat-proc.c (openat_proc_name): Add comments,
36246         mostly from Eric Blake.
36248 2011-05-09  Eric Blake  <eblake@redhat.com>
36250         openat: reduce syscalls in first probe of /proc
36251         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
36252         be a directory.  Simplify the probe for .. bugs.
36253         * modules/openat (Depends-on): Drop same-inode.
36254         Reported by Bastien ROUCARIES.
36256 2011-05-09  Jim Meyering  <meyering@redhat.com>
36258         maint.mk: change semantics/name of tight_scope variables
36259         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
36260         Rename variables to align with semantics that make them more useful.
36262         maint.mk: tweak new rule's name not to impinge
36263         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
36264         (sc_tight_scope): Use new rule name rather than $@-0.
36266         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
36267         * top/maint.mk (sc_tight_scope): New rule.
36268         (sc_tight_scope-0): New rule, ifdef'd out.
36269         (_gl_TS_dir): Default.
36270         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
36271         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
36273 2011-05-09  Simon Josefsson  <simon@josefsson.org>
36275         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
36276         Haible <bruno@clisp.org>.
36278 2011-05-08  Bruno Haible  <bruno@clisp.org>
36280         Comments.
36281         * m4/isnanf.m4: Add comment.
36282         * m4/isnanl.m4: Likewise.
36284 2011-05-08  Bruno Haible  <bruno@clisp.org>
36286         glob: Remove obsolete macro.
36287         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
36289 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
36291         intprops: Sun C 5.11 supports __typeof__
36292         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
36293         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
36294         which is new.
36295         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
36297         intprops: switch to usual gnulib indenting and naming
36298         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
36299         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
36301         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
36303 2011-05-08  Jim Meyering  <meyering@redhat.com>
36305         maint.mk: suppress "Entering/Leaving directory" diag in announcement
36306         * top/maint.mk (release-prep): Use make's --no-print-directory
36307         option when generating the announcement.  This eliminates the
36308         pesky "make[2]: Entering/Leaving directory" diagnostics in the
36309         generated announcement template.
36311 2011-05-08  Bruno Haible  <bruno@clisp.org>
36313         tzset: Fix gettimeofday wrapper on Solaris 2.6.
36314         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
36315         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
36317 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36319         ignore-value, verify: Omit include files from lib_SOURCES.
36320         * modules/ignore-value, modules/verify (Makefile.am):
36321         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
36322         that leads Automake to duplicate use of am__objects_... variables
36323         in Makefile.in.  See
36324         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
36326 2011-05-07  Bruno Haible  <bruno@clisp.org>
36328         fclose: Simplify autoconf macro.
36329         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
36330         defined.
36332 2011-05-07  Bruno Haible  <bruno@clisp.org>
36334         canonicalize-lgpl: Fix autoconf macro ordering bug.
36335         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
36336         gl_STDLIB_H_DEFAULTS.
36338 2011-05-06  Eric Blake  <eblake@redhat.com>
36340         maintainer-makefile: make sc_po_check easier to tune
36341         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
36342         to probe for strings, such as an alternate location for gnulib.
36344         fclose: guarantee behavior on seekable stdin
36345         * modules/fclose (Depends-on): Add fflush.
36346         * doc/posix-functions/fclose.texi (fclose): Document this.
36347         * tests/test-fclose.c (main): Make test for this unconditional.
36349 2011-05-06  Bruno Haible  <bruno@clisp.org>
36351         fflush, fpurge: Relicense under LGPLv2+.
36352         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
36353         * modules/fpurge (License): Likewise.
36354         With permission from Eric Blake and Jim Meyering.
36355         Suggested by Eric Blake.
36357 2011-05-06  Karl Berry  <karl@gnu.org>
36359         * MODULES.html.sh (func_all_modules): remove exit.
36361 2011-05-06  Jim Meyering  <meyering@redhat.com>
36363         maint.mk: use info-gnu@ as the default only for a stable release
36364         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
36365         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
36366         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
36367         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
36369 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
36371         assert-h: new module, which supports C1X-style static_assert
36372         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
36373         * lib/verify.h: Revamp so that this can be copied into assert.h,
36374         while retaining the ability to use it standalone as before.
36375         Rename private identifiers so as not to encroach on the
36376         standard C namespace, since this is now used by assert.h.
36377         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
36378         the old verify_true.
36379         (_GL_VERIFY_TRUE): New macro, with much of the contents of
36380         the old verify_true.  Use _GL_VERIFY_TYPE.
36381         (_GL_VERIFY): New macro, with much of the contents of the old verify.
36382         (static_assert): New macro, if _GL_STATIC_ASSERT_H
36383         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
36384         defined when this file is copied into the replacement assert.h.
36385         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
36386         and _Static_assert is not built in.
36387         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
36388         defined, and use the new macros mentioned above.
36389         * doc/posix-headers/assert.texi: Document this.
36391 2011-05-05  Bruno Haible  <bruno@clisp.org>
36393         fclose, fflush: Respect rules for use of AC_LIBOBJ.
36394         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
36395         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
36396         gl_REPLACE_FCLOSE here.
36397         * modules/fflush (Depends-on): Remove fclose.
36398         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
36399         combination with module 'fclose'.
36401 2011-05-05  Bruno Haible  <bruno@clisp.org>
36403         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
36404         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
36405         gl_FUNC_FFLUSH.
36406         (gl_FUNC_FFLUSH): Use it.
36407         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
36408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
36409         gl_REPLACE_FSEEKO here.
36411 2011-05-05  Bruno Haible  <bruno@clisp.org>
36413         tzset: Relicense under LGPL.
36414         * modules/tzset (License): Change to LGPL.
36415         No agreement needed; it's a no-op.
36417         strtoimax, strtoumax: Relicense under LGPL.
36418         * modules/strtoimax (License): Change to LGPL.
36419         * modules/strtoumax (License): Likewise.
36420         With permission from Jim Meyering, Paul Eggert:
36421         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
36422         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
36424         getgroups: Relicense under LGPL.
36425         * modules/getgroups (License): Change to LGPL.
36426         With permission from Jim Meyering, Paul Eggert, Eric Blake:
36427         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36428         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36429         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36431         nanosleep: Relicense under LGPL.
36432         * modules/nanosleep (License): Change to LGPL.
36433         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
36434         Haible:
36435         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36436         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36437         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36438         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36440         futimens: Relicense under LGPL.
36441         * modules/futimens (License): Change to LGPL.
36442         With permission from Eric Blake:
36443         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36445         fflush: Relicense under LGPL.
36446         * modules/fflush (License): Change to LGPL.
36447         With permission from Eric Blake, Bruno Haible, Jim Meyering:
36448         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36449         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36450         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
36452         tmpfile: Relicense under LGPL.
36453         * modules/tmpfile (License): Change to LGPL.
36454         With permission from Ben Pfaff:
36455         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36457         isfinite: Relicense under LGPL.
36458         * modules/isfinite (License): Change to LGPL.
36459         With permission from Ben Pfaff, Bruno Haible:
36460         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36461         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
36463         acosl..tanl: Relicense under LGPL.
36464         * modules/acosl (License): Change to LGPL.
36465         * modules/asinl (License): Likewise.
36466         * modules/atanl (License): Likewise.
36467         * modules/cosl (License): Likewise.
36468         * modules/expl (License): Likewise.
36469         * modules/logl (License): Likewise.
36470         * modules/sinl (License): Likewise.
36471         * modules/sqrtl (License): Likewise.
36472         * modules/tanl (License): Likewise.
36473         Source code originally from glibc and Paolo Bonzini. Agreements:
36474         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
36475         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
36477 2011-05-05  Bruno Haible  <bruno@clisp.org>
36479         signal: Define sighandler_t.
36480         * lib/signal.in.h (sighandler_t): New type.
36481         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
36482         whether sighandler_t is defined.
36483         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
36484         * modules/signal (Depends-on): Add extensions.
36485         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
36486         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
36487         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
36489 2011-05-05  Eric Blake  <eblake@redhat.com>
36491         maint: remove useless REPLACE_*_H macros
36492         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
36493         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36494         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36495         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
36496         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36497         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36498         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
36499         * m4/btowc.m4: Update callers.
36500         * m4/dirfd.m4: Likewise.
36501         * m4/duplocale.m4: Likewise.
36502         * m4/fchdir.m4: Likewise.
36503         * m4/fdopendir.m4: Likewise.
36504         * m4/inet_ntop.m4: Likewise.
36505         * m4/inet_pton.m4: Likewise.
36506         * m4/ioctl.m4: Likewise.
36507         * m4/mbrlen.m4: Likewise.
36508         * m4/mbrtowc.m4: Likewise.
36509         * m4/mbsinit.m4: Likewise.
36510         * m4/mbsnrtowcs.m4: Likewise.
36511         * m4/mbsrtowcs.m4: Likewise.
36512         * m4/poll.m4: Likewise.
36513         * m4/setlocale.m4: Likewise.
36514         * m4/wcrtomb.m4: Likewise.
36515         * m4/wcsnrtombs.m4: Likewise.
36516         * m4/wcsrtombs.m4: Likewise.
36517         * m4/wctob.m4: Likewise.
36518         * m4/wcwidth.m4: Likewise.
36519         * modules/posix_spawn: Likewise.
36520         * modules/posix_spawn_file_actions_addclose: Likewise.
36521         * modules/posix_spawn_file_actions_adddup2: Likewise.
36522         * modules/posix_spawn_file_actions_addopen: Likewise.
36523         * modules/posix_spawn_file_actions_destroy: Likewise.
36524         * modules/posix_spawn_file_actions_init: Likewise.
36525         * modules/posix_spawnattr_destroy: Likewise.
36526         * modules/posix_spawnattr_getflags: Likewise.
36527         * modules/posix_spawnattr_getpgroup: Likewise.
36528         * modules/posix_spawnattr_getschedparam: Likewise.
36529         * modules/posix_spawnattr_getschedpolicy: Likewise.
36530         * modules/posix_spawnattr_getsigdefault: Likewise.
36531         * modules/posix_spawnattr_getsigmask: Likewise.
36532         * modules/posix_spawnattr_init: Likewise.
36533         * modules/posix_spawnattr_setflags: Likewise.
36534         * modules/posix_spawnattr_setpgroup: Likewise.
36535         * modules/posix_spawnattr_setschedparam: Likewise.
36536         * modules/posix_spawnattr_setschedpolicy: Likewise.
36537         * modules/posix_spawnattr_setsigdefault: Likewise.
36538         * modules/posix_spawnattr_setsigmask: Likewise.
36539         * modules/posix_spawnp: Likewise.
36541 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
36543         Add option to do-release-commit-and-tag to specify branch.
36544         * build-aux/do-release-commit-and-tag: Add --branch.
36546 2011-05-03  Bruno Haible  <bruno@clisp.org>
36548         Avoid unnecessary compilation units, through conditional dependencies.
36549         * modules/accept (Depends-on): Add conditions to the dependencies.
36550         * modules/acosl (Depends-on): Likewise.
36551         * modules/argz (Depends-on): Likewise.
36552         * modules/asinl (Depends-on): Likewise.
36553         * modules/atanl (Depends-on): Likewise.
36554         * modules/atoll (Depends-on): Likewise.
36555         * modules/bind (Depends-on): Likewise.
36556         * modules/btowc (Depends-on): Likewise.
36557         * modules/canonicalize-lgpl (Depends-on): Likewise.
36558         * modules/ceil (Depends-on): Likewise.
36559         * modules/ceilf (Depends-on): Likewise.
36560         * modules/ceill (Depends-on): Likewise.
36561         * modules/chdir-long (Depends-on): Likewise.
36562         * modules/chown (Depends-on): Likewise.
36563         * modules/close (Depends-on): Likewise.
36564         * modules/connect (Depends-on): Likewise.
36565         * modules/cosl (Depends-on): Likewise.
36566         * modules/dirfd (Depends-on): Likewise.
36567         * modules/dprintf (Depends-on): Likewise.
36568         * modules/dprintf-posix (Depends-on): Likewise.
36569         * modules/error (Depends-on): Likewise.
36570         * modules/euidaccess (Depends-on): Likewise.
36571         * modules/expl (Depends-on): Likewise.
36572         * modules/faccessat (Depends-on): Likewise.
36573         * modules/fchdir (Depends-on): Likewise.
36574         * modules/fclose (Depends-on): Likewise.
36575         * modules/fcntl (Depends-on): Likewise.
36576         * modules/fdopendir (Depends-on): Likewise.
36577         * modules/fflush (Depends-on): Likewise.
36578         * modules/floor (Depends-on): Likewise.
36579         * modules/floorf (Depends-on): Likewise.
36580         * modules/floorl (Depends-on): Likewise.
36581         * modules/fnmatch (Depends-on): Likewise.
36582         * modules/fopen (Depends-on): Likewise.
36583         * modules/fprintf-posix (Depends-on): Likewise.
36584         * modules/frexp (Depends-on): Likewise.
36585         * modules/frexp-nolibm (Depends-on): Likewise.
36586         * modules/frexpl (Depends-on): Likewise.
36587         * modules/frexpl-nolibm (Depends-on): Likewise.
36588         * modules/fseek (Depends-on): Likewise.
36589         * modules/fsusage (Depends-on): Likewise.
36590         * modules/ftell (Depends-on): Likewise.
36591         * modules/ftello (Depends-on): Likewise.
36592         * modules/futimens (Depends-on): Likewise.
36593         * modules/getcwd (Depends-on): Likewise.
36594         * modules/getcwd-lgpl (Depends-on): Likewise.
36595         * modules/getdelim (Depends-on): Likewise.
36596         * modules/getdomainname (Depends-on): Likewise.
36597         * modules/getgroups (Depends-on): Likewise.
36598         * modules/gethostname (Depends-on): Likewise.
36599         * modules/getline (Depends-on): Likewise.
36600         * modules/getlogin_r (Depends-on): Likewise.
36601         * modules/getopt-posix (Depends-on): Likewise.
36602         * modules/getpeername (Depends-on): Likewise.
36603         * modules/getsockname (Depends-on): Likewise.
36604         * modules/getsockopt (Depends-on): Likewise.
36605         * modules/getsubopt (Depends-on): Likewise.
36606         * modules/getusershell (Depends-on): Likewise.
36607         * modules/glob (Depends-on): Likewise.
36608         * modules/grantpt (Depends-on): Likewise.
36609         * modules/iconv_open (Depends-on): Likewise.
36610         * modules/iconv_open-utf (Depends-on): Likewise.
36611         * modules/inet_ntop (Depends-on): Likewise.
36612         * modules/inet_pton (Depends-on): Likewise.
36613         * modules/ioctl (Depends-on): Likewise.
36614         * modules/isapipe (Depends-on): Likewise.
36615         * modules/isfinite (Depends-on): Likewise.
36616         * modules/isinf (Depends-on): Likewise.
36617         * modules/lchown (Depends-on): Likewise.
36618         * modules/ldexpl (Depends-on): Likewise.
36619         * modules/link (Depends-on): Likewise.
36620         * modules/linkat (Depends-on): Likewise.
36621         * modules/listen (Depends-on): Likewise.
36622         * modules/logl (Depends-on): Likewise.
36623         * modules/lstat (Depends-on): Likewise.
36624         * modules/mbrlen (Depends-on): Likewise.
36625         * modules/mbrtowc (Depends-on): Likewise.
36626         * modules/mbsinit (Depends-on): Likewise.
36627         * modules/mbsnrtowcs (Depends-on): Likewise.
36628         * modules/mbsrtowcs (Depends-on): Likewise.
36629         * modules/mbtowc (Depends-on): Likewise.
36630         * modules/memcmp (Depends-on): Likewise.
36631         * modules/mkdir (Depends-on): Likewise.
36632         * modules/mkdtemp (Depends-on): Likewise.
36633         * modules/mkfifo (Depends-on): Likewise.
36634         * modules/mkfifoat (Depends-on): Likewise.
36635         * modules/mknod (Depends-on): Likewise.
36636         * modules/mkostemp (Depends-on): Likewise.
36637         * modules/mkostemps (Depends-on): Likewise.
36638         * modules/mkstemp (Depends-on): Likewise.
36639         * modules/mkstemps (Depends-on): Likewise.
36640         * modules/mktime (Depends-on): Likewise.
36641         * modules/nanosleep (Depends-on): Likewise.
36642         * modules/open (Depends-on): Likewise.
36643         * modules/openat (Depends-on): Likewise.
36644         * modules/perror (Depends-on): Likewise.
36645         * modules/poll (Depends-on): Likewise.
36646         * modules/popen (Depends-on): Likewise.
36647         * modules/posix_spawn (Depends-on): Likewise.
36648         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
36649         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36650         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36651         * modules/posix_spawnp (Depends-on): Likewise.
36652         * modules/pread (Depends-on): Likewise.
36653         * modules/printf-posix (Depends-on): Likewise.
36654         * modules/ptsname (Depends-on): Likewise.
36655         * modules/putenv (Depends-on): Likewise.
36656         * modules/pwrite (Depends-on): Likewise.
36657         * modules/readline (Depends-on): Likewise.
36658         * modules/readlink (Depends-on): Likewise.
36659         * modules/readlinkat (Depends-on): Likewise.
36660         * modules/recv (Depends-on): Likewise.
36661         * modules/recvfrom (Depends-on): Likewise.
36662         * modules/regex (Depends-on): Likewise.
36663         * modules/remove (Depends-on): Likewise.
36664         * modules/rename (Depends-on): Likewise.
36665         * modules/renameat (Depends-on): Likewise.
36666         * modules/rmdir (Depends-on): Likewise.
36667         * modules/round (Depends-on): Likewise.
36668         * modules/roundf (Depends-on): Likewise.
36669         * modules/roundl (Depends-on): Likewise.
36670         * modules/rpmatch (Depends-on): Likewise.
36671         * modules/select (Depends-on): Likewise.
36672         * modules/send (Depends-on): Likewise.
36673         * modules/sendto (Depends-on): Likewise.
36674         * modules/setenv (Depends-on): Likewise.
36675         * modules/setlocale (Depends-on): Likewise.
36676         * modules/setsockopt (Depends-on): Likewise.
36677         * modules/shutdown (Depends-on): Likewise.
36678         * modules/sigaction (Depends-on): Likewise.
36679         * modules/signbit (Depends-on): Likewise.
36680         * modules/sigprocmask (Depends-on): Likewise.
36681         * modules/sinl (Depends-on): Likewise.
36682         * modules/sleep (Depends-on): Likewise.
36683         * modules/snprintf (Depends-on): Likewise.
36684         * modules/snprintf-posix (Depends-on): Likewise.
36685         * modules/socket (Depends-on): Likewise.
36686         * modules/sprintf-posix (Depends-on): Likewise.
36687         * modules/sqrtl (Depends-on): Likewise.
36688         * modules/stat (Depends-on): Likewise.
36689         * modules/strchrnul (Depends-on): Likewise.
36690         * modules/strdup-posix (Depends-on): Likewise.
36691         * modules/strerror (Depends-on): Likewise.
36692         * modules/strerror_r-posix (Depends-on): Likewise.
36693         * modules/strndup (Depends-on): Likewise.
36694         * modules/strnlen (Depends-on): Likewise.
36695         * modules/strptime (Depends-on): Likewise.
36696         * modules/strsep (Depends-on): Likewise.
36697         * modules/strsignal (Depends-on): Likewise.
36698         * modules/strstr-simple (Depends-on): Likewise.
36699         * modules/strtod (Depends-on): Likewise.
36700         * modules/strtoimax (Depends-on): Likewise.
36701         * modules/strtok_r (Depends-on): Likewise.
36702         * modules/strtoumax (Depends-on): Likewise.
36703         * modules/symlink (Depends-on): Likewise.
36704         * modules/symlinkat (Depends-on): Likewise.
36705         * modules/tanl (Depends-on): Likewise.
36706         * modules/tcgetsid (Depends-on): Likewise.
36707         * modules/tmpfile (Depends-on): Likewise.
36708         * modules/trunc (Depends-on): Likewise.
36709         * modules/truncf (Depends-on): Likewise.
36710         * modules/truncl (Depends-on): Likewise.
36711         * modules/uname (Depends-on): Likewise.
36712         * modules/unlink (Depends-on): Likewise.
36713         * modules/unlockpt (Depends-on): Likewise.
36714         * modules/unsetenv (Depends-on): Likewise.
36715         * modules/usleep (Depends-on): Likewise.
36716         * modules/utimensat (Depends-on): Likewise.
36717         * modules/vasprintf (Depends-on): Likewise.
36718         * modules/vdprintf (Depends-on): Likewise.
36719         * modules/vdprintf-posix (Depends-on): Likewise.
36720         * modules/vfprintf-posix (Depends-on): Likewise.
36721         * modules/vprintf-posix (Depends-on): Likewise.
36722         * modules/vsnprintf (Depends-on): Likewise.
36723         * modules/vsnprintf-posix (Depends-on): Likewise.
36724         * modules/vsprintf-posix (Depends-on): Likewise.
36725         * modules/wcrtomb (Depends-on): Likewise.
36726         * modules/wcscasecmp (Depends-on): Likewise.
36727         * modules/wcscspn (Depends-on): Likewise.
36728         * modules/wcsdup (Depends-on): Likewise.
36729         * modules/wcsncasecmp (Depends-on): Likewise.
36730         * modules/wcsnrtombs (Depends-on): Likewise.
36731         * modules/wcspbrk (Depends-on): Likewise.
36732         * modules/wcsrtombs (Depends-on): Likewise.
36733         * modules/wcsspn (Depends-on): Likewise.
36734         * modules/wcsstr (Depends-on): Likewise.
36735         * modules/wcstok (Depends-on): Likewise.
36736         * modules/wcswidth (Depends-on): Likewise.
36737         * modules/wctob (Depends-on): Likewise.
36738         * modules/wctomb (Depends-on): Likewise.
36739         * modules/wctype (Depends-on): Likewise.
36740         * modules/wcwidth (Depends-on): Likewise.
36741         * modules/write (Depends-on): Likewise.
36743 2011-05-03  Bruno Haible  <bruno@clisp.org>
36745         Support for conditional dependencies.
36746         * doc/gnulib.texi (Module description): Document the syntax of
36747         conditional dependencies.
36748         * gnulib-tool: New option --conditional-dependencies.
36749         (func_usage): Document it.
36750         (cond_dependencies): New variable.
36751         (func_get_automake_snippet_conditional,
36752         func_get_automake_snippet_unconditional): New functions, extracted from
36753         func_get_automake_snippet.
36754         (func_get_automake_snippet): Use them.
36755         (sed_first_32_chars): New variable.
36756         (func_module_shellfunc_name): New function.
36757         (func_module_shellvar_name): New function.
36758         (func_module_conditional_name): New function.
36759         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
36760         func_cond_module_condition): New functions.
36761         (func_modules_transitive_closure): Add support for conditional
36762         dependencies.
36763         (func_emit_lib_Makefile_am): For a conditional module, enclose the
36764         conditional automake snippet in an automake conditional.
36765         (func_emit_autoconf_snippets): Emit shell functions that contain the
36766         code for conditional modules.
36767         (func_import, func_create_testdir): Update specification.
36769 2011-05-03  Eric Blake  <eblake@redhat.com>
36771         test-getaddrinfo: report error information
36772         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
36774 2011-05-03  Jim Meyering  <meyering@redhat.com>
36776         bootstrap: avoid build failure when $GZIP is set
36777         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
36778         program name.  If defined at all, it is supposed to list gzip options.
36779         Reported by Alan Curry in http://debbugs.gnu.org/8609
36781 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
36783         readme-release: new module with release instructions
36784         * modules/readme-release: New module.
36785         * top/README-release: New file, from coreutils, grep, diffutils.
36786         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36788 2011-05-02  Eric Blake  <eblake@redhat.com>
36790         fflush: also replace fclose when fixing fflush
36791         * modules/fflush (Depends-on): Add fclose.
36792         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
36793         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
36794         memstreams with no backing fd.
36795         * doc/posix-functions/fclose.texi (fclose): Document the use of
36796         fflush module to fix the bug.
36797         * tests/test-fclose.c (main): Relax test when fclose is used in
36798         isolation.
36800         fclose: add some tests
36801         * modules/fclose-tests: New test module.
36802         * tests/test-fclose.c: New file.
36803         * doc/posix-functions/fclose.texi (fclose): Document the bug.
36805         fclose: reduced dependencies
36806         * modules/fclose (Depends-on): Switch from fflush/fseeko to
36807         simpler lseek.
36808         * lib/fclose.c (rpl_fclose): Likewise.
36809         Reported by Simon Josefsson.
36811         exit: drop remaining clients
36812         * modules/argmatch (Depends-on): Replace exit with stdlib.
36813         * modules/copy-file (Depends-on): Likewise.
36814         * modules/execute (Depends-on): Likewise.
36815         * modules/exitfail (Depends-on): Likewise.
36816         * modules/obstack (Depends-on): Likewise.
36817         * modules/pagealign_alloc (Depends-on): Likewise.
36818         * modules/pipe-filter-gi (Depends-on): Likewise.
36819         * modules/pipe-filter-ii (Depends-on): Likewise.
36820         * modules/savewd (Depends-on): Likewise.
36821         * modules/spawn-pipe (Depends-on): Likewise.
36822         * modules/wait-process (Depends-on): Likewise.
36823         * modules/xsetenv (Depends-on): Likewise.
36824         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
36825         * modules/git-merge-changelog (Depends-on): Likewise.
36826         * modules/long-options (Depends-on): Likewise.
36827         * modules/pt_chown (Depends-on): Likewise.
36828         * modules/sysexits (Depends-on): Likewise.
36830         freading: relax license from LGPLv3+ to LGPLv2+
36831         * modules/freading (License): Relax LGPL version.
36833 2011-05-02  Bruno Haible  <bruno@clisp.org>
36835         fchdir: Remove unused dependencies.
36836         * modules/fchdir (Depends-on): Remove include_next.
36838 2011-05-02  Bruno Haible  <bruno@clisp.org>
36840         gnulib-tool: Refactor.
36841         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
36842         from func_emit_autoconf_snippets.
36843         (func_emit_autoconf_snippets): Use it.
36845 2011-05-02  Simon Josefsson  <simon@josefsson.org>
36847         * NEWS: Document removal of 'exit'.
36848         * modules/exit: Remove file.
36850 2011-05-01  Bruno Haible  <bruno@clisp.org>
36852         Update DEPENDENCIES.
36853         * DEPENDENCIES (gettext): Recommend the newest release.
36854         Reported by Simon Josefsson.
36856 2011-05-01  Bruno Haible  <bruno@clisp.org>
36858         gnulib-tool: Reduce code duplication.
36859         * gnulib-tool (func_emit_autoconf_snippets): New function.
36860         (func_import, func_create_testdir): Use it.
36862 2011-04-30  Eric Blake  <eblake@redhat.com>
36864         fclose: don't fail on non-seekable input stream
36865         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
36866         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
36867         since fflush is allowed to fail in that case.
36869 2011-04-30  Bruno Haible  <bruno@clisp.org>
36871         dup3: cleanup
36872         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
36874 2011-04-30  Bruno Haible  <bruno@clisp.org>
36876         netdb: Make it work in C++ mode.
36877         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
36878         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
36879         module.
36880         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
36881         gl_MODULE_INDICATOR_FOR_TESTS.
36882         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
36883         * modules/netdb-c++-tests: New file.
36884         * tests/test-netdb-c++.cc: New file.
36886 2011-04-30  Bruno Haible  <bruno@clisp.org>
36888         New modules 'vfscanf', 'vscanf'.
36889         * modules/vfscanf: New file.
36890         * modules/vscanf: New file.
36891         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
36892         here.
36893         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
36894         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
36896 2011-04-30  Bruno Haible  <bruno@clisp.org>
36898         passfd: Add comments.
36899         * lib/passfd.c: Add comments about platforms.
36901 2011-04-30  Bruno Haible  <bruno@clisp.org>
36903         sys_uio: Make <sys/uio.h> self-contained.
36904         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
36905         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
36907 2011-04-30  Bruno Haible  <bruno@clisp.org>
36909         sys_socket: Ensure 'struct iovec' definition.
36910         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
36911         <sys/socket.h>.
36912         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
36914 2011-04-30  Bruno Haible  <bruno@clisp.org>
36916         sys_uio: Protect definition of 'struct iovec'.
36917         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
36918         it as a C struct.
36920 2011-04-30  Bruno Haible  <bruno@clisp.org>
36922         manywarnings: fix indentation
36923         * m4/manywarnings.m4: Indent by 2 spaces consistently.
36925 2011-04-30  Pádraig Brady  <P@draigBrady.com>
36927         manywarnings: add -Wno-missing-field-initializers if needed.
36928         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
36929         option if it's needed to allow initialization with { 0, }
36931 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
36933         announce-gen: cosmetic improvement
36934         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
36936 2011-04-29  Jim Meyering  <meyering@redhat.com>
36938         vc-list-files: indent with spaces, not TABs
36939         * build-aux/vc-list-files: Convert leading TABs to spaces,
36940         to match the style of most other files in gnulib.
36942         announce-gen: indent with spaces, not TABs
36943         * build-aux/announce-gen: Convert all TABs to spaces, to match
36944         the style of most other files in gnulib.
36946 2011-04-29  Eric Blake  <eblake@redhat.com>
36948         quotearg: avoid uninitialized variable use
36949         * lib/quotearg.c (quoting_options_from_style): Initialize
36950         remaining fields, and ensure that custom styles are only used via
36951         quoting_options rather than quoting_style.
36953 2011-04-29  Jim Meyering  <meyering@redhat.com>
36955         maint.mk: remove unused VC-tag variable
36956         * top/maint.mk (VC-tag): Remove unused variable.
36958 2011-04-29  Bruno Haible  <bruno@clisp.org>
36960         netdb: fix gai_strerror replacements
36961         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
36962         * modules/netdb: Substitute it.
36964 2011-04-29  Jim Meyering  <meyering@redhat.com>
36966         test-getcwd.c: avoid new set-but-not-used warning
36967         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
36968         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
36969         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
36970         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
36972         test-hash.c: avoid a new shadowing warning
36973         * tests/test-hash.c (main): Don't shadow "dup".
36975 2011-04-28  Eric Blake  <eblake@redhat.com>
36977         getaddrinfo: fix gai_strerror signature
36978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
36979         and work around mingw with UNICODE defined.
36980         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
36981         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
36982         * modules/netdb (Makefile.am): Substitute it.
36983         * lib/netdb.in.h (gai_strerror): Declare replacement.
36984         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
36985         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
36986         the fix.
36988         getsockopt: avoid compiler warning
36989         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
36990         Reported by Matthias Bolte.
36992         tests: drop unused link dependency
36993         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
36994         * modules/dirent-safer-tests (Makefile.am): Likewise.
36995         * modules/fdopendir-tests (Makefile.am): Likewise.
36996         * modules/mkfifoat-tests (Makefile.am): Likewise.
36997         * modules/openat-safer-tests (Makefile.am): Likewise.
36998         * modules/openat-tests (Makefile.am): Likewise.
36999         * modules/readlinkat-tests (Makefile.am): Likewise.
37000         * modules/symlinkat-tests (Makefile.am): Likewise.
37001         * modules/linkat-tests (Makefile.am): Likewise.
37002         (Depends-on): Switch to filenamecat-lgpl.
37003         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
37004         LIBINTL.
37005         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
37006         * tests/test-linkat.c (main): Don't require xalloc.
37008         hash, mgetgroups: drop xalloc dependency
37009         * lib/hash.c (includes): Adjust includes.
37010         * lib/mgetgroups.c (includes): Likewise.
37011         (xgetgroups): Move...
37012         * lib/xgetgroups.c: ...to new file.
37013         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
37014         * modules/xgetgroups: New file, split from...
37015         * modules/mgetgroups: ...here.
37016         (Depends-on): Add xalloc-oversized.
37017         * modules/hash (Depends-on): Likewise.
37018         * modules/hash-tests (Depends-on): Drop xalloc.
37019         (test_hash_LDADD): Drop unused library.
37020         * tests/test-hash.c (main): Break xalloc dependency.
37021         (includes): Drop unused include.
37023         xalloc-oversized: new module
37024         * modules/xalloc-oversized: New module.
37025         * modules/xalloc (Depends-on): Add it.
37026         * lib/xalloc.h (xalloc_oversized): Move...
37027         * lib/xalloc-oversized.h: ...into new file.
37029         utimecmp: drop dependency on xmalloc
37030         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
37031         due to memory pressure.
37032         * modules/utimecmp (Depends-on): Drop xalloc.
37034 2011-04-27  Eric Blake  <eblake@redhat.com>
37036         getcwd: fix mingw bugs
37037         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
37038         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
37039         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
37041 2011-04-27  Bruno Haible  <bruno@clisp.org>
37043         mkstemps: Ensure declaration on MacOS X 10.5.
37044         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
37045         * doc/glibc-functions/mkstemps.texi: Document header file problem on
37046         MacOS X.
37048 2011-04-27  Bruno Haible  <bruno@clisp.org>
37050         mkstemp: More documentation.
37051         * doc/posix-functions/mkstemp.texi: Document header file problem on
37052         MacOS X.
37054 2011-04-27  Bruno Haible  <bruno@clisp.org>
37056         mkstemp: Tweak configure message when cross-compiling.
37057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
37058         result as a guess.
37060 2011-04-27  Bruno Haible  <bruno@clisp.org>
37062         clean-temp: Clarify what it does.
37063         * lib/clean-temp.h: Add more comments.
37064         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
37065         module.
37066         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
37067         * doc/glibc-functions/mkstemps.texi: Likewise.
37068         * doc/glibc-functions/mkostemps.texi: Likewise.
37070 2011-04-27  Eric Blake  <eblake@redhat.com>
37072         fchdir: avoid extra chdir and fix test
37073         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
37074         getcwd-lgpl.
37075         * lib/fchdir.c (get_name): Any absolute name will do; it does not
37076         have to be canonical.
37077         (canonicalize_file_name): Drop unused macro.
37078         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
37080         filenamecat-lgpl: fix licence
37081         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
37082         when it was first created.
37084         linkat, renameat: add missing dependency
37085         * modules/linkat (Depends-on): Require getcwd-lgpl.
37086         * modules/renameat (Depends-on): Likewise.
37088         tests: reduce dependencies
37089         * tests/test-linkat.c (main): Use lighter-weight getcwd.
37090         * tests/test-renameat.c (main): Likewise.
37091         * modules/linkat-tests (Depends-on): Relax dependency.
37092         * modules/renameat-tests (Depends-on): Likewise.
37093         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
37094         dependency explicit.
37096         save-cwd: reduce default dependency
37097         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
37098         * lib/save-cwd.c: Update comments.
37099         * NEWS: Document the semantic change.
37101         getcwd: enhance tests
37102         * tests/test-getcwd-lgpl.c: New file, taken from...
37103         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
37104         repeat long path stress tests from m4 probe.
37105         * modules/getcwd-lgpl-tests: New module.
37106         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
37107         * m4/getcwd-abort-bug.m4: Update comment.
37108         * m4/getcwd-path-max.m4: Likewise.
37110         getcwd-lgpl: new module
37111         * modules/getcwd-lgpl: New module.
37112         * lib/getcwd-lgpl.c: New file.
37113         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37114         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37115         * modules/getcwd (configure.ac): Set C witness.
37116         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
37118         getcwd: tweak comments
37119         * m4/getcwd-abort-bug.m4: Fix comments.
37120         * m4/getcwd-path-max.m4: Likewise.
37121         * m4/getcwd.m4: Likewise.
37123 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37124         and Eric Blake  <eblake@redhat.com>
37126         mkstemp: replace if system version uses wrong permissions
37127         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
37128         read/write mode bits set in file created by mkstemp.
37129         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
37131 2011-04-27  Eric Blake  <eblake@redhat.com>
37133         passfd: avoid compiler warning
37134         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
37135         Reported by Laine Stump.
37137 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
37139         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
37140         required by the NetBSD (and perhaps other 4.4BSD derived) join.
37142 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37143         and Eric Blake  <eblake@redhat.com>
37145         mkstemp: mention clean-temp module
37146         * lib/mkstemp.c: Add comment.
37147         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
37149 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
37151         inttypes: also provide default values for 32-bit tests
37152         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
37153         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
37155 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
37157         strtoumax: remove dependency on strtoimax
37158         This is like the strtoull change of yesterday.
37159         * modules/strtoumax (Files): Add lib/strtoimax.c.
37160         (Depends-on): Remove strtoimax and add verify.
37162         inttypes-incomplete: new module
37163         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
37164         all but the PRI* and SCN* parts of gl_INTTYPES_H.
37165         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
37166         of gl_INTTYPES_H.
37167         (gl_INTTYPES_H): Rewrite in terms of these new macros.
37168         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
37169         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
37170         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
37171         * modules/strtoumax, modules/xstrtol (Depends-on):
37172         Depend on inttypes-incomplete, not inttypes.
37173         * modules/inttypes-incomplete: New module, containing the contents
37174         of the old modules/inttypes module, except that the Files: section
37175         omits m4/inttypes-pri.m4, and the configure.ac section invokes
37176         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
37177         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
37178         (Depends-on): Depend only on inttypes-incomplete.
37179         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
37181         inttypes: omit now-redundant strtoimax and strtoumax work
37182         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
37183         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
37185         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
37186         This supports apps that need pointers to strtoimax and strtoumax,
37187         and ports to HP-UX 11.00 64.bit, which has macros that expand to
37188         nonexistent functions.  See
37189         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
37190         et seq.
37191         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
37192         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
37193         a macro.
37194         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37196 2011-04-25  Simon Josefsson  <simon@josefsson.org>
37198         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
37200 2011-04-25  Bruno Haible  <bruno@clisp.org>
37202         strtol, strtoul: Mark modules as obsolete.
37203         * modules/strtol (Status, Notice): New sections.
37204         * modules/strtoul (Status, Notice): New sections.
37206 2011-04-25  Bruno Haible  <bruno@clisp.org>
37208         strtod: Remove check for strtod, unless supporting old platforms.
37209         * modules/strtod-obsolete: New file.
37210         * m4/strtod-obsolete.m4: New file.
37211         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
37212         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
37213         * modules/strtod (Depends-on): Add strtod-obsolete.
37214         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
37216 2011-04-25  Bruno Haible  <bruno@clisp.org>
37218         strcase: Make module obsolete.
37219         * modules/strcase (Status, Notice): New sections.
37221 2011-04-25  Bruno Haible  <bruno@clisp.org>
37223         dup2: Remove check for dup2, unless supporting old obsolete platforms.
37224         * modules/dup2-obsolete: New file.
37225         * m4/dup2-obsolete.m4: New file.
37226         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
37227         gl_FUNC_DUP2_OBSOLETE is not also defined.
37228         * modules/dup2 (Depends-on): Add dup2-obsolete.
37229         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
37231 2011-04-25  Bruno Haible  <bruno@clisp.org>
37233         strnlen: Avoid memchr related link error on old obsolete platforms.
37234         * modules/memchr-obsolete: New file.
37235         * m4/memchr-obsolete.m4: New file.
37236         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
37237         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
37238         * modules/memchr (Depends-on): Add memchr-obsolete.
37239         * modules/strnlen (Depends-on): Likewise.
37240         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
37242 2011-04-25  Jim Meyering  <meyering@redhat.com>
37244         maint.mk: makefile_at_at_check extend and clean up
37245         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
37246         in addition to */Makefile.am.
37247         Exempt legitimate uses of @VAR@ notation, e.g.,
37248         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
37249         Remove obsolete coreutils-specific comment.
37250         Prompted by discussion here:
37251         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
37253 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
37255         strtoul: remove dependency on strtol
37256         This is so that 'configure' need not check for strtol merely because
37257         the application needs strtoul.
37258         * modules/strtoul (Files): Add lib/strtol.c.
37259         (Depends-on): Remove strtol.
37261         strtoull: remove dependency on strtoul
37262         This is like the strtoll change.
37263         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
37264         (Depends-on): Remove strtoul.
37266         strtoll: remove dependency on strtol
37267         This is so that 'configure' need not check for strtol merely because
37268         the application needs strtoll.
37269         * modules/strtoll (Files): Add lib/strtol.c.
37270         (Depends-on): Remove strtol.
37272 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37274         inttypes: Move some configure check to module 'imaxdiv'.
37275         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
37276         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
37277         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
37279 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37281         inttypes: Move some configure check to module 'imaxabs'.
37282         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
37283         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
37284         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
37286 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37288         inttypes: Remove configure tests that are not needed since 2009-12-31.
37289         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
37290         gl_cv_header_working_inttypes_h.
37292 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37294         * modules/strnlen (Depends-on): Remove memchr.
37295         The strnlen implementation doesn't need the memchr module's fixes; see
37296         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
37298         strtol: remove dependency on wchar
37299         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
37300         * modules/strtol (Depends-on): Remove wchar.
37302 2011-04-21  Eric Blake  <eblake@redhat.com>
37304         passfd: fix test regression on Linux
37305         * modules/passfd-tests (configure.ac): Correct socketpair check.
37307         passfd: speed up configure and drop unused code
37308         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
37309         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
37310         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
37311         Instead of probing at configure for unix_scm_rights_bsd44_way,
37312         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
37313         check to a struct member probe.
37314         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
37315         (sendfd, recvfd): Update preprocessor checks.
37316         * modules/passfd (Files): Reflect rename, and drop unused file.
37317         (Depends-on): Drop unused dependency.
37319         passfd: allow compilation on mingw
37320         * modules/sys_socket (Depends-on): Add sys_uio.
37321         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
37322         iovec and a minimal struct msghdr.
37323         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
37324         * tests/test-sys_socket.c (main): Enhance test.
37325         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
37326         guaranteed to provide what we need.
37327         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
37328         * modules/passfd-tests (Depends-on): Add sys_wait.
37329         * tests/test-passfd.c (main): Skip test on mingw, for now.
37330         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
37331         partial 'struct msghdr' implementation.
37333         sys_uio: new module
37334         * modules/sys_uio: New module.
37335         * modules/sys_uio-tests: Likewise.
37336         * lib/sys_uio.in.h: New file.
37337         * m4/sys_uio_h.m4: Likewise.
37338         * tests/test-sys_uio.c: Likewise.
37339         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
37340         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
37342 2011-04-20  Jim Meyering  <meyering@redhat.com>
37344         useless-if-before-free: avoid false-positive
37345         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
37346         disjunct so that it too requires a terminating ";".  Without that,
37347         this script would identify as useless one statement from gcc that
37348         was not:
37349           if (aligned_ptr)
37350             free (((void **) aligned_ptr) [-1]);
37352 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
37354         doc: update users.txt.
37355         * users.txt: Add barcode.
37357 2011-04-19  Bruno Haible  <bruno@clisp.org>
37359         ioctl: Remove link dependency on native Windows.
37360         * lib/fd-hook.h: Renamed from lib/close-hook.h.
37361         (gl_close_fn, gl_ioctl_fn): New types.
37362         (struct fd_hook): Renamed from struct close_hook. Change type of
37363         private_close_fn field. Add private_ioctl_fn field.
37364         (close_hook_fn): Add parameter for primary close method.
37365         (execute_close_hooks, execute_all_close_hooks): Likewise.
37366         (ioctl_hook_fn): New type.
37367         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
37368         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
37369         argument.
37370         (unregister_fd_hook): Renamed from unregister_close_hook.
37371         * lib/fd-hook.c: Renamed from lib/close-hook.c.
37372         Don't include <unistd.h>.
37373         (close): Remove undef.
37374         (anchor): Update.
37375         (execute_close_hooks): Add argument for primary close method.
37376         (execute_all_close_hooks): Likewise.
37377         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
37378         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
37379         argument. Allow each argument to be NULL.
37380         (unregister_fd_hook): Renamed from unregister_close_hook.
37381         * lib/close.c (rpl_close): Pass 'close' function pointer to
37382         execute_all_close_hooks.
37383         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
37384         (primary_ioctl): New function.
37385         (ioctl): Don't call ioctlsocket here. Instead, call
37386         execute_all_ioctl_hooks.
37387         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
37388         close method.
37389         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
37390         (fd_sockets_hook): Renamed from close_sockets_hook.
37391         (gl_sockets_startup, gl_sockets_cleanup): Update.
37392         * modules/fd-hook: Renamed from modules/close-hook. Update.
37393         * modules/close (Depends-on): Add fd-hook, remove close-hook.
37394         * modules/sockets (Depends-on): Likewise.
37395         * modules/ioctl (Depends-on): Add fd-hook.
37396         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
37397         GNULIB_SOCKET.
37399 2011-04-19  Bruno Haible  <bruno@clisp.org>
37401         Move the support of O_NONBLOCK in open() to the 'open' module.
37402         * modules/nonblocking (Depends-on): Remove 'open'.
37403         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
37404         gl_cv_have_open_O_NONBLOCK.
37405         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
37406         O_NONBLOCK support.
37407         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
37409 2011-04-17  Bruno Haible  <bruno@clisp.org>
37411         pipe2: Simplify code.
37412         * lib/pipe2.c (pipe2): Reduce code duplication.
37414 2011-04-17  Bruno Haible  <bruno@clisp.org>
37416         nonblocking: Add comment.
37417         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
37419 2011-04-17  Bruno Haible  <bruno@clisp.org>
37421         nonblocking: Add tests for sockets.
37422         * tests/test-nonblocking-socket.sh: New file.
37423         * tests/test-nonblocking-socket-main.c: New file.
37424         * tests/test-nonblocking-socket-child.c: New file.
37425         * tests/test-nonblocking-socket.h: New file.
37426         * tests/socket-server.h: New file.
37427         * tests/socket-client.h: New file.
37428         * modules/nonblocking-socket-tests: New file.
37429         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
37431 2011-04-17  Bruno Haible  <bruno@clisp.org>
37433         nonblocking: Add tests for pipes.
37434         * tests/test-nonblocking-pipe.sh: New file.
37435         * tests/test-nonblocking-pipe-main.c: New file.
37436         * tests/test-nonblocking-pipe-child.c: New file.
37437         * tests/test-nonblocking-pipe.h: New file.
37438         * tests/test-nonblocking-writer.h: New file.
37439         * tests/test-nonblocking-reader.h: New file.
37440         * tests/test-nonblocking-misc.h: New file.
37441         * modules/nonblocking-pipe-tests: New file.
37442         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
37444 2011-04-16  Bruno Haible  <bruno@clisp.org>
37446         gettext: Clarify the needed programmer actions.
37447         * modules/gettext (Notice): New field.
37448         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37450 2011-04-16  Bruno Haible  <bruno@clisp.org>
37452         strchrnul: Tweak last commit.
37453         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
37454         bug.
37455         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
37456         as in _GL_FUNCDECL_SYS.
37457         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
37458         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
37460 2011-04-15  Eric Blake  <eblake@redhat.com>
37462         strchrnul: work around cygwin bug
37463         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
37464         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
37465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
37466         * modules/string (Makefile.am): Substitute it.
37467         * lib/string.in.h (strchrnul): Use it.
37469 2011-04-15  Bruno Haible  <bruno@clisp.org>
37471         Don't require lib/stdio-write.c when only module 'stdio' is used.
37472         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
37473         invocation.
37474         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
37476 2011-04-14  Bruno Haible  <bruno@clisp.org>
37478         Support non-blocking pipe I/O in read() on native Windows.
37479         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
37480         (read): New declaration.
37481         * lib/read.c: New file.
37482         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
37483         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
37484         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
37485         vscanf): New declarations.
37486         * lib/stdio-read.c: New file.
37487         * m4/read.m4: New file.
37488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
37489         REPLACE_READ.
37490         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
37491         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37492         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
37493         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
37494         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
37495         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37496         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
37497         * modules/read: New file.
37498         * modules/nonblocking (Files): Add lib/stdio-read.c.
37499         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
37500         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
37501         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37502         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
37503         * modules/pread (Depends-on): Add read.
37504         * modules/safe-read (Depends-on): Likewise.
37505         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
37506         gets, scanf, vfscanf, vscanf): Verify signatures.
37507         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
37508         problem with non-blocking pipes.
37509         * doc/posix-functions/fgetc.texi: Likewise.
37510         * doc/posix-functions/fgets.texi: Likewise.
37511         * doc/posix-functions/fread.texi: Likewise.
37512         * doc/posix-functions/fscanf.texi: Likewise.
37513         * doc/posix-functions/getc.texi: Likewise.
37514         * doc/posix-functions/getchar.texi: Likewise.
37515         * doc/posix-functions/gets.texi: Likewise.
37516         * doc/posix-functions/scanf.texi: Likewise.
37517         * doc/posix-functions/vfscanf.texi: Likewise.
37518         * doc/posix-functions/vscanf.texi: Likewise.
37520 2011-04-14  Bruno Haible  <bruno@clisp.org>
37522         Support non-blocking pipe I/O in write() on native Windows.
37523         * lib/write.c (rpl_write): Split a write request that failed merely
37524         because the byte count was larger than the pipe buffer's size.
37525         * doc/posix-functions/write.texi: Mention the problem with large byte
37526         counts.
37528 2011-04-14  Bruno Haible  <bruno@clisp.org>
37530         wchar: Ensure that wchar_t gets defined on uClibc.
37531         * lib/wchar.in.h: On uClibc, include <stddef.h>.
37532         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
37534 2011-04-13  Bruno Haible  <bruno@clisp.org>
37536         safe-write, full-read: Avoid unnecessary compilation units.
37537         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
37538         (Depends-on): Remove safe-read. Add ssize_t.
37539         * modules/full-read (Files): Add lib/full-write.c.
37540         (Depends-on): Add full-write.
37542 2011-04-13  Bruno Haible  <bruno@clisp.org>
37544         Support non-blocking pipe I/O and SIGPIPE in pwrite().
37545         * modules/pwrite (Depends-on): Add 'write'.
37547 2011-04-13  Bruno Haible  <bruno@clisp.org>
37549         Support non-blocking pipe I/O in write() on native Windows.
37550         * lib/unistd.in.h (write): Enable replacement also if
37551         GNULIB_UNISTD_H_NONBLOCKING is 1.
37552         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
37553         (rpl_write): When failing to write on a non-blocking pipe, change
37554         errno from ENOSPC to EAGAIN.
37555         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
37556         putchar, puts, vfprintf, vprintf): Enable replacement also if
37557         GNULIB_STDIO_H_NONBLOCKING is 1.
37558         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
37559         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
37560         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
37561         CALL_WITH_SIGPIPE_EMULATION.
37562         (CALL_WITH_SIGPIPE_EMULATION): Use them.
37563         * m4/nonblocking.m4: New file.
37564         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
37565         for non-blocking I/O support.
37566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37567         GNULIB_UNISTD_H_NONBLOCKING.
37568         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
37569         required for non-blocking I/O support.
37570         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
37571         * modules/nonblocking (Files): Add m4/nonblocking.m4,
37572         lib/stdio-write.c, m4/asm-underscore.m4.
37573         (Depends-on): Add stdio, unistd.
37574         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
37575         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
37576         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
37577         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
37578         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
37579         problem with non-blocking pipes.
37580         * doc/posix-functions/fputc.texi: Likewise.
37581         * doc/posix-functions/fputs.texi: Likewise.
37582         * doc/posix-functions/fwrite.texi: Likewise.
37583         * doc/posix-functions/printf.texi: Likewise.
37584         * doc/posix-functions/putc.texi: Likewise.
37585         * doc/posix-functions/putchar.texi: Likewise.
37586         * doc/posix-functions/puts.texi: Likewise.
37587         * doc/posix-functions/vfprintf.texi: Likewise.
37588         * doc/posix-functions/vprintf.texi: Likewise.
37589         * doc/posix-functions/write.texi: Likewise.
37591 2011-04-10  Jim Meyering  <meyering@redhat.com>
37593         maint.mk: prohibit doubled words
37594         Detect them also when they're separated by a newline.
37595         There are 3 ways to customize it:
37596           - disable the test on a per file basis, as usual with rules using
37597             $(VC_LIST_EXCEPT)
37598           - replace the default doubled-word-selecting regexp (affects all files)
37599           - ignore a particular file-vs-doubled-word match
37600         I nearly used that last one to ignore the "is is" match in
37601         coreutils' NEWS file, since the text was "ls -is is ..."
37602         To do that, I would have added this line to cfg.mk:
37603           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
37604         but it would have ignored any "is is" match in NEWS.
37605         Low probability, but still...
37606         Instead, I changed the text, slightly:
37607           -  ls -is is now consistent with ls -lis in ignoring values returned
37608           +  "ls -is" is now consistent with ls -lis in ignoring values returned
37609         * top/maint.mk (prohibit_double_word_RE_): Provide default.
37610         (prohibit_doubled_word_): Define.
37611         (sc_prohibit_doubled_word): New rule.
37612         (sc_prohibit_the_the): Remove.  Subsumed by the above.
37614 2011-04-10  Jim Meyering  <meyering@redhat.com>
37616         maint: fix doubled-word typo in comment
37617         * m4/gethostname.m4: s/is is/it is/
37618         * m4/getdomainname.m4: Likewise.
37620 2011-04-10  Jim Meyering  <meyering@redhat.com>
37622         maint: remove doubled word: s/it it/it/
37623         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
37625 2011-04-10  Jim Meyering  <meyering@redhat.com>
37627         maint.mk: remove useless semicolon and backslash
37628         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
37629         semicolon and backslash.
37631 2011-04-10  Bruno Haible  <bruno@clisp.org>
37633         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
37634         * modules/stdint-tests (Depends-on): Add wchar.
37636 2011-04-10  Jim Meyering  <meyering@redhat.com>
37638         maint: remove doubled words in comments, e.g., s/a a/a/
37639         * lib/strptime.c (day_of_the_week): s/the the/the/
37640         * tests/test-chown.h (test_chown): s/a a/a/
37642         test-chown.h: correct a cast
37643         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
37644         when the destination is a stat.st_gid.
37646 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
37648         getaddrinfo: Fix test for sa_len member.
37649         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
37650         include <sys/types.h> before <sys/socket.h>.
37652 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37654         maint: change "can not" to "cannot"
37655         * doc/posix-functions/iconv.texi (iconv): This one crossed line
37656         boundaries.
37658 2011-04-09  Jim Meyering  <meyering@redhat.com>
37660         maint: change "a a" to "a"
37661         * tests/test-lchown.h (test_lchown): s/a a/a/
37663         maint.mk: prohibit \<the the\>
37664         * top/maint.mk (sc_prohibit_the_the): New rule.
37666         maint: fix "the the" in comment
37667         * lib/count-one-bits.h: s/the the/the/
37669         maint: change "can not" to "cannot"
37670         But do not change the occurrences in maintain.texi or in
37671         build-aux/po/Makefile.in.in, which I presume comes from gettext.
37672         * doc/gnulib-tool.texi: s/can not/cannot/
37673         * doc/posix-functions/accept.texi (accept): Likewise.
37674         * doc/posix-functions/socket.texi (socket): Likewise.
37675         * lib/mbrtowc.c: Likewise.
37677         maint.mk: prohibit use of "can not"
37678         * top/maint.mk (sc_prohibit_can_not): New rule.
37679         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
37681 2011-04-09  Bruno Haible  <bruno@clisp.org>
37683         careadlinkat: Guard against misuse of careadlinkatcwd.
37684         * lib/careadlinkat.c: Include <stdlib.h>.
37685         (careadlinkatcwd): Check that the fd argument is as expected.
37687 2011-04-09  Bruno Haible  <bruno@clisp.org>
37689         careadlinkat: Use common coding style.
37690         * lib/careadlinkat.c: Move gnulib includes after system includes.
37692 2011-04-09  Bruno Haible  <bruno@clisp.org>
37694         careadlinkat: Clarify specification.
37695         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
37696         (careadlinkatcwd): Add comment.
37697         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
37699 2011-04-09  Bruno Haible  <bruno@clisp.org>
37701         areadlinkat: Avoid link error on many platforms.
37702         * modules/areadlinkat (Depends-on): Add areadlink.
37704 2011-04-09  Bruno Haible  <bruno@clisp.org>
37706         allocator, careadlinkat: Fix double-inclusion guard.
37707         * lib/allocator.h: Fix double-inclusion guard.
37708         * lib/careadlinkat.h: Likewise.
37710 2011-04-09  Bruno Haible  <bruno@clisp.org>
37712         relocatable-prog-wrapper: Update after module 'areadlink' changed.
37713         * lib/relocwrapper.c: Update dependencies hierarchy.
37714         * build-aux/install-reloc: Update list of files to be compiled.
37715         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
37716         lib/allocator.[hc].
37718 2011-04-08  Eric Blake  <eblake@redhat.com>
37720         strftime: silence gnulib-tool warning
37721         * modules/strftime-tests (Depends-on): Drop automatic dependency.
37723 2011-04-08  Bruno Haible  <bruno@clisp.org>
37725         verify: Fix syntax error with GCC 4.6 in C++ mode.
37726         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
37727         (HAVE_STATIC_ASSERT): New macro.
37728         (verify_true, verify): Use 'static_assert' if it is supported and
37729         '_Static_assert' is not supported.
37731 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
37733         allocator: New module.
37734         * modules/allocator, lib/allocator.c: New files.
37735         * lib/allocator.h (stdlib_allocator): New decl.
37736         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
37737         Remove.  Do not include <stdlib.h>.
37738         (careadlinkat): Use stdlib_allocator instead of rolling our own.
37739         * modules/careadlinkat (Files): Remove lib/allocator.h.
37740         (Depends-on): Add allocator.
37742         stdlib: let modules use system malloc, realloc
37743         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
37744         if !_GL_USE_STDLIB_ALLOC.
37745         (malloc, realloc): Limit this change to a smaller scope.
37747         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
37748         (malloc, realloc): Don't #undef; no longer needed.
37749         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37750         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37751         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37752         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37753         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37754         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37755         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37756         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37758         careadlinkat: rename members to avoid problem
37759         * lib/allocator.h (struct allocator): Rename members from
37760         malloc/realloc to allocate/reallocate, to avoid problems if malloc
37761         and realloc are #define'd.  Reported by Eric Blake in
37762         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
37763         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
37765 2011-04-08  Eric Blake  <eblake@redhat.com>
37767         nonblocking: reduce dependency
37768         * tests/test-nonblocking.c: Only test sockets when in use.
37769         * modules/nonblocking-tests (Depends-on): Drop socket.
37770         (Makefile.am): Link even if sockets are not present.
37771         * modules/pipe2-tests (Makefile.am): Likewise.
37772         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
37774         pipe2: fix O_NONBLOCK support on mingw
37775         * modules/pipe2 (Depends-on): Add nonblocking.
37776         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
37777         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
37778         * tests/test-nonblocking.c (main): Likewise.
37779         * modules/pipe2-tests (Makefile.am): Avoid link failure.
37781         fcntl-h: fix O_ACCMODE on cygwin
37782         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
37783         * lib/fcntl.in.h (O_ACCMODE): Fix it.
37785         pipe-filter: drop O_NONBLOCK workarounds
37786         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
37787         * modules/pipe-filter-ii (Depends-on): Likewise.
37788         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
37790         nonblocking: provide O_NONBLOCK for mingw
37791         * modules/nonblocking (Depends-on): Add open.
37792         (configure.ac): Set new witness macro.
37793         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
37794         * modules/fcntl-h (Makefile.am): Substitute it.
37795         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
37796         nonblocking module is in use.
37797         * lib/nonblocking.c: Adjust portability test.
37798         * lib/open.c (open): Don't let native open see gnulib flag.
37799         * tests/test-fcntl-h.c (main): Enhance test.
37800         * tests/test-open.h (test_open): Likewise.
37801         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
37803         careadlinkat: fix compilation error on mingw
37804         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
37805         within struct allocator.
37807 2011-04-06  Eric Blake  <eblake@redhat.com>
37809         binary-io: relicense under LGPLv2+
37810         * modules/binary-io (License): Relax to LGPLv2+.
37811         Requested for libvirt, and required by pipe2.
37813 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
37815         verify: use _Static_assert if available
37816         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
37817         (verify_true, verify): Use it if available.  This generates better
37818         diagnostics with GCC 4.6.0 and later.
37820 2011-04-05  Bruno Haible  <bruno@clisp.org>
37822         Remove leftover generated .h files after config.status changed.
37824         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
37825         GL_GENERATE_ALLOCA_H.
37826         * modules/alloca-opt (Makefile.am): Remove alloca.h if
37827         GL_GENERATE_ALLOCA_H evaluates to false.
37829         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
37830         GL_GENERATE_ARGZ_H.
37831         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
37832         evaluates to false.
37834         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
37835         GL_GENERATE_BYTESWAP_H.
37836         * modules/byteswap (Makefile.am): Remove byteswap.h if
37837         GL_GENERATE_BYTESWAP_H evaluates to false.
37839         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
37840         GL_GENERATE_ERRNO_H.
37841         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
37842         evaluates to false.
37844         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
37845         GL_GENERATE_FLOAT_H.
37846         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
37847         evaluates to false.
37849         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
37850         GL_GENERATE_FNMATCH_H.
37851         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
37852         GL_GENERATE_FNMATCH_H evaluates to false.
37854         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
37855         GL_GENERATE_GLOB_H.
37856         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
37857         evaluates to false.
37859         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
37860         automake conditional GL_GENERATE_ICONV_H.
37861         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
37862         evaluates to false.
37864         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
37865         GL_GENERATE_NETINET_IN_H.
37866         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
37867         GL_GENERATE_NETINET_IN_H evaluates to false.
37869         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
37870         conditional GL_GENERATE_PTHREAD_H.
37871         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
37872         * modules/pthread (Makefile.am): Remove pthread.h if
37873         GL_GENERATE_PTHREAD_H evaluates to false.
37875         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
37876         GL_GENERATE_SCHED_H.
37877         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
37878         evaluates to false.
37880         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
37881         conditional GL_GENERATE_SELINUX_CONTEXT_H.
37882         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
37883         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
37885         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
37886         GL_GENERATE_STDARG_H.
37887         * modules/stdarg (Makefile.am): Remove stdarg.h if
37888         GL_GENERATE_STDARG_H evaluates to false.
37890         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
37891         GL_GENERATE_STDBOOL_H.
37892         * modules/stdbool (Makefile.am): Remove stdbool.h if
37893         GL_GENERATE_STDBOOL_H evaluates to false.
37895         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
37896         conditional GL_GENERATE_STDDEF_H.
37897         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
37898         * modules/stddef (Makefile.am): Remove stddef.h if
37899         GL_GENERATE_STDDEF_H evaluates to false.
37901         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
37902         GL_GENERATE_STDINT_H.
37903         * modules/stdint (Makefile.am): Remove stdint.h if
37904         GL_GENERATE_STDINT_H evaluates to false.
37906         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
37907         GL_GENERATE_SYSEXITS_H.
37908         * modules/sysexits (Makefile.am): Remove sysexits.h if
37909         GL_GENERATE_SYSEXITS_H evaluates to false.
37911         Reported by Karl Berry and Ralf Wildenhues.
37913 2011-04-05  Bruno Haible  <bruno@clisp.org>
37915         Ensure to rebuild generated .h files when config.status has changed.
37916         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
37917         config.status.
37918         * modules/ctype (Makefile.am): Likewise.
37919         * modules/dirent (Makefile.am): Likewise.
37920         * modules/errno (Makefile.am): Likewise.
37921         * modules/fcntl-h (Makefile.am): Likewise.
37922         * modules/float (Makefile.am): Likewise.
37923         * modules/getopt-posix (Makefile.am): Likewise.
37924         * modules/glob (Makefile.am): Likewise.
37925         * modules/iconv-h (Makefile.am): Likewise.
37926         * modules/inttypes (Makefile.am): Likewise.
37927         * modules/langinfo (Makefile.am): Likewise.
37928         * modules/locale (Makefile.am): Likewise.
37929         * modules/math (Makefile.am): Likewise.
37930         * modules/netdb (Makefile.am): Likewise.
37931         * modules/netinet_in (Makefile.am): Likewise.
37932         * modules/poll-h (Makefile.am): Likewise.
37933         * modules/pthread (Makefile.am): Likewise.
37934         * modules/pty (Makefile.am): Likewise.
37935         * modules/sched (Makefile.am): Likewise.
37936         * modules/search (Makefile.am): Likewise.
37937         * modules/selinux-h (Makefile.am): Likewise.
37938         * modules/signal (Makefile.am): Likewise.
37939         * modules/spawn (Makefile.am): Likewise.
37940         * modules/stdarg (Makefile.am): Likewise.
37941         * modules/stdbool (Makefile.am): Likewise.
37942         * modules/stddef (Makefile.am): Likewise.
37943         * modules/stdint (Makefile.am): Likewise.
37944         * modules/stdio (Makefile.am): Likewise.
37945         * modules/stdlib (Makefile.am): Likewise.
37946         * modules/string (Makefile.am): Likewise.
37947         * modules/strings (Makefile.am): Likewise.
37948         * modules/sys_file (Makefile.am): Likewise.
37949         * modules/sys_ioctl (Makefile.am): Likewise.
37950         * modules/sys_select (Makefile.am): Likewise.
37951         * modules/sys_socket (Makefile.am): Likewise.
37952         * modules/sys_stat (Makefile.am): Likewise.
37953         * modules/sys_time (Makefile.am): Likewise.
37954         * modules/sys_times (Makefile.am): Likewise.
37955         * modules/sys_utsname (Makefile.am): Likewise.
37956         * modules/sys_wait (Makefile.am): Likewise.
37957         * modules/sysexits (Makefile.am): Likewise.
37958         * modules/termios (Makefile.am): Likewise.
37959         * modules/time (Makefile.am): Likewise.
37960         * modules/unistd (Makefile.am): Likewise.
37961         * modules/wchar (Makefile.am): Likewise.
37962         * modules/wctype-h (Makefile.am): Likewise.
37963         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
37965 2011-04-05  Bruno Haible  <bruno@clisp.org>
37967         pipe2: Relicense under LGPLv2+.
37968         * modules/pipe2 (License): Change to LGPLv2+.
37969         Requested by Eric Blake, for libvirt.
37971 2011-04-05  Bruce Korb  <bkorb@gnu.org>
37973         bootstrap: compute gnulib_extra_files after updating build_aux
37974         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
37975         change build_aux or also supply gnulib_extra_files.  Handle correctly.
37977 2011-04-05  Eric Blake  <eblake@redhat.com>
37979         bootstrap: preserve git whitelist item sorting
37980         * build-aux/bootstrap (sort_patterns): New function.
37981         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
37983 2011-04-05  Simon Josefsson  <simon@josefsson.org>
37985         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
37986         sc_space_tab check.
37988 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
37990         areadlink, areadlinkat: rewrite in terms of careadlinkat
37991         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
37992         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
37993         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
37994         (malloc, realloc): Remove #undefs.
37995         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
37996         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
37997         readlink, ssize_t, stdint, unistd.
37998         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
37999         areadlink, stdint.
38001         careadlinkat: new module
38002         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
38003         * modules/careadlinkat: New files, written by me with
38004         a review and feedback from Ben Pfaff in
38005         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
38007 2011-04-01  Bruno Haible  <bruno@clisp.org>
38009         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
38010         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
38011         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
38012         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
38013         Reported by Bruce Korb <bruce.korb@gmail.com>.
38015 2011-04-01  Bruno Haible  <bruno@clisp.org>
38017         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
38018         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
38019         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
38020         * modules/wcpcpy (Depends-on): Add extensions.
38021         * modules/wcpncpy (Depends-on): Likewise.
38022         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
38023         systems.
38024         * doc/posix-functions/wcpncpy.texi: Likewise.
38025         * doc/posix-functions/wcwidth.texi: Likewise.
38027 2011-03-31  Eric Blake  <eblake@redhat.com>
38029         nonblocking: fix mingw test failures
38030         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
38031         non-blocking flag on regular file.
38032         (get_nonblocking_flag): Set errno on invalid fd.
38033         * tests/test-nonblocking.c (main): Avoid test failure on
38034         directories if fchdir is not active.
38035         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
38037 2011-03-31  Bruno Haible  <bruno@clisp.org>
38039         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
38040         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
38041         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
38042         Reported by Simon Josefsson <simon@josefsson.org>.
38044 2011-03-31  Bruno Haible  <bruno@clisp.org>
38045         and Eric Blake  <eblake@redhat.com>
38047         nonblocking: new module
38048         * modules/nonblocking: New module.
38049         * modules/nonblocking-tests: Likewise.
38050         * lib/nonblocking.h: New file.
38051         * lib/nonblocking.c: Likewise.
38052         * tests/test-nonblocking.c: New test.
38053         * lib/ioctl.c (ioctl) [mingw]: Update comment.
38055 2011-03-30  Bruno Haible  <bruno@clisp.org>
38057         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
38058         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
38059         instead of 'printf' format for GCC >= 4.4.
38060         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
38061         (fprintf, printf, vfprintf, vprintf): Declare with
38062         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
38063         the system's vfprintf() function.
38064         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
38066 2011-03-30  Eric Blake  <eblake@redhat.com>
38068         passfd: fix scoping bug
38069         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
38070         before sendmsg/recvmsg.
38072         passfd: standardize coding conventions
38073         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
38074         can be learned at compile time.
38075         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
38076         ifdefs.
38077         (sendfd, recvfd): Follow gnulib code conventions.
38079         passfd: fix incorrect sendmsg arguments
38080         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
38081         incorrect msg_controllen value.
38082         * modules/passfd-tests (Depends-on): Check for alarm.
38083         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
38084         Reported by Bastien ROUCARIES.
38086 2011-03-30  Bruno Haible  <bruno@clisp.org>
38088         c-strcasestr: Relicense under LGPLv2+.
38089         * modules/c-strcasestr (License): Change to LGPLv2+.
38090         Requested by Eric Blake, for libvirt.
38092 2011-03-30  Simon Josefsson  <simon@josefsson.org>
38094         * users.txt: Add libidn2.  Fix libtasn1 link.
38096 2011-03-30  Jim Meyering  <meyering@redhat.com>
38098         tests: readlink* ("",... fails with EINVAL on newer kernels
38099         readlink and readlinkat have typically failed with ENOENT for
38100         the invalid, empty file name,  "".  However, with the advent
38101         of linux-2.6.39, they fail with EINVAL.
38102         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
38103         when operating on the empty file name.
38104         * tests/test-readlink.h (test_readlink): Likewise.
38106 2011-03-29  Bruno Haible  <bruno@clisp.org>
38108         Relicense some modules under LGPLv2+, for libidn2.
38109         * modules/array-mergesort (License): Change to LGPLv2+.
38110         * modules/c-strcaseeq (License): Likewise.
38111         * modules/striconveh (License): Likewise.
38112         * modules/striconveha (License): Likewise.
38113         * modules/uniconv/base (License): Likewise.
38114         * modules/uniconv/u8-conv-from-enc (License): Likewise.
38115         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
38116         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
38117         * modules/unictype/base (License): Likewise.
38118         * modules/unictype/bidiclass-of (License): Likewise.
38119         * modules/unictype/category-M (License): Likewise.
38120         * modules/unictype/category-none (License): Likewise.
38121         * modules/unictype/category-of (License): Likewise.
38122         * modules/unictype/category-test (License): Likewise.
38123         * modules/unictype/category-test-withtable (License): Likewise.
38124         * modules/unictype/combining-class (License): Likewise.
38125         * modules/unictype/joiningtype-of (License): Likewise.
38126         * modules/unictype/scripts (License): Likewise.
38127         * modules/uninorm/base (License): Likewise.
38128         * modules/uninorm/canonical-decomposition (License): Likewise.
38129         * modules/uninorm/composition (License): Likewise.
38130         * modules/uninorm/decompose-internal (License): Likewise.
38131         * modules/uninorm/decomposition-table (License): Likewise.
38132         * modules/uninorm/nfc (License): Likewise.
38133         * modules/uninorm/nfd (License): Likewise.
38134         * modules/uninorm/u32-normalize (License): Likewise.
38135         * modules/unistr/base (License): Likewise.
38136         * modules/unistr/u32-cpy (License): Likewise.
38137         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
38138         * modules/unistr/u32-to-u8 (License): Likewise.
38139         * modules/unistr/u32-uctomb (License): Likewise.
38140         * modules/unistr/u8-check (License): Likewise.
38141         * modules/unistr/u8-mblen (License): Likewise.
38142         * modules/unistr/u8-mbtouc (License): Likewise.
38143         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
38144         * modules/unistr/u8-mbtoucr (License): Likewise.
38145         * modules/unistr/u8-prev (License): Likewise.
38146         * modules/unistr/u8-strlen (License): Likewise.
38147         * modules/unistr/u8-to-u32 (License): Likewise.
38148         * modules/unistr/u8-uctomb (License): Likewise.
38149         * modules/unitypes (License): Likewise.
38150         Requested by Simon Josefsson.
38152 2011-03-29  Simon Josefsson  <simon@josefsson.org>
38154         lib-symbol-visibility: Add a notice.
38155         * modules/lib-symbol-visibility (Notice): New field.
38157 2011-03-29  Bruno Haible  <bruno@clisp.org>
38159         getaddrinfo: Doc fix.
38160         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
38161         section "fixed in Gnulib".
38163 2011-03-28  Simon Josefsson  <simon@josefsson.org>
38165         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
38166         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
38168 2011-03-26  Bruno Haible  <bruno@clisp.org>
38170         unictype/property-byname: Reduce the number of load-time relocations.
38171         * lib/unictype/pr_byname.c: Include <stdlib.h>.
38172         (UC_PROPERTY_INDEX_*): New enumeration values.
38173         (uc_property_byname): Convert an index from the lookup table to an
38174         uc_property_t.
38175         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
38176         values.
38178 2011-03-26  Bruno Haible  <bruno@clisp.org>
38180         unictype/property-byname: Allow omitted word separators and aliases.
38181         * lib/unictype/pr_byname.gperf: Add property names without word
38182         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
38183         for 'space'.
38185 2011-03-26  Bruno Haible  <bruno@clisp.org>
38187         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
38188         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
38189         also hyphens to space.
38190         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
38191         without spaces.
38192         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
38194 2011-03-26  Bruno Haible  <bruno@clisp.org>
38196         unictype/joiningtype-byname: Recognize long names as well.
38197         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
38198         a long name.
38199         * lib/unictype/joiningtype_byname.c: Include <string.h>,
38200         unictype/joiningtype_byname.h.
38201         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
38202         * lib/unictype/joiningtype_byname.gperf: New file.
38203         * modules/unictype/joiningtype-byname (Files): Add
38204         lib/unictype/joiningtype_byname.gperf.
38205         (Depends-on): Add gperf.
38206         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
38207         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
38208         long names.
38210         Tests for module 'unictype/joiningtype-longname'.
38211         * modules/unictype/joiningtype-longname-tests: New file.
38212         * tests/unictype/test-joiningtype_longname.c: New file.
38214         New module 'unictype/joiningtype-longname'.
38215         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
38216         * lib/unictype/joiningtype_longname.c: New file.
38217         * modules/unictype/joiningtype-longname: New file.
38218         * modules/unictype/joiningtype-all (Depends-on): Add
38219         unictype/joiningtype-longname.
38221 2011-03-26  Bruno Haible  <bruno@clisp.org>
38223         unictype/bidiclass-byname: Recognize long names as well.
38224         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
38225         name.
38226         * lib/unictype/bidi_byname.c: Include <string.h>,
38227         unictype/bidi_byname.h.
38228         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
38229         * lib/unictype/bidi_byname.gperf: New file.
38230         * modules/unictype/bidiclass-byname (Files): Add
38231         lib/unictype/bidi_byname.gperf.
38232         (Depends-on): Add gperf.
38233         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
38234         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
38235         long names.
38237         Tests for module 'unictype/bidiclass-longname'.
38238         * modules/unictype/bidiclass-longname-tests: New file.
38239         * tests/unictype/test-bidi_longname.c: New file.
38241         New module 'unictype/bidiclass-longname'.
38242         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
38243         * lib/unictype/bidi_longname.c: New file.
38244         * modules/unictype/bidiclass-longname: New file.
38245         * modules/unictype/bidiclass-all (Depends-on): Add
38246         unictype/bidiclass-longname.
38248 2011-03-26  Bruno Haible  <bruno@clisp.org>
38250         unictype/bidi*: Rename modules.
38251         * modules/unictype/bidiclass-all: Renamed from
38252         modules/unictype/bidicategory-all.
38253         * modules/unictype/bidiclass-name: Renamed from
38254         modules/unictype/bidiclass-name.
38255         (Description): Update.
38256         * modules/unictype/bidiclass-name-tests: Renamed from
38257         modules/unictype/bidicategory-name-tests.
38258         * modules/unictype/bidiclass-byname: Renamed from
38259         modules/unictype/bidicategory-byname.
38260         (Description): Update.
38261         * modules/unictype/bidiclass-byname-tests: Renamed from
38262         modules/unictype/bidicategory-byname-tests.
38263         * modules/unictype/bidiclass-of: Renamed from
38264         modules/unictype/bidicategory-of.
38265         (Description): Update.
38266         * modules/unictype/bidiclass-of-tests: Renamed from
38267         modules/unictype/bidicategory-of-tests.
38268         * modules/unictype/bidiclass-test: Renamed from
38269         modules/unictype/bidicategory-test.
38270         (Description): Update.
38271         * modules/unictype/bidiclass-test-tests: Renamed from
38272         modules/unictype/bidicategory-test-tests.
38273         * modules/unictype/bidicategory-all: New file, a simple redirection.
38274         * modules/unictype/bidicategory-name: Likewise.
38275         * modules/unictype/bidicategory-byname: Likewise.
38276         * modules/unictype/bidicategory-of: Likewise.
38277         * modules/unictype/bidicategory-test: Likewise.
38278         * modules/unictype/property-bidi-* (Dependencies): Update.
38279         * lib/unictype/bidi_*.c: Update comment.
38281 2011-03-26  Bruno Haible  <bruno@clisp.org>
38283         unictype/bidi*: Rename functions, part 2.
38284         * modules/unictype/bidicategory-name (configure.ac): Update required
38285         libunistring version.
38286         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
38288 2011-03-25  Bruno Haible  <bruno@clisp.org>
38290         New module 'unictype/combining-class-all'.
38291         * modules/unictype/combining-class-all: New file.
38293         Tests for module 'unictype/combining-class-byname'.
38294         * modules/unictype/combining-class-byname-tests: New file.
38295         * tests/unictype/test-combiningclass_byname.c: New file.
38297         New module 'unictype/combining-class-byname'.
38298         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
38299         * lib/unictype/combiningclass_byname.c: New file.
38300         * lib/unictype/combiningclass_byname.gperf: New file.
38301         * modules/unictype/combining-class-byname: New file.
38303         Tests for module 'unictype/combining-class-longname'.
38304         * modules/unictype/combining-class-longname-tests: New file.
38305         * tests/unictype/test-combiningclass_longname.c: New file.
38307         New module 'unictype/combining-class-longname'.
38308         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
38309         * lib/unictype/combiningclass_longname.c: New file.
38310         * modules/unictype/combining-class-longname: New file.
38312         Tests for module 'unictype/combining-class-name'.
38313         * modules/unictype/combining-class-name-tests: New file.
38314         * tests/unictype/test-combiningclass_name.c: New file.
38316         New module 'unictype/combining-class-name'.
38317         * lib/unictype.in.h (uc_combining_class_name): New declaration.
38318         * lib/unictype/combiningclass_name.c: New file.
38319         * modules/unictype/combining-class-name: New file.
38321 2011-03-25  Bruno Haible  <bruno@clisp.org>
38323         unictype/combining-class: Rename source files.
38324         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
38325         of unictype/combining.h.
38326         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
38327         Update.
38328         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
38329         * modules/unictype/combining-class (Description): Fix.
38330         (Files, Makefile.am): Update.
38331         * tests/unictype/test-combiningclass.c: Renamed from
38332         tests/unictype/test-combining.c.
38333         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
38335 2011-03-25  Bruno Haible  <bruno@clisp.org>
38337         unictype: Update list of canonical combining classes.
38338         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
38340 2011-03-25  Bruno Haible  <bruno@clisp.org>
38342         unictype/category-byname: Recognize long names as well.
38343         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
38344         a long name.
38345         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
38346         unictype/categ_byname.h.
38347         (UC_CATEGORY_INDEX_*): New enumeration values.
38348         (uc_general_category_byname): Use uc_general_category_lookup and
38349         convert from index to value.
38350         * lib/unictype/categ_byname.gperf: New file.
38351         * modules/unictype/category-byname (Files): Add
38352         lib/unictype/categ_byname.gperf.
38353         (Depends-on): Add gperf.
38354         (Makefile.am): Add rule for generating unictype/categ_byname.h.
38355         * tests/unictype/test-categ_byname.c (main): Test the recognition of
38356         long names.
38358         Tests for module 'unictype/category-longname'.
38359         * modules/unictype/category-longname-tests: New file.
38360         * tests/unictype/test-categ_longname.c: New file.
38362         New module 'unictype/category-longname'.
38363         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
38364         * lib/unictype/categ_longname.c: New file.
38365         * modules/unictype/category-longname: New file.
38366         * modules/unictype/category-all (Depends-on): Add it.
38368 2011-03-25  Bruno Haible  <bruno@clisp.org>
38370         Tests for module 'unictype/category-LC'.
38371         * modules/unictype/category-LC-tests: New file.
38372         * tests/unictype/test-categ_LC.c: New file, automatically generated.
38374         New module 'unictype/category-LC'.
38375         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
38376         (UC_CATEGORY_LC): New declaration.
38377         (UC_CASED_LETTER): New macro.
38378         * lib/gen-uni-tables.c (is_category_LC): New function.
38379         (output_categories): Also handle category LC.
38380         (UC_CATEGORY_MASK_LC): New enumeration value.
38381         (general_category_byname): Also handle category LC.
38382         * lib/unictype/categ_LC.c: New file.
38383         * lib/unictype/categ_LC.h: New file, automatically generated.
38384         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
38385         category LC.
38386         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
38387         * modules/unictype/category-LC: New file.
38388         * modules/unictype/category-byname (Depends-on): Add
38389         unictype/category-LC.
38390         * modules/unictype/category-all (Depends-on): Likewise.
38392 2011-03-25  Eric Blake  <eblake@redhat.com>
38394         xmalloc: revert yesterday's regression
38395         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
38396         realloc's underlying behavior (allowing allocation of zero-size
38397         objects, especially if malloc-gnu is also in use).
38399 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
38401         maint.mk: add missing version to VC-tag
38402         * top/maint.mk: git tag was missing actual tag name; add it.
38404         valgrind: do leak checking, and exit with code 1 on error (not 0)
38405         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
38406         to VALGRIND.
38408 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
38410         posix-modules: say what it does.
38411         * posix-modules: Add a line to the --help output saying what it does.
38413 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
38415         xmalloc: Do not leak if underlying realloc is C99 compatible.
38416         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
38417         This avoids a leak on C99-based systems.  See
38418         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
38420 2011-03-24  Eric Blake  <eblake@redhat.com>
38422         realloc: document portability problem
38423         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
38424         passing 0 size to realloc.
38426 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
38428         doc: update users.txt
38429         * users.txt: Add cvsps, tmpwatch
38431 2011-03-23  Matt Rice  <ratmice@gmail.com>
38433         doc: update users.txt
38434         * users.txt: Add gdb.
38436 2011-03-23  Jim Meyering  <meyering@redhat.com>
38438         doc: update users.txt
38439         Looking through matches up to the following URL (there are still
38440         several more pages), I found several projects that use gnulib:
38441         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
38442         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
38443         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
38445 2011-03-22  Bruno Haible  <bruno@clisp.org>
38447         unictype/bidi*: Rename functions.
38448         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
38449         uc_bidi_class, uc_is_bidi_class): New declarations.
38450         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
38451         uc_bidi_category_byname.
38452         (uc_bidi_category_byname): New function.
38453         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
38454         u_bidi_category_name.
38455         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
38456         (uc_bidi_category_name): New function.
38457         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
38458         uc_bidi_category.
38459         (uc_bidi_category): New function.
38460         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
38461         uc_is_bidi_category. Invoke uc_bidi_class.
38462         (uc_is_bidi_category): New function.
38463         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
38464         instead of uc_bidi_category_byname.
38465         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
38466         instead of uc_bidi_category_name.
38467         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
38468         uc_bidi_category.
38469         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
38470         instead of uc_is_bidi_category.
38472 2011-03-21  Bruno Haible  <bruno@clisp.org>
38474         New module 'unictype/joininggroup-all'.
38475         * modules/unictype/joininggroup-all: New file.
38477         Tests for module 'unictype/joininggroup-of'.
38478         * modules/unictype/joininggroup-of-tests: New file.
38479         * tests/unictype/test-joininggroup_of.c: New file.
38480         * tests/unictype/test-joininggroup_of.h: New file, automatically
38481         generated by gen-uni-tables.
38483         New module 'unictype/joininggroup-of'.
38484         * modules/unictype/joininggroup-of: New file.
38485         * lib/unictype/joininggroup_of.c: New file.
38486         * lib/unictype/joininggroup_of.h: New file, automatically generated by
38487         gen-uni-tables.
38489         Tests for module 'unictype/joininggroup-byname'.
38490         * modules/unictype/joininggroup-byname-tests: New file.
38491         * tests/unictype/test-joininggroup_byname.c: New file.
38493         New module 'unictype/joininggroup-byname'.
38494         * modules/unictype/joininggroup-byname: New file.
38495         * lib/unictype/joininggroup_byname.c: New file.
38496         * lib/unictype/joininggroup_byname.gperf: New file.
38498         Tests for module 'unictype/joininggroup-name'.
38499         * modules/unictype/joininggroup-name-tests: New file.
38500         * tests/unictype/test-joininggroup_name.c: New file.
38502         New module 'unictype/joininggroup-name'.
38503         * modules/unictype/joininggroup-name: New file.
38504         * lib/unictype/joininggroup_name.c: New file.
38505         * lib/unictype/joininggroup_name.h: New file.
38507         New module 'unictype/joiningtype-all'.
38508         * modules/unictype/joiningtype-all: New file.
38510         Tests for module 'unictype/joiningtype-of'.
38511         * modules/unictype/joiningtype-of-tests: New file.
38512         * tests/unictype/test-joiningtype_of.c: New file.
38513         * tests/unictype/test-joiningtype_of.h: New file, automatically
38514         generated by gen-uni-tables.
38516         New module 'unictype/joiningtype-of'.
38517         * modules/unictype/joiningtype-of: New file.
38518         * lib/unictype/joiningtype_of.c: New file.
38519         * lib/unictype/joiningtype_of.h: New file, automatically generated by
38520         gen-uni-tables.
38522         Tests for module 'unictype/joiningtype-byname'.
38523         * modules/unictype/joiningtype-byname-tests: New file.
38524         * tests/unictype/test-joiningtype_byname.c: New file.
38526         New module 'unictype/joiningtype-byname'.
38527         * modules/unictype/joiningtype-byname: New file.
38528         * lib/unictype/joiningtype_byname.c: New file.
38530         Tests for module 'unictype/joiningtype-name'.
38531         * modules/unictype/joiningtype-name-tests: New file.
38532         * tests/unictype/test-joiningtype_name.c: New file.
38534         New module 'unictype/joiningtype-name'.
38535         * modules/unictype/joiningtype-name: New file.
38536         * lib/unictype/joiningtype_name.c: New file.
38538         unictype: Add support for Arabic shaping properties.
38539         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
38540         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
38541         declarations.
38542         (UC_JOINING_GROUP_*): New enumeration values.
38543         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
38544         declarations.
38545         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
38546         (unicode_joining_type): New variable.
38547         (UC_JOINING_GROUP_*): New enumeration values.
38548         (unicode_joining_group): New variable.
38549         (fill_arabicshaping, joining_type_as_c_identifier,
38550         output_joining_type_test, output_joining_type,
38551         joining_group_as_c_identifier, output_joining_group_test,
38552         output_joining_group): New functions.
38553         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
38554         fill_arabicshaping and output_joining_type_test, output_joining_type,
38555         output_joining_group_test, output_joining_group.
38556         Reported by Simon Josefsson.
38558 2011-03-21  Jim Meyering  <meyering@redhat.com>
38560         strftime: fix a bug in yesterday's change
38561         * lib/strftime.c (add): Accommodate width's initial value of -1.
38562         Otherwise, nstrftime would copy uninitialized data into
38563         the result buffer.
38565 2011-03-21  Jim Meyering  <meyering@redhat.com>
38567         tests: add strftime-tests module
38568         * tests/test-strftime.c: New file.
38569         * modules/strftime-tests: New module.
38571 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38573         strftime: don't assume a byte count fits in 'int'
38574         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
38575         found this problem by static analysis, using gcc -Wstrict-overflow
38576         (GCC 4.5.2, x86-64).  This reported an optimization that depended
38577         on an integer overflow having undefined behavior, but it turns out
38578         that the argument is a size, which might not fit in 'int' anyway,
38580 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38582         stdio: don't require ignore_value around fwrite
38584         This patch works around libc bug 11959
38585         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
38586         Without this patch, applications must often write
38587         ignore_value (fwrite (...)) even though the ignore_value is
38588         not helpful here.  It's common to write many objects, using
38589         fwrite/printf/etc., and then use ferror to detect output error.
38591         I considered making this patch optional, but decided against it,
38592         because libc is obviously being inconsistent here: there is no
38593         reason libc should insist that user code must inspect fwrite
38594         return's value without also insisting that it inspect printf's,
38595         putchar's, etc.  If user code wants to have a strict style where
38596         all these functions' values are checked (so that ferror need not
38597         be checked), we could add support for that style in a new gnulib
38598         module, but in the meantime it's better to be consistent and to
38599         support common usage.
38601         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
38602         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
38603         that we are compiling in checking mode, and if not C++, and
38604         if not already wrapping fwrite for some other reason.
38605         (fwrite): #define to rpl_fwrite if the latter is defined.
38607 2011-03-20  Bruno Haible  <bruno@clisp.org>
38609         verror: Fix compilation error introduced on 2011-02-13.
38610         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
38611         instead of __attribute__.
38612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38614 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38615             Bruno Haible  <bruno@clisp.org>
38617         socklen: do not depend on sys_socket
38618         While trying to modify Emacs to use gnulib's socklen module,
38619         I discovered a circular dependency: socklen depends on sys_socket
38620         and vice versa.  Emacs can use socklen, but it does not need
38621         sys_socket because it has its own substitute for sys/socket.h.
38622         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
38623         gl_TYPE_SOCKLEN_T.
38624         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
38625         gl_PREREQ_SYS_H_SOCKET.
38626         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
38627         gl_PREREQ_SYS_H_SOCKET.
38628         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
38629         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
38630         * modules/socklen (Depends-on): Do not depend on sys_socket.
38631         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
38633 2011-03-20  Jim Meyering  <meyering@redhat.com>
38635         maint.mk: sort file names *after* new transformation
38636         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
38637         prefix would have led to an unwarranted failure in GNU parted.
38638         Sort after that transformation.
38640 2011-03-19  Jim Meyering  <meyering@redhat.com>
38642         maint.mk: fix po-file syntax-check rule
38643         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
38644         Patch by Bruno Haible.
38646 2011-03-19  Bruno Haible  <bruno@clisp.org>
38648         socklen: Update comment.
38649         * m4/socklen.m4: Update comment about platforms.
38651 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38652             Bruno Haible  <bruno@clisp.org>
38654         inet_ntop, inet_pton: Simplify.
38655         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
38656         documented to provide socklen_t and we already depend on sys_socket.
38657         * modules/inet_pton (Depends-on): Likewise.
38658         * lib/arpa_inet.in.h: Adjust comment.
38660 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38661             Bruno Haible  <bruno@clisp.org>
38663         netdb: Simplify.
38664         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
38665         documented to provide socklen_t and we already depend on sys_socket.
38666         * lib/netdb.in.h: Adjust comment.
38668 2011-03-19  Bruno Haible  <bruno@clisp.org>
38670         sys_socket, netdb: Document problem with socklen_t.
38671         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
38672         platforms.
38673         * doc/posix-headers/netdb.texi: Likewise.
38675 2011-03-18  Eric Blake  <eblake@redhat.com>
38677         maint.mk: let po check work in VPATH build
38678         * top/maint.mk (po_file): Allow cfg.mk override.
38679         (sc_po_check): Allow VPATH use.
38680         Reported by Jiri Denemark.
38682 2011-03-16  Jim Meyering  <meyering@redhat.com>
38684         maint.mk: allow fine-grained syntax-check exclusion via Make variables
38685         Before, you would have had to create one .x-sc_ file per rule in order
38686         to exempt offending files.  Now, you may instead use a Make variable --
38687         usually defined in cfg.mk -- whose name identifies the affected rule.
38688         * top/maint.mk (_sc_excl): Define.
38689         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
38690         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
38692 2011-03-13  Bruno Haible  <bruno@clisp.org>
38694         ignore-value tests: Avoid warnings.
38695         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
38696         empty for gcc < 3.4.
38698 2011-03-13  Bruno Haible  <bruno@clisp.org>
38700         passfd: Fix link error on Solaris.
38701         * modules/passfd (Description): Correct.
38702         (Depends-on): Add socketlib.
38703         (Link): New section.
38704         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
38706 2011-03-13  Bruno Haible  <bruno@clisp.org>
38708         passfd: Fix link error on AIX 5.2.
38709         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
38711 2011-03-13  Bruno Haible  <bruno@clisp.org>
38713         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
38714         * lib/sys_socket.in.h: Include <stddef.h>.
38715         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
38716         CMSG_FIRSTHDR. Remove unused variable.
38718 2011-03-13  Bruno Haible  <bruno@clisp.org>
38720         passfd: Fix compilation error on OpenBSD.
38721         * lib/passfd.c: Include <sys/uio.h>.
38723 2011-03-13  Bruno Haible  <bruno@clisp.org>
38725         passfd test: Fix warnings.
38726         * tests/test-passfd.c: Include <sys/wait.h>.
38727         (main): Fix typo.
38729 2011-03-13  Bruno Haible  <bruno@clisp.org>
38731         passfd module, part 4, tweaks.
38732         * tests/test-passfd.c: Reorder includes.
38733         (main): Fix perror and printf calls.
38735 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38737         passfd module, part 4.
38738         * modules/passfd-tests: New file.
38739         * tests/test-passfd.c: New file.
38741 2011-03-13  Jim Meyering  <meyering@redhat.com>
38743         Makefile: rely on GNU make; derive syntax-check rule names
38744         Rather than requiring that each sc_ rule be listed as a dependent
38745         of "check", use features of GNU make to derive the list.
38746         * Makefile (syntax-check-rules): Define.
38747         (check): Depend on the new variable, not the hard-coded list.
38749 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
38750             Bruno Haible  <bruno@clisp.org>
38752         passfd module, part 3.
38753         * lib/passfd.h (recvfd): Add a flags argument.
38754         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
38755         (recvfd): Add a flags argument.
38756         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
38757         exists.
38758         * modules/passfd (Depends-on): Add cloexec.
38759         Suggested by Eric Blake.
38761 2011-03-13  Bruno Haible  <bruno@clisp.org>
38763         passfd module, part 2, tweaks.
38764         * modules/passfd (Files): Reorder.
38765         (Depends-on): Remove errno.
38766         (Include): Remove <sys/socket.h>, <sys/un.h>.
38767         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
38768         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
38769         specification header. Include <sys/socket.h> always. Don't include
38770         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
38771         (sendfd): Clarify that it sets errno when it fails.
38772         (recvfd): Fix specification.
38774 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38776         passfd module, part 2.
38777         * modules/passfd: New file.
38778         * lib/passfd.h: New file.
38779         * lib/passfd.c: New file.
38781 2011-03-12  Bruno Haible  <bruno@clisp.org>
38783         wcswidth, mbswidth: Avoid integer overflow.
38784         * lib/wcswidth.c: Include <limits.h>.
38785         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
38786         * lib/mbswidth.c: Include <limits.h>.
38787         (mbsnwidth): Avoid 'int' overflow.
38788         Reported by Jim Meyering.
38790 2011-03-12  Bruno Haible  <bruno@clisp.org>
38792         futimens, utimensat: Avoid endless recursion on Solaris 10.
38793         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
38794         Solaris.
38795         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
38796         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
38798 2011-03-11  Jim Meyering  <meyering@redhat.com>
38800         maint.mk: relax a regexp to accommodate other formatting styles
38801         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
38802         between "ngettext" and the following "(".
38804 2011-03-11  Pádraig Brady  <P@draigBrady.com>
38806         maint.mk: suppress a false positive warning
38807         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
38808         diagnostics are marked with ngettext.
38810 2011-03-10  Eric Blake  <eblake@redhat.com>
38812         wchar: add explicit dependencies, for Tru64
38813         * modules/mbmemcasecoll (Depends-on): Add wchar.
38814         * modules/mbtowc (Depends-on): Likewise.
38815         * modules/vasnprintf (Depends-on): Likewise.
38816         * modules/unistdio/u-printf-args (Depends-on): Likewise.
38817         * modules/wctomb (Depends-on): Likewise.
38818         Reported by Peter O'Gorman.
38820 2011-03-08  Bruno Haible  <bruno@clisp.org>
38822         passfd module, part 1, tweaks.
38823         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
38824         Improve indentation. Improve AC_MSG_CHECKING messages.
38825         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
38826         gl_SOCKET_FAMILIES.
38828 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38830         passfd module, part 1.
38831         * m4/afunix.m4: New file.
38832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
38833         sockets.
38835 2011-03-08  Bruno Haible  <bruno@clisp.org>
38837         regex-quote: New API.
38838         * lib/regex-quote.h: Include <stdbool.h>.
38839         (struct regex_quote_spec): New type.
38840         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38841         New declarations.
38842         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38843         'const struct regex_quote_spec *' argument.
38844         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
38845         (pcre_special): New constant.
38846         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38847         New functions.
38848         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38849         'const struct regex_quote_spec *' argument.
38850         * modules/regex-quote (Depends-on): Add stdbool.
38851         * tests/test-regex-quote.c (check): Update for new API. Add test for
38852         anchored results.
38853         * NEWS: Mention the API change.
38854         Reported by Reuben Thomas and Eric Blake.
38856 2011-03-06  Bruno Haible  <bruno@clisp.org>
38858         regex-quote: Fix creation of POSIX extended regular expressions.
38859         * lib/regex-quote.c (ere_special): Add grouping and alternation
38860         operators.
38862 2011-03-05  Bruno Haible  <bruno@clisp.org>
38864         doc: Improve doc regarding autopoint vs. gnulib.
38865         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
38866         disable autopoint while running autoreconf.
38867         Suggested by Ralf Wildenhues.
38869 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38871         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
38872         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
38874 2011-03-03  Bruce Korb  <bkorb@gnu.org>
38876         parse-duration: remove xalloc.h dependency
38877         * lib/parse-duration.c (parse_period): handle NULL return from
38878         strdup instead of calling xstrdup().
38879         * modules/parse-duration: remove "xalloc" dependency
38881 2011-03-03  Matthew Booth  <mbooth@redhat.com>
38883         bootstrap: honor m4_base when running aclocal
38884         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
38886 2011-03-02  Jim Meyering  <meyering@redhat.com>
38888         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
38889         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
38890         on request from Matt Booth.
38892 2011-03-01  Eric Blake  <eblake@redhat.com>
38894         test-link: work on Hurd
38895         * tests/test-link.h (test_link): Hurd rejects linking directories
38896         with EISDIR instead of the POSIX-mandated EPERM.
38898 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
38900         stdio: simplify by moving files to printf-posix, sigpipe
38901         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
38902         since this symbol is needed only if printf is replaced.
38903         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
38904         Require gl_ASM_SYMBOL_PREFIX.
38905         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
38906         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
38907         (Depends-on): Add 'raise'.
38908         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
38909         * modules/stdio (Files): Remove lib/stdio-write.c,
38910         m4/asm-underscore.m4.
38911         (Depends-on): Remove 'raise'.
38913         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
38914         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
38915         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
38916         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
38918 2011-02-28  Bruno Haible  <bruno@clisp.org>
38920         localcharset: Assume ANSI C behaviour of free().
38921         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
38922         calling free().
38923         Suggested by Simon Josefsson <simon@josefsson.org>.
38925 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
38926             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
38927             Bruno Haible  <bruno@clisp.org>  (tiny change)
38929         On Cygwin, use /proc file system instead of win32 API.
38930         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
38931         Win32 file names.
38932         (DllMain): Simplify by removing Cygwin specific code.
38933         (find_shared_library_fullname): Use Linux specific implementation also
38934         for Cygwin.
38935         (get_shared_library_fullname): Update accordingly.
38936         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
38937         Win32 file names.
38938         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
38939         Cygwin specific code.
38941 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
38942             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
38944         Fix OpenMP flag detection for various Fortran compilers.
38945         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
38946         OpenMP-conditional compilation construct, to force compile
38947         failure with missing OpenMP flag.
38948         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
38950 2011-02-25  Eric Blake  <eblake@redhat.com>
38952         strstr: expand test coverage
38953         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
38954         compilation.
38955         * tests/test-memmem.c (main): Duplicate tests.
38956         * tests/test-strcasestr.c (main): Likewise.
38957         * tests/test-c-strcasestr.c (main): Likewise.
38959 2011-02-25  Jim Meyering  <meyering@redhat.com>
38961         maint.mk: detect missing-NL-at-EOF, too
38962         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
38963         it also detects when a file lacks a newline at EOF.
38964         (require_exactly_one_NL_at_EOF_): Renamed from
38965         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
38966         since people may well have .x-sc_... file names tied to the
38967         existing name.  Suggested by Eric Blake.
38969 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38971         dirname: move m4/dos.m4 functionality into lib/dosname.h
38973         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
38974         extracts symbols from it, puts them into config.h; but it's much
38975         easier to use the symbols directly.  filename.h already does this,
38976         but it disagrees with dos.m4 in some respects.  This patch
38977         introduces a different include file dosname.h that packages up
38978         dos.m4, and then later we can work on merging filename.h and
38979         dosname.h.  Applications that need only the easy-to-configure
38980         symbols should consider including dosname.h rather than dirname.h.
38981         * NEWS: Mention incompatible changes.
38982         * m4/dos.m4: Remove.
38983         * lib/dosname.h, modules/dosname: New files.
38984         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
38985         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
38986         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
38987         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
38988         Include dosname.h, not dirname.h.
38989         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
38990         Include dosname.h, for definitions of symbols like ISSLASH
38991         that used to be in config.h.
38992         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
38993         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
38994         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38995         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38996         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
38997         * modules/rmdir (Files): Likewise.
38998         * modules/stat (Files): Likewise.
38999         * modules/unlink (Files): Likewise.
39000         * modules/dirname-lgpl (Depends-on): Add dosname.
39001         * modules/lstat (Depends-on): Likewise.
39002         * modules/openat (Depends-on): Likewise.
39003         * modules/rmdir (Depends-on): Likewise.
39004         * modules/savewd (Depends-on): Likewise.
39005         * modules/stat (Depends-on): Likewise.
39006         * modules/unlink (Depends-on): Likewise.
39007         * modules/openat (Depends-on): Remove dirname-lgpl.
39008         * modules/savewd (Depends-on): Likewise.
39009         * tests/test-dirname.c: Do not use removed symbols like
39010         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
39011         the remaining symbols, e.g., ISSLASH ('\\').
39013 2011-02-25  Eric Blake  <eblake@redhat.com>
39015         strstr: revert patches that introduced bug and pessimization
39016         * lib/str-two-way.h: Add another reference.
39017         (two_way_short_needle, two_way_long_needle): Revert changes from
39018         2011-02-24; they pessimize search speed.
39019         (critical_factorization): Partially revert changes from
39020         2010-06-22; they violate the requirement that the left half of the
39021         needle be smaller than the period of the needle.
39023 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39025         filenamecat: remove unnecessary dependency on dirname-lgpl
39026         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
39027         is no direct dependency, just an indirect one via filenamecat-lgpl.
39029         remove: remove unnecessary use of m4/dos.m4
39030         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
39031         * modules/remove (FILES): Remove m4/dos.m4.
39033         * lib/openat-proc.c: Don't include dirname.h; not needed.
39035         backupfile: remove unnecessary use of m4/dos.m4
39036         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
39037         of its symbols are used by the backupfile code.  backupfile.c does
39038         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
39039         for the rare case of programs that want all their backup file
39040         names to live within 8+3 limits, and dos.m4 doesn't address that.
39041         * modules/backupfile (Files): Remove m4/dos.m4.
39043 2011-02-24  Jim Meyering  <meyering@redhat.com>
39045         strstr: fix a bug whereby strstr would mistakenly return NULL
39046         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
39047         in period calculation.
39048         (two_way_long_needle): Likewise.
39049         The original problem was reported by Mike Stump in
39050         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
39051         Ralf Wildenhues provided the short needle and haystack.
39052         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
39053         Add a more involved test to trigger the bug in two_way_long_needle.
39055 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39057         gnulib-tool: remove use of bold display in help screen
39058         * gnulib-tool (func_usage): Do not use bold display anymore in the
39059         help screen.  That was just meant to be a temporary emphasis for a
39060         backward-incompatible change.
39062 2011-02-23  Bruno Haible  <bruno@clisp.org>
39064         Fix misindentation of preprocessor directives.
39065         * lib/argp-namefrob.h: Reindent preprocessor directives.
39066         * lib/getopt_int.h (struct _getopt_data): Likewise.
39067         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
39068         * lib/vasnprintf.c (decode_long_double): Likewise.
39069         * tests/test-argmatch.c: Insert blank lines, for clarity.
39070         * tests/test-exclude.c: Likewise.
39072 2011-02-22  Bruno Haible  <bruno@clisp.org>
39074         ioctl: Fix for MacOS X in 64-bit mode.
39075         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
39076         value.
39077         Suggested by Eric Blake.
39078         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
39080 2011-02-22  Jim Meyering  <meyering@redhat.com>
39082         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
39083         * Makefile (sc_cpp_indent_check): Don't limit the check to files
39084         in lib/.
39086 2011-02-22  Eric Blake  <eblake@redhat.com>
39088         maint: avoid any CDPATH issue
39089         * Makefile (sc_cpp_indent_check): Anchor cd argument.
39091         maint: adjust cpp indentation for my modules, as well
39092         * Makefile (sc_cpp_indent_check): Add my name.
39093         * lib/fbufmode.c: Filter through cppi.
39094         * lib/fpurge.c: Likewise.
39095         * lib/freadable.c: Likewise.
39096         * lib/freading.c: Likewise.
39097         * lib/fwritable.c: Likewise.
39098         * lib/fwriting.c: Likewise.
39099         * lib/sigaction.c: Likewise.
39101 2011-02-22  Jim Meyering  <meyering@redhat.com>
39103         maint: adjust cpp indentation to reflect nesting depth
39104         I.e., in a block of code that begins with an unnested "#if",
39105         put one space between the "#" in column 1 and following token.
39106         For example,
39107         -#include <sys/vfs.h>
39108         +# include <sys/vfs.h>
39109         Do this only in .c files that are part of a module I maintain.
39110         * lib/linkat.c: Filter through cppi.
39111         * lib/nanosleep.c: Likewise.
39112         * lib/openat.c: Likewise.
39113         * lib/openat-die.c: Likewise.
39114         * lib/dup3.c: Likewise.
39115         * lib/fchownat.c: Likewise.
39116         * lib/flock.c: Likewise.
39117         * lib/fsync.c: Likewise.
39118         * lib/fts.c: Likewise.
39119         * lib/getpass.c: Likewise.
39120         * lib/gettimeofday.c: Likewise.
39121         * lib/userspec.c: Likewise.
39122         * Makefile (sc_cpp_indent_check): New rule, to check this.
39124 2011-02-22  Bruno Haible  <bruno@clisp.org>
39126         New module 'wctomb'.
39127         * lib/stdlib.in.h (wctomb): New declaration.
39128         * lib/wctomb.c: New file.
39129         * lib/wctomb-impl.h: New file.
39130         * m4/wctomb.m4: New file.
39131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
39132         REPLACE_WCTOMB.
39133         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
39134         REPLACE_WCTOMB.
39135         * modules/wctomb: New file.
39136         * tests/test-stdlib-c++.cc: Test signature of wctomb.
39137         * doc/posix-functions/wctomb.texi: Mention the new module.
39138         * modules/wctob (Depends-on): Add wctomb.
39140 2011-02-22  Bruno Haible  <bruno@clisp.org>
39142         New module 'mbtowc'.
39143         * lib/stdlib.in.h (mbtowc): New declaration.
39144         * lib/mbtowc.c: New file.
39145         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
39146         * m4/mbtowc.m4: New file.
39147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
39148         REPLACE_MBTOWC.
39149         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
39150         REPLACE_MBTOWC.
39151         * modules/mbtowc: New file.
39152         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
39153         * doc/posix-functions/mbtowc.texi: Mention the new module.
39154         * modules/btowc (Depends-on): Add mbtowc.
39156 2011-02-22  Bruno Haible  <bruno@clisp.org>
39158         wcrtomb: Add more tests for native Windows platforms.
39159         * tests/test-wcrtomb-w32-1.sh: New file.
39160         * tests/test-wcrtomb-w32-2.sh: New file.
39161         * tests/test-wcrtomb-w32-3.sh: New file.
39162         * tests/test-wcrtomb-w32-4.sh: New file.
39163         * tests/test-wcrtomb-w32-5.sh: New file.
39164         * tests/test-wcrtomb-w32.c: New file.
39165         * modules/wcrtomb-tests (Files): Add them.
39166         (Makefile.am): Arrange to run these tests.
39167         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
39168         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
39170 2011-02-20  Bruno Haible  <bruno@clisp.org>
39172         wcrtomb: Enhance test.
39173         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
39175 2011-02-20  Bruno Haible  <bruno@clisp.org>
39177         mbrtowc: Tiny optimization.
39178         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
39180 2011-02-20  Jim Meyering  <meyering@redhat.com>
39182         test-exclude.c: remove unmatched #endif
39183         * tests/test-exclude.c: Remove stray #endif, left over from
39184         the change of a week ago.
39186 2011-02-19  Jim Meyering  <meyering@redhat.com>
39188         git-version-gen: skip "-dirty" check when appropriate
39189         * build-aux/git-version-gen: Don't run any git commands when the
39190         version string comes from .tarball-version.  Prior to this, we
39191         would run git update-index --refresh even from a just-unpacked
39192         tarball directory, and that could affect a .git/ directory in a
39193         parent of the build directory.  Reported by Mike Frysinger.
39195 2011-02-19  Bruno Haible  <bruno@clisp.org>
39197         unictype/property-byname: Reduce the size of the 'data' segment.
39198         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
39200 2011-02-19  Bruno Haible  <bruno@clisp.org>
39202         unictype/scripts: Reduce the size of the 'data' segment.
39203         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
39204         '%pic'.
39205         * lib/unictype/scripts_byname.gperf: Regenerated.
39207 2011-02-19  Bruno Haible  <bruno@clisp.org>
39209         stdint: Update documentation.
39210         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
39212 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
39214         stdint: omit redundant check for wchar.h
39215         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
39216         always tests whether wchar.h exists, so remove the now-redundant test.
39218 2011-02-18  Bruno Haible  <bruno@clisp.org>
39220         stdint: Cut dependency to module 'wchar'.
39221         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
39222         include the necessary prerequisites.
39223         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
39224         * modules/stdint (Depends-on): Remove wchar.
39225         (Makefile.am): Substitute HAVE_WCHAR_H.
39226         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
39228 2011-02-18  Eric Blake  <eblake@redhat.com>
39230         longlong: skip, rather than fail, on cross-compilation
39231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
39232         when cross-compiling; regression from 2011-02-16.
39234 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
39236         * NEWS: Mention 2011-02-08 change to stdlib.
39238 2011-02-17  Bruno Haible  <bruno@clisp.org>
39240         getloadavg: Add comments about platforms.
39241         * m4/getloadavg.m4: Add comment.
39242         * lib/getloadavg.c: Likewise.
39244 2011-02-17  Bruno Haible  <bruno@clisp.org>
39246         getloadavg: Fix link error on Solaris 2.6.
39247         * modules/getloadavg (Link): New section.
39248         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
39249         linking test-getloadavg.
39250         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
39251         getloadavg.
39253 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
39255         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
39256         It was 'int', but this doesn't match the IRIX 6.5 manual.
39257         Suggested by Bruno Haible in
39258         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
39260 2011-02-17  Bruno Haible  <bruno@clisp.org>
39262         havelib: Fix comments.
39263         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
39264         change.
39266 2011-02-17  Bruno Haible  <bruno@clisp.org>
39268         havelib: Update config.rpath.
39269         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
39271 2011-02-17  Bruno Haible  <bruno@clisp.org>
39273         getloadavg test: Add some plausibility checks.
39274         * tests/test-getloadavg.c (check_avg): Print a warning when the value
39275         is improbable.
39277 2011-02-16  Eric Blake  <eblake@redhat.com>
39279         maintainer-makefile: make syntax-check a no-op from tarballs
39280         * top/maint.mk (no-vc-detected): New rule.
39281         (local-checks-available): Use it to avoid hanging if someone tries
39282         'make syntax-check' from a tarball.  Also append to any non-syntax
39283         checks already defined in cfg.mk.
39285 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
39287         longlong: tune, particularly for common case of c99
39289         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
39290         or running anything if c99, or if unsigned long long int does not
39291         work.  In either case, we know the answer without further tests.
39292         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
39293         it at most once, and use its results for both long long int and
39294         unsigned long long int.  This is more likely to be efficient in
39295         the common case where the program wants to check for both long
39296         long int and unsigned long long int.
39297         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
39298         since the answer is already known.
39300 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
39302         getloadavg: set errno
39303         * lib/getloadavg.c: Set errno when returning -1.  If no other
39304         error number looks appropriate, set it to ENOSYS if the getloadavg
39305         looks like it can't possibly ever work, ENOTSUP otherwise.
39306         Suggested by Bruno Haible in
39307         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
39309         getloadavg: trim unused parts and speed up 'configure'
39310         * NEWS: Document this.
39311         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
39312         always compiled if getloadavg is absent.
39313         Move test code to ...
39314         * tests/test-getloadavg.c: New file, containing previous
39315         contents of test from lib/getloadavg.c.  It also contains
39316         suggestions by Bruno Haible in
39317         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
39318         * modules/getloadavg-tests: New file.
39319         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
39320         Do tests in the same order as they're needed for getloadavg.c.
39321         Omit setgid-related tests that generate symbols KMEM_GROUP,
39322         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
39323         Do only the tests that are needed to see whether the system has
39324         getloadavg, moving the other tests into ...
39325         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
39326         NLIST_NAME_UNION; nobody should be using it.  Do not define
39327         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
39328         relevant, as the user of this module shouldn't care how getloadavg
39329         is implemented.
39331         getloadavg: omit unused var
39332         * lib/getloadavg.c (getloadavg): Omit unused local variable.
39334 2011-02-15  Jim Meyering  <meyering@redhat.com>
39336         doc: update users.txt
39337         * users.txt: Update iwhd's URL.
39339 2011-02-13  Bruno Haible  <bruno@clisp.org>
39341         Consistent macro naming for macros that use GCC __attribute__.
39342         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
39343         _ATTRIBUTE_NONNULL_.
39344         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
39345         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
39346         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
39347         ATTRIBUTE_DEPRECATED.
39348         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
39349         ATTRIBUTE_NORETURN.
39350         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39351         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39352         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39353         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39354         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
39355         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
39356         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
39357         ATTRIBUTE_SENTINEL.
39358         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
39359         ATTRIBUTE_RETURN_CHECK.
39360         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
39361         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
39362         ATTRIBUTE_NORETURN.
39363         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
39364         Reported by Paul Eggert.
39366 2011-02-13  Bruno Haible  <bruno@clisp.org>
39368         Don't interfere with a program's definition of __attribute__.
39369         * lib/argp.h (__attribute__): Remove definition.
39370         (_GL_ATTRIBUTE_FORMAT): New macro.
39371         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
39372         * lib/argp-fmtstream.h (__attribute__): Remove definition.
39373         (_GL_ATTRIBUTE_FORMAT): New macro.
39374         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
39375         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
39376         GCC 3 or newer.
39377         * lib/error.h (__attribute__): Remove definition.
39378         (_GL_ATTRIBUTE_FORMAT): New macro.
39379         (error, error_at_line): Use it.
39380         * lib/hash.h (__attribute__): Remove definition.
39381         (ATTRIBUTE_WUR): Update definition. Define always.
39382         * lib/openat.h (__attribute__): Remove definition.
39383         (ATTRIBUTE_NORETURN): Update definition. Define always.
39384         * lib/sigpipe-die.h (__attribute__): Remove definition.
39385         (ATTRIBUTE_NORETURN): Update definition. Define always.
39386         * lib/vasnprintf.h (__attribute__): Remove definition.
39387         (_GL_ATTRIBUTE_FORMAT): New macro.
39388         (asnprintf, vasnprintf): Use it.
39389         * lib/xalloc.h (__attribute__): Remove definition.
39390         (ATTRIBUTE_NORETURN): Update definition. Define always.
39391         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
39392         * lib/xmemdup0.h (__attribute__): Remove definition.
39393         (ATTRIBUTE_NORETURN): Update definition. Define always.
39394         * lib/xprintf.h (__attribute__): Remove definition.
39395         (_GL_ATTRIBUTE_FORMAT): New macro.
39396         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
39397         * lib/xstrtol.h (__attribute__): Remove definition.
39398         (ATTRIBUTE_NORETURN): Update definition. Define always.
39399         * lib/xvasprintf.h (__attribute__): Remove definition.
39400         (_GL_ATTRIBUTE_FORMAT): New macro.
39401         (xasprintf, xvasprintf): Use it.
39402         * tests/test-argmatch.c (__attribute__): Remove definition.
39403         (ATTRIBUTE_NORETURN): Update definition. Define always.
39404         * tests/test-exclude.c (__attribute__): Remove definition.
39405         (ATTRIBUTE_NORETURN): Update definition. Define always.
39406         Reported by Paul Eggert.
39408 2011-02-13  Bruno Haible  <bruno@clisp.org>
39410         mbrtowc: Add more tests for native Windows platforms.
39411         * tests/test-mbrtowc-w32-1.sh: New file.
39412         * tests/test-mbrtowc-w32-2.sh: New file.
39413         * tests/test-mbrtowc-w32-3.sh: New file.
39414         * tests/test-mbrtowc-w32-4.sh: New file.
39415         * tests/test-mbrtowc-w32-5.sh: New file.
39416         * tests/test-mbrtowc-w32.c: New file.
39417         * modules/mbrtowc-tests (Files): Add them.
39418         (Makefile.am): Arrange to run these tests.
39419         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
39420         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
39422 2011-02-13  Bruno Haible  <bruno@clisp.org>
39424         mbrtowc: Work around native Windows bug.
39425         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
39426         guess when no suitable locale for testing was found.
39427         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
39429 2011-02-13  Bruno Haible  <bruno@clisp.org>
39431         mbsinit: Work around mingw bug.
39432         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
39433         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
39434         Windows.
39435         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
39437 2011-02-13  Bruno Haible  <bruno@clisp.org>
39439         mbsinit: Don't crash for a NULL argument.
39440         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
39441         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
39443 2011-02-13  Bruno Haible  <bruno@clisp.org>
39445         Don't interfere with a program's definition of __attribute__.
39446         * lib/stdio.in.h (__attribute__): Remove definition.
39447         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
39448         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
39449         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
39450         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
39451         * lib/string.in.h (__attribute__): Remove definition.
39452         Reported by Paul Eggert.
39454 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39456         stdlib: don't get in the way of non-GCC __attribute__
39457         See thread starting at
39458         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
39459         Revert previous stdlib change, installing the following instead:
39460         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
39461         to get in the way of a non-GCC compiler that supports __attribute__.
39462         (_GL_ATTRIBUTE_RETURN): New macro.
39463         (_Exit): Use it instead of __attribute__.
39465 2011-02-12  Bruno Haible  <bruno@clisp.org>
39467         quotearg test: Avoid test failure on mingw.
39468         * tests/test-quotearg.sh: Convert the locale identifier from native
39469         Windows syntax to Unix syntax.
39471 2011-02-12  Bruno Haible  <bruno@clisp.org>
39473         setlocale: Prefer gnulib's override over libintl's override.
39474         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
39475         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
39476         GNULIB_defined_setlocale is set.
39478 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39480         stdlib: support non-GCC __attribute__
39482         Fix a serious and tricky problem encountered when attempting to
39483         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
39484         5.5, but it crashed due to memory corruption on Solaris 10 with
39485         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
39486         bits that are otherwise zero.  This tagging is optional inside
39487         Emacs but is preferred and is used when __attribute__ ((__aligned
39488         (8))) works, as it does with both recent-enough GCC and with Sun C
39489         5.11.  However, Sun C 5.11 is not GCC and does not #define
39490         __GNUC__ and __GNUC_MINOR__.
39492         When I added the getloadavg module to Emacs, it brought in
39493         stdlib.in.h, which contained this fragment:
39495            #ifndef __attribute__
39496            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
39497            #  define __attribute__(Spec)   /* empty */
39498            # endif
39499            #endif
39501         When files that include <stdlib.h> were compiled with Sun C 5.11,
39502         the above code disabled __attribute__ ((__aligned (8))), which
39503         caused variables to not be properly aligned, which eventually led
39504         to the pointer corruption mentioned above.  (This was a bit hard
39505         to diagnose, unfortunately.)
39507         Several "#define __attribute__(X) /* empty */" code snippets need
39508         to be eradicated from Gnulib to work with non-GCC compilers that
39509         support __attribute__.  The Autoconf way to do this is to test for
39510         each kind of attribute that we want support for, and selectively
39511         enable that in source code.
39513         Fix this problem just for stdlib.h, by adding a test for the
39514         __noreturn__ attribute, and change stdlib.in.h to use that test
39515         when needed.  This technique can be easily generalized to the
39516         other *.in.h files and attributes, and a similar technique can be
39517         used for *.h and *.c files.  This patch is enough to solve the
39518         problem for Emacs + getloadavg, and I thought I'd publish it for
39519         feedback before undertaking further, similar fixes in other
39520         modules.
39522         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
39523         because it's not needed for stdlib.h.  It merely substitutes the
39524         value directly into stdlib.h.  We may well need to #define it, or
39525         similar symbols, for other modules, but it's nice to also have an
39526         option to not #define it for applications like Emacs that do not
39527         need it.
39529         * lib/stdlib.in.h (__attribute__): Do not #define.
39530         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
39531         be defined only if the _Exit module is also used.
39532         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
39533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
39534         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
39535         platforms.
39536         * modules/_Exit (Files): Add m4/attribute.m4.
39537         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
39538         * m4/attribute.m4: New file.
39540 2011-02-12  Bruno Haible  <bruno@clisp.org>
39542         wcsrtombs: Work around bug on native Windows.
39543         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
39544         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
39545         instead of len.
39546         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
39548 2011-02-12  Bruno Haible  <bruno@clisp.org>
39550         mbsrtowcs: Work around bug on native Windows.
39551         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
39552         against mingw bug.
39553         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
39555 2011-02-12  Bruno Haible  <bruno@clisp.org>
39557         Avoid setlocale bugs in tests.
39558         * modules/btowc (Dependencies): Add setlocale.
39559         * modules/c-strcase (Dependencies): Likewise.
39560         * modules/mbmemcasecmp (Dependencies): Likewise.
39561         * modules/mbmemcasecoll (Dependencies): Likewise.
39562         * modules/mbrtowc (Dependencies): Likewise.
39563         * modules/mbscasecmp (Dependencies): Likewise.
39564         * modules/mbscasestr (Dependencies): Likewise.
39565         * modules/mbschr (Dependencies): Likewise.
39566         * modules/mbscspn (Dependencies): Likewise.
39567         * modules/mbsinit (Dependencies): Likewise.
39568         * modules/mbsncasecmp (Dependencies): Likewise.
39569         * modules/mbsnrtowcs (Dependencies): Likewise.
39570         * modules/mbspbrk (Dependencies): Likewise.
39571         * modules/mbspcasecmp (Dependencies): Likewise.
39572         * modules/mbsrchr (Dependencies): Likewise.
39573         * modules/mbsrtowcs (Dependencies): Likewise.
39574         * modules/mbsspn (Dependencies): Likewise.
39575         * modules/mbsstr (Dependencies): Likewise.
39576         * modules/nl_langinfo (Dependencies): Likewise.
39577         * modules/quotearg (Dependencies): Likewise.
39578         * modules/unicase/locale-language (Dependencies): Likewise.
39579         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
39580         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
39581         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
39582         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
39583         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
39584         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
39585         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
39586         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
39587         * modules/vasnprintf-posix (Dependencies): Likewise.
39588         * modules/wcrtomb (Dependencies): Likewise.
39589         * modules/wcsnrtombs (Dependencies): Likewise.
39590         * modules/wcsrtombs (Dependencies): Likewise.
39592 2011-02-12  Bruno Haible  <bruno@clisp.org>
39594         setlocale: Workaround native Windows bug.
39595         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
39596         succeeds but sets LC_CTYPE to "C", report a failure.
39597         * tests/test-setlocale2.sh: New file.
39598         * tests/test-setlocale2.c: New file.
39599         * modules/setlocale-tests (Files): Add the new files.
39600         (Makefile.am): Enable test-setlocale2.sh test.
39601         * doc/posix-functions/setlocale.texi: Mention workaround.
39603 2011-02-11  Bruno Haible  <bruno@clisp.org>
39605         Tests for module 'setlocale'.
39606         * modules/setlocale-tests: New file.
39607         * tests/test-setlocale1.sh: New file.
39608         * tests/test-setlocale1.c: New file.
39610         New module 'setlocale'.
39611         * lib/locale.in.h (setlocale): New declaration.
39612         * lib/setlocale.c: New file, based on
39613         gettext/gettext-runtime/intl/setlocale.c.
39614         * m4/setlocale.m4: New file.
39615         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
39616         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
39617         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
39618         REPLACE_SETLOCALE.
39619         * modules/setlocale: New file.
39620         * tests/test-locale-c++.cc: Test the declaration of setlocale.
39621         * doc/posix-functions/setlocale.texi: Mention the new module.
39623 2011-02-11  Bruno Haible  <bruno@clisp.org>
39625         Prepare for locale dependent tests on mingw.
39626         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
39627         because it has the wrong locale encoding.
39628         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
39629         French_France.1252 instead of "fr".
39630         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
39631         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
39632         because it has the wrong locale encoding.
39633         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
39634         native Windows, try Turkish_Turkey.65001.
39635         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
39636         Chinese_China.54936.
39638         Prepare for locale dependent tests on mingw.
39639         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
39640         differently.
39641         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
39642         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
39643         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39646 2011-02-11  Eric Blake  <eblake@redhat.com>
39648         strptime: avoid compiler warnings
39649         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
39650         compiler warnings about dead code.
39651         Reported by Daniel P. Berrange.
39653 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
39655         doc: update users.txt
39656         * users.txt: Add rcs.
39658 2011-02-10  John W. Eaton  <jwe@gnu.org>
39660         doc: update users.txt
39661         * users.txt: Add octave.
39663 2011-02-10  Jim Meyering  <meyering@redhat.com>
39665         doc: update users.txt
39666         * users.txt: Add iwhd.
39668 2011-02-09  Bruno Haible  <bruno@clisp.org>
39670         gnulib-tool: Make copyright notice adjustment more robust.
39671         * gnulib-tool (func_import): In sed_transform_main_lib_file,
39672         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
39673         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
39674         License".
39675         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
39677 2011-02-06  Bruno Haible  <bruno@clisp.org>
39679         New module 'towctrans'.
39680         * modules/towctrans: New file.
39681         * lib/wctype.in.h (towctrans): New declaration.
39682         * lib/towctrans.c: New file.
39683         * lib/towctrans-impl.h: New file.
39684         * m4/towctrans.m4: New file.
39685         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
39686         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
39687         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
39688         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
39689         * doc/posix-functions/towctrans.texi: Mention the new module.
39691 2011-02-06  Bruno Haible  <bruno@clisp.org>
39693         New module 'wctrans'.
39694         * modules/wctrans: New file.
39695         * lib/wctype.in.h (wctrans): New declaration.
39696         * lib/wctrans.c: New file.
39697         * lib/wctrans-impl.h: New file.
39698         * m4/wctrans.m4: New file.
39699         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
39700         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
39701         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
39702         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
39703         * doc/posix-functions/wctrans.texi: Mention the new module.
39705 2011-02-06  Bruno Haible  <bruno@clisp.org>
39707         New module 'iswctype'.
39708         * modules/iswctype: New file.
39709         * lib/wctype.in.h (iswctype): New declaration.
39710         * lib/iswctype.c: New file.
39711         * lib/iswctype-impl.h: New file.
39712         * m4/iswctype.m4: New file.
39713         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
39714         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
39715         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
39716         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
39717         * doc/posix-functions/iswctype.texi: Mention the new module and the
39718         HP-UX 11.00 problem.
39720 2011-02-06  Bruno Haible  <bruno@clisp.org>
39722         New module 'wctype'.
39723         * modules/wctype: Change to represent the wctype() substitute.
39724         * lib/wctype.in.h (wctype): New declaration.
39725         * lib/wctype.c: New file.
39726         * lib/wctype-impl.h: New file.
39727         * m4/wctype.m4: New file.
39728         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
39729         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
39730         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
39731         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
39732         * doc/posix-functions/wctype.texi: Mention the new module and the
39733         HP-UX 11.00 problem.
39735 2011-02-06  Bruno Haible  <bruno@clisp.org>
39737         wctype-h: Ensure wctype_t and wctrans_t are defined.
39738         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
39739         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39740         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39741         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
39742         HAVE_WCTRANS_T.
39743         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
39745 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39747         flock: fix license typo
39749         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
39750         omitted.
39752 2011-02-08  Bruno Haible  <bruno@clisp.org>
39754         Split large sed scripts, for HP-UX sed.
39755         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
39756         to avoid HP-UX limit of 99 commands, in the near future.
39757         * modules/stdlib (Makefile.am): Likewise.
39758         * modules/unistd (Makefile.am): Likewise.
39759         * modules/wchar (Makefile.am): Likewise.
39760         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39761         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
39762         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
39764 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39765             Bruno Haible  <bruno@clisp.org>
39767         stdlib: improve random_r modularization
39768         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
39769         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
39770         you also need the random_r module to get this material right.
39771         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
39772         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
39773         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
39775 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39777         stdlib: don't depend on stdint
39778         * lib/stdlib.in.h: Don't include <stdint.h> merely because
39779         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
39780         be independent of whether stdint.h is needed.
39781         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
39782         here, instead of ...
39783         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
39784         struct random_data should be using the random_r module, not just
39785         the stdlib module (which wouldn't make sense: what package needs
39786         just struct random_data without also needing random_r?).
39787         * modules/stdlib (Depends-on): Remove stdint.
39789         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
39790         See the thread rooted at
39791         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
39792         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
39793         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
39794         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
39795         __VMS)); previously it was always included (via fcntl--.h).
39796         (getloadavg): Do not use c_strtod.  Instead, approximate it by
39797         hand; this is good enough for load averages.  Also, do not use
39798         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
39799         flags directly if available and don't bother otherwise.  (Packages
39800         that need the extra reliability should use the modules that define
39801         these flags on older platforms that lack them.)
39802         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
39803         fcntl-safer.
39805 2011-02-08  Jim Meyering  <meyering@redhat.com>
39807         di-set.h, ino-map.h: add multiple-inclusion guard
39808         Technically, the guard is required only for ino-map.h, due to its
39809         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
39810         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
39811         * lib/ino-map.h: Likewise.
39813 2011-02-06  Bruno Haible  <bruno@clisp.org>
39815         iswblank: Ensure declaration on glibc systems.
39816         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
39817         * modules/iswblank (Dependencies): Add 'extensions'.
39818         * doc/posix-functions/iswblank.texi: Document the glibc problem.
39820 2011-02-06  Bruno Haible  <bruno@clisp.org>
39822         New module 'iswblank'.
39823         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
39824         * modules/iswblank: New file.
39825         * modules/wctype-h (Files): Remove lib/iswblank.c.
39826         (Makefile.am): Substitute GNULIB_ISWBLANK.
39827         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
39828         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
39829         (gl_WCTYPE_H_DEFAULTS): New macro.
39830         (gl_WCTYPE_H): Require it. Remove iswblank related code.
39831         * modules/iswblank-tests: New file.
39832         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
39833         * tests/test-wctype-h.c (main): Remove iswblank tests.
39834         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
39835         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
39836         of 'wctype-h'.
39837         * NEWS: Mention the change.
39838         * modules/mbchar (Depends-on): Add iswblank.
39840 2011-02-08  Bruno Haible  <bruno@clisp.org>
39842         di-set tests: Refactor.
39843         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
39844         unnecessary includes.
39845         (ASSERT): Remove macro.
39846         (main): Make C90 compliant by avoiding variable declaration after
39847         statement.
39848         * modules/di-set-tests (Files): Add tests/macros.h.
39850 2011-02-08  Bruno Haible  <bruno@clisp.org>
39852         ino-map tests: Refactor.
39853         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
39854         unnecessary includes.
39855         (ASSERT): Remove macro.
39856         (main): Make C90 compliant by avoiding variable declaration after
39857         statement.
39858         * modules/ino-map-tests (Files): Add tests/macros.h.
39860 2011-02-08  Jim Meyering  <meyering@redhat.com>
39862         di-set: add "const" to a cast
39863         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
39864         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
39866 2011-02-06  Bruno Haible  <bruno@clisp.org>
39868         Rename module 'wctype' to 'wctype-h'.
39869         * modules/wctype-h: Renamed from modules/wctype.
39870         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
39871         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
39872         (Files, Depends-on, Makefile.am): Update.
39873         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
39874         (Files, Makefile.am): Update.
39875         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
39876         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
39877         * doc/posix-headers/wctype.texi: Update.
39878         * doc/posix-functions/iswalnum.texi: Update.
39879         * doc/posix-functions/iswalpha.texi: Update.
39880         * doc/posix-functions/iswblank.texi: Update.
39881         * doc/posix-functions/iswcntrl.texi: Update.
39882         * doc/posix-functions/iswdigit.texi: Update.
39883         * doc/posix-functions/iswgraph.texi: Update.
39884         * doc/posix-functions/iswlower.texi: Update.
39885         * doc/posix-functions/iswprint.texi: Update.
39886         * doc/posix-functions/iswpunct.texi: Update.
39887         * doc/posix-functions/iswspace.texi: Update.
39888         * doc/posix-functions/iswupper.texi: Update.
39889         * doc/posix-functions/iswxdigit.texi: Update.
39890         * doc/posix-functions/towlower.texi: Update.
39891         * doc/posix-functions/towupper.texi: Update.
39892         * NEWS: Mention the change.
39893         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
39894         * modules/mbchar (Dependencies): Likewise.
39895         * modules/mbswidth (Dependencies): Likewise.
39896         * modules/quotearg (Dependencies): Likewise.
39897         * modules/regex (Dependencies): Likewise.
39898         * modules/wcscasecmp (Dependencies): Likewise.
39899         * modules/wcsncasecmp (Dependencies): Likewise.
39900         * modules/wcwidth (Dependencies): Likewise.
39902 2011-02-06  Bruno Haible  <bruno@clisp.org>
39904         New module 'wcswidth'.
39905         * modules/wcswidth: New file.
39906         * lib/wchar.in.h (wcswidth): New declaration.
39907         * lib/wcswidth.c: New file.
39908         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
39909         * m4/wcswidth.m4: New file.
39910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
39911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
39912         REPLACE_WCSWIDTH.
39913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
39914         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
39915         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
39916         * doc/posix-functions/wcswidth.texi: Mention the new module.
39918 2011-02-06  Bruno Haible  <bruno@clisp.org>
39920         New module 'wcstok'.
39921         * modules/wcstok: New file.
39922         * lib/wchar.in.h (wcstok): New declaration.
39923         * lib/wcstok.c: New file.
39924         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
39925         * m4/wcstok.m4: New file.
39926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
39927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
39928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
39929         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
39930         * doc/posix-functions/wcstok.texi: Mention the new module.
39932 2011-02-06  Bruno Haible  <bruno@clisp.org>
39934         New module 'wcsstr'.
39935         * modules/wcsstr: New file.
39936         * lib/wchar.in.h (wcsstr): New declaration.
39937         * lib/wcsstr.c: New file.
39938         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
39939         * m4/wcsstr.m4: New file.
39940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
39941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
39942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
39943         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
39944         * doc/posix-functions/wcsstr.texi: Mention the new module.
39946 2011-02-06  Bruno Haible  <bruno@clisp.org>
39948         New module 'wcspbrk'.
39949         * modules/wcspbrk: New file.
39950         * lib/wchar.in.h (wcspbrk): New declaration.
39951         * lib/wcspbrk.c: New file.
39952         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
39953         * m4/wcspbrk.m4: New file.
39954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
39955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
39956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
39957         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
39958         * doc/posix-functions/wcspbrk.texi: Mention the new module.
39960 2011-02-06  Bruno Haible  <bruno@clisp.org>
39962         New module 'wcsspn'.
39963         * modules/wcsspn: New file.
39964         * lib/wchar.in.h (wcsspn): New declaration.
39965         * lib/wcsspn.c: New file.
39966         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
39967         * m4/wcsspn.m4: New file.
39968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
39969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
39970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
39971         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
39972         * doc/posix-functions/wcsspn.texi: Mention the new module.
39974 2011-02-06  Bruno Haible  <bruno@clisp.org>
39976         New module 'wcscspn'.
39977         * modules/wcscspn: New file.
39978         * lib/wchar.in.h (wcscspn): New declaration.
39979         * lib/wcscspn.c: New file.
39980         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
39981         * m4/wcscspn.m4: New file.
39982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
39983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
39984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
39985         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
39986         * doc/posix-functions/wcscspn.texi: Mention the new module.
39988 2011-02-06  Bruno Haible  <bruno@clisp.org>
39990         New module 'wcsrchr'.
39991         * modules/wcsrchr: New file.
39992         * lib/wchar.in.h (wcsrchr): New declaration.
39993         * lib/wcsrchr.c: New file.
39994         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
39995         * m4/wcsrchr.m4: New file.
39996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
39997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
39998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
39999         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
40000         * doc/posix-functions/wcsrchr.texi: Mention the new module.
40002 2011-02-06  Bruno Haible  <bruno@clisp.org>
40004         New module 'wcschr'.
40005         * modules/wcschr: New file.
40006         * lib/wchar.in.h (wcschr): New declaration.
40007         * lib/wcschr.c: New file.
40008         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
40009         * m4/wcschr.m4: New file.
40010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
40011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
40012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
40013         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
40014         * doc/posix-functions/wcschr.texi: Mention the new module.
40016 2011-02-06  Bruno Haible  <bruno@clisp.org>
40018         New module 'wcsdup'.
40019         * modules/wcsdup: New file.
40020         * lib/wchar.in.h (wcsdup): New declaration.
40021         * lib/wcsdup.c: New file.
40022         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
40023         * m4/wcsdup.m4: New file.
40024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
40025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
40026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
40027         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
40028         * doc/posix-functions/wcsdup.texi: Mention the new module.
40030 2011-02-06  Bruno Haible  <bruno@clisp.org>
40032         New module 'wcsxfrm'.
40033         * modules/wcsxfrm: New file.
40034         * lib/wchar.in.h (wcsxfrm): New declaration.
40035         * lib/wcsxfrm.c: New file.
40036         * lib/wcsxfrm-impl.h: New file.
40037         * m4/wcsxfrm.m4: New file.
40038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
40039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
40040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
40041         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
40042         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
40044 2011-02-06  Bruno Haible  <bruno@clisp.org>
40046         New module 'wcscoll'.
40047         * modules/wcscoll: New file.
40048         * lib/wchar.in.h (wcscoll): New declaration.
40049         * lib/wcscoll.c: New file.
40050         * lib/wcscoll-impl.h: New file.
40051         * m4/wcscoll.m4: New file.
40052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
40053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
40054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
40055         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
40056         * doc/posix-functions/wcscoll.texi: Mention the new module.
40058 2011-02-06  Bruno Haible  <bruno@clisp.org>
40060         New module 'wcsncasecmp'.
40061         * modules/wcsncasecmp: New file.
40062         * lib/wchar.in.h (wcsncasecmp): New declaration.
40063         * lib/wcsncasecmp.c: New file.
40064         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
40065         * m4/wcsncasecmp.m4: New file.
40066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
40067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
40068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
40069         HAVE_WCSNCASECMP.
40070         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
40071         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
40073 2011-02-06  Bruno Haible  <bruno@clisp.org>
40075         New module 'wcscasecmp'.
40076         * modules/wcscasecmp: New file.
40077         * lib/wchar.in.h (wcscasecmp): New declaration.
40078         * lib/wcscasecmp.c: New file.
40079         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
40080         * m4/wcscasecmp.m4: New file.
40081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
40082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
40083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
40084         HAVE_WCSCASECMP.
40085         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
40086         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
40088 2011-02-05  Bruno Haible  <bruno@clisp.org>
40090         New module 'wcsncmp'.
40091         * modules/wcsncmp: New file.
40092         * lib/wchar.in.h (wcsncmp): New declaration.
40093         * lib/wcsncmp.c: New file.
40094         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
40095         * m4/wcsncmp.m4: New file.
40096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
40097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
40098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
40099         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
40100         * doc/posix-functions/wcsncmp.texi: Mention the new module.
40102 2011-02-05  Bruno Haible  <bruno@clisp.org>
40104         New module 'wcscmp'.
40105         * modules/wcscmp: New file.
40106         * lib/wchar.in.h (wcscmp): New declaration.
40107         * lib/wcscmp.c: New file.
40108         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
40109         * m4/wcscmp.m4: New file.
40110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
40111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
40112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
40113         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
40114         * doc/posix-functions/wcscmp.texi: Mention the new module.
40116 2011-02-05  Bruno Haible  <bruno@clisp.org>
40118         New module 'wcsncat'.
40119         * modules/wcsncat: New file.
40120         * lib/wchar.in.h (wcsncat): New declaration.
40121         * lib/wcsncat.c: New file.
40122         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
40123         * m4/wcsncat.m4: New file.
40124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
40125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
40126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
40127         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
40128         * doc/posix-functions/wcsncat.texi: Mention the new module.
40130 2011-02-05  Bruno Haible  <bruno@clisp.org>
40132         New module 'wcscat'.
40133         * modules/wcscat: New file.
40134         * lib/wchar.in.h (wcscat): New declaration.
40135         * lib/wcscat.c: New file.
40136         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
40137         * m4/wcscat.m4: New file.
40138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
40139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
40140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
40141         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
40142         * doc/posix-functions/wcscat.texi: Mention the new module.
40144 2011-02-05  Bruno Haible  <bruno@clisp.org>
40146         New module 'wcpncpy'.
40147         * modules/wcpncpy: New file.
40148         * lib/wchar.in.h (wcpncpy): New declaration.
40149         * lib/wcpncpy.c: New file.
40150         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
40151         * m4/wcpncpy.m4: New file.
40152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
40153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
40154         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
40155         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
40156         * doc/posix-functions/wcpncpy.texi: Mention the new module.
40158 2011-02-05  Bruno Haible  <bruno@clisp.org>
40160         New module 'wcsncpy'.
40161         * modules/wcsncpy: New file.
40162         * lib/wchar.in.h (wcsncpy): New declaration.
40163         * lib/wcsncpy.c: New file.
40164         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
40165         * m4/wcsncpy.m4: New file.
40166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
40167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
40168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
40169         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
40170         * doc/posix-functions/wcsncpy.texi: Mention the new module.
40172 2011-02-05  Bruno Haible  <bruno@clisp.org>
40174         New module 'wcpcpy'.
40175         * modules/wcpcpy: New file.
40176         * lib/wchar.in.h (wcpcpy): New declaration.
40177         * lib/wcpcpy.c: New file.
40178         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
40179         * m4/wcpcpy.m4: New file.
40180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
40181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
40182         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
40183         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
40184         * doc/posix-functions/wcpcpy.texi: Mention the new module.
40186 2011-02-05  Bruno Haible  <bruno@clisp.org>
40188         New module 'wcscpy'.
40189         * modules/wcscpy: New file.
40190         * lib/wchar.in.h (wcscpy): New declaration.
40191         * lib/wcscpy.c: New file.
40192         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
40193         * m4/wcscpy.m4: New file.
40194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
40195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
40196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
40197         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
40198         * doc/posix-functions/wcscpy.texi: Mention the new module.
40200 2011-02-05  Bruno Haible  <bruno@clisp.org>
40202         New module 'wcsnlen'.
40203         * modules/wcsnlen: New file.
40204         * lib/wchar.in.h (wcsnlen): New declaration.
40205         * lib/wcsnlen.c: New file.
40206         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
40207         * m4/wcsnlen.m4: New file.
40208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
40209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
40210         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
40211         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
40212         * doc/posix-functions/wcsnlen.texi: Mention the new module.
40214 2011-02-05  Bruno Haible  <bruno@clisp.org>
40216         New module 'wcslen'.
40217         * modules/wcslen: New file.
40218         * lib/wchar.in.h (wcslen): New declaration.
40219         * lib/wcslen.c: New file.
40220         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
40221         * m4/wcslen.m4: New file.
40222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
40223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
40224         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
40225         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
40226         * doc/posix-functions/wcslen.texi: Mention the new module.
40228 2011-02-05  Bruno Haible  <bruno@clisp.org>
40230         New module 'wmemset'.
40231         * modules/wmemset: New file.
40232         * lib/wchar.in.h (wmemset): New declaration.
40233         * lib/wmemset.c: New file.
40234         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
40235         * m4/wmemset.m4: New file.
40236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
40237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
40238         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
40239         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
40240         * doc/posix-functions/wmemset.texi: Mention the new module.
40242 2011-02-05  Bruno Haible  <bruno@clisp.org>
40244         New module 'wmemmove'.
40245         * modules/wmemmove: New file.
40246         * lib/wchar.in.h (wmemmove): New declaration.
40247         * lib/wmemmove.c: New file.
40248         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
40249         * m4/wmemmove.m4: New file.
40250         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
40251         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
40252         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
40253         HAVE_WMEMMOVE.
40254         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
40255         * doc/posix-functions/wmemmove.texi: Mention the new module.
40257 2011-02-05  Bruno Haible  <bruno@clisp.org>
40259         New module 'wmemcpy'.
40260         * modules/wmemcpy: New file.
40261         * lib/wchar.in.h (wmemcpy): New declaration.
40262         * lib/wmemcpy.c: New file.
40263         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
40264         * m4/wmemcpy.m4: New file.
40265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
40266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
40267         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
40268         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
40269         * doc/posix-functions/wmemcpy.texi: Mention the new module.
40271 2011-02-05  Bruno Haible  <bruno@clisp.org>
40273         New module 'wmemcmp'.
40274         * modules/wmemcmp: New file.
40275         * lib/wchar.in.h (wmemcmp): New declaration.
40276         * lib/wmemcmp.c: New file.
40277         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
40278         * m4/wmemcmp.m4: New file.
40279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
40280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
40281         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
40282         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
40283         * doc/posix-functions/wmemcmp.texi: Mention the new module.
40285 2011-02-07  Jim Meyering  <meyering@redhat.com>
40287         di-set, ino-map: new modules, from coreutils
40288         * lib/di-set.c: New file.
40289         * lib/di-set.h: Likewise.
40290         * lib/ino-map.c: Likewise.
40291         * lib/ino-map.h: Likewise.
40292         * modules/di-set: Likewise.
40293         * modules/di-set-tests: Likewise.
40294         * modules/ino-map: Likewise.
40295         * modules/ino-map-tests: Likewise.
40296         * tests/test-di-set.c: Likewise.
40297         * tests/test-ino-map.c: Likewise.
40299 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
40301         getloadavg: merge minor changes from Emacs
40303         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
40304         (getloadavg): Use memset, not bzero.
40306         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
40307         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
40308         clash (bug#86).
40310 2010-11-14  Bruno Haible  <bruno@clisp.org>
40312         Allow multiple gnulib generated replacements to coexist.
40313         * lib/getopt.in.h (struct option): Avoid identical redefinition.
40314         * lib/inttypes.in.h (imaxdiv_t): Likewise.
40315         * lib/langinfo.in.h (nl_item): Likewise.
40316         * lib/math.in.h (_NaN, NAN): Likewise.
40317         * lib/netdb.in.h (struct addrinfo): Likewise.
40318         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
40319         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
40320         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
40321         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
40322         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
40323         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
40324         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
40325         pthread_mutexattr_init, pthread_mutexattr_settype,
40326         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
40327         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
40328         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
40329         pthread_spin_trylock, pthread_spin_unlock): Likewise.
40330         * lib/sched.in.h (struct sched_param): Likewise.
40331         * lib/se-selinux.in.h (security_class_t, security_context_t,
40332         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
40333         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
40334         lsetfilecon, fsetfilecon, security_check_context,
40335         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
40336         Likewise.
40337         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
40338         Likewise.
40339         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
40340         _gl_function_taking_int_returning_void_t, union sigval,
40341         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
40342         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
40343         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
40344         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
40345         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
40346         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
40347         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
40348         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
40349         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
40350         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
40351         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
40352         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
40353         socklen_t, rpl_fd_isset): Likewise.
40354         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
40355         * lib/sys_time.in.h (struct timeval): Likewise.
40356         * lib/sys_times.in.h (struct tms): Likewise.
40357         * lib/sys_utsname.in.h (struct utsname):
40358         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
40359         * lib/unistd.in.h (getpagesize): Likewise.
40360         * lib/wchar.in.h (mbstate_t): Likewise.
40361         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40362         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
40363         towlower, towupper): Likewise.
40364         Reported by Sam Steingold <sds@gnu.org>.
40366 2011-02-05  Eric Blake  <eblake@redhat.com>
40368         unsetenv: work around Haiku issues
40369         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
40370         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
40372 2010-12-30  Bruce Korb  <bkorb@gnu.org>
40374         libposix: avoid calling error() within libposix
40375         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
40376         is defined.
40378 2011-02-05  Eric Blake  <eblake@redhat.com>
40380         strerror_r-posix: port to cygwin
40381         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
40382         implementation.
40383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
40384         * tests/test-strerror_r.c (main): Fix test.
40385         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
40386         issue.
40388 2011-02-05  Bruno Haible  <bruno@clisp.org>
40390         New module 'wmemchr'.
40391         * modules/wmemchr: New file.
40392         * lib/wchar.in.h (wmemchr): New declaration.
40393         * lib/wmemchr.c: New file.
40394         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
40395         * m4/wmemchr.m4: New file.
40396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
40397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
40398         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
40399         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
40400         * doc/posix-functions/wmemchr.texi: Mention the new module.
40402 2011-02-04  Eric Blake  <eblake@redhat.com>
40404         fdopendir: detect FreeBSD bug
40405         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
40406         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
40408 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
40410         stdbool: do not define HAVE_STDBOOL_H
40411         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
40412         AC_HEADER_STDBOOL.  All uses changed.  Do not define
40413         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
40414         imported from the latest Autoconf git.  It was motivated by Emacs,
40415         which uses gnulib but does not need HAVE_STDBOOL_H.
40417 2011-02-04  Bruno Haible  <bruno@clisp.org>
40419         wcsnrtombs: Prepare for new module wwcsnrtombs.
40420         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
40421         * lib/wcsnrtombs.c: Include it.
40422         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
40424         wcsrtombs: Prepare for new module wwcsrtombs.
40425         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
40426         * lib/wcsrtombs.c: Include it.
40427         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
40429         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
40430         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
40431         * lib/mbsnrtowcs.c: Include it.
40432         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
40434         mbsrtowcs: Prepare for new module mbsrtowwcs.
40435         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
40436         * lib/mbsrtowcs.c: Include it.
40437         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
40439 2011-02-04  Bruno Haible  <bruno@clisp.org>
40441         vasnprintf: Reduce use of malloc for small format strings.
40442         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
40443         (arguments): Add room for the first 7 arguments.
40444         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
40445         (char_directives, u8_directives, u16_directives, u32_directives): Add
40446         room for the first 7 directives.
40447         * lib/printf-parse.c: Include <string.h>.
40448         (PRINTF_PARSE): Change memory handling code so that it uses the first
40449         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
40450         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
40451         Reported by Pádraig Brady <P@draigbrady.com>.
40453 2011-01-31  Eric Blake  <eblake@redhat.com>
40455         dup2: work around Haiku bug
40456         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
40457         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
40458         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40459         * tests/test-dup2.c (main): Enhance test.
40461 2011-01-31  Simon Josefsson  <simon@josefsson.org>
40463         doc: off_t is not available in eglibc 2.11.2 stdio.h.
40464         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
40465         declared by eglibc 2.11.2.
40466         * lib/stdio.in.h: Likewise.
40468 2011-01-31  Eric Blake  <eblake@redhat.com>
40470         ignore-value: add missing test dependency
40471         * tests/test-ignore-value.c: Revert previous change; stdio.h
40472         provides off_t.
40473         * modules/ignore-value-tests (Depends-on): Add missing dependency.
40475 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
40477         mktime: clarify long_int width checking
40478         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
40479         the top level, to make it clearer that the assumption about
40480         long_int width is being checked.  See
40481         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
40483 2011-01-30  Simon Josefsson  <simon@josefsson.org>
40485         ignore-value: Fix self-test.
40486         * tests/test-ignore-value.c: Include sys/types.h for off_t.
40488 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
40490         TYPE_MAXIMUM: avoid theoretically undefined behavior
40491         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
40492         negative number, which the C Standard says has undefined behavior.
40493         In practice this is not a problem, but might as well do it by the book.
40494         Reported by Rich Felker and Eric Blake; see
40495         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
40496         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
40497         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40499         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
40500         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40501         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
40503         mktime: #undef mktime before #defining it
40504         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
40506         mktime: systematically normalize tm_isdst comparisons
40507         * lib/mktime.c (isdst_differ): New function.
40508         (__mktime_internal): Use it systematically for all isdst comparisons.
40509         This completes the fix for libc BZ #6723, and removes the need for
40510         normalizing tm_isdst.  See
40511         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
40512         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
40514         mktime: fix some integer overflow issues and sidestep the rest
40516         This was prompted by a bug report by Benjamin Lindner for MinGW
40517         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
40518         His bug is due to signed integer overflow (0 - INT_MIN), and I
40519         I scanned through mktime.c looking for other integer overflow
40520         problems, fixing all the bugs I found.
40522         Although the C Standard says the resulting code is still not safe
40523         in the presence of integer overflow, in practice it should be good
40524         enough for all real-world two's-complement implementations, except
40525         for debugging environments that deliberately trap on integer
40526         overflow (e.g., gcc -ftrapv).
40528         * lib/mktime.c (WRAPV): New macro.
40529         (SHR): Also check that long_int and time_t shift right in the
40530         usual way, before using the fast-but-unportable method.
40531         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
40532         used.  The code already assumed two's complement, so there's
40533         no need to test for alternatives.  All uses removed.
40534         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
40535         the C standard.  Problem reported by Rich Felker in
40536         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
40537         (twos_complement_arithmetic): Also check long_int and time_t.
40538         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
40539         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
40540         (__mktime_internal): Avoid integer overflow with unary subtraction
40541         in two instances where -1 - X is an adequate replacement for -X,
40542         since the calculations are approximate.
40544 2011-01-29  Eric Blake  <eblake@redhat.com>
40546         mktime: avoid infinite loop
40547         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
40548         type; behavior is still undefined but portable to all known targets.
40549         Reported by Rich Felker.
40551 2011-01-29  Simon Josefsson  <simon@josefsson.org>
40553         rename, unlink, same-inode: Relicense.
40554         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
40555         * modules/unlink (License): Likewise.
40556         * modules/same-inode (License): Likewise.
40558 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40560         mktime: avoid problems on NetBSD 5 / i386
40561         * lib/mktime.c (long_int): New type.  This works around a problem
40562         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
40563         but time_t is 64 bits, and where I expect the existing code is
40564         wrong in some cases.
40565         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
40566         (ydhms_diff): Bring back the compile-time check for wide-enough
40567         year and yday.
40569         mktime: fix misspelling in comment
40570         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
40571         This merges all recent glibc changes of importance.
40573 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40575         move-if-change: cope with concurrent mv of identical file.
40576         * build-aux/move-if-change (CMPPROG): Accept environment
40577         variable as an override for `cmp'.
40578         (usage): Document CMPPROG.
40579         Adjust comparison to drop stdout.  Cope with failure of mv if
40580         the target file exists and is identical to the source, for
40581         parallel builds.
40582         Report from H.J. Lu against binutils in PR binutils/12283.
40584 2011-01-28  Bruce Korb  <bkorb@gnu.org>
40586         * users.txt: Mention sharutils.
40588 2011-01-28  Simon Josefsson  <simon@josefsson.org>
40590         * users.txt: Mention OATH Toolkit.
40592 2011-01-27  Bruno Haible  <bruno@clisp.org>
40594         Prepare for supporting FreeBSD 10.
40595         * build-aux/config.libpath: Remove handling of freebsd1*.
40597 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
40599         Prepare for supporting FreeBSD 10.
40600         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
40601         match FreeBSD 10.0.
40603 2011-01-27  Bruno Haible  <bruno@clisp.org>
40605         vma-iter, get-rusage-as: Add OpenBSD support.
40606         * modules/vma-iter (configure.ac): Test for mquery.
40607         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
40608         * lib/vma-iter.c: Include <sys/mman.h>.
40609         (vma_iterate): Add an implementation based on mquery().
40610         * lib/resource-ext.h (get_rusage_as): Update comments.
40611         * lib/get-rusage-as.c: Likewise.
40612         * lib/get-rusage-data.c: Likewise.
40614 2011-01-26  Karl Berry  <karl@gnu.org>
40616         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
40617         variables to make it easier to override the makeinfo program used.
40619 2011-01-26  Eric Blake  <eblake@redhat.com>
40621         fcntl: work around Haiku F_DUPFD bugs
40622         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
40623         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
40624         cloexec bit on duplication.
40625         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
40627 2011-01-26  Bruno Haible  <bruno@clisp.org>
40629         Enable memory leak tests on AIX.
40630         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
40631         * tests/test-fprintf-posix3.c (main): Likewise.
40633 2011-01-26  Bruno Haible  <bruno@clisp.org>
40635         Tests for module 'get-rusage-data'.
40636         * modules/get-rusage-data-tests: New file.
40637         * tests/test-get-rusage-data.c: New file.
40639         New module 'get-rusage-data'.
40640         * lib/resource-ext.h (get_rusage_data): New declaration.
40641         * lib/get-rusage-data.c: New file.
40642         * modules/get-rusage-data: New file.
40644 2011-01-25  Bruno Haible  <bruno@clisp.org>
40646         get-rusage-as: Allow for easier testing.
40647         * lib/resource-ext.h (get_rusage_as): Add comment.
40648         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
40649         (main): New function for interactive testing.
40651 2011-01-25  Bruno Haible  <bruno@clisp.org>
40653         vma-iter: Treat Haiku like BeOS.
40654         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
40655         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
40657 2011-01-25  Eric Blake  <eblake@redhat.com>
40659         c-stack: fix regression on cygwin when libsigsegv is present
40660         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
40662 2011-01-24  Bruno Haible  <bruno@clisp.org>
40664         vma-iter: Avoid empty intervals.
40665         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
40666         on an empty interval.
40668 2011-01-24  Jim Meyering  <meyering@redhat.com>
40670         u64: remove unnecessary #include
40671         * lib/u64.h: Don't include <stddef.h>.  It was not used.
40673 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40675         Allow the user to avoid the HAVE_RAW_DECL_* macros.
40676         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
40678 2011-01-23  Bruno Haible  <bruno@clisp.org>
40680         New module 'vma-iter'.
40681         * lib/vma-iter.h: New file.
40682         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
40683         * modules/vma-iter: New file.
40684         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
40685         for get_rusage_as_via_iterator.
40686         (vma_iterate_callback): New function.
40687         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
40688         * modules/get-rusage-as (Depends-on): Add vma-iter.
40690 2011-01-23  Bruno Haible  <bruno@clisp.org>
40692         uninorm: Tweak includes.
40693         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
40694         Reported by Jim Meyering.
40696 2011-01-23  Bruno Haible  <bruno@clisp.org>
40698         get-rusage-as: Improve on NetBSD.
40699         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
40700         /proc, like on FreeBSD.
40702 2011-01-23  Jim Meyering  <meyering@redhat.com>
40704         xreadlink.h: remove unnecessary #include
40705         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
40707         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
40708         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
40710 2011-01-23  Bruno Haible  <bruno@clisp.org>
40712         get-rusage-as: Fix bug.
40713         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
40714         original limit when aborting the first loop.
40716 2011-01-23  Bruno Haible  <bruno@clisp.org>
40718         wctype: Ensure valid C syntax.
40719         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
40720         unconditionally, instead of gl_NEXT_HEADERS conditionally.
40722 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
40724         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
40725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
40726         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
40727         as they are needed only for configure's test case.
40728         This removes two unnecessary symbols from config.h.
40730         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
40731         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
40732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
40733         AC_CHECK_HEADERS_ONCE on a header that we also invoke
40734         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
40735         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
40736         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
40737         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
40738         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40739         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40740         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40743         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
40744         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
40745         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40746         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
40747         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40749 2011-01-21  Eric Blake  <eblake@redhat.com>
40751         maintainer-makefile: work with older git for submodule check
40752         * top/maint.mk (public-submodule-commit): Rewrite to avoid
40753         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
40754         Reported by Matthias Bolte.
40756         bootstrap: minor portability fixes
40757         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
40758         (usage): Omit leading capital and trailing . on help phrases, per
40759         GNU Coding Standards.
40760         (check_versions, top level): Prefix messages with script name.
40762 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
40764         bootstrap: support --no-git option
40765         * build-aux/bootstrap: Add --no-git option, to be used when
40766         --gnulib-srcdir points to the exact desired checkout.
40768 2011-01-21  Eric Blake  <eblake@redhat.com>
40770         strerror_r-posix: work with glibc 2.13
40771         * lib/strerror_r.c (strerror_r): Fix return type.
40773 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40774             Bruno Haible  <bruno@clisp.org>
40776         uN_strstr: New unit tests.
40777         * modules/unistr/u8-strstr-tests: New file.
40778         * modules/unistr/u16-strstr-tests: New file.
40779         * modules/unistr/u32-strstr-tests: New file.
40780         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
40781         * tests/unistr/test-u8-strstr.c: New file.
40782         * tests/unistr/test-u16-strstr.c: New file.
40783         * tests/unistr/test-u32-strstr.c: New file.
40785 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40786             Bruno Haible  <bruno@clisp.org>
40788         Make uN_strstr functions O(n) worst-case.
40789         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
40790         16-bit and 32-bit unit cases, use the unibyte algorithm from
40791         lib/mbsstr.c.
40792         * lib/unistr/u8-strstr.c: Include <string.h>.
40793         (UNIT_IS_UINT8_T): New macro.
40794         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
40795         (U_STRLEN, U_STRNLEN): New macros.
40796         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
40797         (U_STRLEN, U_STRNLEN): New macros.
40798         * modules/unistr/u8-strstr (Depends-on): Add strstr.
40799         (configure.ac): Update required libunistring version.
40800         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
40801         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
40802         malloca.
40803         (configure.ac): Update required libunistring version.
40804         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
40805         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
40806         malloca.
40807         (configure.ac): Update required libunistring version.
40809 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40810             Bruno Haible  <bruno@clisp.org>
40812         Prepare for faster uN_strstr functions.
40813         * lib/str-kmp.h: Support definable UNITs.
40814         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
40815         needle_len argument.
40816         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
40817         * lib/mbscasestr.c (mbscasestr): Likewise.
40819 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40821         malloca-tests: make faster by unsetting MALLOC_PERTURB_
40822         * tests/test-malloca.c (main): Unset the environment variable
40823         to greatly speed up the test.
40824         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
40825         * modules/malloca-tests: Depend on unsetenv.
40827 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40829         ignore-value: remove stdint dependency
40830         * lib/ignore-value.h: Remove <stdint.h>
40831         * modules/ignore-value: Remove stdint dependency.
40833 2011-01-21  Jim Meyering  <meyering@redhat.com>
40835         maint.mk: adjust variable name to be consistent with other gl_ vars
40836         * top/maint.mk (gl_public_submodule_commit): Rename the variable
40837         to be lower case.
40839 2011-01-20  Jim Meyering  <meyering@redhat.com>
40841         maint.mk: make "check" depend on public-submodule-commit by default
40842         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
40844 2011-01-20  Bruno Haible  <bruno@clisp.org>
40846         mbfile, mbiter: Complete change from 2008-12-21.
40847         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
40848         * m4/mbiter.m4 (gl_MBITER): Likewise.
40850 2011-01-20  Jim Meyering  <meyering@redhat.com>
40852         init.sh: insert space between each function name and "()"
40853         * tests/init.sh: Make it a little easier to see that a function's
40854         name is "warn_", and not "warn" when looking at the first part of
40855         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
40857 2011-01-20  Jim Meyering  <meyering@redhat.com>
40859         mountlist: clean up code formatting
40860         * lib/mountlist.c (read_file_system_list): Split a long line,
40861         correct bracing style, use NULL in place of "(struct statfs *)0",
40862         don't parenthesize return value, add spaces around "=" and after
40863         ";-in-for-stmt".
40865 2011-01-14  Markus Duft  <mduft@gentoo.org>
40867         mountlist: add support for Interix
40868         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
40869         Apply statvfs to all entries of /dev/fs.
40870         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
40871         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
40873 2011-01-20  Jim Meyering  <meyering@redhat.com>
40875         maint.mk: improve the public-submodule-commit rule
40876         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
40877         to suppress printing of its commands... unless V=1.
40878         Add git submodule's --quiet option to suppress printing of e.g.,
40879         "Entering gnulib" output.
40880         "cd" into $(srcdir) before running git submodule.
40882 2011-01-20  Bruno Haible  <bruno@clisp.org>
40884         include_next: Fix bug introduced on 2011-01-18.
40885         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
40886         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
40887         ac_cv_header_... variable if the second argument is not 'check'.
40888         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
40889         gl_NEXT_HEADERS_INTERNAL.
40891 2011-01-20  Bruno Haible  <bruno@clisp.org>
40893         Allow the user to avoid the GNULIB_TEST_* macros.
40894         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
40895         Suggested by Paul Eggert.
40897 2011-01-14  Jim Meyering  <meyering@redhat.com>
40899         bootstrap: avoid failure when there is no .gitmodules file
40900         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
40901         has been assigned to, even when its value is the empty string.
40902         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
40903         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
40904         Reported by John W. Eaton <jwe@gnu.org>.
40906 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40908         assume <ctype.h>, ..., <time.h> exist
40909         For years gnulib has been assuming the existence of the headers
40910         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
40911         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
40912         them, since they don't appear to be needed.
40913         * README (Portability guidelines): Document this.
40914         * lib/flock.c: Assume <fcntl.h> exists.
40915         * lib/regex_internal.h: Assume <locale.h> exists.
40916         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
40917         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
40918         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
40919         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
40920         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
40921         * m4/regex.m4 (gl_REGEX): Likewise.
40922         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
40923         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
40924         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
40925         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
40926         * tests/test-argp.c: Likewise.
40927         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
40929         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
40930         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
40931         AA_APPLE_UNIVERSAL_BUILD.  See
40932         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
40933         * NEWS: Document this.
40935 2011-01-19  Eric Blake  <eblake@redhat.com>
40937         c-stack: assume stack overflow if SA_SIGINFO unsupported
40938         * lib/c-stack.c (SIGACTION_WORKS): Rename...
40939         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
40940         sigaction will work.
40941         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
40942         behavior match Linux.
40943         * tests/test-c-stack.c (main): Prefer NULL for pointers.
40945         stdbool-tests: accommodate Haiku
40946         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
40948         binary-io: fix O_TEXT on Haiku
40949         * modules/binary-io (Depends-on): Add fcntl-h.
40950         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
40951         than blindly undefining O_TEXT.
40952         Reported by Scott McCreary.
40954 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40956         include_next: do not check for standard headers like stddef.h
40958         I found this problem when modifying Emacs to use gnulib.
40959         I noticed that it added HAVE_STDDEF_H to config.h, even though
40960         gnulib always assumes <stddef.h> exists as per README and this
40961         symbol is unnecessary.
40962         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
40963         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
40964         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
40965         faster for headers like stddef.h that are known to exist.
40966         (gl_CHECK_NEXT_HEADERS): Use it.
40967         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
40968         rather than gl_CHECK_NEXT_HEADERS.
40969         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
40970         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
40972 2011-01-18  Eric Blake  <eblake@redhat.com>
40974         ansi-c++-opt: skip C++ dependency style if C++ is unused
40975         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
40976         tests when we know C++ compilation is not desired.
40977         Reported by Scott McCreary.
40979 2011-01-18  Bruno Haible  <bruno@clisp.org>
40981         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
40982         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
40983         (main): Perform test also when getrlimit and setrlimit don't exist or
40984         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
40985         limiting the address space size using setrlimit, compare the address
40986         space size before and after the test.
40987         * tests/test-dprintf-posix2.c: Likewise.
40988         * tests/test-fprintf-posix3.sh: Update skip messages.
40989         * tests/test-dprintf-posix2.sh: Likewise.
40990         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
40991         * modules/dprintf-posix-tests (Depends-on): Likewise.
40992         Reported by Bruce Korb <bkorb@gnu.org> and
40993         Gary V. Vaughan <gary@gnu.org>.
40995 2011-01-18  Bruno Haible  <bruno@clisp.org>
40997         get-rusage-as: Improvement for Cygwin.
40998         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
40999         areas that are merely reserved.
41001 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41003         strftime: remove dependencies on multibyte modules
41005         strftime depended on mbrlen, mbsinit, and wchar, but these modules
41006         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
41007         only if __osf__ is defined, and I suspect OSF doesn't need these
41008         other modules.  If my guess is wrong, we'll need to come up with a
41009         variant of strftime that doesn't need the multibyte modules.
41011         I discovered this problem when attempting modify Emacs to use the
41012         strftime module.  With the previous gnulib, this caused Emacs to
41013         need 31 new files, ranging from lib/config.charset to
41014         m4/wint_t.m4.  This was overkill and I expect would be offputting
41015         to the Emacs maintainers.  After this change, only 6 new files are
41016         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
41017         stdbool.m4, and tm_gmtoff.m4.
41019         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
41020         Suggested by Bruno Haible in
41021         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
41022         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
41023         and do not check for wchar.h.
41024         * modules/strftime (Files): Remove m4/mbstate_t.m4.
41025         (Depends-on): Remove mbrlen, mbsinit, wchar.
41027 2011-01-18  Bruno Haible  <bruno@clisp.org>
41029         Tests for module 'get-rusage-as'.
41030         * modules/get-rusage-as-tests: New file.
41031         * tests/test-get-rusage-as.c: New file.
41033         New module 'get-rusage-as'.
41034         * modules/get-rusage-as: New file.
41035         * lib/resource-ext.h: New file.
41036         * lib/get-rusage-as.c: New file.
41038 2011-01-17  Eric Blake  <eblake@redhat.com>
41040         sigaction: relax license from LGPLv3+ to LGPLv2+
41041         * modules/sigaction (License): Relax to LGPLv2+.
41043 2011-01-14  Bruno Haible  <bruno@clisp.org>
41045         filemode: Make function declarations usable in C++ mode.
41046         * lib/filemode.h: Enclose function declarations in extern "C" block.
41047         Reported by John W. Eaton <jwe@gnu.org>.
41049 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
41051         save-cwd: no longer include "xgetcwd.h"
41052         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
41053         This avoids a compilation failure in projects that use save-cwd
41054         without also using the xgetcwd module.
41056 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41058         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
41059         This is so that a program like Emacs, which needs only dtoastr,
41060         does not have to bother with distributing and compiling ftoastr
41061         and ldtoastr.
41062         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
41063         * modules/dtoastr, modules/ldtoastr: New files.
41064         * modules/ftoastr: Now works just for 'float'.
41065         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
41066         (Makefile.am): Remove ftoastr.h (not needed and no effect),
41067         dtoastr.c, ldtoastr.c.
41069 2011-01-11  Jim Meyering  <meyering@redhat.com>
41071         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
41072         There is no need to work around the lack of the fchdir function,
41073         since gnulib can now provide a replacement when required.
41074         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
41075         * modules/save-cwd (Depends-on): Add fchdir.
41077 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41079         openat, save-cwd: avoid xmalloc
41081         This removes a direct (but undocumented) dependency of openat on
41082         xalloc, along with an indirect dependency via save-cwd.  It also
41083         removes a dependency of save-cwd on xgetcwd, and thereby
41084         indirectly on xalloc.  This change causes the openat substitute
41085         to fall back on save_cwd when memory is tight, and for save_cwd to
41086         fail instead of dying when memory is tight, but that's good enough.
41087         Problem and initial idea for fix reported by Bastien Roucaries in
41088         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
41090         * lib/openat-proc.c: Include stdlib.h (for malloc), not
41091         xalloc.h (for xmalloc).
41092         (openat_proc_name): Use malloc, not xmalloc.
41093         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
41094         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
41096         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
41097         This avoids heap allocation for file names whose lengths are in
41098         the range 512..1023, with the upper bound increasing to at most
41099         4031 depending on the platform's PATH_MAX.  (We do not want
41100         pathmax.h here as it might supply a non-constant PATH_MAX.)
41101         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
41102         Perhaps they should be moved to malloca.h?
41103         (OPENAT_BUFFER_SIZE): Use them.
41105 2011-01-10  Bruno Haible  <bruno@clisp.org>
41107         doc: Update users.txt.
41108         * users.txt: Add recutils.
41110 2011-01-09  Karl Berry  <karl@gnu.org>
41112         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
41114         * doc/configmake.texi: New file.
41115         * doc/gnulib.texi: Include it.
41116         * modules/configmake: Move documentation from here.
41118 2011-01-09  Bruno Haible  <bruno@clisp.org>
41120         Update to Unicode 6.0.0.
41121         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
41122         (get_lbp): Update for Unicode 6.0.0.
41123         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
41124         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
41125         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
41126         U+11001, U+11038..U+11046. Remove U+06DE.
41127         (uc_width): Fix bounds of planes.
41128         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41129         lib/uniwidth/width.c.
41130         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
41131         trailing whitespace removed.
41132         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
41133         without comments, but with the original copyright notice.
41134         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
41135         * lib/unicase/ignorable.h: Likewise.
41136         * lib/unicase/tocasefold.h: Likewise.
41137         * lib/unicase/tolower.h: Likewise.
41138         * lib/unicase/totitle.h: Likewise.
41139         * lib/unicase/toupper.h: Likewise.
41140         * lib/unictype/bidi_of.h: Likewise.
41141         * lib/unictype/blocks.h: Likewise.
41142         * lib/unictype/categ_C.h: Likewise.
41143         * lib/unictype/categ_Cn.h: Likewise.
41144         * lib/unictype/categ_L.h: Likewise.
41145         * lib/unictype/categ_Ll.h: Likewise.
41146         * lib/unictype/categ_Lm.h: Likewise.
41147         * lib/unictype/categ_Lo.h: Likewise.
41148         * lib/unictype/categ_Lu.h: Likewise.
41149         * lib/unictype/categ_M.h: Likewise.
41150         * lib/unictype/categ_Mc.h: Likewise.
41151         * lib/unictype/categ_Me.h: Likewise.
41152         * lib/unictype/categ_Mn.h: Likewise.
41153         * lib/unictype/categ_N.h: Likewise.
41154         * lib/unictype/categ_Nd.h: Likewise.
41155         * lib/unictype/categ_No.h: Likewise.
41156         * lib/unictype/categ_P.h: Likewise.
41157         * lib/unictype/categ_Po.h: Likewise.
41158         * lib/unictype/categ_S.h: Likewise.
41159         * lib/unictype/categ_Sc.h: Likewise.
41160         * lib/unictype/categ_Sk.h: Likewise.
41161         * lib/unictype/categ_Sm.h: Likewise.
41162         * lib/unictype/categ_So.h: Likewise.
41163         * lib/unictype/categ_of.h: Likewise.
41164         * lib/unictype/combining.h: Likewise.
41165         * lib/unictype/ctype_alnum.h: Likewise.
41166         * lib/unictype/ctype_alpha.h: Likewise.
41167         * lib/unictype/ctype_graph.h: Likewise.
41168         * lib/unictype/ctype_lower.h: Likewise.
41169         * lib/unictype/ctype_print.h: Likewise.
41170         * lib/unictype/ctype_punct.h: Likewise.
41171         * lib/unictype/ctype_upper.h: Likewise.
41172         * lib/unictype/decdigit.h: Likewise.
41173         * lib/unictype/digit.h: Likewise.
41174         * lib/unictype/numeric.h: Likewise.
41175         * lib/unictype/pr_alphabetic.h: Likewise.
41176         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41177         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41178         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41179         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41180         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41181         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41182         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41183         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41184         * lib/unictype/pr_case_ignorable.h: Likewise.
41185         * lib/unictype/pr_cased.h: Likewise.
41186         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
41187         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
41188         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
41189         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
41190         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
41191         * lib/unictype/pr_combining.h: Likewise.
41192         * lib/unictype/pr_composite.h: Likewise.
41193         * lib/unictype/pr_currency_symbol.h: Likewise.
41194         * lib/unictype/pr_decimal_digit.h: Likewise.
41195         * lib/unictype/pr_deprecated.h: Likewise.
41196         * lib/unictype/pr_format_control.h: Likewise.
41197         * lib/unictype/pr_grapheme_base.h: Likewise.
41198         * lib/unictype/pr_grapheme_extend.h: Likewise.
41199         * lib/unictype/pr_grapheme_link.h: Likewise.
41200         * lib/unictype/pr_id_continue.h: Likewise.
41201         * lib/unictype/pr_id_start.h: Likewise.
41202         * lib/unictype/pr_ideographic.h: Likewise.
41203         * lib/unictype/pr_lowercase.h: Likewise.
41204         * lib/unictype/pr_math.h: Likewise.
41205         * lib/unictype/pr_numeric.h: Likewise.
41206         * lib/unictype/pr_other_alphabetic.h: Likewise.
41207         * lib/unictype/pr_other_id_continue.h: Likewise.
41208         * lib/unictype/pr_other_math.h: Likewise.
41209         * lib/unictype/pr_punctuation.h: Likewise.
41210         * lib/unictype/pr_sentence_terminal.h: Likewise.
41211         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41212         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41213         * lib/unictype/pr_unified_ideograph.h: Likewise.
41214         * lib/unictype/pr_uppercase.h: Likewise.
41215         * lib/unictype/pr_xid_continue.h: Likewise.
41216         * lib/unictype/pr_xid_start.h: Likewise.
41217         * lib/unictype/scripts.h: Likewise.
41218         * lib/unictype/scripts_byname.gperf: Likewise.
41219         * lib/unictype/sy_java_ident.h: Likewise.
41220         * lib/unigbrk/gbrkprop.h: Likewise.
41221         * lib/unilbrk/lbrkprop1.h: Likewise.
41222         * lib/unilbrk/lbrkprop2.h: Likewise.
41223         * lib/uninorm/decomposition-table2.h: Likewise.
41224         * lib/uniwbrk/wbrkprop.h: Likewise.
41225         * tests/unicase/test-cased.c: Likewise.
41226         * tests/unicase/test-ignorable.c: Likewise.
41227         * tests/unicase/test-uc_tolower.c: Likewise.
41228         * tests/unicase/test-uc_totitle.c: Likewise.
41229         * tests/unicase/test-uc_toupper.c: Likewise.
41230         * tests/unictype/test-categ_C.c: Likewise.
41231         * tests/unictype/test-categ_Cn.c: Likewise.
41232         * tests/unictype/test-categ_L.c: Likewise.
41233         * tests/unictype/test-categ_Ll.c: Likewise.
41234         * tests/unictype/test-categ_Lm.c: Likewise.
41235         * tests/unictype/test-categ_Lo.c: Likewise.
41236         * tests/unictype/test-categ_Lu.c: Likewise.
41237         * tests/unictype/test-categ_M.c: Likewise.
41238         * tests/unictype/test-categ_Mc.c: Likewise.
41239         * tests/unictype/test-categ_Me.c: Likewise.
41240         * tests/unictype/test-categ_Mn.c: Likewise.
41241         * tests/unictype/test-categ_N.c: Likewise.
41242         * tests/unictype/test-categ_Nd.c: Likewise.
41243         * tests/unictype/test-categ_No.c: Likewise.
41244         * tests/unictype/test-categ_P.c: Likewise.
41245         * tests/unictype/test-categ_Po.c: Likewise.
41246         * tests/unictype/test-categ_S.c: Likewise.
41247         * tests/unictype/test-categ_Sc.c: Likewise.
41248         * tests/unictype/test-categ_Sk.c: Likewise.
41249         * tests/unictype/test-categ_Sm.c: Likewise.
41250         * tests/unictype/test-categ_So.c: Likewise.
41251         * tests/unictype/test-ctype_alnum.c: Likewise.
41252         * tests/unictype/test-ctype_alpha.c: Likewise.
41253         * tests/unictype/test-ctype_graph.c: Likewise.
41254         * tests/unictype/test-ctype_lower.c: Likewise.
41255         * tests/unictype/test-ctype_print.c: Likewise.
41256         * tests/unictype/test-ctype_punct.c: Likewise.
41257         * tests/unictype/test-ctype_upper.c: Likewise.
41258         * tests/unictype/test-decdigit.h: Likewise.
41259         * tests/unictype/test-digit.h: Likewise.
41260         * tests/unictype/test-numeric.h: Likewise.
41261         * tests/unictype/test-pr_alphabetic.c: Likewise.
41262         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41263         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41264         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41265         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41266         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41267         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41268         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41269         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41270         * tests/unictype/test-pr_case_ignorable.c: Likewise.
41271         * tests/unictype/test-pr_cased.c: Likewise.
41272         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
41273         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
41274         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
41275         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
41276         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
41277         * tests/unictype/test-pr_combining.c: Likewise.
41278         * tests/unictype/test-pr_composite.c: Likewise.
41279         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41280         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41281         * tests/unictype/test-pr_deprecated.c: Likewise.
41282         * tests/unictype/test-pr_format_control.c: Likewise.
41283         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41284         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41285         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41286         * tests/unictype/test-pr_id_continue.c: Likewise.
41287         * tests/unictype/test-pr_id_start.c: Likewise.
41288         * tests/unictype/test-pr_ideographic.c: Likewise.
41289         * tests/unictype/test-pr_lowercase.c: Likewise.
41290         * tests/unictype/test-pr_math.c: Likewise.
41291         * tests/unictype/test-pr_numeric.c: Likewise.
41292         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41293         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41294         * tests/unictype/test-pr_other_math.c: Likewise.
41295         * tests/unictype/test-pr_punctuation.c: Likewise.
41296         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41297         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41298         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41299         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41300         * tests/unictype/test-pr_uppercase.c: Likewise.
41301         * tests/unictype/test-pr_xid_continue.c: Likewise.
41302         * tests/unictype/test-pr_xid_start.c: Likewise.
41303         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41304         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41305         changes.
41306         * lib/unictype/categ_Cc.h: Likewise.
41307         * lib/unictype/categ_Cf.h: Likewise.
41308         * lib/unictype/categ_Co.h: Likewise.
41309         * lib/unictype/categ_Cs.h: Likewise.
41310         * lib/unictype/categ_Lt.h: Likewise.
41311         * lib/unictype/categ_Nl.h: Likewise.
41312         * lib/unictype/categ_Pc.h: Likewise.
41313         * lib/unictype/categ_Pd.h: Likewise.
41314         * lib/unictype/categ_Pe.h: Likewise.
41315         * lib/unictype/categ_Pf.h: Likewise.
41316         * lib/unictype/categ_Pi.h: Likewise.
41317         * lib/unictype/categ_Ps.h: Likewise.
41318         * lib/unictype/categ_Z.h: Likewise.
41319         * lib/unictype/categ_Zl.h: Likewise.
41320         * lib/unictype/categ_Zp.h: Likewise.
41321         * lib/unictype/categ_Zs.h: Likewise.
41322         * lib/unictype/ctype_blank.h: Likewise.
41323         * lib/unictype/ctype_cntrl.h: Likewise.
41324         * lib/unictype/ctype_digit.h: Likewise.
41325         * lib/unictype/ctype_space.h: Likewise.
41326         * lib/unictype/ctype_xdigit.h: Likewise.
41327         * lib/unictype/mirror.h: Likewise.
41328         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41329         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41330         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41331         * lib/unictype/pr_bidi_control.h: Likewise.
41332         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41333         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41334         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41335         * lib/unictype/pr_bidi_pdf.h: Likewise.
41336         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41337         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41338         * lib/unictype/pr_dash.h: Likewise.
41339         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41340         * lib/unictype/pr_diacritic.h: Likewise.
41341         * lib/unictype/pr_extender.h: Likewise.
41342         * lib/unictype/pr_hex_digit.h: Likewise.
41343         * lib/unictype/pr_hyphen.h: Likewise.
41344         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41345         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41346         * lib/unictype/pr_ignorable_control.h: Likewise.
41347         * lib/unictype/pr_iso_control.h: Likewise.
41348         * lib/unictype/pr_join_control.h: Likewise.
41349         * lib/unictype/pr_left_of_pair.h: Likewise.
41350         * lib/unictype/pr_line_separator.h: Likewise.
41351         * lib/unictype/pr_logical_order_exception.h: Likewise.
41352         * lib/unictype/pr_non_break.h: Likewise.
41353         * lib/unictype/pr_not_a_character.h: Likewise.
41354         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41355         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41356         * lib/unictype/pr_other_id_start.h: Likewise.
41357         * lib/unictype/pr_other_lowercase.h: Likewise.
41358         * lib/unictype/pr_other_uppercase.h: Likewise.
41359         * lib/unictype/pr_paired_punctuation.h: Likewise.
41360         * lib/unictype/pr_paragraph_separator.h: Likewise.
41361         * lib/unictype/pr_pattern_syntax.h: Likewise.
41362         * lib/unictype/pr_pattern_white_space.h: Likewise.
41363         * lib/unictype/pr_private_use.h: Likewise.
41364         * lib/unictype/pr_quotation_mark.h: Likewise.
41365         * lib/unictype/pr_radical.h: Likewise.
41366         * lib/unictype/pr_soft_dotted.h: Likewise.
41367         * lib/unictype/pr_space.h: Likewise.
41368         * lib/unictype/pr_titlecase.h: Likewise.
41369         * lib/unictype/pr_variation_selector.h: Likewise.
41370         * lib/unictype/pr_white_space.h: Likewise.
41371         * lib/unictype/pr_zero_width.h: Likewise.
41372         * lib/unictype/sy_c_ident.h: Likewise.
41373         * lib/unictype/sy_c_whitespace.h: Likewise.
41374         * lib/unictype/sy_java_whitespace.h: Likewise.
41375         * lib/uninorm/composition-table.gperf: Likewise.
41376         * lib/uninorm/decomposition-table1.h: Likewise.
41377         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
41378         LB8.
41379         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41380         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41381         * modules/unictype/*: Bump version number of expected libunistring
41382         version.
41384 2011-01-09  Bruno Haible  <bruno@clisp.org>
41386         Update to Unicode 5.2.0.
41387         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
41388         trailing whitespace removed.
41390 2011-01-09  Bruno Haible  <bruno@clisp.org>
41392         New Unicode character properties, from Unicode 5.2.0.
41393         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
41394         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
41395         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
41396         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
41397         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
41398         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
41399         uc_is_property_cased, uc_is_property_case_ignorable,
41400         uc_is_property_changes_when_lowercased,
41401         uc_is_property_changes_when_uppercased,
41402         uc_is_property_changes_when_titlecased,
41403         uc_is_property_changes_when_casefolded,
41404         uc_is_property_changes_when_casemapped): New declarations.
41405         * lib/unictype/pr_byname.gperf: Add the new properties.
41406         * modules/unictype/property-byname (Depends-on): Depend on the new
41407         properties modules.
41408         * modules/unictype/property-all (Depends-on): Likewise.
41409         * MODULES.html.sh (Unicode string functions): Add
41410         unictype/property-case-ignorable, unictype/property-cased,
41411         unictype/property-changes-when-casefolded,
41412         unictype/property-changes-when-casemapped,
41413         unictype/property-changes-when-lowercased,
41414         unictype/property-changes-when-titlecased,
41415         unictype/property-changes-when-uppercased.
41417         New module 'unictype/property-changes-when-casemapped'.
41418         * modules/unictype/property-changes-when-casemapped: New file.
41419         * lib/unictype/pr_changes_when_casemapped.c: New file.
41420         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
41421         generated by gen-uni-tables.
41422         * modules/unictype/property-changes-when-casemapped-tests: New file.
41423         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
41424         automatically generated by gen-uni-tables.
41426         New module 'unictype/property-changes-when-casefolded'.
41427         * modules/unictype/property-changes-when-casefolded: New file.
41428         * lib/unictype/pr_changes_when_casefolded.c: New file.
41429         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
41430         generated by gen-uni-tables.
41431         * modules/unictype/property-changes-when-casefolded-tests: New file.
41432         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
41433         automatically generated by gen-uni-tables.
41435         New module 'unictype/property-changes-when-titlecased'.
41436         * modules/unictype/property-changes-when-titlecased: New file.
41437         * lib/unictype/pr_changes_when_titlecased.c: New file.
41438         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
41439         generated by gen-uni-tables.
41440         * modules/unictype/property-changes-when-titlecased-tests: New file.
41441         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
41442         automatically generated by gen-uni-tables.
41444         New module 'unictype/property-changes-when-uppercased'.
41445         * modules/unictype/property-changes-when-uppercased: New file.
41446         * lib/unictype/pr_changes_when_uppercased.c: New file.
41447         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
41448         generated by gen-uni-tables.
41449         * modules/unictype/property-changes-when-uppercased-tests: New file.
41450         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
41451         automatically generated by gen-uni-tables.
41453         New module 'unictype/property-changes-when-lowercased'.
41454         * modules/unictype/property-changes-when-lowercased: New file.
41455         * lib/unictype/pr_changes_when_lowercased.c: New file.
41456         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
41457         generated by gen-uni-tables.
41458         * modules/unictype/property-changes-when-lowercased-tests: New file.
41459         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
41460         automatically generated by gen-uni-tables.
41462         New module 'unictype/property-case-ignorable'.
41463         * modules/unictype/property-case-ignorable: New file.
41464         * lib/unictype/pr_case_ignorable.c: New file.
41465         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
41466         by gen-uni-tables.
41467         * modules/unictype/property-case-ignorable-tests: New file.
41468         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
41469         generated by gen-uni-tables.
41471         New module 'unictype/property-cased'.
41472         * modules/unictype/property-cased: New file.
41473         * lib/unictype/pr_cased.c: New file.
41474         * lib/unictype/pr_cased.h: New file, automatically generated by
41475         gen-uni-tables.
41476         * modules/unictype/property-cased-tests: New file.
41477         * tests/unictype/test-pr_cased.c: New file, automatically generated by
41478         gen-uni-tables.
41480 2011-01-09  Bruno Haible  <bruno@clisp.org>
41482         Update to Unicode 5.2.0.
41483         * lib/gen-uni-tables.c (output_predicate, output_category,
41484         output_combclass, output_bidi_category, output_decimal_digit_test,
41485         output_decimal_digit, output_digit_test, output_digit,
41486         output_numeric_test, output_numeric, output_mirror, output_scripts,
41487         output_scripts_byname, output_blocks, output_ident_category): Fix
41488         comment header.
41489         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
41490         get_wbp.
41491         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
41492         items.
41493         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
41494         Changes_When_Lowercased, Changes_When_Uppercased,
41495         Changes_When_Titlecased, Changes_When_Casefolded,
41496         Changes_When_Casemapped.
41497         (is_property_alphabetic, is_property_default_ignorable_code_point):
41498         Update for Unicode 5.2.0.
41499         (is_property_cased, is_property_case_ignorable,
41500         is_property_changes_when_lowercased,
41501         is_property_changes_when_uppercased,
41502         is_property_changes_when_titlecased,
41503         is_property_changes_when_casefolded,
41504         is_property_changes_when_casemapped): New functions.
41505         (output_properties): Output also the properties cased, case_ignorable,
41506         changes_when_lowercased, changes_when_uppercased,
41507         changes_when_titlecased, changes_when_casefolded,
41508         changes_when_casemapped.
41509         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
41510         Unicode TR#11 revision 17 -> 19.
41511         (LBP_CP): New enumeration value.
41512         (LBP_*): Adjust values accordingly.
41513         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
41514         TR#14 revision 22 -> 24.
41515         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
41516         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
41517         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
41518         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
41519         is_WBP_MIDLETTER.
41520         (output_composition_tables): Allow for 24 bits instead of 16 bits in
41521         the code1 and code2 of each composition rule.
41522         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
41523         * lib/unicase/ignorable.h: Likewise.
41524         * lib/unicase/tocasefold.h: Likewise.
41525         * lib/unicase/tolower.h: Likewise.
41526         * lib/unicase/totitle.h: Likewise.
41527         * lib/unicase/toupper.h: Likewise.
41528         * lib/unictype/bidi_of.h: Likewise.
41529         * lib/unictype/blocks.h: Likewise.
41530         * lib/unictype/categ_C.h: Likewise.
41531         * lib/unictype/categ_Cf.h: Likewise.
41532         * lib/unictype/categ_Cn.h: Likewise.
41533         * lib/unictype/categ_L.h: Likewise.
41534         * lib/unictype/categ_Ll.h: Likewise.
41535         * lib/unictype/categ_Lm.h: Likewise.
41536         * lib/unictype/categ_Lo.h: Likewise.
41537         * lib/unictype/categ_Lu.h: Likewise.
41538         * lib/unictype/categ_M.h: Likewise.
41539         * lib/unictype/categ_Mc.h: Likewise.
41540         * lib/unictype/categ_Mn.h: Likewise.
41541         * lib/unictype/categ_N.h: Likewise.
41542         * lib/unictype/categ_Nd.h: Likewise.
41543         * lib/unictype/categ_Nl.h: Likewise.
41544         * lib/unictype/categ_No.h: Likewise.
41545         * lib/unictype/categ_P.h: Likewise.
41546         * lib/unictype/categ_Pd.h: Likewise.
41547         * lib/unictype/categ_Po.h: Likewise.
41548         * lib/unictype/categ_S.h: Likewise.
41549         * lib/unictype/categ_Sc.h: Likewise.
41550         * lib/unictype/categ_So.h: Likewise.
41551         * lib/unictype/categ_of.h: Likewise.
41552         * lib/unictype/combining.h: Likewise.
41553         * lib/unictype/ctype_alnum.h: Likewise.
41554         * lib/unictype/ctype_alpha.h: Likewise.
41555         * lib/unictype/ctype_graph.h: Likewise.
41556         * lib/unictype/ctype_lower.h: Likewise.
41557         * lib/unictype/ctype_print.h: Likewise.
41558         * lib/unictype/ctype_punct.h: Likewise.
41559         * lib/unictype/ctype_upper.h: Likewise.
41560         * lib/unictype/decdigit.h: Likewise.
41561         * lib/unictype/digit.h: Likewise.
41562         * lib/unictype/numeric.h: Likewise.
41563         * lib/unictype/pr_alphabetic.h: Likewise.
41564         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41565         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41566         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41567         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41568         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41569         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41570         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41571         * lib/unictype/pr_combining.h: Likewise.
41572         * lib/unictype/pr_composite.h: Likewise.
41573         * lib/unictype/pr_currency_symbol.h: Likewise.
41574         * lib/unictype/pr_dash.h: Likewise.
41575         * lib/unictype/pr_decimal_digit.h: Likewise.
41576         * lib/unictype/pr_deprecated.h: Likewise.
41577         * lib/unictype/pr_diacritic.h: Likewise.
41578         * lib/unictype/pr_extender.h: Likewise.
41579         * lib/unictype/pr_grapheme_base.h: Likewise.
41580         * lib/unictype/pr_grapheme_extend.h: Likewise.
41581         * lib/unictype/pr_grapheme_link.h: Likewise.
41582         * lib/unictype/pr_id_continue.h: Likewise.
41583         * lib/unictype/pr_id_start.h: Likewise.
41584         * lib/unictype/pr_ideographic.h: Likewise.
41585         * lib/unictype/pr_ignorable_control.h: Likewise.
41586         * lib/unictype/pr_logical_order_exception.h: Likewise.
41587         * lib/unictype/pr_lowercase.h: Likewise.
41588         * lib/unictype/pr_numeric.h: Likewise.
41589         * lib/unictype/pr_other_alphabetic.h: Likewise.
41590         * lib/unictype/pr_punctuation.h: Likewise.
41591         * lib/unictype/pr_sentence_terminal.h: Likewise.
41592         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41593         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41594         * lib/unictype/pr_unified_ideograph.h: Likewise.
41595         * lib/unictype/pr_uppercase.h: Likewise.
41596         * lib/unictype/pr_xid_continue.h: Likewise.
41597         * lib/unictype/pr_xid_start.h: Likewise.
41598         * lib/unictype/pr_zero_width.h: Likewise.
41599         * lib/unictype/scripts.h: Likewise.
41600         * lib/unictype/scripts_byname.gperf: Likewise.
41601         * lib/unictype/sy_java_ident.h: Likewise.
41602         * lib/unigbrk/gbrkprop.h: Likewise.
41603         * lib/unilbrk/lbrkprop1.h: Likewise.
41604         * lib/unilbrk/lbrkprop2.h: Likewise.
41605         * lib/unilbrk/lbrktables.h: Likewise.
41606         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
41607         LBP_CP. Implement rule LB30.
41608         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
41609         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
41610         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
41611         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
41612         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
41613         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
41614         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
41615         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
41616         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
41617         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
41618         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
41619         bits instead of 16 bits in the code1 and code2 of each composition
41620         rule.
41621         (uc_composition): Update for Unicode 5.2.0.
41622         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
41623         * lib/uninorm/decomposition-table2.h: Likewise.
41624         * lib/uniwbrk/wbrkprop.h: Likewise.
41625         * tests/unicase/test-cased.c: Likewise.
41626         * tests/unicase/test-ignorable.c: Likewise.
41627         * tests/unicase/test-uc_tolower.c: Likewise.
41628         * tests/unicase/test-uc_totitle.c: Likewise.
41629         * tests/unicase/test-uc_toupper.c: Likewise.
41630         * tests/unictype/test-categ_C.c: Likewise.
41631         * tests/unictype/test-categ_Cf.c: Likewise.
41632         * tests/unictype/test-categ_Cn.c: Likewise.
41633         * tests/unictype/test-categ_L.c: Likewise.
41634         * tests/unictype/test-categ_Ll.c: Likewise.
41635         * tests/unictype/test-categ_Lm.c: Likewise.
41636         * tests/unictype/test-categ_Lo.c: Likewise.
41637         * tests/unictype/test-categ_Lu.c: Likewise.
41638         * tests/unictype/test-categ_M.c: Likewise.
41639         * tests/unictype/test-categ_Mc.c: Likewise.
41640         * tests/unictype/test-categ_Mn.c: Likewise.
41641         * tests/unictype/test-categ_N.c: Likewise.
41642         * tests/unictype/test-categ_Nd.c: Likewise.
41643         * tests/unictype/test-categ_Nl.c: Likewise.
41644         * tests/unictype/test-categ_No.c: Likewise.
41645         * tests/unictype/test-categ_P.c: Likewise.
41646         * tests/unictype/test-categ_Pd.c: Likewise.
41647         * tests/unictype/test-categ_Po.c: Likewise.
41648         * tests/unictype/test-categ_S.c: Likewise.
41649         * tests/unictype/test-categ_Sc.c: Likewise.
41650         * tests/unictype/test-categ_So.c: Likewise.
41651         * tests/unictype/test-ctype_alnum.c: Likewise.
41652         * tests/unictype/test-ctype_alpha.c: Likewise.
41653         * tests/unictype/test-ctype_graph.c: Likewise.
41654         * tests/unictype/test-ctype_lower.c: Likewise.
41655         * tests/unictype/test-ctype_print.c: Likewise.
41656         * tests/unictype/test-ctype_punct.c: Likewise.
41657         * tests/unictype/test-ctype_upper.c: Likewise.
41658         * tests/unictype/test-decdigit.h: Likewise.
41659         * tests/unictype/test-digit.h: Likewise.
41660         * tests/unictype/test-numeric.h: Likewise.
41661         * tests/unictype/test-pr_alphabetic.c: Likewise.
41662         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41663         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41664         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41665         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41666         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41667         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41668         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41669         * tests/unictype/test-pr_combining.c: Likewise.
41670         * tests/unictype/test-pr_composite.c: Likewise.
41671         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41672         * tests/unictype/test-pr_dash.c: Likewise.
41673         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41674         * tests/unictype/test-pr_deprecated.c: Likewise.
41675         * tests/unictype/test-pr_diacritic.c: Likewise.
41676         * tests/unictype/test-pr_extender.c: Likewise.
41677         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41678         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41679         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41680         * tests/unictype/test-pr_id_continue.c: Likewise.
41681         * tests/unictype/test-pr_id_start.c: Likewise.
41682         * tests/unictype/test-pr_ideographic.c: Likewise.
41683         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41684         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41685         * tests/unictype/test-pr_lowercase.c: Likewise.
41686         * tests/unictype/test-pr_numeric.c: Likewise.
41687         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41688         * tests/unictype/test-pr_punctuation.c: Likewise.
41689         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41690         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41691         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41692         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41693         * tests/unictype/test-pr_uppercase.c: Likewise.
41694         * tests/unictype/test-pr_xid_continue.c: Likewise.
41695         * tests/unictype/test-pr_xid_start.c: Likewise.
41696         * tests/unictype/test-pr_zero_width.c: Likewise.
41697         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41698         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
41699         changed behaviour: line breaking is now disallowed between a letter
41700         or '=' and '('.
41701         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41702         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41703         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41704         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
41705         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41706         lib/uniwidth/width.c.
41707         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
41708         without comments, but with the original copyright notice.
41709         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41710         changes.
41711         * lib/unictype/categ_Cc.h: Likewise.
41712         * lib/unictype/categ_Co.h: Likewise.
41713         * lib/unictype/categ_Cs.h: Likewise.
41714         * lib/unictype/categ_Lt.h: Likewise.
41715         * lib/unictype/categ_Me.h: Likewise.
41716         * lib/unictype/categ_Pc.h: Likewise.
41717         * lib/unictype/categ_Pe.h: Likewise.
41718         * lib/unictype/categ_Pf.h: Likewise.
41719         * lib/unictype/categ_Pi.h: Likewise.
41720         * lib/unictype/categ_Ps.h: Likewise.
41721         * lib/unictype/categ_Sk.h: Likewise.
41722         * lib/unictype/categ_Sm.h: Likewise.
41723         * lib/unictype/categ_Z.h: Likewise.
41724         * lib/unictype/categ_Zl.h: Likewise.
41725         * lib/unictype/categ_Zp.h: Likewise.
41726         * lib/unictype/categ_Zs.h: Likewise.
41727         * lib/unictype/ctype_blank.h: Likewise.
41728         * lib/unictype/ctype_cntrl.h: Likewise.
41729         * lib/unictype/ctype_digit.h: Likewise.
41730         * lib/unictype/ctype_space.h: Likewise.
41731         * lib/unictype/ctype_xdigit.h: Likewise.
41732         * lib/unictype/mirror.h: Likewise.
41733         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41734         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41735         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41736         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41737         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41738         * lib/unictype/pr_bidi_control.h: Likewise.
41739         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41740         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41741         * lib/unictype/pr_bidi_pdf.h: Likewise.
41742         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41743         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41744         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41745         * lib/unictype/pr_format_control.h: Likewise.
41746         * lib/unictype/pr_hex_digit.h: Likewise.
41747         * lib/unictype/pr_hyphen.h: Likewise.
41748         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41749         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41750         * lib/unictype/pr_iso_control.h: Likewise.
41751         * lib/unictype/pr_join_control.h: Likewise.
41752         * lib/unictype/pr_left_of_pair.h: Likewise.
41753         * lib/unictype/pr_line_separator.h: Likewise.
41754         * lib/unictype/pr_math.h: Likewise.
41755         * lib/unictype/pr_non_break.h: Likewise.
41756         * lib/unictype/pr_not_a_character.h: Likewise.
41757         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41758         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41759         * lib/unictype/pr_other_id_continue.h: Likewise.
41760         * lib/unictype/pr_other_id_start.h: Likewise.
41761         * lib/unictype/pr_other_lowercase.h: Likewise.
41762         * lib/unictype/pr_other_math.h: Likewise.
41763         * lib/unictype/pr_other_uppercase.h: Likewise.
41764         * lib/unictype/pr_paired_punctuation.h: Likewise.
41765         * lib/unictype/pr_paragraph_separator.h: Likewise.
41766         * lib/unictype/pr_pattern_syntax.h: Likewise.
41767         * lib/unictype/pr_pattern_white_space.h: Likewise.
41768         * lib/unictype/pr_private_use.h: Likewise.
41769         * lib/unictype/pr_quotation_mark.h: Likewise.
41770         * lib/unictype/pr_radical.h: Likewise.
41771         * lib/unictype/pr_soft_dotted.h: Likewise.
41772         * lib/unictype/pr_space.h: Likewise.
41773         * lib/unictype/pr_titlecase.h: Likewise.
41774         * lib/unictype/pr_variation_selector.h: Likewise.
41775         * lib/unictype/pr_white_space.h: Likewise.
41776         * lib/unictype/sy_c_ident.h: Likewise.
41777         * lib/unictype/sy_c_whitespace.h: Likewise.
41778         * lib/unictype/sy_java_whitespace.h: Likewise.
41779         * modules/uni*/*: Bump version number of expected libunistring version.
41780         Reported by Simon Josefsson.
41782 2011-01-09  Karl Heuer  <kwzh@gnu.org>
41784         useless-if-before-free: fix typo in --help and make the internal,
41785         automatic version date update process work once again.
41786         --help output contained a NUL character instead of the
41787         backslash-zero that was intended.  Also, the "must lie within
41788         the first 8 lines" line is on line 9, and hence not getting
41789         automatically updated.
41790         * build-aux/useless-if-before-free: Fix the former by adding a
41791         backslash, and the latter by condensing the three lines of what-it-does
41792         to a single line, leaving one line of slack for the future.
41794 2011-01-09  Bruno Haible  <bruno@clisp.org>
41796         uniwidth/width: Fix width of U+1D173..U+1D17A.
41797         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
41798         symbolic_width, output_width_property_test): New functions.
41799         (main): Invoke output_nonspacing_property, output_width_property_test.
41800         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
41801         U+1D173..U+1D17A.
41802         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
41803         1.
41804         * modules/uniwidth/*: Bump version number of expected libunistring
41805         version.
41806         * modules/unilbrk/*: Likewise.
41808 2011-01-08  Bruno Haible  <bruno@clisp.org>
41810         uninorm tests: Preserve copyright of Unicode data file.
41811         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
41812         Mention modifications.
41814 2011-01-08  Bruno Haible  <bruno@clisp.org>
41816         gen-uni-tables: Prepare for Unicode 5.2.0.
41817         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
41818         (debug_output_lbp, output_lbp): Update.
41820 2011-01-08  Bruno Haible  <bruno@clisp.org>
41822         unilbrk: Clarify gen-uni-tables.c code.
41823         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
41824         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
41825         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
41827 2011-01-07  Bruno Haible  <bruno@clisp.org>
41829         strtod: Restore errno when successfully parsing Infinity or NaN.
41830         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
41831         restore the original errno.
41833 2011-01-07  Bruno Haible  <bruno@clisp.org>
41835         remove test: Avoid failure on HP-UX 11.
41836         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
41838 2011-01-07  Bruno Haible  <bruno@clisp.org>
41840         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
41841         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
41842         error code.
41844 2011-01-07  Pádraig Brady  <P@draigBrady.com>
41846         ignore-value: fixup comments, and add Eric Blake
41847         as an author since he rewrote the macros.
41848         * lib/ignore-value.h (ignore_value):  State that
41849         we now support aggregates.  Also specify exactly
41850         when the GCC warn_unused_result feature was added.
41852 2011-01-06  Eric Blake  <eblake@redhat.com>
41854         ignore-value: support aggregate types
41855         * lib/ignore-value.h (ignore_value): Provide separate gcc
41856         definition.
41857         * modules/ignore-value-tests: New test module.
41858         * tests/test-ignore-value.c: New test.
41860         maint.mk: improve sc_prohibit_strcmp regex
41861         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
41862         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
41863         definition of STRNEQ.
41865         signal: work around Haiku issue with SIGBUS
41866         * lib/siglist.h: Add comment.
41867         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
41868         strsignal's favoring of SIGSEGV.
41869         * tests/test-signal.c (main): Avoid test failure.
41870         * doc/posix-headers/signal.texi (signal.h): Document the issue.
41871         Reported by Scott McCreary.
41873         maint.mk: add pre-release check to ensure submodule commits are public
41874         * top/maint.mk (public-submodule-commit): New rule.
41875         (submodule-checks): New variable.
41876         (alpha beta stable): Depend on the variable.
41878 2011-01-05  Pádraig Brady  <P@draigBrady.com>
41879         and Jim Meyering  <meyering@redhat.com>
41881         ignore-value: make ignore_value more generic; deprecate ignore_ptr
41882         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
41883         (ATTRIBUTE_DEPRECATED): Define.
41884         (_ignore_case): New function.
41885         (ignore_value): New macro, to replace the old function.
41886         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
41887         * modules/ignore-value (Depends-on): Add stdint.
41889 2011-01-04  Eric Blake  <eblake@redhat.com>
41891         doc: regenerate INSTALL
41892         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
41893         @firstparagraphindent support, now that autoconf dropped it.
41894         (INSTALL_PRELUDE): Reinstate old macro.
41895         * doc/install.texi: Resync from autoconf.
41896         * doc/INSTALL: Reflect recent autoconf update.
41897         * doc/INSTALL.ISO: Likewise.
41898         * doc/INSTALL.UTF-8: Likewise.
41899         Reported by Karl Berry.
41901 2011-01-04  Bruce Korb  <address@hidden>
41903         git-version-gen: avoid a sub-shell
41904         * build-aux/git-version-gen: Redirect stderr in `...` via
41905         "exec 2>...", rather than via an added sub-shell.
41907 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
41909         git-version-gen: use (...) rather than sh -c '...'
41910         * build-aux/git-version-gen: Rather than hard-coding a shell's name
41911         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
41913 2011-01-03  Jim Meyering  <meyering@redhat.com>
41915         git-version-gen: convert leading TABs to spaces
41916         * build-aux/git-version-gen: Expand leading TABs.
41918         git-version-gen: handle failed "git rev-list"
41919         * build-aux/git-version-gen: Rather than leaking a "fatal" error
41920         from git and proceeding as if it had succeeded but printed no SHA1
41921         checksums, suppress the diagnostic and handle the failure.
41922         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
41924         git-version-gen: include command name in one more diagnostic
41925         * build-aux/git-version-gen: When the required .tarball-version file
41926         was missing or unreadable, you might see the diagnostic from "cat",
41927         but no trace of the name of the invoking script.  Now, you still see
41928         the diagnostic from cat, but also get one from "git-version-gen: ".
41929         Inspired by a patch from Bruce Korb.
41931         update-copyright: adjust test to match changed code
41932         * tests/test-update-copyright.sh: Change test's expected output
41933         to match new actual output.
41935 2011-01-02  Bruno Haible  <bruno@clisp.org>
41937         getlogin_r: Avoid test failure on HP-UX 11.
41938         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
41939         ERANGE when the second argument is zero.
41940         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
41941         portability problem.
41943 2011-01-02  Bruce Korb  <bkorb@gnu.org>
41945         * build-aux/update-copyright: doc Simon's changes
41947 2011-01-02  Simon Josefsson  <simon@josefsson.org>
41949         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
41950         environment variable.
41952 2011-01-02  Bruno Haible  <bruno@clisp.org>
41954         unigbrk: Avoid gcc warnings.
41955         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
41956         unused variable.
41957         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
41958         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
41959         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
41960         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
41961         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
41962         Change type of first argument to 'const char *'.
41963         (main): Remove unused variable.
41964         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
41965         type of first argument to 'const char *'.
41966         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
41967         Likewise.
41968         (main): Change type of variable 's'.
41969         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
41970         to 'int'.
41972 2011-01-02  Bruno Haible  <bruno@clisp.org>
41974         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
41975         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
41976         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
41977         bug.
41978         * lib/pwrite.c: Undo 2010-12-31 patch.
41979         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
41981 2011-01-02  Bruno Haible  <bruno@clisp.org>
41983         pread: Fix test whether it works.
41984         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
41986 2011-01-02  Bruno Haible  <bruno@clisp.org>
41988         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
41989         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
41990         ends in "6". Don't require a specific month name. Try also the locale
41991         names found on HP-UX 11 and Solaris 7.
41993 2011-01-02  Bruno Haible  <bruno@clisp.org>
41995         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
41996         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
41997         C linkage.
41998         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
42000 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42002         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
42003         for consistency, since the "cluster" term is not used elsewhere.
42004         * lib/unigbrk.in.h: Update name.
42005         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
42006         * lib/unigbrk/u16-grapheme-next.c: Update name.
42007         * lib/unigbrk/u16-grapheme-prev.c: Update name.
42008         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
42009         * lib/unigbrk/u32-grapheme-next.c: Update name.
42010         * lib/unigbrk/u32-grapheme-prev.c: Update name.
42011         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
42012         * lib/unigbrk/u8-grapheme-next.c: Update name.
42013         * lib/unigbrk/u8-grapheme-prev.c: Update name.
42014         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
42015         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
42016         Suggested by Bruno Haible.
42018 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42020         Remove module 'u8-grapheme-len' as too redundant with
42021         'u8-grapheme-next'.
42022         * modules/unigbrk/u8-grapheme-len: Delete file.
42023         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
42024         * lib/unigbrk.in.h: Remove prototype for deleted function.
42025         * lib/unigbrk/u8-grapheme-len.c: Delete file.
42026         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
42028         Remove module 'u16-grapheme-len' as too redundant with
42029         'u16-grapheme-next'.
42030         * modules/unigbrk/u16-grapheme-len: Delete file.
42031         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
42032         * lib/unigbrk.in.h: Remove prototype for deleted function.
42033         * lib/unigbrk/u16-grapheme-len.c: Delete file.
42034         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
42036         Remove module 'u32-grapheme-len' as too redundant with
42037         'u32-grapheme-next'.
42038         * modules/unigbrk/u32-grapheme-len: Delete file.
42039         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
42040         * lib/unigbrk.in.h: Remove prototype for deleted function.
42041         * lib/unigbrk/u32-grapheme-len.c: Delete file.
42042         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
42044         Suggested by Bruno Haible.
42046 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42048         * unigbrk.in.h: Fix typo: "ben" => "been".
42049         Reported by Bruno Haible.
42051 2011-01-01  Jim Meyering  <meyering@redhat.com>
42053         maint: update almost all copyright ranges to include 2011
42054         Run the new "make update-copyright" rule.
42056 2011-01-01  Jim Meyering  <meyering@redhat.com>
42058         maint: update-copyright: exempt doc/INSTALL*
42059         * Makefile (update-copyright): Also exclude doc/INSTALL*,
42060         since they are generated.  Suggested by Bruno Haible.
42062 2011-01-01  Jim Meyering  <meyering@redhat.com>
42064         maint: refine the update-copyright rule
42065         * Makefile (update-copyright): Also exclude any file that includes
42066         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
42067         code that merely generates the comment.
42069 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42071         New module 'u8-grapheme-len'.
42072         * modules/unigbrk/u8-grapheme-len: New file.
42073         * modules/unigbrk/u8-grapheme-len-tests: New file.
42074         * lib/unigbrk.in.h: Add prototype for new function.
42075         * lib/unigbrk/u8-grapheme-len.c: New file.
42076         * tests/unigbrk/test-u8-grapheme-len.c: New file.
42078         New module 'u16-grapheme-len'.
42079         * modules/unigbrk/u16-grapheme-len: New file.
42080         * modules/unigbrk/u16-grapheme-len-tests: New file.
42081         * lib/unigbrk.in.h: Add prototype for new function.
42082         * lib/unigbrk/u16-grapheme-len.c: New file.
42083         * tests/unigbrk/test-u16-grapheme-len.c: New file.
42085         New module 'u32-grapheme-len'.
42086         * modules/unigbrk/u32-grapheme-len: New file.
42087         * modules/unigbrk/u32-grapheme-len-tests: New file.
42088         * lib/unigbrk.in.h: Add prototype for new function.
42089         * lib/unigbrk/u32-grapheme-len.c: New file.
42090         * tests/unigbrk/test-u32-grapheme-len.c: New file.
42092         New module 'u8-grapheme-next'.
42093         * modules/unigbrk/u8-grapheme-next: New file.
42094         * modules/unigbrk/u8-grapheme-next-tests: New file.
42095         * lib/unigbrk.in.h: Add prototype for new function.
42096         * lib/unigbrk/u8-grapheme-next.c: New file.
42097         * tests/unigbrk/test-u8-grapheme-next.c: New file.
42099         New module 'u16-grapheme-next'.
42100         * modules/unigbrk/u16-grapheme-next: New file.
42101         * modules/unigbrk/u16-grapheme-next-tests: New file.
42102         * lib/unigbrk.in.h: Add prototype for new function.
42103         * lib/unigbrk/u16-grapheme-next.c: New file.
42104         * tests/unigbrk/test-u16-grapheme-next.c: New file.
42106         New module 'u32-grapheme-next'.
42107         * modules/unigbrk/u32-grapheme-next: New file.
42108         * modules/unigbrk/u32-grapheme-next-tests: New file.
42109         * lib/unigbrk.in.h: Add prototype for new function.
42110         * lib/unigbrk/u32-grapheme-next.c: New file.
42111         * tests/unigbrk/test-u32-grapheme-next.c: New file.
42113         New module 'u8-grapheme-prev'.
42114         * modules/unigbrk/u8-grapheme-prev: New file.
42115         * modules/unigbrk/u8-grapheme-prev-tests: New file.
42116         * lib/unigbrk.in.h: Add prototype for new function.
42117         * lib/unigbrk/u8-grapheme-prev.c: New file.
42118         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
42120         New module 'u16-grapheme-prev'.
42121         * modules/unigbrk/u16-grapheme-prev: New file.
42122         * modules/unigbrk/u16-grapheme-prev-tests: New file.
42123         * lib/unigbrk.in.h: Add prototype for new function.
42124         * lib/unigbrk/u16-grapheme-prev.c: New file.
42125         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
42127         New module 'u32-grapheme-prev'.
42128         * modules/unigbrk/u32-grapheme-prev: New file.
42129         * modules/unigbrk/u32-grapheme-prev-tests: New file.
42130         * lib/unigbrk.in.h: Add prototype for new function.
42131         * lib/unigbrk/u32-grapheme-prev.c: New file.
42132         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
42134         New module 'u8-grapheme-breaks'.
42135         * modules/unigbrk/u8-grapheme-breaks: New file.
42136         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
42137         * lib/unigbrk.in.h: Add prototype for new function.
42138         * lib/unigbrk/u8-grapheme-breaks.c: New file.
42139         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
42141         New module 'u16-grapheme-breaks'.
42142         * modules/unigbrk/u16-grapheme-breaks: New file.
42143         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
42144         * lib/unigbrk.in.h: Add prototype for new function.
42145         * lib/unigbrk/u16-grapheme-breaks.c: New file.
42146         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
42148         New module 'u32-grapheme-breaks'.
42149         * modules/unigbrk/u32-grapheme-breaks: New file.
42150         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
42151         * lib/unigbrk.in.h: Add prototype for new function.
42152         * lib/unigbrk/u32-grapheme-breaks.c: New file.
42153         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
42155         New module 'ulc-grapheme-breaks'.
42156         * modules/unigbrk/ulc-grapheme-breaks: New file.
42157         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
42158         * m4/locale-ar.m4: New file.
42159         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
42160         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
42161         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
42163 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42165         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
42166         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
42167         modified how this file was generated before I initially submitted
42168         the module, but failed to regenerate it.  This meant that several
42169         of the level2 entries were wrong.
42170         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
42171         Remove the division-by-2 that is folded into the table now that
42172         gbrkprop.h has been regenerated properly.  Now -1 entries are
42173         handled correctly.
42175         New module 'unigbrk/uc-gbrk-prop-tests'.
42176         * modules/unigbrk/uc-gbrk-prop-tests: New file.
42177         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
42178         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
42179         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
42181 2011-01-01  Bruno Haible  <bruno@clisp.org>
42183         Avoid use of hexadecimal escapes.
42184         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
42185         instead of hexadecimal escapes.
42187 2011-01-01  Jim Meyering  <meyering@redhat.com>
42189         maint: new rule to update copyright year ranges
42190         * Makefile (update-copyright): New rule.
42192         maint: indent with TABs in Makefile
42193         * Makefile: Expand leading sequences of spaces to TABs
42195         version-etc: update the copyright year it reports
42196         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
42198 2010-12-31  Bruno Haible  <bruno@clisp.org>
42200         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
42201         * lib/isfinite.c (zerof, zerod, zerol): New variables.
42202         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
42203         zero.
42205 2010-12-31  Bruno Haible  <bruno@clisp.org>
42207         pwrite: Work around HP-UX 11.11 bug.
42208         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
42209         works and set REPLACE_PWRITE if not.
42210         * lib/pwrite.c (pwrite): Add an implementation that uses the system
42211         function.
42212         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
42214 2010-12-31  Bruno Haible  <bruno@clisp.org>
42216         pread: Work around HP-UX 11 bugs.
42217         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
42218         and set REPLACE_PREAD if not.
42219         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
42221 2010-12-31  Eric Blake  <eblake@redhat.com>
42223         nl_langinfo: fix YESEXPR on Irix 6.5
42224         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
42225         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
42226         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
42227         it.
42229 2010-12-31  Bruno Haible  <bruno@clisp.org>
42231         iconv: Document HP-UX 11 bug.
42232         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
42234 2010-12-31  Bruno Haible  <bruno@clisp.org>
42236         ldexpl: Fix link error on HP-UX 11.
42237         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
42238         LDEXPL_LIBM, using $ISNANL_LIBM.
42240 2010-12-31  Eric Blake  <eblake@redhat.com>
42242         ftello: avoid compilation failure with SunStudio c89
42243         * lib/ftello.c (ftello): Use lseek, not llseek.
42245         tests: avoid failing coreutils tests on cygwin
42246         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
42247         (create_exe_shims_): Return 0 when skipping.
42249 2010-12-31  Bruno Haible  <bruno@clisp.org>
42251         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
42252         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
42254 2010-12-31  Bruno Haible  <bruno@clisp.org>
42256         waitpid: Fix link error in C++ mode.
42257         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
42259 2010-12-31  Bruno Haible  <bruno@clisp.org>
42261         isnan: Use GCC built-ins when possible.
42262         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
42263         __builtin_isnan.
42264         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
42265         (isnan): Define using GCC built-ins for GCC >= 4.0.
42267 2010-12-31  Bruno Haible  <bruno@clisp.org>
42269         isnand: Fix mistake.
42270         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
42271         __builtin_isnand.
42273 2010-12-31  Bruno Haible  <bruno@clisp.org>
42275         open: Avoid C++ error on HP-UX 11.
42276         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
42278 2010-12-31  Bruno Haible  <bruno@clisp.org>
42280         time_r: Add missing declarations on HP-UX 11.
42281         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
42282         instead of HAVE_LOCALTIME_R.
42283         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
42284         HAVE_LOCALTIME_R always.
42285         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
42286         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
42287         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
42288         HAVE_LOCALTIME_R.
42289         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
42290         * doc/posix-functions/localtime_r.texi: Likewise.
42292 2010-12-29  Eric Blake  <eblake@redhat.com>
42294         mountlist: tweak previous commit
42295         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
42296         Reported by Paul Eggert.
42298         mountlist: fix local drive detection on cygwin
42299         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
42300         that works for cygwin.
42302 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42304         ftoastr, snprintf: ftoastr + snprintf module
42305         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
42306         since the snprintf module now should be good enough here.
42307         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
42308         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
42309         and gl_MODULE_INDICATOR([snprintf]), but the former enables
42310         GNULIB_SNPRINTF only for the test directory, and the latter
42311         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
42312         seems to suffice by itself.
42314 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42316         alloca: one step towards thread-safety
42317         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
42318         need for a static variable.  All callers changed.  This does not
42319         make the alloca replacement thread-safe, but it's one step.
42321         tests: minor indenting change
42322         * tests/init.sh: Sync from coreutils housekeeping patch
42323         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
42324         to keep lines within 80 columns.
42326 2010-12-28  Jim Meyering  <meyering@redhat.com>
42328         regex: don't infloop on persistent failing calloc
42329         * lib/regexec.c (build_trtable): Return failure indication upon
42330         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
42331         In glibc, this was fixed for version 2.13:
42332         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
42334 2010-12-28  Bruno Haible  <bruno@clisp.org>
42335             Paul Eggert <eggert@cs.ucla.edu>
42337         linkat: Make implementation robust against system behaviour variations.
42338         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
42339         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
42340         way, and to -2 if it needs a generic runtime test.
42341         * lib/linkat.c (solaris_optimized_link_immediate,
42342         solaris_optimized_link_follow): New functions.
42343         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
42344         (check_same_link): Use it.
42346 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
42348         New module 'unigbrk/base'.
42349         * modules/unigbrk/base: New file.
42350         * lib/unigbrk.in.h: New file.
42352         New module 'unigbrk/uc-gbrk-prop'.
42353         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
42354         * modules/unigbrk/uc-gbrk-prop: New file.
42355         * lib/unigbrk/gbrkprop.h: New file.
42356         * lib/unigbrk/uc-gbrk-prop.c: New file.
42358         New module 'unigbrk/uc-is-grapheme-break'.
42359         * modules/unigbrk/uc-is-grapheme-break: New file.
42360         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
42361         * lib/unigbrk/uc-is-grapheme-break.c: New file.
42362         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
42363         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
42364         * tests/unigbrk/GraphemeBreakTest.txt: New file.
42366         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
42368 2010-12-27  Bruno Haible  <bruno@clisp.org>
42370         linkat test: Avoid failure on Solaris 11 2010-11.
42371         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
42373 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42375         utimens: work around glibc rounding bug on more platforms
42376         * lib/utimens.c (fdutimens): Work around rounding bug even if
42377         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
42378         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
42380 2010-12-27  Bruno Haible  <bruno@clisp.org>
42382         select tests: Improve comments.
42383         * tests/test-select.c (do_select): Add comments.
42385 2010-12-27  Bruno Haible  <bruno@clisp.org>
42387         select tests: Safer way of handling timeout.
42388         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
42389         at every invocation.
42391 2010-12-27  Bruno Haible  <bruno@clisp.org>
42393         select tests: Use 'bool' where appropriate.
42394         * tests/test-select.c (connect_to_socket): Change argument type to
42395         'bool'.
42397 2010-12-27  Bruno Haible  <bruno@clisp.org>
42399         select tests: Use existing modules.
42400         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
42401         (configure.ac): Don't test for unistd.h.
42402         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
42403         declared in <unistd.h>.
42405 2010-12-27  Bruno Haible  <bruno@clisp.org>
42407         mbrtowc: Work around a Solaris 7 bug.
42408         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
42409         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
42410         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
42411         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
42412         MBRTOWC_NULL_ARG1_BUG.
42413         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
42414         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
42415         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
42416         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
42418 2010-12-27  Jim Meyering  <meyering@redhat.com>
42420         read-file.c: tweak syntax
42421         * lib/read-file.c (fread_file): Remove space after "*" in function
42422         definitions.
42424 2010-12-27  Bruno Haible  <bruno@clisp.org>
42426         times test: Avoid gcc warnings on OSF/1.
42427         * tests/test-times.c (main): Cast printf arguments from clock_t to
42428         'long int'.
42430 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42432         utimens: work around glibc rounding bug on older Linux kernels
42433         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
42434         on Linux with a glibc whose utimes might not work, then work
42435         around a longstanding glibc bug involving rounding rather than
42436         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
42437         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42439 2010-12-26  Bruno Haible  <bruno@clisp.org>
42441         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
42442         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
42443         _GL_CXXALIAS_SYS.
42444         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42446 2010-12-26  Bruno Haible  <bruno@clisp.org>
42448         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
42449         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
42450         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
42451         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
42452         looking for the declaration.
42453         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42454         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
42455         problem.
42456         * doc/posix-functions/inet_pton.texi: Likewise.
42458 2010-12-26  Bruno Haible  <bruno@clisp.org>
42460         arpa_inet: Use the common idioms with C++ support.
42461         * lib/arpa_inet.in.h: Include c++defs.h.
42462         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
42463         support.
42464         * modules/arpa_inet (Depends-on): Add c++defs.
42465         (Makefile.am): Substitute the contents of c++defs.h.
42466         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
42467         * modules/arpa_inet-c++-tests: New file.
42468         * tests/test-arpa_inet-c++.cc: New file.
42470 2010-12-25  Bruno Haible  <bruno@clisp.org>
42472         Fix more C++ link errors on Solaris 8.
42473         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
42474         $(LIB_EACCESS).
42475         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
42476         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
42477         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
42478         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
42479         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
42481 2010-12-25  Bruno Haible  <bruno@clisp.org>
42483         printf-posix: Fix link error when a non-GCC compiler is used.
42484         * lib/stdio.in.h (printf): When not using GCC, override printf
42485         correctly.
42486         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42488 2010-12-25  Bruno Haible  <bruno@clisp.org>
42490         strerror_r-posix: Update doc.
42491         * doc/posix-functions/strerror_r.texi: Update doc about the return
42492         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
42494 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42496         utimens: simplify the logic of the previous change
42497         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
42498         This should not affect whether the test succeeds or fails.
42500         utimens: configure better on hosts with NFS clock skew
42501         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
42502         uses the clock of the local host.  It might use the clock of the
42503         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
42504         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42506 2010-12-25  Bruno Haible  <bruno@clisp.org>
42508         ptsname test: Avoid failure on Solaris.
42509         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
42510         open a pseudo-terminal; don't use BSD-style ptys.
42511         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
42513 2010-12-25  Bruno Haible  <bruno@clisp.org>
42515         ptsname: Avoid ERANGE failure on some systems.
42516         * lib/ptsname.c (buffer): Increase size.
42518 2010-12-25  Bruno Haible  <bruno@clisp.org>
42520         rename, renameat: Avoid test failures at NFS mounted locations.
42521         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
42522         so that subsequent mkdir calls succeed.
42524 2010-12-25  Bruno Haible  <bruno@clisp.org>
42526         iswblank: Fix C++ link error on Solaris 8.
42527         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
42528         _GL_FUNCDECL_SYS.
42530 2010-12-25  Bruno Haible  <bruno@clisp.org>
42532         unistd: Fix C++ link error on Solaris 8.
42533         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
42535 2010-12-25  Bruno Haible  <bruno@clisp.org>
42537         readlink doc: Mention an old glibc bug.
42538         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
42540 2010-12-25  Bruno Haible  <bruno@clisp.org>
42542         fcntl-h: Fix for use of C++ on glibc systems.
42543         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
42544         also on glibc systems in C++ mode.
42545         Reported by Gary V. Vaughan <gary@gnu.org>.
42547 2010-12-25  Bruno Haible  <bruno@clisp.org>
42549         roundl-ieee: Make it work on OSF/1 5.1 with cc.
42550         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
42552 2010-12-25  Bruno Haible  <bruno@clisp.org>
42554         truncl-ieee: Make it work on OSF/1 5.1 with cc.
42555         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
42556         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
42557         test whether truncl works according to ISO C 99 with IEC 60559.
42558         * m4/truncl-ieee.m4: New file.
42559         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
42560         m4/signbit.m4.
42561         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
42563 2010-12-25  Bruno Haible  <bruno@clisp.org>
42565         ceill-ieee: Make it work on OSF/1 5.1 with cc.
42566         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
42567         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
42568         test whether ceill works according to ISO C 99 with IEC 60559.
42569         * m4/ceill-ieee.m4: New file.
42570         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
42571         m4/signbit.m4.
42572         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
42574 2010-12-25  Bruno Haible  <bruno@clisp.org>
42576         Ensure all prerequisites of <wchar.h> are included.
42577         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
42578         before <wchar.h>.
42579         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
42580         gl_MBRLEN_NUL_RETVAL): Likewise.
42581         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42582         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
42583         AC_FUNC_MBRTOWC): Likewise.
42584         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42585         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42586         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42587         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42588         Likewise.
42589         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42590         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
42591         (gl_WCHAR_H): Improve comments.
42592         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
42594 2010-12-25  Bruno Haible  <bruno@clisp.org>
42596         strtok_r: Fix C syntax error in autoconf macro.
42597         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
42598         characters in test program.
42600 2010-12-24  Bruno Haible  <bruno@clisp.org>
42602         ceil, trunc, round: Fix gcc warnings.
42603         * lib/ceil.c (MIN): Undefine before redefining.
42604         * lib/trunc.c (MIN): Likewise.
42605         * lib/round.c (MIN): Likewise.
42606         Include <math.h> first.
42608 2010-12-24  Bruno Haible  <bruno@clisp.org>
42610         select tests: Avoid failures on OSF/1 5.1.
42611         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
42612         failure of closing the last socket; it may fail with ECONNRESET.
42614 2010-12-24  Eric Blake  <eblake@redhat.com>
42616         stdint: avoid HP-UX 10.20 preprocessor bug
42617         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
42618         than #if.
42619         * tests/test-floor2.c (main): Likewise.
42620         Reported by Peter O'Gorman.
42622         pipe: make obsoletion transition easier
42623         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
42624         * modules/pipe (Files): Include revived file.
42625         (Include): Drop reference, to mirror getdate's behavior.
42627 2010-12-24  Bruno Haible  <bruno@clisp.org>
42629         sys_socket: Hide mismatch of declarations on NonStop Kernel.
42630         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
42631         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
42632         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42634 2010-12-24  Bruno Haible  <bruno@clisp.org>
42636         gethostname: Ensure declaration on NonStop Kernel.
42637         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
42638         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42640 2010-12-24  Bruno Haible  <bruno@clisp.org>
42642         sys_select: Ensure all necessary types on NonStop Kernel.
42643         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
42644         include <sys/time.h>.
42645         * doc/posix-headers/sys_select.texi: Mention that it's missing on
42646         NonStop Kernel.
42647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42649 2010-12-24  Bruno Haible  <bruno@clisp.org>
42651         sys_select: Remove unneeded include.
42652         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
42653         have <sys/select.h>.
42655 2010-12-24  Bruno Haible  <bruno@clisp.org>
42657         gethostname: Provide a fallback for HOST_NAME_MAX.
42658         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
42659         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
42660         instead.
42661         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42663 2010-12-24  Bruno Haible  <bruno@clisp.org>
42665         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
42666         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
42667         (SA_RESTART): Likewise.
42668         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42670 2010-12-24  Bruno Haible  <bruno@clisp.org>
42672         signal: Define NSIG.
42673         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
42674         * tests/test-signal.c (nsig): New variable.
42675         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42677 2010-12-24  Bruno Haible  <bruno@clisp.org>
42679         rename, renameat: Avoid test failures on OSF/1 5.1.
42680         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
42681         alternative error codes.
42682         * tests/test-renameat.c (main): Likewise.
42684 2010-12-24  Bruno Haible  <bruno@clisp.org>
42686         *printf: Detect large precisions bug on Solaris 10/SPARC.
42687         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
42688         by Paul Eggert.
42689         * tests/test-snprintf-posix.h (test_function): Add this test code here
42690         too.
42691         * tests/test-sprintf-posix.h (test_function): Likewise.
42692         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42693         * tests/test-vasprintf-posix.c (test_function): Likewise.
42694         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
42695         around by gnulib.
42696         * doc/posix-functions/printf.texi: Likewise.
42697         * doc/posix-functions/snprintf.texi: Likewise.
42698         * doc/posix-functions/sprintf.texi: Likewise.
42699         * doc/posix-functions/vfprintf.texi: Likewise.
42700         * doc/posix-functions/vprintf.texi: Likewise.
42701         * doc/posix-functions/vsnprintf.texi: Likewise.
42702         * doc/posix-functions/vsprintf.texi: Likewise.
42703         * doc/posix-functions/dprintf.texi: Undo last commit.
42704         * doc/posix-functions/vdprintf.texi: Likewise.
42706 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42708         tests: port test-fdutimensat.c to Solaris 8
42709         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
42710         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
42711         On Solaris 8, it fails with errno == ENOSYS, because there is no
42712         futimens (so it can't use the fd), and there is no lutimens (so it
42713         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
42715         vsnprintf: make more consistent with snprintf; doc fixes
42717         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
42718         the byte count return problem was promoted from the snprintf-posix
42719         to the snprintf module.
42720         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42721         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
42722         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
42723         * tests/test-snprintf.c (main): Check the byte count returned.
42724         * tests/test-vsnprintf.c (main): Likewise.
42726 2010-12-23  Eric Blake  <eblake@redhat.com>
42728         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
42729         * modules/sigpipe (License): Relax license.
42731 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42733         doc: document Solaris printf bug with large float precisions
42734         * doc/posix-functions/dprintf.texi (dprintf):
42735         * doc/posix-functions/fprintf.texi (fprintf):
42736         * doc/posix-functions/printf.texi (printf):
42737         * doc/posix-functions/snprintf.texi (snprintf):
42738         * doc/posix-functions/sprintf.texi (sprintf):
42739         * doc/posix-functions/vdprintf.texi (vdprintf):
42740         * doc/posix-functions/vfprintf.texi (vfprintf):
42741         * doc/posix-functions/vprintf.texi (vprintf):
42742         * doc/posix-functions/vsnprintf.texi (vsnprintf):
42743         * doc/posix-functions/vsprintf.texi (vsprintf):
42744         Mention that these functions mishandle large floating point
42745         precisions on Solaris 10.  The same bug is also present in Solaris
42746         8, and I assume earlier.  This causes "cd gnulib-tests; make
42747         check" to fail on Solaris 8 (and I assume, later) when building
42748         the latest coreutils, in test-vasprintf-posix's call to
42749         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
42750         the wide flavors (e.g., wprintf) so this patch just updates the
42751         documentation for the narrow ones.
42753         test-posixtm.c: add two tests
42754         * tests/test-posixtm.c: Add two tests, to highlight the
42755         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
42756         around this bug; this is merely to document it.
42758 2010-12-22  Bruno Haible  <bruno@clisp.org>
42760         getlogin_r: Work around portability problem on OSF/1.
42761         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
42762         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
42763         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
42764         test for a truncated result.
42765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
42766         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
42767         * modules/getlogin_r (Depends-on): Add memchr.
42768         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
42770 2010-12-22  Bruno Haible  <bruno@clisp.org>
42772         ptsname: Avoid test failure on OSF/1 5.1.
42773         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
42774         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
42775         (same_slave): New function.
42776         (main): Use it to compare ptsname's result with the expected file name.
42778 2010-12-22  Bruno Haible  <bruno@clisp.org>
42780         Port extended stdio modules to HP NonStop Kernel.
42781         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
42782         macros.
42783         * lib/fbufmode.c: Update comments.
42784         * lib/fflush.c: Likewise.
42785         * lib/fpurge.c: Likewise.
42786         * lib/freadable.c: Likewise.
42787         * lib/freadahead.c: Likewise.
42788         * lib/freading.c: Likewise.
42789         * lib/freadptr.c: Likewise.
42790         * lib/freadseek.c: Likewise.
42791         * lib/fseeko.c: Likewise.
42792         * lib/fseterr.c: Likewise.
42793         * lib/fwritable.c: Likewise.
42794         * lib/fwriting.c: Likewise.
42795         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42797 2010-12-22  Bruno Haible  <bruno@clisp.org>
42799         ttyname_r: Work around bug on OSF/1 5.1.
42800         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
42801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
42802         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
42803         present.
42804         * lib/ttyname_r.c (ttyname_r): Update comments.
42806 2010-12-22  Bruno Haible  <bruno@clisp.org>
42808         round: Implement result sign according to IEEE 754.
42809         * lib/round.c (MIN, MINUS_ZERO): New macros.
42810         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
42811         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
42812         * tests/test-round-ieee.c (main): Likewise.
42813         * tests/test-roundl-ieee.c (main): Likewise.
42815         trunc: Implement result sign according to IEEE 754.
42816         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
42817         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
42818         * tests/test-trunc2.c: Include minus-zero.h.
42819         (MINUS_ZERO): New macro.
42820         (trunc_reference): Keep in sync with lib/trunc.c.
42821         * tests/test-truncf2.c: Include minus-zero.h.
42822         (MINUS_ZERO): New macro.
42823         (truncf_reference): Keep in sync with lib/trunc.c.
42824         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
42825         * tests/test-trunc-ieee.c (main): Likewise.
42826         * tests/test-truncl-ieee.c (main): Likewise.
42828         ceil: Implement result sign according to IEEE 754.
42829         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
42830         (FUNC): Return -0.0 for -1 < x < 0.
42831         * tests/test-ceil2.c: Include minus-zero.h.
42832         (MINUS_ZERO): New macro.
42833         (ceil_reference): Keep in sync with lib/ceil.c.
42834         * tests/test-ceilf2.c: Include minus-zero.h.
42835         (MINUS_ZERO): New macro.
42836         (ceilf_reference): Keep in sync with lib/ceil.c.
42837         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
42838         * tests/test-ceil-ieee.c (main): Likewise.
42839         * tests/test-ceill-ieee.c (main): Likewise.
42841         floor: Implement result sign according to IEEE 754.
42842         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
42843         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
42844         * tests/test-floorf2.c (floorf_reference): Likewise.
42845         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
42846         * tests/test-floor-ieee.c (main): Likewise.
42847         * tests/test-floorl-ieee.c (main): Likewise.
42849 2010-12-22  Bruno Haible  <bruno@clisp.org>
42851         getaddrinfo: Update doc.
42852         * doc/posix-functions/gai_strerror.texi: Return type is also different
42853         on AIX and HP-UX.
42855 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42857         getaddrinfo, inet_ntop: Update doc for Solaris.
42858         * doc/posix-functions/gai_strerror.texi: Return type is also an
42859         issue on Solaris 9 and earlier.
42860         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
42861         on Solaris 10 and earlier.
42863 2010-12-21  Bruno Haible  <bruno@clisp.org>
42865         New module 'roundl-ieee'.
42866         * modules/roundl-ieee: New file.
42867         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
42868         test whether roundl works according to ISO C 99 with IEC 60559.
42869         * m4/roundl-ieee.m4: New file.
42870         * modules/roundl-ieee-tests: New file.
42871         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
42872         * tests/test-roundl.c (main): Remove signbit tests.
42873         * modules/roundl-tests (Depends-on): Remove signbit.
42874         * doc/posix-functions/roundl.texi: Mention the new module.
42876 2010-12-21  Bruno Haible  <bruno@clisp.org>
42878         New module 'truncl-ieee'.
42879         * modules/truncl-ieee: New file.
42880         * modules/truncl-ieee-tests: New file.
42881         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
42882         * tests/test-truncl.c (main): Remove signbit tests.
42883         * modules/truncl-tests (Depends-on): Remove signbit.
42884         * doc/posix-functions/truncl.texi: Mention the new module.
42886 2010-12-21  Bruno Haible  <bruno@clisp.org>
42888         New module 'ceill-ieee'.
42889         * modules/ceill-ieee: New file.
42890         * modules/ceill-ieee-tests: New file.
42891         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
42892         * tests/test-ceill.c (main): Remove signbit tests.
42893         * modules/ceill-tests (Depends-on): Remove signbit.
42894         * doc/posix-functions/ceill.texi: Mention the new module.
42896 2010-12-21  Bruno Haible  <bruno@clisp.org>
42898         New module 'floorl-ieee'.
42899         * modules/floorl-ieee: New file.
42900         * modules/floorl-ieee-tests: New file.
42901         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
42902         * tests/test-floorl.c (main): Remove signbit tests.
42903         * modules/floorl-tests (Depends-on): Remove signbit.
42904         * doc/posix-functions/floorl.texi: Mention the new module.
42906 2010-12-21  Bruno Haible  <bruno@clisp.org>
42908         New module 'round-ieee'.
42909         * modules/round-ieee: New file.
42910         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
42911         whether round works according to ISO C 99 with IEC 60559.
42912         * m4/round-ieee.m4: New file.
42913         * modules/round-ieee-tests: New file.
42914         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
42915         * tests/test-round1.c (main): Remove signbit tests.
42916         * modules/round-tests (Depends-on): Remove 'signbit'.
42917         * doc/posix-functions/round.texi: Mention the new module.
42919 2010-12-21  Bruno Haible  <bruno@clisp.org>
42921         New module 'trunc-ieee'.
42922         * modules/trunc-ieee: New file.
42923         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
42924         whether trunc works according to ISO C 99 with IEC 60559.
42925         * m4/trunc-ieee.m4: New file.
42926         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
42927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
42928         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
42929         * modules/trunc-ieee-tests: New file.
42930         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
42931         * tests/test-trunc1.c (main): Remove signbit tests.
42932         * modules/trunc-tests (Depends-on): Remove 'signbit'.
42933         * doc/posix-functions/trunc.texi: Mention the new module.
42935 2010-12-21  Bruno Haible  <bruno@clisp.org>
42937         New module 'ceil-ieee'.
42938         * modules/ceil-ieee: New file.
42939         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
42940         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
42941         ISO C 99 with IEC 60559.
42942         * m4/ceil-ieee.m4: New file.
42943         * modules/ceil (Files): Add lib/ceil.c.
42944         (Depends-on): Add 'float'.
42945         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42946         * lib/math.in.h (ceil): New declaration.
42947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
42948         REPLACE_CEIL.
42949         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
42950         * modules/ceil-ieee-tests: New file.
42951         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
42952         * tests/test-math-c++.cc: Check the signature of 'ceil'.
42953         * doc/posix-functions/ceil.texi: Mention the new module.
42955 2010-12-21  Bruno Haible  <bruno@clisp.org>
42957         New module 'floor-ieee'.
42958         * modules/floor-ieee: New file.
42959         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
42960         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
42961         ISO C 99 with IEC 60559.
42962         * m4/floor-ieee.m4: New file.
42963         * modules/floor (Files): Add lib/floor.c.
42964         (Depends-on): Add 'float'.
42965         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42966         * lib/math.in.h (floor): New declaration.
42967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
42968         REPLACE_FLOOR.
42969         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
42970         * modules/floor-ieee-tests: New file.
42971         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
42972         * tests/test-math-c++.cc: Check the signature of 'floor'.
42973         * doc/posix-functions/floor.texi: Mention the new module.
42975 2010-12-21  Bruno Haible  <bruno@clisp.org>
42977         New module 'roundf-ieee'.
42978         * modules/roundf-ieee: New file.
42979         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
42980         test whether roundf works according to ISO C 99 with IEC 60559.
42981         * m4/roundf-ieee.m4: New file.
42982         * modules/roundf-ieee-tests: New file.
42983         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
42984         * tests/test-roundf1.c (main): Remove signbit tests.
42985         * modules/roundf-tests (Depends-on): Remove 'signbit'.
42986         * doc/posix-functions/roundf.texi: Mention the new module.
42988 2010-12-21  Bruno Haible  <bruno@clisp.org>
42990         New module 'truncf-ieee'.
42991         * modules/truncf-ieee: New file.
42992         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
42993         test whether truncf works according to ISO C 99 with IEC 60559.
42994         * m4/truncf-ieee.m4: New file.
42995         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
42996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
42997         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
42998         * modules/truncf-ieee-tests: New file.
42999         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
43000         * tests/test-truncf1.c (main): Remove signbit tests.
43001         * modules/truncf-tests (Depends-on): Remove 'signbit'.
43002         * doc/posix-functions/truncf.texi: Mention the new module.
43004 2010-12-21  Bruno Haible  <bruno@clisp.org>
43006         New module 'ceilf-ieee'.
43007         * modules/ceilf-ieee: New file.
43008         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
43009         test whether ceilf works according to ISO C 99 with IEC 60559.
43010         * m4/ceilf-ieee.m4: New file.
43011         * modules/ceilf-ieee-tests: New file.
43012         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
43013         * tests/test-ceilf1.c (main): Remove signbit tests.
43014         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
43015         * doc/posix-functions/ceilf.texi: Mention the new module.
43017 2010-12-21  Bruno Haible  <bruno@clisp.org>
43019         New module 'floorf-ieee'.
43020         * modules/floorf-ieee: New file.
43021         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
43022         test whether floorf works according to ISO C 99 with IEC 60559.
43023         * m4/floorf-ieee.m4: New file.
43024         * modules/floorf-ieee-tests: New file.
43025         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
43026         * tests/test-floorf1.c (main): Remove signbit tests.
43027         * modules/floorf-tests (Depends-on): Remove 'signbit'.
43028         * doc/posix-functions/floorf.texi: Mention the new module.
43030 2010-12-21  Bruno Haible  <bruno@clisp.org>
43032         Support for minus zero in autoconf macros.
43033         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
43034         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
43035         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
43036         * tests/minus-zero.h: Update comments.
43038 2010-12-21  Bruno Haible  <bruno@clisp.org>
43040         Tests for module 'ceil'.
43041         * modules/ceil-tests: New file.
43042         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
43043         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
43045 2010-12-21  Bruno Haible  <bruno@clisp.org>
43047         Tests for module 'floor'.
43048         * modules/floor-tests: New file.
43049         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
43050         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
43052 2010-12-21  Bruno Haible  <bruno@clisp.org>
43054         math: Fix indentation.
43055         * lib/math.in.h (floorf): Fix indentation.
43057 2010-12-21  Bruno Haible  <bruno@clisp.org>
43059         Fix cross-compilation guesses on Solaris.
43060         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
43061         not match "solaris2.10".
43062         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43063         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
43064         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
43066 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43068         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
43069         This fixes a problem observed with the latest coreutils snapshot
43070         that caused a test to fail on Solaris 8.  src/csplit.c's call
43071         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
43072         earlier, instead of returning the number of bytes that would have
43073         been generated; this causes csplit to incorrectly report memory
43074         exhaustion.
43075         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
43076         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
43077         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
43078         comments to match.
43079         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
43080         Fix typo in matching older versions of Solaris: "solaris2.10"
43081         is matched by the shell pattern "solaris2.[0-9]*".  This matters
43082         only for guessing while cross-compiling.
43083         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
43085 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
43087         ftoastr: fix comment again
43088         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43089         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
43090         Also, simplify example a bit by using flags = 0.
43092 2010-12-20  Bruno Haible  <bruno@clisp.org>
43094         round*, trunc*: Update documentation regarding glibc.
43095         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
43096         * doc/posix-functions/round.texi: Likewise.
43097         * doc/posix-functions/roundl.texi: Likewise.
43098         * doc/posix-functions/truncf.texi: Likewise.
43099         * doc/posix-functions/trunc.texi: Likewise.
43100         * doc/posix-functions/truncl.texi: Likewise.
43102 2010-12-20  Bruno Haible  <bruno@clisp.org>
43104         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
43105         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
43106         * doc/posix-functions/round.texi: Likewise.
43107         * doc/posix-functions/roundl.texi: Likewise.
43109 2010-12-20  Bruno Haible  <bruno@clisp.org>
43111         ttyname_r: Add missing declaration on HP-UX 11.
43112         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
43113         HAVE_TTYNAME_R.
43114         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
43115         declared. Set HAVE_TTYNAME_R always.
43116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43117         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
43118         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
43119         HAVE_TTYNAME_R.
43120         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
43122 2010-12-20  Bruno Haible  <bruno@clisp.org>
43124         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
43125         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
43126         * doc/posix-functions/getlogin_r.texi: Likewise.
43127         * tests/test-getlogin.c: Include <errno.h>.
43128         (main): Avoid test failure on HP-UX 11.11.
43129         * tests/test-getlogin_r.c (main): Likewise.
43131 2010-12-20  Bruno Haible  <bruno@clisp.org>
43133         getlogin_r: Add missing declaration on HP-UX 11.
43134         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
43135         declared also when it exists as a function.
43136         * doc/posix-functions/getlogin_r.texi: Document this workaround.
43138 2010-12-20  Bruno Haible  <bruno@clisp.org>
43140         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
43141         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
43142         through wcrtomb.
43144 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43146         ftoastr: fix comment
43147         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43148         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
43150 2010-12-19  Bruno Haible  <bruno@clisp.org>
43152         isnan: Ensure it is a macro.
43153         * lib/math.in.h (isnan): Define as a macro if not already a macro.
43154         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
43155         Solaris.
43157 2010-12-19  Bruno Haible  <bruno@clisp.org>
43159         ldexpl test: Fix link error on OSF/1 5.1.
43160         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
43162 2010-12-19  Bruno Haible  <bruno@clisp.org>
43164         wctype: Make it work in C++ mode on OSF/1 5.1.
43165         * lib/wctype.in.h (iswblank): Declare but not define here.
43166         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
43167         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
43168         * modules/wctype (Files): Add lib/iswblank.c.
43170 2010-12-19  Bruno Haible  <bruno@clisp.org>
43172         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
43173         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
43174         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
43176 2010-12-19  Bruno Haible  <bruno@clisp.org>
43178         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
43179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
43180         _POSIX_PII_SOCKET.
43181         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
43182         * doc/posix-functions/recvfrom.texi: Likewise.
43183         * doc/posix-functions/send.texi: Likewise.
43184         * doc/posix-functions/sendto.texi: Likewise.
43186 2010-12-19  Bruno Haible  <bruno@clisp.org>
43188         tcgetsid: Add missing declaration on OSF/1 5.1.
43189         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
43190         HAVE_TCGETSID.
43191         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
43192         Don't set HAVE_TCGETSID.
43193         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
43194         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
43195         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
43196         HAVE_TCGETSID.
43197         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
43199 2010-12-19  Bruno Haible  <bruno@clisp.org>
43201         stdio: Fix problem with popen() declaration on OSF/1 5.1.
43202         * lib/stdio.in.h: During the include_next statement, let recursive
43203         includes of this file include only the system header file.
43205 2010-12-19  Bruno Haible  <bruno@clisp.org>
43207         iconv_open: Fix regression from 2010-12-04.
43208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
43209         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
43211 2010-12-19  Bruno Haible  <bruno@clisp.org>
43213         stdbool test: Avoid a gcc warning.
43214         * tests/test-stdbool.c (main): Fail if e1 is false.
43215         Reported by Jim Meyering.
43217 2010-12-19  Jim Meyering  <meyering@redhat.com>
43219         setenv: restore to working order
43220         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
43221         mistakenly removed.
43222         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
43223         HAVE_SETENV.
43224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
43225         HAVE_SETENV.
43227 2010-12-19  Bruno Haible  <bruno@clisp.org>
43229         Document some different function declarations on OSF/1 5.1.
43230         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
43231         * doc/posix-functions/inet_ntop.texi: Likewise.
43232         * doc/posix-functions/gethostname.texi: Likewise.
43233         * lib/unistd.in.h (gethostname): Update comment.
43235 2010-12-19  Bruno Haible  <bruno@clisp.org>
43237         doc: Mention vasprintf-posix module.
43238         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
43239         the 'vasprintf-posix' module.
43240         * doc/glibc-functions/vasprintf.texi: Likewise.
43242 2010-12-19  Bruno Haible  <bruno@clisp.org>
43244         unsetenv: Add missing declaration on OSF/1 5.1.
43245         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
43246         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
43247         Don't set HAVE_UNSETENV. In the test program, set _BSD.
43248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
43249         not HAVE_UNSETENV.
43250         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
43251         HAVE_UNSETENV.
43252         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
43254 2010-12-19  Bruno Haible  <bruno@clisp.org>
43256         setenv: Add missing declaration on OSF/1 5.1.
43257         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
43258         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
43259         declared. Don't set HAVE_SETENV.
43260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
43261         not HAVE_SETENV.
43262         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
43263         HAVE_SETENV.
43264         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
43266 2010-12-19  Bruno Haible  <bruno@clisp.org>
43268         nl_langinfo tests: Avoid gcc warning.
43269         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
43271 2010-12-19  Bruno Haible  <bruno@clisp.org>
43273         mknod: Avoid error in C++ mode on OSF/1 with GCC.
43274         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
43275         _GL_CXXALIAS_SYS.
43277 2010-12-19  Bruno Haible  <bruno@clisp.org>
43279         stdbool: Relax test.
43280         * tests/test-stdbool.c (e): Don't require that casts from a variable's
43281         address to 'bool' work in static initializer, for compilers other than
43282         GCC.
43284 2010-12-19  Bruno Haible  <bruno@clisp.org>
43286         ftello: Add missing declaration on OSF/1 5.1.
43287         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
43288         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
43289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
43290         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
43291         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
43293 2010-12-19  Bruno Haible  <bruno@clisp.org>
43295         fseeko: Add missing declaration on OSF/1 5.1.
43296         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
43297         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
43298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
43299         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
43300         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
43302 2010-12-19  Bruno Haible  <bruno@clisp.org>
43304         fchdir: Add missing declaration on OSF/1 5.1.
43305         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
43306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
43307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
43308         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
43309         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
43311 2010-12-19  Bruno Haible  <bruno@clisp.org>
43313         relocatable-prog-wrapper: Separate from relocatable-prog.
43314         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
43315         uninstall-relocwrapper rule here.
43316         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
43317         Reported by Ian Beckwith <ianb@erislabs.net>.
43319 2010-12-19  Bruno Haible  <bruno@clisp.org>
43321         unistr/u8-mbsnlen: Add missing dependency.
43322         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
43323         Reported by Ian Beckwith <ianb@erislabs.net>.
43325 2010-12-19  Bruno Haible  <bruno@clisp.org>
43327         iconv: Make it possible again to use this module without 'iconv-h'.
43328         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
43329         if it is not defined.
43330         Reported by Ian Beckwith <ianb@erislabs.net>.
43332 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43334         acl: port to Solaris 8 when copying from tmpfs to ufs
43335         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
43336         error number.  Problem observed on Solaris 8 with latest
43337         coreutils, with "mv A B", where A is on a tmpfs file system and B
43338         is on a ufs file system.  This caused coreutils' mv/part-symlink
43339         test to fail.
43341         tests: set fail=0 at start
43342         * tests/init.sh (setup_): Move fail=0 initialization here ...
43343         (mktempd_): ... from here, so that tests can rely on fail being
43344         set to 0 initially.  This fixes a problem in coreutils; see:
43345         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
43347 2010-12-18  Bruno Haible  <bruno@clisp.org>
43349         memmem-simple: Stylistic changes.
43350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
43351         Fix preprocessor directive indentation.
43353 2010-12-15  Pádraig Brady  <P@draigBrady.com>
43355         memmem, memmem-simple: reorganize and expand empty needle check
43356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
43357         functional checks to memmem-simple so that one has a fully functional
43358         memmem by using just this module.
43359         Restrict the performance only check to the memmem module.
43360         Also expand the empty needle check to ensure the correct
43361         pointer is returned, not just a non NULL pointer.
43362         * doc/glibc-functions/memmem.texi: Rearrange the portability
43363         documentation to correlate with the rearranged checks.
43364         Clarify exactly how the memmem and memmem-simple modules
43365         relate to each other.
43367 2010-12-15  Pádraig Brady  <P@draigBrady.com>
43368             Bruno Haible  <bruno@clisp.org>
43370         Improve cross-compilation guesses for uClibc.
43371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
43372         that uClibc does not have the glibc bug.
43373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
43374         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
43376 2010-12-14  Eric Blake  <eblake@redhat.com>
43378         configmake: provide fallbacks for oldest supported autotools
43379         * m4/configmake.m4: New file.
43380         * modules/configmake (Files): Ship it.
43381         (configure.ac): Use it to guarantee fallbacks.
43383 2010-12-13  Pádraig Brady  <P@draigBrady.com>
43385         read-file: Improve handling of large files
43386         * lib/read-file.c (fread_file): Minimize realloc()s
43387         for regular files, and better manage sizes around SIZE_MAX.
43389 2010-12-13  Eric Blake  <eblake@redhat.com>
43391         cloexec, fcntl: relax license
43392         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
43393         consent from all contributors.
43394         * modules/fcntl (License): Likewise.
43396 2010-12-10  Bruno Haible  <bruno@clisp.org>
43398         Tests for module 'pipe-posix'.
43399         * modules/pipe-posix-tests: New file.
43400         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
43402 2010-12-10  Bruno Haible  <bruno@clisp.org>
43404         pipe-posix: Make it work in C++ mode.
43405         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
43406         (pipe): Use common idiom, not a macro definition.
43407         * lib/pipe.c: New file.
43408         * m4/pipe.m4: New file.
43409         * modules/pipe-posix (Description): Enhance.
43410         (Files): Add lib/pipe.c, m4/pipe.m4.
43411         (configure.ac): Invoke gl_FUNC_PIPE.
43412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
43413         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
43414         * tests/test-unistd-c++.cc: Check the signature of pipe.
43416 2010-12-10  Bruno Haible  <bruno@clisp.org>
43418         Rename module 'pipe' to 'spawn-pipe'.
43419         * modules/spawn-pipe: New file, renamed from modules/pipe.
43420         (Files, configure.ac, Makefile.am): Update.
43421         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
43422         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
43423         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
43424         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
43425         "spawn-pipe.h" instead of "pipe.h".
43426         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
43427         to gl_SPAWN_PIPE.
43428         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
43429         (Files, Makefile.am): Update.
43430         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
43431         Update.
43432         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
43433         Include "spawn-pipe.h" instead of "pipe.h".
43434         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
43435         * lib/javacomp.c: Likewise.
43436         * lib/javaversion.c: Likewise.
43437         * lib/pipe-filter-gi.c: Likewise.
43438         * lib/pipe-filter-ii.c: Likewise.
43439         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
43440         * modules/javacomp (Depends-on): Likewise.
43441         * modules/javaversion (Depends-on): Likewise.
43442         * modules/pipe-filter-gi (Depends-on): Likewise.
43443         * modules/pipe-filter-ii (Depends-on): Likewise.
43444         * MODULES.html.sh (Executing programs): Update.
43445         * NEWS: Mention the change.
43447 2010-12-10  Eric Blake  <eblake@redhat.com>
43449         pipe-posix: new module
43450         * modules/pipe-posix: New file.
43451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
43452         (gl_UNISTD_H): Check for declaration.
43453         * modules/unistd (Makefile.am): Substitute it.
43454         * lib/unistd.in.h (pipe): Provide it for mingw.
43455         * doc/posix-functions/pipe.texi (pipe): Update documentation.
43456         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
43458 2010-12-07  Bruno Haible  <bruno@clisp.org>
43460         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
43461         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
43462         u8_strcmp_gnu.
43463         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
43465 2010-12-06  Bruno Haible  <bruno@clisp.org>
43467         Update internal documentation.
43468         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
43470 2010-12-04  Bruno Haible  <bruno@clisp.org>
43472         Put more information about failed tests into the test return codes.
43473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
43474         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
43475         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43477         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
43478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43479         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43480         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43481         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
43482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43483         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
43484         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43485         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
43486         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43487         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
43488         returns a bit mask.
43489         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
43490         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
43491         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
43492         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
43493         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43494         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
43495         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43497         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
43498         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
43499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43500         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
43501         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
43503         * m4/link.m4 (gl_FUNC_LINK): Likewise.
43504         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43505         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
43506         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
43507         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
43509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43510         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43511         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
43512         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43513         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43514         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43515         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
43516         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
43517         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
43518         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
43519         gl_PRINTF_PRECISION): Likewise.
43520         * m4/regex.m4 (gl_REGEX): Likewise.
43521         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
43523         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
43524         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43525         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43527         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
43528         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
43529         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43530         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43531         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43532         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43533         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
43534         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43535         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43536         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43537         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
43538         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43540         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
43541         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
43542         enumerated value.
43543         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
43545 2010-12-04  Bruno Haible  <bruno@clisp.org>
43547         Update for Solaris 11 2010-11.
43548         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
43549         Express, released in November 2010.
43551 2010-12-04  Bruno Haible  <bruno@clisp.org>
43553         nproc: Relax license.
43554         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
43555         and Paul Eggert.
43556         Requested by Ludovic Courtès <ludo@gnu.org>.
43558 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
43560         utimecmp: fine-grained src to nearby coarse-grained dest
43562         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
43563         and the source is on a file system with higher-resolution time
43564         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
43565         not work, and the time stamps are close together, the algorithm to
43566         determine the exact resolution from the read-back mtime was buggy:
43567         it had a "!=" where it should have had an "==".  This bug has been
43568         in the code ever since it was introduced to gnulib.
43569         Problem reported by Dan Jacobson in
43570         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
43572 2010-11-30  Bruno Haible  <bruno@clisp.org>
43574         strerror_r-posix: Fix autoconf test.
43575         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
43577 2010-11-28  Bruno Haible  <bruno@clisp.org>
43578             Paul Eggert  <eggert@cs.ucla.edu>
43580         Tests for module 'getdomainname'.
43581         * modules/getdomainname-tests: New file.
43582         * tests/test-getdomainname.c: New file, based on
43583         tests/test-gethostname.c.
43585 2010-11-28  Bruno Haible  <bruno@clisp.org>
43586             Paul Eggert  <eggert@cs.ucla.edu>
43588         getdomainname: Use the system function when possible.
43589         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
43590         (getdomainname): Replace if needed. Provide the declaration if it is
43591         missing. Don't use _GL_CXXALIAS_SYS_CAST.
43592         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
43593         (getdomainname): When the system has getdomainname, call the system
43594         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
43595         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43596         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
43597         found in libnsl. Look for the declaration also in <netdb.h>. Replace
43598         the function if its second argument is of type 'int' or if it is found
43599         in libnsl.
43600         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
43601         <sys/systeminfo.h> and sysinfo().
43602         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
43603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43604         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
43605         HAVE_GETDOMAINNAME.
43606         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
43607         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
43608         * doc/glibc-functions/getdomainname.texi: Document the problems with
43609         the getdomainname declaration.
43611 2010-11-28  Bruno Haible  <bruno@clisp.org>
43613         sys_socket: Ensure ss_family field on AIX.
43614         * lib/sys_socket.in.h (ss_family): New macro definition.
43615         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
43616         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
43617         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43618         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43619         * modules/sys_socket (Makefile.am): Substitute
43620         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43621         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
43623 2010-11-27  Bruno Haible  <bruno@clisp.org>
43625         readline: Improve configure output.
43626         * m4/readline.m4 (gl_FUNC_READLINE): Make the
43627         "checking for readline..." result understandable.
43629 2010-11-27  Bruno Haible  <bruno@clisp.org>
43631         *printf-posix: Detect a bug on Solaris 10/x86.
43632         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
43633         for floating-point output.
43634         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
43635         directive.
43636         * tests/test-snprintf-posix.h (test_function): Likewise.
43637         * tests/test-sprintf-posix.h (test_function): Likewise.
43638         * tests/test-vasprintf-posix.c (test_function): Likewise.
43639         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
43640         * doc/posix-functions/printf.texi: Likewise.
43641         * doc/posix-functions/snprintf.texi: Likewise.
43642         * doc/posix-functions/sprintf.texi: Likewise.
43643         * doc/posix-functions/vfprintf.texi: Likewise.
43644         * doc/posix-functions/vprintf.texi: Likewise.
43645         * doc/posix-functions/vsnprintf.texi: Likewise.
43646         * doc/posix-functions/vsprintf.texi: Likewise.
43647         * doc/glibc-functions/obstack_printf.texi: Likewise.
43648         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43650 2010-11-27  Bruno Haible  <bruno@clisp.org>
43652         Fix link error when module libunistring-optional is in use.
43653         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
43654         * modules/striconveha-tests (Makefile.am): Likewise.
43656 2010-11-27  Bruno Haible  <bruno@clisp.org>
43658         regex: Mention link dependencies.
43659         * modules/regex (Link): New section.
43660         * modules/rpmatch (Link): Likewise.
43661         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
43663 2010-11-27  Bruno Haible  <bruno@clisp.org>
43665         ftoastr: Fix compilation error on Solaris.
43666         * lib/ftoastr.c: Include <config.h>.
43668 2010-11-27  Bruno Haible  <bruno@clisp.org>
43670         getloadavg: Update documentation.
43671         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
43673 2010-11-27  Bruno Haible  <bruno@clisp.org>
43675         sys_socket: Fix test whether the functions are declared.
43676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
43677         not <sys/select.h>.
43679 2010-11-27  Bruno Haible  <bruno@clisp.org>
43681         getpass: Make sure to get system declaration on some platforms.
43682         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
43683         gl_USE_SYSTEM_EXTENSIONS.
43684         * modules/getpass (Depends-on): Add extensions.
43686 2010-11-26  Bruno Haible  <bruno@clisp.org>
43688         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
43689         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
43690         'iconv' module is present.
43691         (ICONV_CONST): New macro.
43692         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
43693         ICONV_CONST.
43694         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
43695         set ICONV_CONST.
43696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
43697         here.
43698         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
43699         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
43700         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
43701         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
43702         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
43703         present.
43705 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43707         ftoastr: comment fix
43708         * lib/ftoastr.c: "little" -> "little or no" in comment
43710 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
43712         stdint: port to GCC 4.3 + OSX + Octave
43713         On this platform, stdint.h is buggy and defines int64_t to long
43714         long int.  The replacement defined it to long int, causing
43715         problems with C++ style name mangling.  Instead, trust the system
43716         definition if INT64_MAX is defined, and likewise for the unsigned
43717         variant.   Problem reported by Jarno Rajahalme in
43718         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
43719         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
43720         and don't mess with int64_t and INT64_MAX in this case.
43721         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
43723 2010-11-24  Bruno Haible  <bruno@clisp.org>
43725         doc: Corrections regarding MacOS X 10.4 and 10.5.
43726         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
43727         MacOS X.
43728         Reported by Simon Josefsson.
43730 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
43732         Uninstall ".bin" files installed by relocwrapper.
43733         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
43734         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
43735         unless it is already there.
43737 2010-11-21  Bruno Haible  <bruno@clisp.org>
43739         Update for NetBSD 5.0.
43740         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43741         NetBSD; the test fails on NetBSD 5.0.
43742         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43743         about NetBSD.
43745 2010-11-21  Bruno Haible  <bruno@clisp.org>
43747         Update for HP-UX 11.23 and HP-UX 11.31.
43748         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
43749         HP-UX.
43751 2010-11-21  Bruno Haible  <bruno@clisp.org>
43753         Update for MacOS X 10.5.
43754         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43755         MacOS X; the test fails on MacOS X 10.5.8.
43756         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43757         about MacOS X.
43759 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
43761         bootstrap: add bootstrap_sync option.
43762         See discussion at
43763         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
43764         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
43765         * build-aux/bootstrap: Accept --bootstrap-sync to update
43766         bootstrap if it is not identical to the local gnulib's
43767         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
43768         enable this by default.  Accept --no-bootstrap-sync to disable
43769         it.
43771 2010-11-20  Bruno Haible  <bruno@clisp.org>
43773         Ensure that <features.h> is included before __GLIBC__ is tested.
43774         * lib/printf-parse.h: Include <features.h>.
43775         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
43776         Reported by Mike Frysinger <vapier@gentoo.org>.
43778         Ensure that <features.h> is included before __GLIBC__ is tested.
43779         * lib/wchar.in.h: Include <features.h>.
43780         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
43781         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
43782         Reported by Mike Frysinger <vapier@gentoo.org>.
43784         Ensure that <features.h> is included before __GLIBC__ is tested.
43785         * lib/arpa_inet.in.h: Include <features.h>.
43786         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
43787         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
43788         Reported by Mike Frysinger <vapier@gentoo.org>.
43790         Ensure that <features.h> is included before __GLIBC__ is tested.
43791         * build-aux/link-warning.h: Include <features.h>.
43792         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
43793         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
43794         Reported by Mike Frysinger <vapier@gentoo.org>.
43796         Ensure that <features.h> is included before __GLIBC__ is tested.
43797         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
43798         Reported by Mike Frysinger <vapier@gentoo.org>.
43800 2010-11-20  Bruno Haible  <bruno@clisp.org>
43802         memmem: Fix autoconf test.
43803         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
43805 2010-11-20  Bruno Haible  <bruno@clisp.org>
43807         Port to uClibc.
43808         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
43809         * lib/fcntl.in.h: Likewise.
43810         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
43811         * lib/mbrtowc.c (mbrtowc): Likewise.
43812         * lib/relocatable.c (find_shared_library_fullname): Likewise.
43813         * lib/strerror_r.c: Likewise.
43814         * lib/unistr/u8-strnlen.c: Likewise.
43815         * lib/vasnprintf.c (decimal_point_char): Likewise.
43816         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43817         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
43818         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43819         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43820         * tests/test-sigaction.c (handler, main): Likewise.
43821         * lib/freading.h: Treat uClibc like a non-glibc platform.
43822         * lib/freading.c: Likewise.
43823         * lib/gettext.h: Likewise.
43824         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
43825         Likewise.
43826         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
43827         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43828         * lib/propername.c (proper_name_utf8): Likewise.
43829         * lib/spawn.in.h: Likewise.
43830         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
43831         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
43832         mem_cd_iconveh_internal): Likewise.
43833         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
43834         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
43835         strstr, strcasestr): Likewise.
43836         * lib/unicodeio.c (unicode_to_mb): Likewise.
43837         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
43838         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
43839         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
43840         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
43841         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
43842         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
43843         * lib/unistr/u8-stpncpy.c: Likewise.
43844         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43845         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
43846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43848         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43849         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
43850         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
43851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
43852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
43853         Likewise.
43854         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43855         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43856         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
43857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43858         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43859         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43860         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43861         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43862         * tests/test-getopt.h (OPTIND_MIN): Likewise.
43863         * tests/test-striconveha.c (main): Likewise.
43864         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43865         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
43866         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
43867         * doc/posix-functions/getline.texi: Likewise.
43868         Reported by Mike Frysinger <vapier@gentoo.org>.
43870 2010-11-20  Bruno Haible  <bruno@clisp.org>
43872         nproc: Fix condition.
43873         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
43874         HAVE_PTHREAD_AFFINITY_NP.
43876 2010-11-20  Bruno Haible  <bruno@clisp.org>
43878         Fix a comment.
43879         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
43881 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
43883         ftoastr: don't assume snprintf
43884         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
43885         Implement a subset of snprintf here, by using sprintf safely.
43886         * modules/ftoastr (Depends-on): Remove snprintf.
43888 2010-11-19  Jim Meyering  <meyering@redhat.com>
43890         test-rename.h: fix compilation failure
43891         * tests/test-rename.h (test_rename): Add omitted "}".
43893 2010-11-17  Jim Meyering  <meyering@redhat.com>
43895         maint.mk: add a URL discussing the no-@acronym policy
43896         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
43898 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
43900         ftoastr: depend on snprintf, improve comments
43901         * lib/ftoastr.c: Also mention Loitsch's draft.
43902         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
43903         needed in the current implementation, but it might simplify
43904         speeding up the code later.
43905         * modules/ftoastr: Depend on snprintf; this improves portability.
43906         Suggested by Bruno Haible in the same email.
43908         ftoastr: port to hosts lacking strtof and strtold
43909         Problem reported by Bruno Haible in
43910         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
43911         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
43912         environment and strtold (and presumably strtof) are not available.
43913         * modules/ftoastr (Files): Add m4/c-strtod.m4.
43914         (configure.ac): Require gl_C99_STRTOLD.
43916 2010-11-18  Bruno Haible  <bruno@clisp.org>
43918         c-strtold: Avoid link error on AIX 7.
43919         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
43920         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
43921         (gl_C_STRTOLD): Test whether strtold_l exists.
43922         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43924 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43926         intprops: new macro INT_BITS_STRLEN_BOUND
43927         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
43928         ftoastr.h.  This exposes an internal of intprops.h that was formerly
43929         not exposed.  Also, it uses a slightly tighter bound than before;
43930         though this makes no practical difference, we might as well be as
43931         tight as we easily can.
43933         ftoastr: new module, for lossless conversion of floats to short strings
43934         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
43935         * modules/ftoastr: New files.
43937 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43939         bootstrap: port to Solaris sed
43940         * build-aux/bootstrap (get_version): Port to Solaris sed.
43941         See Ralf Wildenhues's note in
43942         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
43944 2010-11-14  Jim Meyering  <meyering@redhat.com>
43946         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
43947         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
43948         and move definition closer to sole use.
43950 2010-11-13  Jim Meyering  <meyering@redhat.com>
43952         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
43953         Now we require at least autoconf-2.59, which means the work-around
43954         is no longer needed.
43955         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
43956         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43957         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43958         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
43959         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
43961 2010-11-13  Bruno Haible  <bruno@clisp.org>
43963         rename, renameat: Avoid test failures at NFS mounted locations.
43964         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
43965         functions.
43966         (test_rename): Use assert_nonexistent.
43967         * tests/test-rename.c: Include <dirent.h>.
43968         * tests/test-renameat.c: Likewise.
43969         Reported by Gary V. Vaughan <gary@gnu.org>.
43971         rename, renameat: Document Linux bug with NFS
43972         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
43973         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
43974         * doc/posix-functions/renameat.texi: Likewise.
43975         Suggested by Eric Blake.
43977 2010-11-13  Bruno Haible  <bruno@clisp.org>
43979         rename test: Add comments.
43980         * tests/test-rename.h (test_rename): Add structure and comments.
43982 2010-11-13  Eric Blake  <eblake@redhat.com>
43984         maintainer-makefile: cover a few more files
43985         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
43986         scripts generated within C files, for libvirt.
43988 2010-11-13  Bruno Haible  <bruno@clisp.org>
43990         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
43991         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
43992         character, return the number of bytes that belong together, not always
43993         1.
43994         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
43995         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
43996         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
43997         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
43998         number of bytes of an invalid character.
43999         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
44000         (main): Invoke it.
44001         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
44002         results.
44003         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
44004         malformed byte sequences.
44005         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
44006         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
44007         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
44008         Reported by Ben Pfaff and Paolo Bonzini.
44010 2010-11-13  Bruno Haible  <bruno@clisp.org>
44012         openat: Work around glibc bug with fchownat() and empty file names.
44013         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
44014         (gl_FUNC_FCHOWNAT): Invoke it.
44015         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
44016         * doc/posix-functions/fchownat.texi: Document the glibc bug.
44017         Reported by Gary V. Vaughan <gary@gnu.org>.
44019 2010-11-13  Bruno Haible  <bruno@clisp.org>
44021         openat: Ensure autoconf macro ordering.
44022         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
44023         gl_USE_SYSTEM_EXTENSIONS.
44024         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
44026 2010-11-13  Bruno Haible  <bruno@clisp.org>
44028         Update comments.
44029         * lib/unistr/u8-check.c: Update file name in comments.
44030         * lib/unistr/u8-mblen.c: Likewise.
44031         * lib/unistr/u8-prev.c: Likewise.
44032         * lib/unistr/u8-strmblen.c: Likewise.
44033         * lib/unistr/u8-strmbtouc.c: Likewise.
44035 2010-11-13  Jim Meyering  <meyering@redhat.com>
44037         tests: avoid test failure on Solaris 10 due to lack of PATH export
44038         * tests/test-update-copyright.sh: Don't forget to export PATH.
44040         init.sh: ensure that IFS is defined, just in case...
44041         * tests/init.sh (setup_): Ensure that IFS is defined,
44042         so that saving and restoring it works as expected.  This
44043         appears to be useful at least for an old version of dash
44044         from a long time ago (RH 6).  See here for details:
44045         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
44047         maint.mk: tighten "test a == b" check
44048         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
44049         test to files that contain something like #!/bin/sh.
44050         Without this, coreutils would get two false positives in
44051         the comments of C source files.
44053 2010-11-12  Eric Blake  <eblake@redhat.com>
44055         bootstrap: fix typo in previous attempt
44056         * build-aux/bootstrap (buildreq): Correct the grouping.
44057         Reported by Paul Eggert.
44059         maintainer-makefile: prohibit test x == x
44060         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
44061         Based on a report by Matthias Bolte.
44063         bootstrap: allow FreeBSD gzip
44064         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
44065         which has no '.' and goes to stderr.
44066         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
44067         Reported by Matthias Bolte.
44069         maintainer-makefile: check for i18n setup
44070         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
44071         will likely work.
44073 2010-11-12  Bruno Haible  <bruno@clisp.org>
44075         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
44076         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
44077         * lib/nanosleep.c (nanosleep): Likewise.
44079 2010-11-11  Bruno Haible  <bruno@clisp.org>
44081         fcntl-h: Fix for use of C++ on glibc systems.
44082         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44083         also on glibc systems in C++ mode.
44084         Reported by Gary V. Vaughan <gary@gnu.org>.
44086 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44088         mknod: avoid false failure with dash
44089         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
44091 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44093         unlink: Fix "is it should" typo in diagnostic.
44094         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
44095         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
44097 2010-11-11  Bruno Haible  <bruno@clisp.org>
44099         Tests for module 'strerror_r-posix'.
44100         * modules/strerror_r-posix-tests: New file.
44101         * tests/test-strerror_r.c: New file.
44102         * tests/test-string-c++.cc: Check the signature of strerror_r.
44104         New module 'strerror_r-posix'.
44105         * lib/string.in.h (strerror_r): New declaration.
44106         * lib/strerror_r.c: New file.
44107         * m4/strerror_r.m4: New file.
44108         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
44109         of strerror_r.
44110         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
44111         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44112         * modules/strerror_r-posix: New file.
44113         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
44114         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44115         * doc/posix-functions/strerror_r.texi: Mention the new module and the
44116         portability problems.
44118 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
44120         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
44121         line is also considered for output. Quoted function name in shell
44122         command, so temporary files for functions like MyClass::operator()
44123         are removed correctly without errors.
44125 2010-11-09  Bruno Haible  <bruno@clisp.org>
44127         * doc/posix-functions/strerror.texi: List more failing platforms.
44129         * doc/posix-functions/strerror.texi: Add a comment.
44131 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44133         fdopendir: fix bug on MacOS X when low on file descriptors
44135         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
44136         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
44137         All callers changed.
44138         (fdopendir): Invoke save_cwd at the top level, not after using
44139         multiple dup() calls to use up file descriptors.  Then retry
44140         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
44141         less than the maximum number of open file descriptors, because
44142         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
44143         on Mac OS X 10.6.4 for tar 1.24
44144         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
44145         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
44146         and for tar 1.25
44147         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
44149 2010-11-07  Bruno Haible  <bruno@clisp.org>
44151         vasnprintf: Support I flag on glibc systems.
44152         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
44153         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
44154         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
44155         snprintf function.
44156         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
44157         glibc systems.
44158         * tests/test-vasnprintf-posix3.c: New file.
44159         * modules/vasnprintf-posix-tests (Files): Add it.
44160         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
44162 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44164         [html] Fix copy/paste bug: Use unique name for compiler warnings.
44165         * MODULES.html.sh: For compiler warnings, use name
44166         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
44168 2010-11-05  Eric Blake  <eblake@redhat.com>
44170         ceil, floor: avoid spurious failure with icc
44171         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
44172         [denormals-as-zero] when optimizing without -mieee-fp option.
44173         * tests/test-floorf2.c (floorf_reference): Likewise.
44174         * tests/test-ceilf1.c (dummy): New function.
44175         (main): Use it to outsmart icc's optimization.
44176         * tests/test-floorf1.c (dummy, main): Likewise.
44178         tests: require working signbit
44179         * modules/ceilf-tests (Depends-on): Add signbit.
44180         * modules/ceill-tests (Depends-on): Likewise.
44181         * modules/floorf-tests (Depends-on): Likewise.
44182         * modules/floorl-tests (Depends-on): Likewise.
44183         * modules/round-tests (Depends-on): Likewise.
44184         * modules/roundf-tests (Depends-on): Likewise.
44185         * modules/roundl-tests (Depends-on): Likewise.
44186         * modules/trunc-tests (Depends-on): Likewise.
44187         * modules/truncf-tests (Depends-on): Likewise.
44188         * modules/truncl-tests (Depends-on): Likewise.
44190         strtod: work around icc bug
44191         * lib/strtod.c (minus_zero): Define to working value.
44192         (strtod): Use it to avoid icc bug.
44194         copysign: enhance tests
44195         * modules/copysign-tests (Files): Add minus-zero.h.
44196         * tests/test-copysign.c (main): Also test zeros.
44198 2010-11-04  Eric Blake  <eblake@redhat.com>
44200         ceil, floor, round, trunc: enhance tests of -0
44201         * tests/test-ceilf1.c (main): Ensure correct sign of result.
44202         * tests/test-ceill.c (main): Likewise.
44203         * tests/test-floorf1.c (main): Likewise.
44204         * tests/test-floorl.c (main): Likewise.
44205         * tests/test-round1.c (main): Likewise.
44206         * tests/test-roundf1.c (main): Likewise.
44207         * tests/test-roundl.c (main): Likewise.
44208         * tests/test-trunc1.c (main): Likewise.
44209         * tests/test-truncf1.c (main): Likewise.
44210         * tests/test-truncl.c (main): Likewise.
44212 2010-11-04  Eric Blake  <eblake@redhat.com>
44214         frexp, tests: work around ICC bug with -zero
44215         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
44216         works with more compilers.
44217         * tests/minus-zero.h: New file.
44218         * modules/ceilf-tests (Files): Include it.
44219         * modules/ceill-tests (Files): Likewise.
44220         * modules/floorf-tests (Files): Likewise.
44221         * modules/floorl-tests (Files): Likewise.
44222         * modules/frexp-nolibm-tests (Files): Likewise.
44223         * modules/frexp-tests (Files): Likewise.
44224         * modules/frexpl-nolibm-tests (Files): Likewise.
44225         * modules/frexpl-tests (Files): Likewise.
44226         * modules/isnan-tests (Files): Likewise.
44227         * modules/isnand-nolibm-tests (Files): Likewise.
44228         * modules/isnand-tests (Files): Likewise.
44229         * modules/isnanf-nolibm-tests (Files): Likewise.
44230         * modules/isnanf-tests (Files): Likewise.
44231         * modules/isnanl-nolibm-tests (Files): Likewise.
44232         * modules/isnanl-tests (Files): Likewise.
44233         * modules/round-tests (Files): Likewise.
44234         * modules/roundf-tests (Files): Likewise.
44235         * modules/roundl-tests (Files): Likewise.
44236         * modules/ldexpl-tests (Files): Likewise.
44237         * modules/signbit-tests (Files): Likewise.
44238         * modules/snprintf-posix-tests (Files): Likewise.
44239         * modules/sprintf-posix-tests (Files): Likewise.
44240         * modules/strtod-tests (Files): Likewise.
44241         * modules/trunc-tests (Files): Likewise.
44242         * modules/truncf-tests (Files): Likewise.
44243         * modules/truncl-tests (Files): Likewise.
44244         * modules/vsnprintf-posix-tests (Files): Likewise.
44245         * modules/vsprintf-posix-tests (Files): Likewise.
44246         * modules/vasnprintf-posix-tests (Files): Likewise.
44247         * modules/vasprintf-posix-tests (Files): Likewise.
44248         * tests/test-ceilf1.c (main): Use it.
44249         * tests/test-ceill.c (main): Likewise.
44250         * tests/test-floorf1.c (main): Likewise.
44251         * tests/test-floorl.c (main): Likewise.
44252         * tests/test-frexp.c (main): Likewise.
44253         * tests/test-frexpl.c (main): Likewise.
44254         * tests/test-isnan.c (main): Likewise.
44255         * tests/test-isnand.h (main): Likewise.
44256         * tests/test-isnanf.h (main): Likewise.
44257         * tests/test-isnanl.h (main): Likewise.
44258         * tests/test-ldexpl.c (main): Likewise.
44259         * tests/test-round.c (main): Likewise.
44260         * tests/test-roundf.c (main): Likewise.
44261         * tests/test-roundl.c (main): Likewise.
44262         * tests/test-signbit.c (test_signbitf, test_signbitd)
44263         (test_signbitl): Likewise.
44264         * tests/test-snprintf-posix.h (test_function): Likewise.
44265         * tests/test-sprintf-posix.h (test_function): Likewise.
44266         * tests/test-strtod.c (main): Likewise.
44267         * tests/test-trunc1.c (main): Likewise.
44268         * tests/test-truncf1.c (main): Likewise.
44269         * tests/test-truncl.c (main): Likewise.
44271         isnanl: work around icc bug
44272         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
44274 2010-11-03  Eric Blake  <eblake@redhat.com>
44276         tests: fix compiler warnings
44277         * tests/test-getopt.h (test_getopt): Fix condition.
44278         * tests/test-getopt_long.h (test_getopt_long): Likewise.
44279         * tests/test-pipe2.c (main): Likewise.
44280         * tests/test-quotearg-simple.c (main): Avoid icc warning.
44282         utimens: fix broken m4 test
44283         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
44285 2010-10-28  Bruno Haible  <bruno@clisp.org>
44287         posix_spawn*, getdtablesize: Relax license.
44288         * modules/posix_spawn (License): Change to LGPLv2+.
44289         * modules/posix_spawnp (License): Likewise.
44290         * modules/posix_spawn-internal (License): Likewise.
44291         * modules/posix_spawnattr_init (License): Likewise.
44292         * modules/posix_spawnattr_getflags (License): Likewise.
44293         * modules/posix_spawnattr_setflags (License): Likewise.
44294         * modules/posix_spawnattr_getpgroup (License): Likewise.
44295         * modules/posix_spawnattr_setpgroup (License): Likewise.
44296         * modules/posix_spawnattr_getschedparam (License): Likewise.
44297         * modules/posix_spawnattr_setschedparam (License): Likewise.
44298         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
44299         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
44300         * modules/posix_spawnattr_getsigdefault (License): Likewise.
44301         * modules/posix_spawnattr_setsigdefault (License): Likewise.
44302         * modules/posix_spawnattr_getsigmask (License): Likewise.
44303         * modules/posix_spawnattr_setsigmask (License): Likewise.
44304         * modules/posix_spawnattr_destroy (License): Likewise.
44305         * modules/posix_spawn_file_actions_init (License): Likewise.
44306         * modules/posix_spawn_file_actions_addclose (License): Likewise.
44307         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
44308         * modules/posix_spawn_file_actions_addopen (License): Likewise.
44309         * modules/posix_spawn_file_actions_destroy (License): Likewise.
44310         * modules/getdtablesize (License): Likewise.
44311         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
44313 2010-10-26  Bruno Haible  <bruno@clisp.org>
44315         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
44316         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
44317         Cygwin and mingw.
44318         Suggested by Eric Blake.
44320 2010-10-26  Bruno Haible  <bruno@clisp.org>
44322         stdio: Work around compilation error due to renameat() on Solaris 10.
44323         * lib/stdio.in.h: Include <unistd.h> on Solaris.
44324         * lib/renameat.c: Don't include <unistd.h> here.
44325         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
44326         Reported by Paul Eggert and Eric Blake.
44328 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44330         renameat: port to Solaris 10, which declares renameat in unistd.h
44332         * lib/renameat.c: Include unistd.h before stdio.h, because
44333         Solaris 10 declares renameat in unistd.h.  Problem encountered
44334         when building GNU tar 1.24 on Solaris 10.
44336 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44338         fdopendir: fix C89 compilation
44339         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
44340         compilers.
44342 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
44344         inttostr: simplify by removing unnecessary redundancy
44345         * lib/anytostr.c: Don't include verify.h.
44346         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
44347         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
44348         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
44349         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
44350         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
44351         Likewise.
44352         * modules/inttostr (Depends-on): Remove 'verify'.
44354 2010-10-23  Bruno Haible  <bruno@clisp.org>
44356         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
44357         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
44358         Reported by Eric Blake.
44360 2010-10-23  Bruno Haible  <bruno@clisp.org>
44362         Tests: Fix LOCALE_JA on MirBSD 10.
44363         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
44364         to an UTF-8 locale.
44365         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
44366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44367         Reported by Eric Blake.
44369 2010-10-21  Bruno Haible  <bruno@clisp.org>
44371         nl_langinfo test: Avoid test failure on NetBSD 5.
44372         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
44373         Reported by Eric Blake.
44375 2010-10-21  Eric Blake  <eblake@redhat.com>
44377         c-stack: work around libsigsegv 2.8 bug
44378         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
44379         overflow on at least PowerPC64.
44381 2010-10-17  Bruno Haible  <bruno@clisp.org>
44383         userspec: Drop redundant file.
44384         * modules/userspec (Files): Remove lib/inttostr.h.
44386 2010-10-17  Bruno Haible  <bruno@clisp.org>
44388         nl_langinfo tests: Silence some warnings.
44389         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
44390         Reported by Jim Meyering.
44392 2010-10-17  Bruno Haible  <bruno@clisp.org>
44394         Make use of GCC's attribute __alloc_size__.
44395         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
44396         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
44397         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
44398         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
44399         __alloc_size__.
44400         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44401         Suggested by Jim Meyering.
44403 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
44405         bootstrap: anchor .gitignore entries.
44406         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
44407         with...
44408         (insert_vc_ignore): ... this new function, which prepends `/' to
44409         all .gitignore entries before passing them to
44410         insert_sorted_if_absent.
44412 2010-10-16  Bruno Haible  <bruno@clisp.org>
44414         nextafter: Fix configure check.
44415         * modules/nextafter (configure.ac): Correct expected prototype.
44417 2010-10-16  Bruno Haible  <bruno@clisp.org>
44419         termios: Update documentation.
44420         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
44422 2010-10-16  Bruno Haible  <bruno@clisp.org>
44424         tests: Make them compile with TinyCC.
44425         * tests/test-strstr.c (main): Remove parentheses around array
44426         initializer.
44428 2010-10-15  Eric Blake  <eblake@redhat.com>
44430         ignore-value: make header idempotent
44431         * lib/ignore-value.h: Add double-inclusion guards.
44432         Reported by Stefan Berger.
44434 2010-10-15  Jim Meyering  <meyering@redhat.com>
44436         GNUmakefile: handle "stable" target, not "major"
44437         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
44438         lists in maint.mk and announce-gen.  Without this, "make stable"
44439         would fail to ensure that $(VERSION) is up to date.
44441 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
44443         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
44444         & co.
44446 2010-10-14  Bruno Haible  <bruno@clisp.org>
44448         vasnprintf: Don't set errno to 0.
44449         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
44450         block that sets it to 0.
44451         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
44453 2010-10-14  Bruno Haible  <bruno@clisp.org>
44455         socketlib: Fix.
44456         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
44457         gl_PREREQ_SYS_H_WINSOCK2.
44458         Reported by Ian Beckwith <ianb@erislabs.net>.
44460 2010-10-13  Jim Meyering  <meyering@redhat.com>
44462         test-select-stdin.c: avoid warn_unused_result warnings
44463         * tests/test-select-stdin.c: Include "macros.h".
44464         ASSERT that read and fflush succeed.
44466 2010-10-13  Jim Meyering  <meyering@redhat.com>
44468         git-version-gen: do require git-VC'd files in cwd
44469         * build-aux/git-version-gen: Reject a git version string
44470         if there are no commits associated with the current directory.
44471         This avoids an unlikely false-positive (unrelated dir whose parent
44472         repository also contains a tag matching v*), as pointed out
44473         by Giuseppe Scrivano in
44474         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
44476 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
44478         argv-iter: omit nonconforming declaration
44479         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
44480         enum arg_iter_err declaration, which doesn't conform to C99.
44481         Solaris 10 cc warns about this.
44483 2010-10-13  Eric Blake  <eblake@redhat.com>
44485         termios: fix compilation on mingw
44486         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
44487         (gl_TERMIOS_H): Adjust it on mingw.
44488         * modules/termios (Makefile.am): Substitute new key.
44489         * lib/termios.in.h (includes): Make include_next conditional.
44490         * doc/posix-headers/termios.texi (termios.h): Update
44491         documentation.
44492         Reported by Daniel P. Berrange.
44494 2010-10-13  Jim Meyering  <meyering@redhat.com>
44496         git-version-gen: don't require that .git/ be in the current dir
44497         * build-aux/git-version-gen: Adjust this script so that it works
44498         when run from any working directory beneath the top-level .git/-
44499         containing directory.  Inspired by a patch from Giuseppe Scrivano,
44500         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
44502         test-select: avoid warn_unused_result warnings
44503         * tests/test-select.c: Include "macros.h".
44504         ASSERT that each call to read, write, and pipe succeeds.
44505         While not technically required, also check each "close".
44506         * modules/select-tests (Files): Add tests/macros.h.
44508         test-symlinkat: remove declaration of unused local
44509         * tests/test-symlinkat.c (main): Remove unused local, "buf".
44511         test-inttostr: avoid shadowing warnings
44512         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
44513         and use malloc rather than the stack for the same reason as
44514         mentioned in the comment justifying the other allocation.
44516 2010-10-11  Bruno Haible  <bruno@clisp.org>
44518         stdlib: Allow multiple gnulib generated replacements to coexist.
44519         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
44520         Reported by Sam Steingold <sds@gnu.org>.
44522 2010-10-11  Jim Meyering  <meyering@redhat.com>
44524         fix a documentation typo
44525         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
44527 2010-10-11  Eric Blake  <eblake@redhat.com>
44529         futimens: work around Solaris 11 bug
44530         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
44531         * tests/test-futimens.h (test_futimens): Enhance, rather than
44532         weaken test.
44533         * doc/posix-functions/futimens.texi (futimens): Document the bug.
44535 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44537         Indentation.
44538         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
44539         higher-level operators more to the left.
44541 2010-10-11  Jim Meyering  <meyering@redhat.com>
44543         test-futimens: avoid unwarranted test failure on Solaris 5.11
44544         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
44545         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
44546         because it tries to dereference the NULL name argument.
44548 2010-10-11  Bruno Haible  <bruno@clisp.org>
44550         Indentation.
44551         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
44552         indentation.
44554 2010-10-11  Jim Meyering  <meyering@redhat.com>
44556         spawn.in.h: make indentation consistent with parentheses
44557         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
44558         Make indentation consistent with parentheses.
44560 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
44562         Fix mismatched parens in previous commit
44563         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
44564         parens.
44566 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
44568         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
44570         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
44571         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
44572         * lib/malloca.c: Include "verify.h".
44573         (verify1): Remove, replacing with a verify call.
44574         * lib/relocwrapper.c (verify1): Likewise.
44575         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
44576         Likewise.
44577         * modules/malloca (Depends-on): Add 'verify'.
44578         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
44579         * modules/vasnprintf (Depends-on): Add 'verify'.
44580         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44581         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44582         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44583         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44584         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44585         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44586         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44588         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
44590         Formerly the style was sometimes 2*X - 1, because the C standard
44591         was wrongly thought to disallow ?: in integral constant expressions.
44592         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
44593         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
44594         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
44595         * lib/stdint.in.h (_verify_intmax_size): Likewise.
44596         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
44597         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
44598         verify that time_t cannot be floating.
44600 2010-10-08  Eric Blake  <eblake@redhat.com>
44602         time: enforce recent POSIX ruling that time_t is integral
44603         * lib/time.in.h (__time_t_must_be_integral): Detect any
44604         problematic systems, allowing the rest of gnulib to assume POSIX.
44606 2010-10-08  Jim Meyering  <meyering@redhat.com>
44608         fdopendir: fix a bug on systems lacking openat and /proc support
44609         OpenBSD 4.7 is one such system.  The most noticeable effect was
44610         failure of any application making nontrivial use of fts: rm, du,
44611         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
44612           ./rm: traversal failed: `a': Bad file descriptor
44613         Debugging that, you see that even though FD 6 was closed just
44614         prior to the opendir call in fd_clone_opendir, its resulting
44615         dir->dd_fd was 8, rather than the expected value of 6:
44617         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
44618         93                close (fd);
44619         (gdb) n
44620         94                dir = fd_clone_opendir (dupfd);
44621         (gdb) n
44622         95                saved_errno = errno;
44623         (gdb) p dir->dd_fd
44624         $11 = 8
44626         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
44627         The problem is that on OpenBSD, fd_clone_opendir has to resort
44628         to using the old-style save/restore CWD mechanism, due to its
44629         lack of openat/proc support, and *that* would steal the FD (6)
44630         that opendir was supposed to use.
44632         The fix is to squirrel away the desired FD so that save_cwd uses a
44633         different one, and then free the dest FD right before calling opendir.
44634         That guarantees opendir will use the required file descriptor.
44636         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
44638 2010-10-08  Bruno Haible  <bruno@clisp.org>
44640         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
44641         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
44643 2010-10-08  Bruno Haible  <bruno@clisp.org>
44645         nanosleep: Make replacement POSIX compliant.
44646         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
44647         is out of range.
44648         Reported by Jim Meyering.
44650 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44652         bootstrap: add hook for altering gnulib.mk, for Bison
44653         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
44654         the Bison bootstrapping process can rewrite file names and variables
44655         in this file before later parts of 'bootstrap' use the file.
44656         Bison wants to include lib/gnulib.mk from the top-level makefile,
44657         so it needs the file names in this file to be relative to the top
44658         level, not relative to lib; plus it needs variable names to be
44659         rewritten.
44660         (slurp): Use the new function.
44662         bootstrap: reformat for readability
44663         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
44665 2010-10-08  Eric Blake  <eblake@redhat.com>
44667         docs: update cygwin progress
44668         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
44669         1.7.7.
44670         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
44671         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
44672         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
44673         * doc/posix-functions/carg.texi (carg): Likewise.
44674         * doc/posix-functions/cargf.texi (cargf): Likewise.
44675         * doc/posix-functions/casin.texi (casin): Likewise.
44676         * doc/posix-functions/casinf.texi (casinf): Likewise.
44677         * doc/posix-functions/casinh.texi (casinh): Likewise.
44678         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
44679         * doc/posix-functions/catan.texi (catan): Likewise.
44680         * doc/posix-functions/catanf.texi (catanf): Likewise.
44681         * doc/posix-functions/catanh.texi (catanh): Likewise.
44682         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
44683         * doc/posix-functions/ccos.texi (ccos): Likewise.
44684         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
44685         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
44686         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
44687         * doc/posix-functions/cexp.texi (cexp): Likewise.
44688         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
44689         * doc/posix-functions/cimag.texi (cimag): Likewise.
44690         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
44691         * doc/posix-functions/clog.texi (clog): Likewise.
44692         * doc/posix-functions/clogf.texi (clogf): Likewise.
44693         * doc/posix-functions/conj.texi (conj): Likewise.
44694         * doc/posix-functions/conjf.texi (conjf): Likewise.
44695         * doc/posix-functions/cpow.texi (cpow): Likewise.
44696         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
44697         * doc/posix-functions/cproj.texi (cproj): Likewise.
44698         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
44699         * doc/posix-functions/creal.texi (creal): Likewise.
44700         * doc/posix-functions/crealf.texi (crealf): Likewise.
44701         * doc/posix-functions/csin.texi (csin): Likewise.
44702         * doc/posix-functions/csinf.texi (csinf): Likewise.
44703         * doc/posix-functions/csinh.texi (csinh): Likewise.
44704         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
44705         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
44706         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
44707         * doc/posix-functions/ctan.texi (ctan): Likewise.
44708         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
44709         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
44710         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
44711         * doc/posix-headers/complex.texi (complex.h): Likewise.
44713 2010-10-07  Jim Meyering  <meyering@redhat.com>
44715         parse-datetime: avoid compilation failure on OpenBSD 4.7
44716         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
44717         This works around a compilation failure on OpenBSD 4.7:
44718         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
44720 2010-10-07  Eric Blake  <eblake@redhat.com>
44722         docs: update cygwin progress
44723         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
44724         1.7.6.
44725         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44726         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
44727         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
44728         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
44729         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
44730         Likewise.
44731         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
44732         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
44733         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
44734         Likewise.
44735         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
44736         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
44737         Likewise.
44738         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
44739         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
44740         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
44741         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
44742         Likewise.
44743         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
44744         Likewise.
44745         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
44747         docs: update parse-datetime history
44748         * doc/parse-datetime.texi (Authors of parse_datetime): Better
44749         documentation of this function's history and alternatives.
44751         cygwin: use more robust version check
44752         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
44753         exclude an eventual cygwin 1.9.1.
44754         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44756         (gl_FUNC_STRCASESTR): Likewise.
44757         Reported by Bruno Haible.
44759 2010-10-06  Bruno Haible  <bruno@clisp.org>
44761         string, sys_select: Avoid #including large headers unless necessary.
44762         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
44763         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
44764         OSF/1, BeOS, Haiku.
44765         Reported by Jim Meyering.
44767 2010-10-05  Eric Blake  <eblake@redhat.com>
44769         memmem, strstr, strcasestr: fix bug with long periodic needle
44770         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
44771         periodic needle having false positive.
44772         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
44773         and cygwin 1.7.7.
44774         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
44775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44776         (gl_FUNC_STRCASESTR): Likewise.
44777         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44778         * tests/test-memmem.c (main): Expose the bug.
44779         * tests/test-strcasestr.c (main): Likewise.
44780         * tests/test-strstr.c (main): Likewise.
44781         * tests/test-c-strcasestr.c (main): Likewise.
44782         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
44783         * doc/posix-functions/strstr.texi (strstr): Likewise.
44784         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44785         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
44787 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44789         parse-datetime: do some more renaming
44790         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
44791         parse_datetime, not get_date.  Mention the renaming.
44792         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
44793         in comments.
44794         * m4/bison.m4: Likewise.
44796 2010-10-05  Eric Blake  <eblake@redhat.com>
44798         parse-datetime: better name than get_date
44799         * NEWS: Reword the deprecation notice.
44800         * modules/get_date: Rename to modules/parse-datetime.
44801         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
44802         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
44803         * lib/get_date.y: Rename to lib/parse-datetime.y.
44804         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
44805         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
44806         * doc/getdate.texi: Provide fallback wrapper.
44807         * lib/getdate.h: Move guts, and wrap...
44808         * lib/parse-datetime.h: ...new file.
44809         * lib/parse-datetime.y (get_date): Rename...
44810         (parse_datetime): ...to this.
44811         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
44812         (gl_PARSE_DATETIME): ...to this.
44813         * doc/posix-functions/getdate.texi (get_date): Provide fallback
44814         documentation.
44815         * modules/getdate (Files): Provide fallback docs and header.
44816         (Notice, Depends-on): Update references.
44817         * tests/test-parse-datetime.c: Likewise.
44818         * DEPENDENCIES: Likewise.
44819         * MODULES.html.sh (Date and time <time.h>): Likewise.
44820         * doc/parse-datetime.texi (Date input formats)
44821         (Authors of parse_datetime): Likewise.
44822         * modules/parse-datetime (Files, configure.ac, Makefile.am)
44823         (Include): Likewise.
44824         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
44825         * gnulib-tool: Likewise.
44826         * m4/bison.m4 (gl_BISON): Likewise.
44827         Suggested by Bruno Haible.
44829 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44831         more ports to Solaris tr, which needs [] around ranges
44832         * gnulib-tool: Solaris tr needs [] around ranges.
44833         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44834         * tests/test-pipe-filter-gi1.c (main): Likewise.
44835         * tests/test-pipe-filter-ii1.c (main): Likewise.
44837 2010-10-05  Eric Blake  <eblake@redhat.com>
44839         bootstrap: fix Solaris regression
44840         * build-aux/bootstrap (check_versions): Solaris tr still needs []
44841         around ranges.
44842         Reported by Pádraig Brady.
44844         bootstrap: work with pkg-config
44845         * build-aux/bootstrap (check_versions): Also transliterate - in
44846         prerequisite name.
44847         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
44848         prerequisites that were already found, to avoid confusion.
44849         Reported by Justin Clift.
44851         faccessat: remove unused wrappers
44852         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
44853         presence of these wrappers dragged in -lgen on Solaris.
44854         Reported by Clemens Brogi; fix suggested by Paul Eggert.
44856 2010-10-05  Jim Meyering  <meyering@redhat.com>
44858         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
44859         * Makefile (sc_pragma_columns): New syntax-check rule.
44861 2010-10-04  Bruno Haible  <bruno@clisp.org>
44863         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
44864         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
44865         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
44866         Reported by Bruce Korb and Eric Blake.
44868 2010-10-04  Bruno Haible  <bruno@clisp.org>
44870         threadlib: Make option --with-libpth-prefix work.
44871         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
44872         use $LIBPTH, not just -lpth.
44874 2010-10-04  Bruno Haible  <bruno@clisp.org>
44876         Avoid line length limitation from HP NonStop system header files.
44877         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
44878         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
44879         * lib/ctype.in.h: Likewise.
44880         * lib/dirent.in.h: Likewise.
44881         * lib/errno.in.h: Likewise.
44882         * lib/fcntl.in.h: Likewise.
44883         * lib/float.in.h: Likewise.
44884         * lib/getopt.in.h: Likewise.
44885         * lib/iconv.in.h: Likewise.
44886         * lib/inttypes.in.h: Likewise.
44887         * lib/langinfo.in.h: Likewise.
44888         * lib/locale.in.h: Likewise.
44889         * lib/math.in.h: Likewise.
44890         * lib/netdb.in.h: Likewise.
44891         * lib/netinet_in.in.h: Likewise.
44892         * lib/poll.in.h: Likewise.
44893         * lib/pthread.in.h: Likewise.
44894         * lib/pty.in.h: Likewise.
44895         * lib/sched.in.h: Likewise.
44896         * lib/se-selinux.in.h: Likewise.
44897         * lib/search.in.h: Likewise.
44898         * lib/signal.in.h: Likewise.
44899         * lib/spawn.in.h: Likewise.
44900         * lib/stdarg.in.h: Likewise.
44901         * lib/stddef.in.h: Likewise.
44902         * lib/stdint.in.h: Likewise.
44903         * lib/stdio.in.h: Likewise.
44904         * lib/stdlib.in.h: Likewise.
44905         * lib/string.in.h: Likewise.
44906         * lib/strings.in.h: Likewise.
44907         * lib/sys_file.in.h: Likewise.
44908         * lib/sys_ioctl.in.h: Likewise.
44909         * lib/sys_select.in.h: Likewise.
44910         * lib/sys_socket.in.h: Likewise.
44911         * lib/sys_stat.in.h: Likewise.
44912         * lib/sys_time.in.h: Likewise.
44913         * lib/sys_times.in.h: Likewise.
44914         * lib/sys_utsname.in.h: Likewise.
44915         * lib/sys_wait.in.h: Likewise.
44916         * lib/sysexits.in.h: Likewise.
44917         * lib/termios.in.h: Likewise.
44918         * lib/time.in.h: Likewise.
44919         * lib/unistd.in.h: Likewise.
44920         * lib/wchar.in.h: Likewise.
44921         * lib/wctype.in.h: Likewise.
44922         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
44923         * modules/ctype (Makefile.am): Likewise.
44924         * modules/dirent (Makefile.am): Likewise.
44925         * modules/errno (Makefile.am): Likewise.
44926         * modules/fcntl-h (Makefile.am): Likewise.
44927         * modules/float (Makefile.am): Likewise.
44928         * modules/getopt-posix (Makefile.am): Likewise.
44929         * modules/iconv-h (Makefile.am): Likewise.
44930         * modules/inttypes (Makefile.am): Likewise.
44931         * modules/langinfo (Makefile.am): Likewise.
44932         * modules/locale (Makefile.am): Likewise.
44933         * modules/math (Makefile.am): Likewise.
44934         * modules/netdb (Makefile.am): Likewise.
44935         * modules/netinet_in (Makefile.am): Likewise.
44936         * modules/poll-h (Makefile.am): Likewise.
44937         * modules/pthread (Makefile.am): Likewise.
44938         * modules/pty (Makefile.am): Likewise.
44939         * modules/sched (Makefile.am): Likewise.
44940         * modules/search (Makefile.am): Likewise.
44941         * modules/selinux-h (Makefile.am): Likewise.
44942         * modules/signal (Makefile.am): Likewise.
44943         * modules/spawn (Makefile.am): Likewise.
44944         * modules/stdarg (Makefile.am): Likewise.
44945         * modules/stddef (Makefile.am): Likewise.
44946         * modules/stdint (Makefile.am): Likewise.
44947         * modules/stdio (Makefile.am): Likewise.
44948         * modules/stdlib (Makefile.am): Likewise.
44949         * modules/string (Makefile.am): Likewise.
44950         * modules/strings (Makefile.am): Likewise.
44951         * modules/sys_file (Makefile.am): Likewise.
44952         * modules/sys_ioctl (Makefile.am): Likewise.
44953         * modules/sys_select (Makefile.am): Likewise.
44954         * modules/sys_socket (Makefile.am): Likewise.
44955         * modules/sys_stat (Makefile.am): Likewise.
44956         * modules/sys_time (Makefile.am): Likewise.
44957         * modules/sys_times (Makefile.am): Likewise.
44958         * modules/sys_utsname (Makefile.am): Likewise.
44959         * modules/sys_wait (Makefile.am): Likewise.
44960         * modules/sysexits (Makefile.am): Likewise.
44961         * modules/termios (Makefile.am): Likewise.
44962         * modules/time (Makefile.am): Likewise.
44963         * modules/unistd (Makefile.am): Likewise.
44964         * modules/wchar (Makefile.am): Likewise.
44965         * modules/wctype (Makefile.am): Likewise.
44967 2010-10-04  Bruno Haible  <bruno@clisp.org>
44969         read-file tests: Avoid a test failure on NonStop Kernel.
44970         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
44971         a regular file.
44972         Reported by Joachim Schmitz <schmitz@hp.com>.
44974 2010-10-03  Bruno Haible  <bruno@clisp.org>
44976         gnulib-tool: Fixes for --create-testdir with --libtool.
44977         * gnulib-tool (func_get_automake_snippet): Don't augment
44978         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
44979         an executable.
44980         (func_create_testdir): Handle module 'alloca' like func_import.
44981         Reported by Bruce Korb <bruce.korb@gmail.com>.
44983 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
44985         Avoid some lines longer than 80 characters.
44986         * lib/stdint.in.h: Break long comment lines.
44987         * lib/math.in.h: Likewise.
44988         (_GL_NUM_UINT_WORDS): New macro, for readability.
44989         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
44990         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
44991         * lib/stdlib.in.h: Likewise.
44992         * lib/spawn.in.h: Likewise.
44993         * lib/sys_socket.in.h: Update an URL.
44994         * lib/sys_stat.in.h: Break long line.
44996 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
44998         Improve pmccabe2html.
44999         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
45000         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
45001         when the sources change. Remove the line in the HTML about "Used
45002         ranges" (which implied that there might be other unused ranges),
45003         rename "Resume" to "Summary" (easier to understand for more users).
45004         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
45005         styles, and some unnecessary blank lines.
45007 2010-10-03  Bruno Haible  <bruno@clisp.org>
45008             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45010         acl: Add support for ACLs on NonStop Kernel.
45011         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
45012         Check whether the function aclsort() exists.
45013         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
45014         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
45015         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45016         (acl_nontrivial [HAVE_ACLSORT]: New function.
45017         (file_has_acl): Implement for NonStop Kernel.
45018         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45019         (qset_acl): Implement for NonStop Kernel.
45020         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
45021         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45022         (main): Implement for NonStop Kernel.
45023         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
45024         Kernel. Handle this flavor.
45025         * tests/test-set-mode-acl.sh: Likewise.
45026         * tests/test-copy-acl.sh: Likewise.
45027         * tests/test-copy-file.sh: Likewise.
45029 2010-10-03  Bruno Haible  <bruno@clisp.org>
45031         Info about ACLs on NonStop Kernel.
45032         * doc/acl-resources.txt: Add info about NonStop Kernel.
45033         References by Joachim Schmitz <schmitz@hp.com>.
45035 2010-10-02  Bruno Haible  <bruno@clisp.org>
45037         Define missing EDQUOT on NonStop Kernel.
45038         * lib/errno.in.h (EDQUOT): Assign a value if missing.
45039         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
45040         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
45041         missing.
45042         * doc/posix-headers/errno.texi: Mention the NSK bug.
45043         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
45044         Reported by Joachim Schmitz <schmitz@hp.com>.
45046 2010-10-02  Bruno Haible  <bruno@clisp.org>
45048         Update doc for POSIX:2008.
45049         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
45050         Update URL of POSIX specification.
45052 2010-10-02  Bruno Haible  <bruno@clisp.org>
45054         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
45055         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
45056         from gnulib, not from Automake.
45058 2010-10-02  Bruno Haible  <bruno@clisp.org>
45060         New module 'system-posix'.
45061         * modules/system-posix: New file.
45062         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
45063         module is present.
45064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45065         GNULIB_SYSTEM_POSIX.
45066         * modules/stdlib (Depends-on): Remove sys_wait.
45067         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
45068         * doc/posix-functions/system.texi: Mention the new module.
45069         * doc/posix-headers/stdlib.texi: Likewise.
45070         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
45071         define test_sys_wait_macros to a no-op.
45072         Reported by Sam Steingold <sds@gnu.org>.
45074 2010-09-30  Bruno Haible  <bruno@clisp.org>
45076         More renaming from 'getdate' to 'get_date'.
45077         * doc/get_date.texi: Renamed from doc/getdate.texi.
45078         * modules/get_date (Files): Update.
45079         * MODULES.html.sh (Date and time <time.h>): Update.
45080         * DEPENDENCIES: Update.
45081         * gnulib-tool: Update comment.
45082         * m4/bison.m4 (gl_BISON): Likewise.
45083         * m4/get_date.m4 (gl_GET_DATE): Likewise.
45085 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
45087         bootstrap: support ACLOCAL_FLAGS during aclocal
45088         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
45089         can add additional -I dir for third-party .m4 files.
45091 2010-09-30  Eric Blake  <eblake@redhat.com>
45093         bootstrap: use glibtoolize on MacOS
45094         * build-aux/bootstrap (check_versions): Convert libtool into
45095         libtoolize.
45096         (tool search): Move libtool check earlier, and look for
45097         glibtoolize for MacOS.
45098         (gnulib_tool_options): Auto-add --libtool when appropriate.
45099         Reported by Justin Clift.
45101         poll: fix typo that broke test on MacOS
45102         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
45103         Reported by Justin Clift.
45105         getdate: rename to get_date
45106         Note: getdate.h is not renamed, to minimize client impact.
45107         * modules/getdate: Mark obsolete.  Move old contents...
45108         * modules/get_date: ...to new module name.
45109         * modules/getdate-tests: Move...
45110         * modules/get_date-tests: ...here.
45111         * m4/getdate.m4: Move...
45112         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
45113         * lib/getdate.y: Move...
45114         * lib/get_date.y: ...here.
45115         * tests/test-getdate.c: Move...
45116         * tests/test-get_date.c: ...here.
45117         * doc/posix-functions/getdate.texi (getdate): Update name.
45118         * NEWS: Mention the change.
45120 2010-09-29  Bruno Haible  <bruno@clisp.org>
45122         Separate the module 'waitpid' from the module 'sys_wait'.
45123         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
45124         present.
45125         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
45126         gl_MODULE_INDICATOR_FOR_TESTS.
45127         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
45128         * modules/sys_wait (Depends-on): Remove waitpid.
45129         (Makefile.am): Substitute GNULIB_WAITPID.
45130         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
45131         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
45132         signature only if the 'waitpid' module is present.
45133         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
45134         * NEWS: Mention the change.
45135         * modules/grantpt (Depends-on): Add waitpid.
45136         * modules/wait-process (Depends-on): Likewise.
45138 2010-09-29  Bruno Haible  <bruno@clisp.org>
45140         More tests for module 'sys_wait'.
45141         * modules/sys_wait-c++-tests: New file.
45142         * tests/test-sys_wait-c++.cc: New file.
45143         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
45144         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45146 2010-09-29  Bruno Haible  <bruno@clisp.org>
45148         New module 'waitpid'.
45149         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
45150         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
45151         Don't include <process.h>.
45152         (waitpid): Declare only, using modern idiom.
45153         * m4/waitpid.m4: New file.
45154         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
45155         * modules/waitpid: New file.
45156         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
45157         (Makefile.am): Update.
45158         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45160 2010-09-28  Bruno Haible  <bruno@clisp.org>
45162         poll: Assume ANSI C.
45163         * lib/poll.c (poll): Use an ANSI C declaration.
45165 2010-09-28  Bruno Haible  <bruno@clisp.org>
45167         poll-h: Create poll.h on all platforms.
45168         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
45169         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
45170         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
45171         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
45172         (gl_REPLACE_POLL_H): Don't set POLL_H.
45173         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
45174         * modules/poll-h (Depends-on): Add include_next.
45175         (Makefile.am): Create poll.h unconditionally. Substitute also
45176         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
45178 2010-09-28  Bruno Haible  <bruno@clisp.org>
45180         Tests for module 'poll-h'.
45181         * modules/poll-h-c++-tests: New file.
45182         * tests/test-poll-h-c++.cc: New file.
45184         Tests for module 'poll-h'.
45185         * modules/poll-h-tests: New file.
45186         * tests/test-poll-h.c: New file.
45188 2010-09-28  Bruno Haible  <bruno@clisp.org>
45190         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
45191         * modules/poll-h (Depends-on): Add 'extensions'.
45193 2010-09-28  Bruno Haible  <bruno@clisp.org>
45195         New module 'poll-h'.
45196         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
45197         (poll): Use modern idiom.
45198         * modules/poll-h: New file.
45199         * modules/poll (Files): Remove lib/poll.in.h.
45200         (Depends-on): Add poll-h.
45201         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
45202         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
45203         * m4/poll_h.m4: New file.
45204         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
45205         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
45206         and invoke gl_REPLACE_POLL_H.
45207         * lib/poll.c: Use common idiom.
45208         * tests/test-poll.c: Likewise.
45209         * doc/posix-headers/poll.texi: Mention the poll-h module.
45210         Suggested by Eric Blake.
45212 2010-09-26  Bruno Haible  <bruno@clisp.org>
45214         sys_wait: Implement WSTOPSIG.
45215         * lib/sys_wait.in.h (WSTOPSIG): New macro.
45216         Reported by Simon Josefsson.
45218 2010-09-26  Simon Josefsson  <simon@josefsson.org>
45220         stdlib, sys_wait: Avoid compilation error on mingw.
45221         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
45223 2010-09-26  Bruno Haible  <bruno@clisp.org>
45225         stdlib tests: Avoid code duplication.
45226         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
45227         * modules/sys_wait-tests (Files): Likewise.
45228         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
45229         * tests/test-stdlib.c: Include test-sys_wait.h.
45230         (main): Invoke test_sys_wait_macros.
45231         * tests/test-sys_wait.c: Include test-sys_wait.h.
45232         (main): Invoke test_sys_wait_macros.
45234 2010-09-25  Simon Josefsson  <simon@josefsson.org>
45236         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
45237         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
45238         sure Windows sockets are working before calling getaddrinfo.
45239         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
45240         * doc/gnulib.texi (Windows sockets): Fix typo.
45242 2010-09-25  Bruno Haible  <bruno@clisp.org>
45244         Tests for module 'regex-quote'.
45245         * modules/regex-quote-tests: New file.
45246         * tests/test-regex-quote.c: New file.
45248         New module 'regex-quote'.
45249         * lib/regex-quote.h: New file.
45250         * lib/regex-quote.c: New file.
45251         * modules/regex-quote: New file.
45252         Suggested by Reuben Thomas <rrt@sc3d.org>.
45254 2010-09-24  Bruno Haible  <bruno@clisp.org>
45256         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
45257         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
45259 2010-09-23  Bruno Haible  <bruno@clisp.org>
45261         setenv: Relax license.
45262         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
45263         Blake.
45264         Requested by Eric Blake.
45266 2010-09-22  Bruno Haible  <bruno@clisp.org>
45268         termios: Relax license.
45269         * modules/termios (License): Change to LGPLv2+.
45270         Requested by Eric Blake.
45272 2010-09-22  Bruno Haible  <bruno@clisp.org>
45274         threadlib: Allow the package to change the default to 'no'.
45275         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
45276         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
45277         Reported by Paul Eggert.
45279 2010-09-22  Pádraig Brady  <P@draigbrady.com>
45280             Bruno Haible  <bruno@clisp.org>
45282         Fix endless loop in mbmemcasecoll.
45283         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
45284         byte.
45285         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
45287 2010-09-22  Bruno Haible  <bruno@clisp.org>
45289         Tests for module 'memcoll'.
45290         * modules/memcoll-tests: New file.
45291         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
45293         memcoll, xmemcoll: Clarify size vs. length.
45294         * modules/memcoll.c (memcoll0): Clarify specification.
45295         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
45296         passed to collate_error.
45298 2010-09-22  Bruno Haible  <bruno@clisp.org>
45300         Tests for module 'memcasecmp'.
45301         * modules/memcasecmp-tests: New file.
45302         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
45304 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45306         * lib/pthread.in.h: Add split double-inclusion guard, and include
45307         system <pthread.h> if there is one.  Use @@-style as in other
45308         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
45309         pthread.h doesn't.
45310         (pthread_mutexattr_destroy, pthread_mutexattr_init):
45311         (pthread_mutexattr_settype, pthread_mutex_trylock):
45312         New static inline functions, if there's no system <pthread.h>.
45313         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
45314         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
45315         Approximate with mutexes if the system lacks spinlocks, as in
45316         MacOS.
45317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
45318         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
45319         @@-style.  Check for spinlocks separately.
45320         (gl_PTHREAD_DEFAULTS): New macro.
45321         * modules/pthread: Redo to use a more typical style for in.h files.
45323 2010-09-21  Eric Blake  <eblake@redhat.com>
45325         net_if: enhance tests
45326         * tests/test-net_if.c (main): Move signature checks earlier.
45327         Print failures to stderr.
45328         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
45329         Document the bug that we do not yet fix.
45331 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
45333         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
45334         about gnulib, not GSS.
45336 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
45338         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
45339         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
45340         for Emacs.
45341         * build-aux/pmccabe2html: Make Makefile.am example code more
45342         cut-and-paste friendly.
45344 2010-09-21  Simon Josefsson  <simon@josefsson.org>
45346         * tests/test-net_if.c: New file.
45347         * modules/net_if-tests: New file.
45349 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45351         pthread: add pthread_spin_destroy
45352         * lib/pthread.in.h (pthread_spin_destroy): New function.
45354 2010-09-19  Bruno Haible  <bruno@clisp.org>
45356         gnulib-tool: Fix --help output.
45357         * gnulib-tool (func_usage): Fix help message.
45358         Reported by Reuben Thomas <rrt@sc3d.org>.
45360 2010-09-18  Jim Meyering  <meyering@redhat.com>
45362         maint.mk: avoid unexpanded \n in two diagnostics
45363         * top/maint.mk (sc_prohibit_always_true_header_tests):
45364         Don't use a literal \n in a halt=... assignment.  It would not be
45365         expanded, and the two \n bytes would appear in the diagnostic output
45366         rather than the desired newline.  Use halt=$$(printf ... instead.
45367         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
45369 2010-09-18  Bruno Haible  <bruno@clisp.org>
45371         netinet_in: Doc tweak.
45372         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
45373         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45375 2010-09-18  Jim Meyering  <meyering@redhat.com>
45377         init.sh: correct an outdated comment
45378         * tests/init.sh (create_exe_shims_):  s/function/alias/
45380         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
45381         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
45382         a file named "*.exe" is removed between the glob expansion and the
45383         processing of that oddly named file.
45385 2010-09-17  Eric Blake  <eblake@redhat.com>
45387         mirbsd: add some more support
45388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
45389         in BSD family.
45390         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
45391         devices as OpenBSD.
45392         * m4/host-os.m4 (mirbsd): Add MirBSD.
45394         tests: fix unportable assumption on sys/wait.h
45395         * tests/test-sys_wait.c (main): Relax test.
45396         * tests/test-stdlib.c (main): Likewise.
45398         init.sh: accommodate directory with no .exes
45399         * tests/init.sh: Accomodate directory containing only scripts.
45401         tests: avoid compiler warning
45402         * tests/test-stdlib.c (main): Use the variable.
45404         fdutimens, fdutimensat: update signature, again
45405         * lib/utimens.h (gl_futimens): Delete, and move signature...
45406         (fdutimens): ...here.
45407         (fdutimensat): Rearrange signature.
45408         (lutimensat): Rename variable for clarity.
45409         * lib/fdutimensat.c (fdutimensat): Update signature.
45410         * lib/utimens.c (fdutimens): Likewise.
45411         (gl_futimens): Delete.
45412         (utimens, lutimens): Update callers.
45413         * lib/futimens.c (futimens): Likewise.
45414         * tests/test-fdutimensat.c: Likewise.
45415         * tests/test-utimens.c: Likewise.
45416         * tests/test-futimens.h: Update comment.
45417         * NEWS: Mention this.
45418         Suggested by Paul Eggert.
45420 2010-09-17  Bruno Haible  <bruno@clisp.org>
45422         Take over the maintenance of some older macros from Autoconf.
45423         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
45424         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
45425         GNU Autoconf.
45426         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
45427         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
45429 2010-09-17  Eric Blake  <eblake@redhat.com>
45431         fdutimensat: drop atflag validation
45432         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
45433         with valid fd, to close a race scenario where futimens is
45434         unsupported and FILE was replaced by a symlink.
45435         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
45436         accordingly.
45437         Suggested by Paul Eggert.
45439 2010-09-16  Bruno Haible  <bruno@clisp.org>
45441         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
45442         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
45444 2010-09-16  Bruno Haible  <bruno@clisp.org>
45446         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
45447         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
45448         login_tty exists.
45449         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45451 2010-09-16  Bruno Haible  <bruno@clisp.org>
45453         login_tty: Make the replacement code work on BSD systems.
45454         * lib/login_tty.c: Include <sys/ioctl.h>.
45455         (login_tty): Use ioctl TIOCSCTTY when available.
45456         * modules/login_tty (Depends-on): Add sys_ioctl.
45457         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45459 2010-09-16  Bruno Haible  <bruno@clisp.org>
45461         login_tty: Stricter unit test.
45462         * modules/login_tty-tests (Depends-on): Add tcgetsid.
45463         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
45464         and tcgetsid() after login_tty.
45465         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45467 2010-09-16  Bruno Haible  <bruno@clisp.org>
45469         New module 'tcgetsid'.
45470         * lib/tcgetsid.c: New file.
45471         * m4/tcgetsid.m4: New file.
45472         * modules/tcgetsid: New file.
45473         * modules/termios (Depends-on): Add c++defs, warn-on-use.
45474         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
45475         GNULIB_TCGETSID, HAVE_TCGETSID.
45476         * lib/termios.in.h: Include <sys/types.h>.
45477         (tcgetsid): New declaration.
45478         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
45479         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
45480         * doc/posix-functions/tcgetsid.texi: Mention the new module.
45481         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
45483 2010-09-16  Bruno Haible  <bruno@clisp.org>
45485         Tests for module 'termios'.
45486         * modules/termios-c++-tests: New file.
45487         * modules/termios-tests: New file.
45488         * tests/test-termios-c++.cc: New file.
45489         * tests/test-termios.c: New file.
45491         New module 'termios'.
45492         * modules/termios: New file.
45493         * lib/termios.in.h: New file.
45494         * m4/termios_h.m4: New file.
45495         * doc/posix-headers/termios.texi: Mention the new module.
45497 2010-09-16  Eric Blake  <eblake@redhat.com>
45499         fdutimensat: add an atflag parameter
45500         * lib/fdutimensat.c (fdutimensat): Add new parameter.
45501         * lib/utimens.h (fdutimensat): Update prototype.
45502         * tests/test-fdutimensat.c: Adjust test to match.
45503         * NEWS: Document the change.
45504         Suggested by Paul Eggert.
45506 2010-09-16  Bruno Haible  <bruno@clisp.org>
45508         Fix typos in comments.
45509         * lib/striconveh.h: Fix typo in comment.
45510         * lib/login_tty.c (login_tty): Likewise.
45512 2010-09-15  Bruno Haible  <bruno@clisp.org>
45514         stdlib: clarify MirBSD WEXITSTATUS bug
45515         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
45516         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45518 2010-09-15  Eric Blake  <eblake@redhat.com>
45520         stdlib: work around MirBSD WEXITSTATUS bug
45521         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
45522         * modules/stdlib (Depends-on): Add sys_wait.
45523         * tests/test-sys_wait.c (main): Enhance test.
45524         * tests/test-stdlib.c (main): Likewise.
45525         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
45527         docs: mention MacOS issue with WEXITSTATUS(constant)
45528         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
45529         issue.
45530         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45532         strnlen: add tests
45533         * modules/strnlen-tests: New file.
45534         * tests/test-strnlen.c: Likewise.
45536 2010-09-14  Bruno Haible  <bruno@clisp.org>
45538         unistr/base: Avoid link errors when module 'libunistring' is also used.
45539         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
45540         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
45541         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
45542         Declare also when HAVE_LIBUNISTRING is set.
45543         Reported by Pádraig Brady <P@draigbrady.com>.
45545 2010-09-14  Eric Blake  <eblake@redhat.com>
45547         test-rawmemchr: make more robust
45548         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
45549         (Depends-on, configure.ac): Add needed prerequisites to use it.
45550         * modules/memchr-tests (Files, Depends-on, configure.ac):
45551         Likewise, to avoid implicit reliance on memchr module prereqs.
45552         * tests/test-memchr.c (main): Ensure proper masking.
45553         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
45554         reads.
45556         memchr: detect glibc Alpha bug
45557         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
45558         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
45559         Alpha.
45560         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
45561         * tests/test-memchr.c (main): Enhance test.
45562         Reported by Nelson H. F. Beebe.
45564 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45566         fts, getcwd, glob: audit for dirfd returning -1
45567         * lib/fts.c (opendir): Remove #define; no longer used.
45568         (opendirat): New arg PDIR_FD.  All callers changed.
45569         (fts_build, _opendir2): Use new opendirat to avoid the need for
45570         dirfd, or for checking whether dirfd returns a negative value.
45571         Don't use opendir; always use openat followed by fdopendir.
45572         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
45573         it.
45574         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
45575         returns -1 here.
45576         * modules/fts (Depends-on): Remove dirfd.
45577         * modules/getcwd (Depends-on): Likewise.
45579 2010-09-13  Eric Blake  <eblake@redhat.com>
45581         float: fix broken MirBSD header
45582         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
45583         * doc/posix-headers/float.texi (float.h): Document it.
45585 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45587         fts: use O_NOFOLLOW to avoid race condition when opening a directory
45588         * lib/fts.c (opendirat): New arg extra_flags.
45589         (__opendir2): Use it to avoid following symlinks when opening
45590         a directory, if symlinks are not supposed to be followed.  See
45591         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
45593         fdopendir: preserve argument fd before returning
45594         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
45595         (fdopendir_with_dup, fd_clone_opendir): New static functions.
45596         (fdopendir): Use them, arranging for FD to be open to the same
45597         directory that it was when it started.  (It might be temporarily
45598         closed while fdopendir is running, so this not thread- or
45599         signal-safe.)  Be careful to do the right thing even when file
45600         descriptors are scarce and dup fails with errno == EMFILE.  See
45601         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
45603 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
45605         regex: Pass the system regex if its only problem is 32-bit regoff_t.
45606         * NEWS: Document change.
45607         * m4/regex.m4: Disable test for regoff_t size.
45609 2010-09-13  Jim Meyering  <meyering@redhat.com>
45611         fts: don't operate on an invalid file descriptor after failed dup
45612         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
45613         negative file descriptor.
45615 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
45617         savedir: add streamsavedir, deprecate fdsavedir
45618         * NEWS: Mention deprecation of fdsavedir.
45619         * lib/savedir.c (streamsavedir): New extern function, whose name
45620         ends in "savedir" to be consistent with the others.  This differs
45621         from savedirstream in that it doesn't close its argument.  The
45622         next version of GNU tar will use this instead of fdsavedir, to
45623         avoid some race conditions and conserve file descriptors.
45624         (savedirstream): Reimplement as a wrapper around streamsavedir.
45625         (fdsavedir): Add a comment deprecating this function.  As far as
45626         I know, only GNU tar used it, and GNU tar doesn't need it any more.
45627         * lib/savedir.h (streamsavedir): New decl.
45628         (fdsavedir): Add a comment deprecating this.
45630 2010-09-10  Bruno Haible  <bruno@clisp.org>
45632         langinfo: Fix last commit.
45633         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
45634         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
45635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45637 2010-09-10  Bruno Haible  <bruno@clisp.org>
45639         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
45640         * lib/progreloc.c (O_EXEC): Define fallback.
45642 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
45644         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
45645         * NEWS: Document recent changes to fcntl-h.
45646         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
45647         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
45648         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
45649         Similarly for O_SEARCH; this last was already true, but not documented.
45650         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
45651         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
45652         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
45653         Likewise.
45654         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
45655         is zero, not whether it is defined.
45656         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
45657         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
45658         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
45660 2010-09-10  Bruno Haible  <bruno@clisp.org>
45662         langinfo, nl_langinfo: Fix for IRIX 5.3.
45663         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
45664         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
45665         HAVE_LANGINFO_YESEXPR.
45666         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
45667         HAVE_LANGINFO_YESEXPR.
45668         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
45669         HAVE_LANGINFO_T_FMT_AMPM is 0.
45670         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
45671         HAVE_LANGINFO_YESEXPR is 0.
45672         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
45673         NOEXPR.
45674         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
45675         * doc/posix-functions/nl_langinfo.texi: Likewise.
45676         Reported by Eric Blake.
45678 2010-09-10  Bruno Haible  <bruno@clisp.org>
45680         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
45681         * doc/glibc-functions/login_tty.texi: Mention the include file problem
45682         on FreeBSD 8.0 and OpenBSD 4.6.
45683         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
45684         * m4/pty_h.m4 (gl_PTY_H): Likewise.
45685         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
45686         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
45687         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
45688         ac_includes_default.
45689         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45691 2010-09-09  Eric Blake  <eblake@redhat.com>
45693         strsignal: work around NetBSD bug
45694         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
45695         * lib/string.in.h (includes): Likewise.
45696         * doc/posix-functions/strsignal.texi (strsignal): Document the
45697         bug.
45698         Reported by Nelson H. F. Beebe.
45700         gnulib-tool: work with NetBSD /bin/sh
45701         * gnulib-tool (func_cache_var, func_cache_lookup_module)
45702         (func_get_description, func_get_comment, func_get_status)
45703         (func_get_notice, func_get_applicability, func_get_filelist)
45704         (func_get_dependencies, func_get_autoconf_early_snippet)
45705         (func_get_autoconf_snippet, func_get_automake_snippet)
45706         (func_get_include_directive, func_get_link_directive)
45707         (func_get_license, func_get_maintainer, func_import): Avoid
45708         shell syntax errors from parsing syntax extensions.
45710 2010-09-09  Bruno Haible  <bruno@clisp.org>
45712         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45713         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
45714         a reliable way to determine whether the 'alias' command works.
45716 2010-09-08  Jim Meyering  <meyering@redhat.com>
45718         init.sh: penalize a set-x-impaired shell; don't disqualify it
45719         * tests/init.sh: Too many shells corrupt application stderr when
45720         you set -x, so we can't afford to disqualify them, since at least
45721         on Irix-6.5, that would disqualify all bourne shells.
45722         Instead, use a two-pass approach.
45723         On the first pass, try to find a shell that meets the stricter
45724         condition that set -x does not corrupt stderr.
45725         If no shell meets the stricter condition, retest each candidate
45726         shell, but without that extra condition.  Finally, when
45727         VERBOSE=yes is requested and set -x might cause trouble, simply
45728         issue a warning and refrain from enabling debug output.
45730 2010-09-08  Eric Blake  <eblake@redhat.com>
45732         unsetenv: fix OpenBSD bug
45733         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
45734         * doc/posix-functions/unsetenv.texi (unsetenv): Update
45735         documentation.
45736         Reported by Jim Meyering.
45738         strtod: work around IRIX 6.5 bug
45739         * lib/strtod.c (strtod): Reparse number on shorter string if
45740         exponent parse was invalid.
45741         * tests/test-strtod.c (main): Add check for "0x1p 2".
45742         Reported by Tom G. Christensen.
45744         getopt: optimize previous patch
45745         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
45746         empty variable.  Speed up awk script.
45747         Reported by Paolo Bonzini.
45749 2010-09-08  Jim Meyering  <meyering@redhat.com>
45751         test.sh: disqualify shells for which set -x corrupts stderr
45752         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
45753         and OpenBSD 4.7.  They make it so with "set -x", environment settings
45754         appear in stderr output.  For example, this command:
45755             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
45756         prints "P=1" on those two systems:
45758 2010-09-08  Bruno Haible  <bruno@clisp.org>
45760         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45761         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
45762         commands, because some shells ignore redirections when there is an
45763         error in the command lookup.
45764         Reported by Eric Blake.
45766 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
45768         * lib/regex.h: Fix a mention of `regex_compile' (should be
45769         `re_compile_pattern').
45770         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
45771         (re_set_registers): Correct name of parameter in comment.
45773         * doc/regex.texi: Add documentation for missing syntax flags.
45774         Remove commented-out documentation of defunct syntax option
45775         RE_NO_EMPTY_ALTS.
45776         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
45777         Add documentation of re_set_registers.
45778         Document trick to re-use a pattern buffer by setting fastmap manually.
45779         Update documentation of struct re_pattern_buffer per public members.
45780         Uncomment documentation of equivalence class operators and
45781         collating symbol operators, since they are now implemented,
45782         Explain leftmost-longest matching in relation to alternatives.
45783         Tidy documentation of substring matching.
45784         Remove POSIX documentation, which is done better in
45785         glibc, and refer the reader there. Keep BSD API documentation, as
45786         that is not readily available elsewhere.
45788 2010-09-07  Eric Blake  <eblake@redhat.com>
45790         getopt: handle POSIXLY_CORRECT set but not exported
45791         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
45792         export state of POSIXLY_CORRECT, due to bash set -o posix.
45793         Reported by Dustin J. Mitchell.
45795 2010-09-05  Bruno Haible  <bruno@clisp.org>
45797         gnulib-tool: Highlight the changed options.
45798         * gnulib-tool (func_usage): Display the --import, --add-import,
45799         --remove-import explanations in bold font.
45801 2010-09-06  Karl Berry  <karl@gnu.org>
45803         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
45805 2010-09-05  Bruno Haible  <bruno@clisp.org>
45807         uniwidth/width: Update comment.
45808         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
45809         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
45811 2010-09-05  Bruno Haible  <bruno@clisp.org>
45813         isinf, isnan: Relax license.
45814         * modules/isinf (License): Change from GPL to LGPL, with consent from
45815         Ben Pfaff.
45816         * modules/isnan (License): Likewise.
45817         Requested by Ludovic Courtès.
45819 2010-09-04  Bruno Haible  <bruno@clisp.org>
45821         gnulib-tool: Help migration from --import to --add-import or --update.
45822         * gnulib-tool: Emit a verbose error message when --import is used
45823         without any module name.
45825 2010-09-04  Bruno Haible  <bruno@clisp.org>
45827         Update doc about gnulib-tool.
45828         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
45829         'gnulib-tool --update' in more detail.
45830         Reported by Eric Blake.
45832 2010-09-04  Bruno Haible  <bruno@clisp.org>
45834         gnulib-tool: Change --import. New options --add/remove-import.
45835         * gnulib-tool: New options --add-import, --remove-import.
45836         (func_usage): Document them.
45837         (have_associative): Define always.
45838         (func_import): In import mode, don't merge the specified settings with
45839         the cached settings. Implement remove-import mode.
45840         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
45841         Explain when to use them versus --import.
45842         (Simple update): Use --add-import instead of --import.
45843         * NEWS: Mention the change.
45845 2010-09-04  Bruno Haible  <bruno@clisp.org>
45847         * doc/gnulib-tool.texi (Initial import): Update paragraph about
45848         separate gnulib.mk.
45850 2010-09-04  Bruno Haible  <bruno@clisp.org>
45852         gnulib-tool: Don't talk about CVS any more.
45853         * gnulib-tool (func_usage, func_import): Write "version control"
45854         instead of CVS.
45856 2010-09-04  Jim Meyering  <meyering@redhat.com>
45858         maint.mk: avoid obscure sc_copyright_check failure in coreutils
45859         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
45860         false positives (whose names may be ill-chosen) when searching
45861         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
45862         would cause a false-positive.
45864         avoid coreutils "make distcheck" failure
45865         Coreutils tests with an absolute build directory name that contains
45866         a space.  Not quoting this directory name caused a failure.
45867         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
45868         * tests/test-vc-list-files-cvs.sh: Likewise.
45870 2010-09-04  Bruno Haible  <bruno@clisp.org>
45872         gnulib-tool: Avoid error when run in a package without Makefile.am.
45873         * gnulib-tool: When collecting the m4dirs in a package that does not
45874         have a Makefile.am, eliminate those directories that contain no
45875         gnulib-cache.m4. Fix expression that counts these directories.
45877 2010-09-04  Bruno Haible  <bruno@clisp.org>
45879         update-copyright test: Improve output when perl is missing or too old.
45880         * tests/test-update-copyright.sh: Move test of Perl version down after
45881         the test whether Perl exists. Provide an explanation relating Perl's
45882         error message to Automake's SKIP: message.
45884 2010-09-04  Bruno Haible  <bruno@clisp.org>
45886         Don't augment PATH in TESTS_ENVIRONMENT.
45887         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
45888         set abs_aux_dir instead of augmenting PATH.
45889         * modules/vc-list-files-tests (Makefile.am): Likewise.
45890         * tests/test-update-copyright.sh: Augment PATH here.
45891         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
45892         path_prepend_.
45893         * tests/test-vc-list-files-git.sh: Likewise.
45895 2010-09-04  Jim Meyering  <meyering@redhat.com>
45897         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
45898         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
45900 2010-09-04  Bruno Haible  <bruno@clisp.org>
45902         strdup: Fix compilation error in C++ mode.
45903         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
45904         the macro.
45906 2010-09-04  Bruno Haible  <bruno@clisp.org>
45908         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
45909         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
45910         macro into a function.
45911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45913 2010-09-04  Bruno Haible  <bruno@clisp.org>
45915         Set PATH_SEPARATOR the same way autoconf does.
45916         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
45917         the value of PATH_SEPARATOR the same way autoconf-generated configure
45918         scripts do.
45919         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
45920         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45922 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45924         Set PATH_SEPARATOR the same way autoconf does.
45925         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
45926         the same way autoconf-generated configure scripts do.
45927         * posix-modules: Likewise.
45929 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
45931         hash: fix safe_hasher const typo
45932         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
45933         const; otherwise, there is a type error later.
45935 2010-09-02  Jim Meyering  <meyering@redhat.com>
45937         test-update-copyright.sh: require perl 5.8.0
45938         * tests/test-update-copyright.sh: Require 5.8.0,
45939         which Tom G. Christensen has confirmed is adequate,
45940         while 5.6.1 is not.
45942 2010-09-02  Eric Blake  <eblake@redhat.com>
45944         tests: init.sh improvements for re-exec'ing with zsh
45945         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
45946         -vx through shell re-exec.
45947         Reported by Tom G. Christensen.
45949         wctype: fix typo in previous commit
45950         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
45951         Reported by Ludovic Courtès.
45953 2010-09-02  Jim Meyering  <meyering@redhat.com>
45955         test-update-copyright.sh: skip test if Perl is too old
45956         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
45957         Reported by Tom G. Christensen.
45959 2010-09-02  Bruno Haible  <bruno@clisp.org>
45961         wctype: Avoid compilation error on IRIX 6.5.30.
45962         * lib/wctype.in.h (iswblank): Declare with a replacement if
45963         REPLACE_ISWBLANK is set.
45964         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
45965         declared. Set REPLACE_ISWBLANK.
45966         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
45967         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
45968         * doc/posix-headers/wctype.texi: Likewise.
45969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45971 2010-09-01  Bruno Haible  <bruno@clisp.org>
45973         New module 'socketlib'.
45974         * modules/socketlib: New file.
45975         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
45976         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
45977         * modules/sockets (Depends-on): Add socketlib.
45978         Suggested by Sam Steingold <sds@gnu.org>.
45980 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45982         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
45984         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
45985         when one needs search access to a directory but not read access.
45986         On systems where it is available, it works in some cases where
45987         O_RDONLY does not, namely on directories that are searchable but
45988         not readable, and which need only to be searchable.  If O_SEARCH
45989         is not available, fall back to the traditional method of using
45990         O_RDONLY.
45992         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
45993         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
45994         when opening a directory that needs only to be searchable.
45995         * lib/chdir-safer.c (chdir_no_follow): Likewise.
45996         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
45997         * lib/openat-proc.c (openat_proc_name): Likewise.
45998         * lib/openat.c (openat_needs_fchdir): Likewise.
45999         * lib/save-cwd.c (save_cwd): Likewise.
46000         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
46002 2010-08-28  Bruno Haible  <bruno@clisp.org>
46004         New module 'host-cpu-c-abi'.
46005         * modules/host-cpu-c-abi: New file.
46006         * m4/host-cpu-c-abi.m4: New file, based on part of
46007         clisp/src/m4/general.m4.
46008         Requested by Sam Steingold <sds@gnu.org>.
46010 2010-08-31  Eric Blake  <eblake@redhat.com>
46011         and Jim Meyering  <meyering@redhat.com>
46013         hash: factor, and guard against misbehaving hasher function
46014         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
46015         of table->hasher's return value.  Also protect against a hash value
46016         so large that adding it to table->bucket results in a NULL pointer.
46017         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
46018         Use it in place of open-coded check-and-abort.
46020 2010-08-30  Bruno Haible  <bruno@clisp.org>
46022         hash: silence spurious clang warning
46023         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
46024         Reported by Eric Blake.
46026 2010-08-30  Eric Blake  <eblake@redhat.com>
46028         strstr, memmem, strcasestr: avoid leaked shell message
46029         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
46030         FreeBSD.
46031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46034         tests: silence clang warning
46035         * tests/test-malloca.c (do_allocation): Avoid dead store.
46037 2010-08-29  Bruno Haible  <bruno@clisp.org>
46039         gettext: Fix recent mistake.
46040         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
46042 2010-08-29  Bruno Haible  <bruno@clisp.org>
46044         selinux-h: Offer a --without-selinux option.
46045         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
46046         --without-selinux was specified, skip all tests and define
46047         HAVE_SELINUX_SELINUX_H to 0.
46048         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
46049         set LIB_SELINUX to empty.
46050         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
46051         gl_LIBSELINUX. If --without-selinux was specified, replace
46052         selinux/context.h.
46053         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
46055 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46056             Bruno Haible  <bruno@clisp.org>
46058         Make the module 'realloc-gnu' work again on AIX and OSF/1.
46059         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
46060         of HAVE_REALLOC.
46061         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
46062         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
46063         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
46064         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46066 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46067             Bruno Haible  <bruno@clisp.org>
46069         Make the module 'calloc-gnu' work again on AIX and OSF/1.
46070         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
46071         HAVE_CALLOC.
46072         * lib/xmalloc.c: Update accordingly.
46073         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
46074         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
46075         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
46077 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46078             Bruno Haible  <bruno@clisp.org>
46080         Make the module 'malloc-gnu' work again on AIX and OSF/1.
46081         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
46082         HAVE_MALLOC.
46083         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
46084         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
46085         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46087 2010-08-29  Bruno Haible  <bruno@clisp.org>
46089         Update modules list.
46090         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46091         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
46092         (String handling <string.h>): Add astrxfrm.
46093         (File system functions): Add readlinkat.
46095 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46097         Tests for module 'realloc-gnu'.
46098         * modules/realloc-gnu-tests: New file.
46099         * tests/test-realloc-gnu.c: New file.
46101         Tests for module 'calloc-gnu'.
46102         * modules/calloc-gnu-tests: New file.
46103         * tests/test-calloc-gnu.c: New file.
46105         Tests for module 'malloc-gnu'.
46106         * modules/malloc-gnu-tests: New file.
46107         * tests/test-malloc-gnu.c: New file.
46109 2010-08-28  Bruno Haible  <bruno@clisp.org>
46111         Rename module 'realloc' -> 'realloc-gnu'.
46112         * modules/realloc-gnu: New file, copied from modules/realloc.
46113         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
46114         obsolete.
46115         * modules/mgetgroups (Depends-on): Update.
46116         * doc/posix-functions/realloc.texi: Update.
46117         * NEWS: Mention the change.
46119         Rename module 'calloc' -> 'calloc-gnu'.
46120         * modules/calloc-gnu: New file, copied from modules/calloc.
46121         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
46122         obsolete.
46123         * doc/posix-functions/calloc.texi: Update.
46124         * NEWS: Mention the change.
46126         Rename module 'malloc' -> 'malloc-gnu'.
46127         * modules/malloc-gnu: New file, copied from modules/malloc.
46128         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
46129         obsolete.
46130         * modules/argp (Depends-on): Update.
46131         * modules/regex (Depends-on): Update.
46132         * doc/posix-functions/malloc.texi: Update.
46133         * NEWS: Mention the change.
46135 2010-08-28  Eric Blake  <eblake@redhat.com>
46137         pread, pwrite: add missing dependency
46138         * modules/pread (Depends-on): Add extensions.
46139         * modules/pwrite (Depends-on): Likewise.
46141 2010-08-28  Bruno Haible  <bruno@clisp.org>
46143         unistr/u*-strchr: Fix tests dependencies.
46144         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
46145         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
46146         Reported by Ian Beckwith <ianb@erislabs.net>.
46148 2010-08-28  Bruno Haible  <bruno@clisp.org>
46150         read-file: Don't occupy too much unused memory.
46151         * lib/read-file.c (fread_file): Shrink the buffer at the end.
46153 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
46154             Eric Blake  <eblake@redhat.com>
46155             Bruno Haible  <bruno@clisp.org>
46157         read-file: Avoid memory reallocations with regular files.
46158         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
46159         (fread_file): With regular files, use the remaining length as the
46160         initial buffer size.  Check against overflow.
46161         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
46162         sys_stat.
46164 2010-08-28  Bruno Haible  <bruno@clisp.org>
46166         ftello: Relax license.
46167         * modules/ftello (License): Relax to LGPLv2+.
46168         Reported by Eric Blake.
46170 2010-08-28  Bruno Haible  <bruno@clisp.org>
46172         Avoid relocwrapper link errors due to gnulib replacement functions.
46173         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
46174         function.
46175         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46177 2010-08-28  Bruno Haible  <bruno@clisp.org>
46179         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
46180         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
46181         defined.
46182         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
46183         Suggested by Eric Blake.
46185 2010-08-28  Bruno Haible  <bruno@clisp.org>
46187         sys_socket, netdb: Ensure socklen_t gets defined.
46188         * modules/sys_socket (Depends-on): Add socklen.
46189         * modules/netdb (Depends-on): Likewise.
46190         * modules/getaddrinfo (Depends-on): Remove socklen.
46191         * modules/getsockopt (Depends-on): Likewise.
46192         * modules/setsockopt (Depends-on): Likewise.
46193         * tests/test-sys_socket.c: Check that socklen_t is defined.
46194         * tests/test-netdb.c: Likewise.
46195         * m4/socklen.m4: Update comments.
46196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46198 2010-08-27  Eric Blake  <eblake@redhat.com>
46200         login_tty: add missing dependency
46201         * modules/login_tty (Depends-on): Add pty.
46203 2010-08-26  Eric Blake  <eblake@redhat.com>
46205         lib-symbol-versions: fix m4 quoting
46206         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
46207         format for AC_LINK_IFELSE.
46209         glob: fix compile test
46210         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
46212         btowc: fix missing file
46213         * modules/btowc (Files): Also ship locale-fr.m4.
46215         lseek: fix link test
46216         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
46217         AC_LINK_IFELSE.
46219         include_next: silence autoconf 2.68 warning
46220         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
46221         AC_COMPILE_IFELSE as special.
46222         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
46223         autoconf < 2.68.
46225         acl: fix compilation test
46226         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
46227         AC_COMPILE_IFELSE.
46229 2010-08-26  Bruno Haible  <bruno@clisp.org>
46231         Modernize AC_TRY_RUN invocations.
46232         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
46233         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
46234         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
46235         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
46236         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
46237         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
46238         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46240         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
46241         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46242         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46243         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46244         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46245         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46247         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46248         gl_MBRLEN_NUL_RETVAL): Likewise.
46249         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46250         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46251         Likewise.
46252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46253         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46254         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46255         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46256         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
46257         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
46258         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
46259         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46260         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
46261         Likewise.
46262         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46263         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
46264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46265         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46266         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46267         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46269         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
46270         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46273 2010-08-26  Bruno Haible  <bruno@clisp.org>
46275         Modernize AC_TRY_LINK invocations.
46276         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
46277         AC_TRY_LINK.
46278         * m4/argp.m4 (gl_ARGP): Likewise.
46279         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
46280         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
46281         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46282         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46283         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46284         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
46285         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
46286         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
46287         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46288         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46289         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46290         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
46291         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
46292         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
46293         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46294         * m4/hostent.m4 (gl_HOSTENT): Likewise.
46295         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46296         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
46297         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46298         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
46299         Likewise.
46300         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
46301         Likewise.
46302         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
46303         Likewise.
46304         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
46306         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
46307         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
46308         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
46309         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
46310         * m4/servent.m4 (gl_SERVENT): Likewise.
46311         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
46312         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
46313         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
46314         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
46315         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46316         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
46317         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46318         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46319         * modules/tsearch-tests (configure.ac): Likewise.
46321 2010-08-26  Bruno Haible  <bruno@clisp.org>
46323         Modernize AC_TRY_COMPILE invocations.
46324         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
46325         AC_TRY_COMPILE.
46326         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
46327         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
46328         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46329         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
46330         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46331         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46332         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46333         * m4/lock.m4 (gl_LOCK): Likewise.
46334         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
46335         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46336         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
46337         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
46338         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46339         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
46340         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
46342         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46343         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46344         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46345         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46346         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
46347         extraneous semicolon.
46349 2010-08-26  Jim Meyering  <meyering@redhat.com>
46351         stat-time: relax license LGPL
46352         * modules/stat-time (License): Change from GPL to LGPL,
46353         with consent from all contributors, for use in libguile.
46354         Requested by Ludovic Courtès.
46356 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
46358         poll: return immediately on POLLHUP.
46359         * lib/poll.c (poll): Always set timeout before wait_timeout is
46360         computed.
46362 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46364         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
46365         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
46366         rmdir ("dir/.//"), unlinkat.
46368 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46370         stdbool: avoid spurious failure with modern xlc
46371         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
46373 2010-08-24  Bruno Haible  <bruno@clisp.org>
46375         getloadavg: simplify code
46376         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
46377         gl_have_func. Update comments.
46379 2010-08-24  Eric Blake  <eblake@redhat.com>
46381         getloadavg: don't define SVR4 on cygwin
46382         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
46383         only define SVR4 when -lkvm is required.
46384         Reported by Yaakov Selkowitz.
46386 2010-08-24  Bruno Haible  <bruno@clisp.org>
46388         priv-set: fix comment
46389         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
46391 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46393         priv-set: fix comments
46394         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
46395         to match code, as suggested by David Bartley in:
46396         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
46398 2010-08-23  Eric Blake  <eblake@redhat.com>
46400         stdbool: avoid rejecting clang
46401         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
46402         * tests/test-stdbool.c: Enable more tests if using the system
46403         <stdbool.h> instead of the gnulib replacement.
46404         (main): Move xlc bug test to a runtime test for all compilers.
46405         Reported by Anders Kaseorg.
46407         argz: fix shell quoting issue
46408         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
46409         Reported by Charles Wilson.
46411 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
46412             Erik Faye-Lund <kusmabite@gmail.com>
46414         poll, select: handle ERROR_BROKEN_PIPE.
46415         * lib/poll.c (win32_compute_revents): Return POLLHUP when
46416         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46417         * lib/select.c (win32_compute_revents): Do not mark a pipe
46418         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46420 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
46422         fts: allow compilation with C++
46423         * lib/fts_.h: Specify extern "C" linkage with C++.
46425 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46427         Fix gnulib-tool sed script de-commentation for AIX sed.
46428         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
46429         sed.
46431 2010-08-17  Eric Blake  <eblake@redhat.com>
46433         test-stddef: test for (some) offsetof bugs
46434         * tests/test-stddef.c: Enhance test to ensure correct type of
46435         offsetof.
46436         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
46437         that we are not fixing at this time.
46439 2010-08-15  Bruno Haible  <bruno@clisp.org>
46441         stpncpy: Allow stpncpy to be defined as a macro.
46442         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
46443         if it's already correctly declared.
46444         * lib/string.in.h (stpncpy): Undefine before redefining.
46445         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
46447 2010-08-14  Bruno Haible  <bruno@clisp.org>
46449         Rename module 'memxfrm' to 'amemxfrm'.
46450         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
46451         (amemxfrm): Renamed from memxfrm.
46452         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
46453         (amemxfrm): Renamed from memxfrm.
46454         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
46455         * NEWS: Mention the change.
46456         * MODULES.html.sh (String handling <string.h>): Update.
46457         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
46458         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
46459         * lib/unicase/u16-casexfrm.c: Likewise.
46460         * lib/unicase/u32-casexfrm.c: Likewise.
46461         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
46462         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
46463         * lib/uninorm/u16-normxfrm.c: Likewise.
46464         * lib/uninorm/u32-normxfrm.c: Likewise.
46465         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
46466         memxfrm.
46467         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
46468         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
46469         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
46470         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
46471         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
46472         Suggested by Paul Eggert.
46474 2010-08-14  Bruno Haible  <bruno@clisp.org>
46476         Tests for module 'astrxfrm'.
46477         * modules/astrxfrm-tests: New file.
46478         * tests/test-astrxfrm.c: New file.
46480         New module 'astrxfrm'.
46481         * lib/astrxfrm.h: New file.
46482         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
46483         * modules/astrxfrm: New file.
46485 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
46487         regex: Tweak doc.
46488         * doc/regex.texi (Overview): Don't mention regex.c.
46489         (GNU Regular Expression Compiling): Likewise.
46490         (Match-end-of-line Operator): Mention 'not_eol'.
46492 2010-08-14  Brian Gough  <bjg@gnu.org>
46493             Bruno Haible  <bruno@clisp.org>
46495         git-merge-changelog: add doc relating to use with bzr and hg.
46496         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
46498 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
46500         pthread: fix pthread.h creation for srcdir != builddir
46501         * modules/pthread (Makefile.am): Fix the rule to work also in a
46502         non-srcdir build.
46504 2010-08-13  Karl Berry  <karl@gnu.org>
46506         * doc/regex.texi (Predefined Syntaxes): @smallexample.
46507         * doc/posix-*/*: force line break before @url of POSIX
46508         specifications.
46509         Suggested by Werner Lemberg.
46511 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46513         strtod: fix const diagnostic
46514         * lib/strtod.c (strtod): Don't assign const char * to char *,
46515         as this elicits a warning from GCC when warnings are enabled.
46517 2010-08-10  Pádraig Brady  <P@draigbrady.com>
46518         and Eric Blake  <eblake@redhat.com>
46520         copy-acl: ignore ENOTSUP on HP-UX
46521         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
46522         so that it is available for HP-UX.
46523         * lib/copy-acl.c (qcopy_acl): Use it.
46524         Reported by Patrick M. Callahan.
46526 2010-08-10  Eric Blake  <eblake@redhat.com>
46528         open, chown: relax license
46529         * modules/open (License): Change to LGPLv2+, with consent by all
46530         authors, for use in augeas.
46531         * modules/chown (License): Likewise.
46532         * modules/lchown (Likewise): Likewise.
46533         Requested by Adam Stokes.
46535 2010-08-09  Karl Berry  <karl@gnu.org>
46537         * build-aux/ar-lib: new file, import from Automake.
46538         * config/srclist.txt: autocheck for updates.
46540 2010-08-09  Eric Blake  <eblake@redhat.com>
46542         readlinkat: adjust client modules
46543         * modules/areadlinkat (Depends-on): Use readlinkat, not
46544         symlinkat.
46545         * modules/areadlinkat-with-size (Depends-on): Likewise.
46547         mknod: be more vocal about danger of running tests as root
46548         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
46549         root, since that is just asking for problems.
46550         Suggested by Bruno Haible, based on a report by Rainer Tammer.
46552         readlinkat: split into its own module
46553         * modules/symlinkat: Split readlinkat...
46554         * modules/readlinkat: ...into separate module.
46555         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
46556         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
46557         * lib/symlinkat.c (readlinkat): Move...
46558         * lib/readlinkat.c: ...into new file.
46559         * modules/symlinkat-tests: Split readlinkat test...
46560         * modules/readlinkat-tests: ...into separate module.
46561         * tests/test-symlinkat.c: Split...
46562         * tests/test-readlinkat.c: ...into new file.
46563         * NEWS: Document the split.
46564         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46565         * lib/unistd.in.h (readlinkat): Likewise.
46566         Suggested by Bruno Haible.
46568 2010-08-08  Bruno Haible  <bruno@clisp.org>
46570         memxfrm: Speed up.
46571         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
46572         that usually only one call to strxfrm is necessary for each string
46573         part.
46574         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46576 2010-08-07  Karl Berry  <karl@gnu.org>
46578         * doc/posix-headers/limits.texi,
46579         * doc/posix-functions/malloc.texi,
46580         * doc/posix-functions/strsignal.texi: missing @item.
46581         * doc/ld-version-script.texi: spurious leading i.
46582         * doc/regex.texi (Interval Operators): no commas inside @var.
46584 2010-08-01  Bruno Haible  <bruno@clisp.org>
46586         Integrate the regex documentation.
46587         * doc/gnulib.texi: Define 'cn' index.
46588         (Regular expressions): New a chapter that includes regex.texi and
46589         regexprops-generic.texi.
46590         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
46591         syntax.
46593         Whitespace cleanup.
46594         * doc/regex.texi: Remove trailing spaces.
46596         Add regex documentation.
46597         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
46598         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
46599         Written by Kathy A. Hargreaves and Karl Berry.
46601 2010-08-01  Bruno Haible  <bruno@clisp.org>
46603         link: Update documentation.
46604         * doc/posix-functions/link.texi: Update regarding Solaris.
46606 2010-07-31  Bruno Haible  <bruno@clisp.org>
46608         Update modules list.
46609         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
46610         (String handling <string.h>): Add memcmp2, memxfrm.
46611         (Container data structures): Add xlist, xsublist, xoset.
46612         (Core language properties): Add alignof, unused-parameter.
46613         (Process control, Numeric conversion functions <stdlib.h>): Renamed
46614         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
46615         (Unibyte characters <ctype.h>): New section.
46616         (String handling <string.h>): New section.
46617         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
46618         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
46619         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
46620         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
46621         tan, tanh, tanl, y0, y1, yn.
46622         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
46623         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
46624         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
46625         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
46626         unlockpt, vdprintf, vdprintf-posix.
46627         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
46628         (File system functions): Add concat-filename, sys_file, sys_ioctl,
46629         xconcat-filename.
46630         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
46631         getdtablesize, pipe2, pipe2-safer.
46632         (Security): New section.
46633         (Networking functions): Add accept4.
46634         (Signal handling): Add sigpipe.
46635         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
46636         mbmemcasecoll.
46637         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
46638         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
46639         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
46640         pipe-filter-ii.
46641         (Misc): Add argp-version-etc, login_tty, parse-duration.
46643 2010-07-31  Bruno Haible  <bruno@clisp.org>
46645         Improve doc in MODULES.html.
46646         * modules/linkat (Description): Add the word "function".
46647         * modules/mkfifo (Description): Likewise.
46648         * modules/mknod (Description): Likewise.
46649         * modules/remove (Description): Likewise.
46650         * modules/renameat (Description): Likewise.
46651         * modules/stat (Description): Likewise.
46652         * modules/symlink (Description): Likewise.
46653         * modules/unlink (Description): Likewise.
46655 2010-07-31  Bruno Haible  <bruno@clisp.org>
46657         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
46658         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
46659         option --enable/disable-c++ instead of --enable/disable-cxx.
46660         * NEWS: Mention the change.
46662 2010-07-31  Bruno Haible  <bruno@clisp.org>
46664         readlink, areadlink: Relax test a bit.
46665         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
46666         alternative to ENOTDIR.
46667         * tests/test-areadlink.h (test_areadlink): Likewise.
46668         Reported by Rainer Tammer.
46670 2010-07-31  Bruno Haible  <bruno@clisp.org>
46672         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
46673         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
46674         character, perform the search using U_STRCHR.
46675         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
46676         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
46677         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
46678         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
46679         Suggested by Paolo Bonzini.
46681 2010-07-31  Bruno Haible  <bruno@clisp.org>
46683         unistr/u*-strstr: Fix dependencies.
46684         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
46685         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
46686         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
46688 2010-07-31  Bruno Haible  <bruno@clisp.org>
46690         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
46691         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
46692         the beginning of the loop.
46693         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
46694         cases in 'switch' statement.
46696         unistr/u8-strchr: Fix several bugs.
46697         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
46698         the string. When not found, return NULL, not a pointer near the end.
46700         More tests for unistr/u8-strchr.
46701         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
46702         that the function does not read past the first occurrence of the byte
46703         being searched.
46704         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
46705         * tests/unistr/test-u16-strchr.c (main): New function.
46706         * tests/unistr/test-u32-strchr.c (main): New function.
46708 2010-07-31  Bruno Haible  <bruno@clisp.org>
46710         posix-modules: Ignore backup files of documentation files.
46711         * posix-modules: grep only through files named *.texi.
46713 2010-07-31  Bruno Haible  <bruno@clisp.org>
46715         symlinkat: Fix documentation.
46716         * doc/posix-functions/readlinkat.texi: Fix module name.
46718 2010-07-31  Bruno Haible  <bruno@clisp.org>
46720         fchownat: Replace also when chown has the trailing slash bug.
46721         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
46722         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
46723         introduced on 2010-04-10.
46724         Reported by Rainer Tammer.
46726 2010-07-31  Bruno Haible  <bruno@clisp.org>
46728         linkat: Work around AIX 7.1 bug.
46729         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
46730         whether linkat handles trailing slash correctly. If not, replace linkat
46731         and define LINKAT_TRAILING_SLASH_BUG.
46732         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
46733         check whether (fd1,file1) points to a directory if file1 or file2 ends
46734         in a slash. Code taken from lib/link.c.
46735         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
46736         Reported by Rainer Tammer.
46738 2010-07-31  Bruno Haible  <bruno@clisp.org>
46740         Correctly determine whether pow is available in libc on AIX 7 with xlc.
46741         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
46742         This disables an xlc optimization that was causing wrong test results.
46743         Reported by Rainer Tammer.
46745 2010-07-31  Bruno Haible  <bruno@clisp.org>
46747         iconv: Work around AIX 6.1..7.1 bug.
46748         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
46749         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
46750         cross-compiling, guess no on all versions of AIX.
46751         Reported by Rainer Tammer.
46753 2010-07-31  Bruno Haible  <bruno@clisp.org>
46755         readlink: Relax test a bit.
46756         * tests/test-readlink.h (test_readlink): Allow different errno value
46757         when readlink is called with a file name that ends in / and refers to
46758         a file.
46759         Suggested by Eric Blake.
46760         Reported by Rainer Tammer.
46762 2010-07-31  Bruno Haible  <bruno@clisp.org>
46764         copysign: Does not require -lm on glibc systems.
46765         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
46766         gl_COMMON_DOUBLE_MATHFUNC.
46767         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
46769 2010-07-31  Bruno Haible  <bruno@clisp.org>
46771         duplocale: Work around AIX 7.1 bug.
46772         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
46773         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
46774         * lib/duplocale.c (rpl_duplocale): Update comment.
46775         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
46776         Reported by Rainer Tammer.
46778 2010-07-30  Bruno Haible  <bruno@clisp.org>
46780         dirfd: Avoid link error on AIX 7.1.
46781         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
46782         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
46783         exist, set REPLACE_DIRFD.
46784         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
46785         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
46786         * doc/posix-functions/dirfd.texi: Update.
46787         Reported by Rainer Tammer.
46789 2010-07-30  Eric Blake  <eblake@redhat.com>
46791         strtod: next round of AIX fixes
46792         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
46793         exponent.
46794         * tests/test-strtod.c (main): Enhance tests.
46795         * doc/posix-functions/strtod.texi (strtod): Document next bug.
46796         Reported by Rainer Tammer.
46798         futimens: fix configure check
46799         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
46800         Reported by Bruno Haible.
46802 2010-07-30  Bruno Haible  <bruno@clisp.org>
46804         getline: Update regarding AIX.
46805         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
46806         Reported by Rainer Tammer.
46808 2010-07-30  Bruno Haible  <bruno@clisp.org>
46810         wcwidth: Drop replacement on AIX 7.
46811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
46812         AIX 7.
46813         Reported by Rainer Tammer.
46815 2010-07-30  Bruno Haible  <bruno@clisp.org>
46817         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
46818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
46819         a 'char *'.
46820         Reported by Rainer Tammer.
46822 2010-07-30  Bruno Haible  <bruno@clisp.org>
46824         unlink: Update regarding AIX.
46825         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
46826         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
46827         Reported by Rainer Tammer.
46829 2010-07-30  Bruno Haible  <bruno@clisp.org>
46831         symlink: Update regarding AIX.
46832         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
46833         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
46834         Reported by Rainer Tammer.
46836 2010-07-30  Bruno Haible  <bruno@clisp.org>
46838         strndup: Update regarding AIX.
46839         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
46840         AIX 7.
46841         Reported by Rainer Tammer.
46843 2010-07-30  Bruno Haible  <bruno@clisp.org>
46845         stat: Update regarding AIX.
46846         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
46847         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
46848         Reported by Rainer Tammer.
46850 2010-07-30  Bruno Haible  <bruno@clisp.org>
46852         truncl: Fix autoconf test.
46853         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
46854         whether truncl works.
46855         Reported by Rainer Tammer.
46857 2010-07-30  Bruno Haible  <bruno@clisp.org>
46859         round: Update regarding AIX.
46860         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
46861         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
46862         Reported by Rainer Tammer.
46864 2010-07-30  Bruno Haible  <bruno@clisp.org>
46866         rename: Update regarding AIX.
46867         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
46868         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
46869         Reported by Rainer Tammer.
46871 2010-07-30  Bruno Haible  <bruno@clisp.org>
46873         printf.m4: Update regarding AIX.
46874         * m4/printf.m4: Update comments regarding AIX.
46875         Reported by Rainer Tammer.
46877 2010-07-30  Bruno Haible  <bruno@clisp.org>
46879         iconv: Update regarding AIX.
46880         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
46881         AIX 7.
46882         Reported by Rainer Tammer.
46884 2010-07-30  Bruno Haible  <bruno@clisp.org>
46886         getopt: Update regarding AIX.
46887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
46888         no on AIX.
46889         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
46890         Reported by Rainer Tammer.
46892 2010-07-30  Bruno Haible  <bruno@clisp.org>
46894         ldexpl; Update regarding AIX.
46895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
46896         on AIX 7.
46897         Reported by Rainer Tammer.
46899 2010-07-30  Bruno Haible  <bruno@clisp.org>
46901         frexpl: Update regarding AIX.
46902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
46903         on AIX 7.
46904         Reported by Rainer Tammer.
46906 2010-07-30  Bruno Haible  <bruno@clisp.org>
46908         open, fopen: Update regarding AIX.
46909         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
46910         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
46911         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
46912         * doc/posix-functions/fopen.texi: Likewise.
46913         Reported by Rainer Tammer.
46915 2010-07-30  Bruno Haible  <bruno@clisp.org>
46917         chown: Update doc regarding AIX.
46918         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
46919         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
46920         Reported by Rainer Tammer.
46922 2010-07-30  Eric Blake  <eblake@redhat.com>
46924         strtod: fix bug in replacement function on AIX
46925         * lib/strtod.c (strtod): Special case broken "0x" parse in
46926         underlying strtod.
46927         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
46928         * doc/posix-functions/strtod.texi (strtod): Likewise.
46929         Reported by Rainer Tammer.
46931 2010-07-30  Bruno Haible  <bruno@clisp.org>
46933         mbrlen: Fix cross-compilation guess for AIX.
46934         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
46935         guess. Leftover from 2008-12-22.
46937 2010-07-30  Bruno Haible  <bruno@clisp.org>
46939         mbrtowc: Fix cross-compilation guess for AIX.
46940         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
46941         guess. Leftover from 2008-12-21.
46943 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
46945         init.sh: work around trap limitation of some shells
46946         * tests/init.sh (setup_): Move exit trap outside of shell function.
46948 2010-07-29  Eric Blake  <eblake@redhat.com>
46950         strtod: aid debugging
46951         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
46952         understanding why strtod is rejected.
46954 2010-07-28  Bruno Haible  <bruno@clisp.org>
46956         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
46957         * lib/unistr/u8-chr.c: Include <string.h>.
46958         * tests/unistr/test-u8-chr.c: Likewise.
46959         * tests/unistr/test-u16-chr.c: Likewise.
46960         * tests/unistr/test-u32-chr.c: Likewise.
46961         * tests/unistr/test-u8-strchr.c: Likewise.
46962         * tests/unistr/test-u16-strchr.c: Likewise.
46963         * tests/unistr/test-u32-strchr.c: Likewise.
46964         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
46965         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
46966         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
46967         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
46969 2010-07-28  Bruno Haible  <bruno@clisp.org>
46971         Use spaces for indentation, not tabs.
46972         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
46974 2010-07-27  Bruno Haible  <bruno@clisp.org>
46976         mbspcasecmp: Fix function specification.
46977         * lib/string.in.h (mbspcasecmp): Fix specification comment.
46978         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
46979         Reported by Eric Blake <eblake@redhat.com>.
46981 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
46983         timespec: use cast and not conditional, as truncation isn't possible
46984         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
46985         instead of a conditional.  Comment about the situation in more detail.
46986         This undoes most of the 2009-10-29 patch.
46988 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
46990         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
46991         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
46992         * lib/unistr/u8-strchr.c: Likewise.
46993         * modules/unistr/u8-chr: Depend on memchr.
46995         unistr/u*-strchr: add tests
46996         * modules/unistr/u8-strchr-tests: New file.
46997         * modules/unistr/u16-strchr-tests: New file.
46998         * modules/unistr/u32-strchr-tests: New file.
46999         * tests/unistr/test-strchr.h: New file.
47000         * tests/unistr/test-u8-strchr.c: New file.
47001         * tests/unistr/test-u16-strchr.c: New file.
47002         * tests/unistr/test-u32-strchr.c: New file.
47004         unistr/u*-chr: test multibyte sequences more
47005         * tests/unistr/test-chr.h: Do complete testing of the characters in the
47006         test vector.
47007         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
47008         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
47009         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
47011         unistr/u*-chr: test multibyte sequences
47012         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
47014         unistr/u*-chr: prepare for multibyte tests
47015         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
47016         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
47017         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
47018         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
47019         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
47020         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
47022 2010-07-18  Bruno Haible  <bruno@clisp.org>
47024         unistr/u8-strchr: Optimize non-ASCII argument case.
47025         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
47026         because the first byte often matches anyway.
47027         Reported by Pádraig Brady <P@draigbrady.com>.
47029 2010-07-15  Karl Berry  <karl@gnu.org>
47031         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
47033 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
47035         getcwd: on Solaris, work better if ancestors are inaccessible
47036         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
47037         buffer and size, try again with a large buffer.  This works better
47038         on Solaris, since its getcwd succeeds even if the path to the root
47039         is inaccessible, and this is helpful in common cases such as .zfs
47040         hidden directories.  Problem reported by J Chapman Flack in
47041         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
47042         Use system getcwd if it's declared, not merely if it's partly
47043         working; use the partly-working test only to avoid needless effort
47044         if the system getcwd fails.
47045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
47046         comment that was already obsolete and is now even more obsolete.
47047         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
47048         now might call strdup.
47050 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
47052         pthread: Add enough so that coreutils/src/sort.c compiles.
47053         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
47054         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
47055         gnulib. Include <sched.h> and <time.h>, as per POSIX.
47056         Include <sys/types.h>, in case it defines pthread_t.
47057         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
47058         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
47059         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
47060         (pthread_rwlockattr_t, pthread_spinlock_t):
47061         New typedefs, if HAVE_PTHREAD_T is not defined.
47062         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
47063         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
47064         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
47065         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
47066         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
47067         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
47068         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
47069         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
47070         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
47071         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
47072         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
47073         New macros.
47074         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
47075         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
47076         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
47077         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
47078         (pthread_spin_unlock): New dummy functions.
47079         (pthread_create): Return EAGAIN; don't set errno.
47080         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
47081         require AC_C_INLINE.
47082         * modules/pthread (Depends-on): Add sched, time.
47083         (pthread.h): Use AM_V_GEN.
47085 2010-07-13  Bruno Haible  <bruno@clisp.org>
47087         striconveh: Don't malloc memory if the result buffer is sufficient.
47088         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
47089         buffer if its size is sufficient.
47090         Reported by Ludovic Courtès <ludo@gnu.org>.
47092 2010-07-13  Bruno Haible  <bruno@clisp.org>
47094         strtod: Add safety check.
47095         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
47097 2010-07-12  Bruno Haible  <bruno@clisp.org>
47099         Unify tests that set gl_cv_func_ldexpl_no_libm.
47100         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
47101         gl_FUNC_LDEXPL.
47102         (gl_FUNC_LDEXPL): Invoke it.
47103         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47105 2010-07-12  Bruno Haible  <bruno@clisp.org>
47107         Unify tests that set gl_cv_func_ldexp_no_libm.
47108         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
47109         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
47110         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
47111         (configure.ac): Simply invoke gl_FUNC_LDEXP.
47112         * modules/strtod (Files): Add m4/ldexp.m4.
47114 2010-07-12  Bruno Haible  <bruno@clisp.org>
47116         Unify tests that set gl_cv_func_frexpl_no_libm.
47117         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
47118         gl_FUNC_FREXPL_NO_LIBM.
47119         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
47120         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47122 2010-07-12  Bruno Haible  <bruno@clisp.org>
47124         Unify tests that set gl_cv_func_frexp_no_libm.
47125         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
47126         gl_FUNC_FREXP_NO_LIBM.
47127         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
47128         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47130 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47132         memcoll: clarify sizes versus lengths, document better, and tweak perf
47133         * lib/memcoll.c (strcoll_loop, memcoll0):
47134         Improve quality of descriptive comments.  Name variables
47135         consistently as to whether they are lengths (which do not include
47136         terminating null) versus sizes (which do).
47137         * lib/xmemcoll.c (xmemcoll0): Likewise.
47138         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
47139         returned when s1size == 0; this is easier to compile and saves
47140         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
47142 2010-07-12  Bruno Haible  <bruno@clisp.org>
47144         Tests for module '_Exit'.
47145         * modules/_Exit-tests: New file.
47146         * tests/test-_Exit.sh: New file.
47147         * tests/test-_Exit.c: New file.
47149         New module '_Exit'.
47150         * lib/stdlib.in.h (__attribute__): New macro.
47151         (_Exit): New declaration.
47152         * lib/_Exit.c: New file.
47153         * m4/_Exit.m4: New file.
47154         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
47155         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
47156         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
47157         * modules/_Exit: New file.
47158         * tests/test-stdlib-c++.cc (_Exit): Check signature.
47159         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
47161 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47163         strtod: make it more-accurate typically, and don't require libm
47164         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
47165         Include limits.h.  Don't include string.h.
47166         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
47167         (locale_isspace): New function, so that no casts are needed to
47168         check whether *s is a space.
47169         (ldexp): Provide an unused dummy if not available.
47170         (scale_radix_exp, parse_number, underlying_strtod): New functions.
47171         (strtod): Use them.  This implementation prefers to use the
47172         underlying strtod if available, falling back on our own code
47173         only to fix known bugs.  This is more likely to produce an
47174         accurate result.  Also, it avoids the use of libm functions.
47175         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
47176         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
47177         was absent, but it caused a test failure with coreutils.
47178         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
47179         with libm.
47180         * modules/strtod (Makefile.am, Link): libm is no longer needed.
47181         * modules/strtod-tests (Makefile.am): Likewise.
47183 2010-07-11  Pádraig Brady  <P@draigBrady.com>
47184             Bruno Haible  <bruno@clisp.org>
47186         unistr/u8-strchr: Optimize ASCII argument case.
47187         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
47189 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47191         (x)memcoll: minor tweaks
47192         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
47193         is after the type that it qualifies.
47194         (memcoll0): Likewise.
47195         * lib/memcoll.h (memcoll0): Likewise.
47196         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
47197         * lib/xmemcoll.h (xmemcoll0): Likewise.
47198         * lib/memcoll.c (memcoll0): Correct the comment.  This function
47199         differs from memcoll in that the NUL byte is part of the argument.
47200         Omit the abort-checks, as performance is a real issue here.  Plus,
47201         the checks were wrong anyway (an off-by-one error).  Omit local
47202         variable 'diff', as it's a bit clearer that way.
47203         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
47204         no longer needed.
47206 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
47208         (x)memcoll: speedup when input is known to be NUL delimited
47209         * lib/memcoll.c: Include stdlib.
47210         (memcoll0): New function.
47211         (strcoll_loop): New function, refactored for use in both memcoll
47212         and memcoll0.
47213         * lib/memcoll.h (memcoll0): Add prototype.
47214         * lib/xmemcoll.c (xmemcoll0): New function.
47215         (collate_error): New function, refactored for use in both xmemcoll
47216         and xmemcoll0.
47217         * lib/xmemcoll.h (xmemcoll0): Add prototype.
47218         * m4/memcoll.m4: add inline invocation.
47220 2010-07-06  Pádraig Brady  <P@draigBrady.com>
47222         * build-aux/bootstrap: Remove any local translations
47223         from the translation project synchronization directory,
47224         so that local only translations are not distributed.
47226 2010-07-04  Bruno Haible  <bruno@clisp.org>
47228         fsusage: Clarify which code applies to which platforms.
47229         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
47230         platform.
47231         * lib/fsusage.c (get_fs_usage): Likewise.
47233 2010-07-04  Bruno Haible  <bruno@clisp.org>
47235         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
47236         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
47237         Reported by Martin Lambers <marlam@marlam.de>.
47239 2010-07-04  Jim Meyering  <meyering@redhat.com>
47241         hash: once again explicitly disallow insertion of NULL
47242         * lib/hash.c (hash_insert0): Reinstate just-removed test:
47243         inserting a NULL pointer cannot work with these functions.
47244         Add a comment with details.
47245         This reverts part of the 2010-07-01 commit, 5bef1a35
47246         "hash: extend module to deal with non-pointer keys".
47248 2010-07-01  Bruno Haible  <bruno@clisp.org>
47250         stdbool: Update doc.
47251         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
47252         Info from Christian Weisgerber <naddy@mips.inka.de>.
47254 2010-07-01  Jim Meyering  <meyering@redhat.com>
47256         hash: extend module to deal with non-pointer keys
47257         * lib/hash.c (hash_insert0): New interface, much like hash_insert
47258         but that allows insertion of non-pointer entries.
47259         Do not disallow an ENTRY value of NULL.
47260         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
47261         * lib/hash.h (hash_insert0): Declare.
47263 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47265         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
47266         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
47267         not present (i.e. with autoconf 2.59 and when using gettextize, not
47268         gnulib), require AC_GNU_SOURCE instead.
47270 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
47272         idpriv-drop: Fix tests.
47273         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
47274         not to the test-idpriv-droptemp program.
47276 2010-06-29  Bruno Haible  <bruno@clisp.org>
47278         string: Fix syntax error with g++ 2.96.
47279         * lib/string.in.h (__pure__): Remove definition.
47280         (_GL_ATTRIBUTE_PURE): New macro.
47281         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
47282         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
47283         Reported by Christian Weisgerber <naddy@mips.inka.de>.
47285 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
47287         unitypes: Fix bug introduced on 2010-05-18.
47288         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
47290 2010-06-22  Eric Blake  <eblake@redhat.com>
47292         memmem: slight optimization
47293         * lib/str-two-way.h (critical_factorization): Update comments.
47294         Reduce work during factorization phase.
47295         Reported by Carlos Bueno <carlos@bueno.org>.
47297 2010-06-21  Bruno Haible  <bruno@clisp.org>
47299         Fix HAVE_CALLOC_POSIX misnomer.
47300         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
47301         !HAVE_CALLOC_POSIX.
47302         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
47303         HAVE_CALLOC_POSIX.
47304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
47305         instead of HAVE_CALLOC_POSIX.
47306         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
47307         HAVE_CALLOC_POSIX.
47309         Use modern idiom for calloc() replacement.
47310         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
47311         AC_FUNC_CALLOC.
47312         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
47313         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
47314         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47315         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
47316         (gl_REPLACE_CALLOC): New macro.
47318 2010-06-21  Bruno Haible  <bruno@clisp.org>
47320         Fix HAVE_REALLOC_POSIX misnomer.
47321         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
47322         !HAVE_REALLOC_POSIX.
47323         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
47324         HAVE_REALLOC_POSIX.
47325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
47326         instead of HAVE_REALLOC_POSIX.
47327         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
47328         HAVE_REALLOC_POSIX.
47330         Use modern idiom for realloc() replacement.
47331         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
47332         AC_FUNC_REALLOC.
47333         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
47334         Autoconf's AC_FUNC_REALLOC.
47335         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47336         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
47337         (gl_REPLACE_REALLOC): New macro.
47338         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
47340 2010-06-21  Bruno Haible  <bruno@clisp.org>
47342         Fix HAVE_MALLOC_POSIX misnomer.
47343         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
47344         !HAVE_MALLOC_POSIX.
47345         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
47346         HAVE_MALLOC_POSIX.
47347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
47348         instead of HAVE_MALLOC_POSIX.
47349         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
47350         HAVE_MALLOC_POSIX.
47352         Use modern idiom for malloc() replacement.
47353         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
47354         AC_FUNC_MALLOC.
47355         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
47356         Autoconf's AC_FUNC_MALLOC.
47357         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47358         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
47359         (gl_REPLACE_MALLOC): New macro.
47360         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
47362 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
47364         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
47365         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
47366         This macro takes 3 arguments, not 4.
47368 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
47370         ipv6: fix detection under mingw
47371         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
47372         in6_addr.
47374 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
47376         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
47377         that strtod() works when cross-compiling to a glibc version known
47378         to work.
47380 2010-06-15  Bruno Haible  <bruno@clisp.org>
47382         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
47384 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
47386         select: Correct timeout.
47387         * lib/select.c (rpl_select): Compute wait_timeout correctly.
47389 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47391         git-version-gen: init shell var to avoid env var influence
47392         * build-aux/git-version-gen (v): Init shell var to empty.
47394 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
47396         priv-set: Don't assume that priv.h exists merely because getppriv does.
47397         See Jan Andersen's bug report about AIX 5L in
47398         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
47399         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
47400         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
47401         * lib/priv-set.h: Likewise.
47402         * tests/test-priv-set.c: Likewise.
47404 2010-06-13  Bruno Haible  <bruno@clisp.org>
47406         relocatable: Make it easier to test whether to install wrappers.
47407         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
47408         RELOCATABLE_VIA_WRAPPER.
47410 2010-06-13  Bruno Haible  <bruno@clisp.org>
47412         gnulib-tool: Display specified modules and dependencies differently.
47413         * gnulib-tool (func_show_module_list): New function.
47414         (func_import, func_create_testdir): Invoke it.
47415         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47417 2010-06-13  Bruno Haible  <bruno@clisp.org>
47419         gnulib-tool: Align code of func_import and func_create_testdir.
47420         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
47421         specified_modules.
47423 2010-06-12  Jim Meyering  <meyering@redhat.com>
47425         test-inttostr: avoid spurious failure on Solaris 9
47426         * tests/test-inttostr.c (main): Skip the test when snprintf fails
47427         to accept "%ju".  Reported by Bruno Haible.
47429 2010-06-11  Jim Meyering  <meyering@redhat.com>
47431         test-sys_socket: mark variables as used more readably
47432         * tests/test-sys_socket.c (main): Mark otherwise unused variables
47433         as "used" explicitly via (void) statement casts.  This is more
47434         readable than using them in an artificial return expression.
47435         Suggestion from Bruno Haible.
47437 2010-06-11  Bruno Haible  <bruno@clisp.org>
47439         Avoid some more warnings from "gcc -Wwrite-strings".
47440         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
47441         to 'const char *'.
47442         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
47443         * tests/test-c-strcasestr.c (main): Likewise.
47444         * tests/test-mbscasestr1.c (main): Likewise.
47445         * tests/test-mbscasestr2.c (main): Likewise.
47446         * tests/test-memmem.c (main): Likewise.
47447         * tests/test-strstr.c (main): Likewise.
47448         * tests/test-strcasestr.c (main): Likewise.
47450 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47452         init.sh: change framework_failure_ to fail with status 99, not 1
47453         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
47454         automake's parallel-tests rule that this is an unexpected failure,
47455         even if the test is listed in XFAIL_TESTS.
47457 2010-06-11  Jim Meyering  <meyering@redhat.com>
47459         test-inttostr: avoid warnings about 4-6KB literal strings
47460         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
47461         Include "macros.h", for its definition of ASSERT.
47462         (CK): s/assert/ASSERT/
47463         * modules/inttostr-tests (Files): Add macros.h.
47465         init.sh: don't use $ME_ or skip_ before they are defined
47466         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
47467         their first uses.  Also hoist their companions: warn_, fail_,
47468         framework_failure_, $stderr_fileno.  Prompted by a patch from
47469         Stefano Lattarini.
47471         test-sys_socket: avoid set-but-not-used warnings from gcc
47472         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
47473         avoid warning about set-but-not-used variables.
47475         test-xvasprintf: avoid 'const' discard warnings
47476         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
47477         "const" when assigning from literal strings.
47478         (test_xasprintf): Add "void" in function argument list to placate
47479         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
47481         tests: avoid compilation warnings in argmatch and exclude tests...
47482         in packages that define ARGMATCH_DIE_DECL, like coreutils.
47483         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
47484         Since it always exits, declare with the "noreturn" attribute.
47485         * tests/test-argmatch.c: Likewise.
47487         tests: avoid 'const' discard warnings in mbsstr tests
47488         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
47489         * tests/test-mbsstr2.c (main): Likewise.
47491         test-verify: avoid warning from gcc's -Wmissing-declarations
47492         * tests/test-verify.c (function): Declare to be static.
47494         test-inttostr.c: include <string.h> for use of strcmp
47495         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
47497         test-linkat: avoid failed assertion on "other" architectures
47498         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
47499         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
47500         sparc: https://bugs.launchpad.net/bugs/591968
47502 2010-06-11  Jim Meyering  <meyering@redhat.com>
47504         printf.m4: avoid autoconf's "Expanded Before Required" warning
47505         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
47506         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
47507         autoconf warning.
47509 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
47511         Replacement header templates are now named with ".in", not "_".
47512         * doc/gnulib-intro.texi: Correct.
47514 2010-06-10  Jim Meyering  <meyering@redhat.com>
47516         inttostr-tests: depend on snprintf, not snprintf-posix
47517         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
47518         snprintf-posix, to avoid this aclocal failure:
47519           missing file gnulib-tests/vasnprintf.c
47520           configure.ac:45: error: expected source file, required through \
47521           AC_LIBSOURCES, not found
47523 2010-06-10  Jim Meyering  <meyering@redhat.com>
47525         inttostr: add a new function, inttostr, and tests
47526         The namesake function was not available.  The existence of the
47527         template file, inttostr.c makes its addition nontrivial.
47528         * lib/anytostr.c: Rename from inttostr.c.
47529         (anytostr): Rename from inttostr.
47530         * lib/inttostr.c: New file.
47531         * modules/inttostr (Files): Add anytostr.c.
47532         (Makefile.am): Set lib_SOURCES instead of ...
47533         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
47534         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
47535         * lib/offtostr.c: Likewise.
47536         * lib/uinttostr.c: Likewise.
47537         * lib/umaxtostr.c: Likewise.
47538         * modules/inttostr-tests: New file.
47539         * tests/test-inttostr.c: New file.  Test these functions.
47541 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
47542             Bruno Haible  <bruno@clisp.org>
47544         Add "Extending Gnulib" chapter to manual.
47545         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
47546         chapter.
47547         (Extending Gnulib): New chapter.
47548         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
47549         chapter.
47551 2010-06-09  Bruno Haible  <bruno@clisp.org>
47553         Avoid relocwrapper link errors due to gnulib replacement functions.
47554         * lib/areadlink.c: Use the system's malloc, realloc functions.
47555         (areadlink): Set errno to ENOMEM explicitly.
47556         * modules/areadlink (Depends-on): Remove malloc-posix.
47557         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47559 2010-06-09  Bruno Haible  <bruno@clisp.org>
47561         Avoid relocwrapper link errors due to gnulib replacement functions.
47562         * lib/canonicalize-lgpl.c: Use the system's malloc function.
47563         * lib/malloca.c: Likewise.
47564         * lib/relocatable.c: Likewise.
47565         * lib/progreloc.c: Use the system's malloc, sprintf functions.
47566         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
47567         * lib/setenv.c: Use the system's malloc, realloc functions.
47568         * lib/strerror.c: Use the system's sprintf function.
47569         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47571 2010-06-04  Bruno Haible  <bruno@clisp.org>
47573         Prefer documented low-level autoconf macro names.
47574         * m4/lib-link.m4: Use m4_translit instead of translit.
47575         * m4/environ.m4: Likewise.
47576         * m4/mathfunc.m4: Likewise.
47577         * m4/onceonly.m4: Likewise.
47578         * m4/stdint.m4: Likewise.
47579         Suggested by Eric Blake.
47581 2010-06-04  Martin Lambers  <marlam@marlam.de>
47582             Bruno Haible  <bruno@clisp.org>
47584         havelib: Allow library names with '+' characters.
47585         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47586         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
47588 2010-06-09  Bruno Haible  <bruno@clisp.org>
47590         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
47591         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
47592         realloc failed.
47594 2010-06-08  Peter Simons  <simons@cryp.to>
47596         maint.mk: make the news-check rule more configurable
47597         * top/maint.mk (news-check-lines-spec): New variable.
47598         (news-check): Use "sed -n 1,10p" in place of "head".
47600 2010-06-07  Jim Meyering  <meyering@redhat.com>
47602         do-release-commit-and-tag: fix typo in --help
47603         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
47605         regex: avoid new dead-code warning with gcc-4.6.0
47606         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
47607         if-block containing a while-loop.  It's been unused for at least
47608         5 years.
47610 2010-06-05  Bruno Haible  <bruno@clisp.org>
47612         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
47613         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
47615 2010-06-04  Bruno Haible  <bruno@clisp.org>
47617         Update to GNU gettext 0.18.1.
47618         * modules/gettext (configure.ac): Require gettext infrastructure from
47619         version 0.18.1.
47621 2010-06-03  Bruno Haible  <bruno@clisp.org>
47623         Don't use AC_LIBOBJ with file names in subdirectories.
47624         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
47625         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
47626         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
47627         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
47628         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
47629         gl_LIBUNISTRING_LIBSOURCE.
47630         (Makefile.am): Augment lib_SOURCES here, conditionally.
47631         * NEWS: Drop requirement for Automake option 'subdir-objects'.
47633 2010-06-03  Bruno Haible  <bruno@clisp.org>
47635         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
47636         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
47637         expansion does not end with a newline.
47638         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
47639         unnecessary newline.
47641 2010-06-03  Bruno Haible  <bruno@clisp.org>
47643         Reduce dependencies.
47644         * tests/test-quotearg.h: New file, extracted from
47645         tests/test-quotearg.c.
47646         * tests/test-quotearg-simple.c: New file, extracted from
47647         tests/test-quotearg.c.
47648         * tests/test-quotearg.c: Don't include <ctype.h>.
47649         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
47650         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
47651         use_quote_double_quotes, use_quotearg_colon): Moved to
47652         tests/test-quotearg.h.
47653         (results_g, flag_results, custom_quotes, custom_results): Moved
47654         to tests/test-quotearg-simple.c.
47655         (main): Moved the part that does not depend on gettext to
47656         tests/test-quotearg-simple.c. Return 77 if the test cannot be
47657         performed.
47658         * modules/quotearg-simple: New file.
47659         * modules/quotearg-simple-tests: New file.
47660         * modules/quotearg (Depends-on): Add quotearg-simple.
47661         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
47662         (Files): Add tests/test-quotearg.h.
47663         Reported by Paolo Bonzini.
47665 2010-06-03  Bruno Haible  <bruno@clisp.org>
47667         Reduce dependencies.
47668         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
47670 2010-06-03  Bruno Haible  <bruno@clisp.org>
47672         time: Undefine more broken macros.
47673         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
47674         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
47675         Reported by Eric Blake.
47677 2010-06-03  Bruno Haible  <bruno@clisp.org>
47679         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
47680         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
47681         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
47682         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
47683         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
47684         Reported by Ludovic Courtès <ludo@gnu.org>.
47686 2010-06-02  Eric Blake  <eblake@redhat.com>
47688         time: work with mingw + pthreads-win32 library
47689         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
47690         if timespec is defined only in pthread.h.
47691         * modules/time (Makefile.am): Substitute it.
47692         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
47693         <pthread.h>, when needed.
47694         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
47695         from the library.
47697 2010-05-31  Bruno Haible  <bruno@clisp.org>
47699         Avoid expanding two macros in the wrong order.
47700         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
47701         gl_LIBUNISTRING if it is defined.
47702         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
47703         autoconf >= 2.64.
47704         Reported by Ludovic Courtès <ludo@gnu.org>.
47706 2010-05-27  Jim Meyering  <meyering@redhat.com>
47708         maint.mk: also prohibit "#undef" of always-defined symbols
47709         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
47710         Allow more than one space before the symbol name.
47711         (sc_prohibit_always-defined_macros): Use grep's -E, now that
47712         the regexp uses alternation.
47714 2010-05-26  Eric Blake  <eblake@redhat.com>
47716         maint.mk: avoid echo -e
47717         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
47718         Convert all uses of echo -* to printf.
47719         Reported by Matthias Bolte.
47721 2010-05-25  Bruno Haible  <bruno@clisp.org>
47723         Update to GNU gettext 0.18, part 2.
47724         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
47725         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
47727 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47729         Add missing include in test-pwrite.c.
47730         * tests/test-pwrite.c: Include string.h, for strcmp.
47732 2010-05-24  Bruno Haible  <bruno@clisp.org>
47734         * NEWS: Mention requirement for Automake option 'subdir-objects'.
47736 2010-05-24  Bruno Haible  <bruno@clisp.org>
47738         Don't use conversion with transliteration in u{8,16,32}_strcoll.
47739         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
47740         iconveh_error argument.
47741         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
47742         U_STRCONV_TO_LOCALE.
47743         * lib/unistr/u16-strcoll.c: Likewise.
47744         * lib/unistr/u32-strcoll.c: Likewise.
47745         * modules/unistr/u8-strcoll (Depends-on): Add
47746         uniconv/u8-strconv-to-enc, localcharset. Remove
47747         uniconv/u8-strconv-to-locale.
47748         (configure.ac): Bump version number.
47749         * modules/unistr/u16-strcoll (Depends-on): Add
47750         uniconv/u16-strconv-to-enc, localcharset. Remove
47751         uniconv/u16-strconv-to-locale.
47752         (configure.ac): Bump version number.
47753         * modules/unistr/u32-strcoll (Depends-on): Add
47754         uniconv/u32-strconv-to-enc, localcharset. Remove
47755         uniconv/u32-strconv-to-locale.
47756         (configure.ac): Bump version number.
47758 2010-05-24  Bruno Haible  <bruno@clisp.org>
47760         Avoid a test failure on NetBSD 5.0.
47761         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
47762         an iconv() bug.
47764 2010-05-24  Bruno Haible  <bruno@clisp.org>
47766         Adjust #include directive style.
47767         * modules/regex (Includes): Recommend to write <regex.h>.
47769 2010-05-24  Bruno Haible  <bruno@clisp.org>
47771         regex: Don't require alloca.
47772         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
47773         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
47774         only inside if (0).
47776 2010-05-23  Jim Meyering  <meyering@redhat.com>
47778         test-renameat.c: include <sys/stat.h>
47779         * tests/test-renameat.c: Include <sys/stat.h>; required for
47780         definition of S_IS* macros.
47782 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
47784         Update maintainer documentation for 'relocatable-prog' module.
47785         * doc/relocatable-maint.texi: Update.
47786         Comments by Bruno Haible.
47788 2010-05-23  Bruno Haible  <bruno@clisp.org>
47790         git-merge-changelog: Enable --split-merged-entry by default.
47791         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
47792         (usage): Don't mention this option any more.
47793         Reported by Ralf Wildenhues.
47795 2010-05-23  Jim Meyering  <meyering@redhat.com>
47797         test-pwrite: do not leave behind a test file named "out"
47798         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
47799         The trivial-looking use of init.sh is really necessary.
47800         It ensures that the temporary file, "out", is created in
47801         a temporary directory, and removed upon termination.
47802         * tests/test-pwrite.sh: Re-add file.
47803         * modules/pwrite-tests: Reference it.
47805 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47807         Fix output redirection buglet in init.sh.
47808         * tests/init.sh: Fix redirection of stderr.
47810 2010-05-20  Simon Josefsson  <simon@josefsson.org>
47812         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
47814 2010-05-17  Simon Josefsson  <simon@josefsson.org>
47816         * modules/valgrind-tests: New file.
47817         * m4/valgrind-tests.m4: New file.
47818         * doc/valgrind-tests.texi: New file.
47819         * doc/gnulib.texi (Running self-tests under valgrind): New
47820         section.
47822 2010-05-19  Bruno Haible  <bruno@clisp.org>
47824         Clean up dead code in recent commit.
47825         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
47826         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
47827         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
47828         Suggested by Paolo Bonzini.
47830 2010-05-19  Bruno Haible  <bruno@clisp.org>
47832         Avoid valgrind error reports from libunistring.
47833         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
47834         * modules/libunistring (Files): Add it.
47835         * modules/libunistring-optional (Files): Likewise.
47837 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
47838             Bruno Haible  <bruno@clisp.org>
47840         New module 'libunistring-optional'.
47841         * modules/libunistring-optional: New file.
47842         * m4/libunistring-base.m4: New file.
47843         * m4/libunistring-optional.m4: New file.
47844         * lib/unicase.in.h: Renamed from lib/unicase.h.
47845         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
47846         * lib/unictype.in.h: Renamed from lib/unictype.h.
47847         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
47848         * lib/uniname.in.h: Renamed from lib/uniname.h.
47849         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
47850         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
47851         * lib/unistr.in.h: Renamed from lib/unistr.h.
47852         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
47853         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
47854         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
47855         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
47856         gl_LIBUNISTRING. If the library was found, determine the installed
47857         version and set LIBUNISTRING_VERSION.
47858         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
47859         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
47860         handle a configuration option --with-included-libunistring.
47861         * modules/libunistring (Files): Add m4/absolute-header.m4.
47862         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
47863         Add m4/libunistring-base.m4.
47864         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47865         (Makefile.am): Build unicase.h from unicase.in.h.
47866         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
47867         Add m4/libunistring-base.m4.
47868         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47869         (Makefile.am): Build uniconv.h from uniconv.in.h.
47870         * modules/unictype/base (Files): Use unictype.in.h instead of
47871         unictype.h. Add m4/libunistring-base.m4.
47872         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47873         (Makefile.am): Build unictype.h from unictype.in.h.
47874         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
47875         Add m4/libunistring-base.m4.
47876         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47877         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
47878         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
47879         Add m4/libunistring-base.m4.
47880         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47881         (Makefile.am): Build uniname.h from uniname.in.h.
47882         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
47883         Add m4/libunistring-base.m4.
47884         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47885         (Makefile.am): Build uninorm.h from uninorm.in.h.
47886         * modules/unistdio/base (Files): Use unistdio.in.h instead of
47887         unistdio.h. Add m4/libunistring-base.m4.
47888         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47889         (Makefile.am): Build unistdio.h from unistdio.in.h.
47890         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
47891         Add m4/libunistring-base.m4.
47892         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47893         (Makefile.am): Build unistr.h from unistr.in.h.
47894         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
47895         Add m4/libunistring-base.m4.
47896         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47897         (Makefile.am): Build unitypes.h from unitypes.in.h.
47898         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
47899         Add m4/libunistring-base.m4.
47900         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47901         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
47902         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
47903         uniwidth.h. Add m4/libunistring-base.m4.
47904         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47905         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
47906         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
47907         instead of augmenting lib_SOURCES.
47908         * modules/unicase/empty-suffix-context: Likewise.
47909         * modules/unicase/locale-language: Likewise.
47910         * modules/unicase/tolower: Likewise.
47911         * modules/unicase/totitle: Likewise.
47912         * modules/unicase/toupper: Likewise.
47913         * modules/unicase/u8-casecmp: Likewise.
47914         * modules/unicase/u8-casecoll: Likewise.
47915         * modules/unicase/u8-casefold: Likewise.
47916         * modules/unicase/u8-casexfrm: Likewise.
47917         * modules/unicase/u8-ct-casefold: Likewise.
47918         * modules/unicase/u8-ct-tolower: Likewise.
47919         * modules/unicase/u8-ct-totitle: Likewise.
47920         * modules/unicase/u8-ct-toupper: Likewise.
47921         * modules/unicase/u8-is-cased: Likewise.
47922         * modules/unicase/u8-is-casefolded: Likewise.
47923         * modules/unicase/u8-is-lowercase: Likewise.
47924         * modules/unicase/u8-is-titlecase: Likewise.
47925         * modules/unicase/u8-is-uppercase: Likewise.
47926         * modules/unicase/u8-prefix-context: Likewise.
47927         * modules/unicase/u8-suffix-context: Likewise.
47928         * modules/unicase/u8-tolower: Likewise.
47929         * modules/unicase/u8-totitle: Likewise.
47930         * modules/unicase/u8-toupper: Likewise.
47931         * modules/unicase/u16-casecmp: Likewise.
47932         * modules/unicase/u16-casecoll: Likewise.
47933         * modules/unicase/u16-casefold: Likewise.
47934         * modules/unicase/u16-casexfrm: Likewise.
47935         * modules/unicase/u16-ct-casefold: Likewise.
47936         * modules/unicase/u16-ct-tolower: Likewise.
47937         * modules/unicase/u16-ct-totitle: Likewise.
47938         * modules/unicase/u16-ct-toupper: Likewise.
47939         * modules/unicase/u16-is-cased: Likewise.
47940         * modules/unicase/u16-is-casefolded: Likewise.
47941         * modules/unicase/u16-is-lowercase: Likewise.
47942         * modules/unicase/u16-is-titlecase: Likewise.
47943         * modules/unicase/u16-is-uppercase: Likewise.
47944         * modules/unicase/u16-prefix-context: Likewise.
47945         * modules/unicase/u16-suffix-context: Likewise.
47946         * modules/unicase/u16-tolower: Likewise.
47947         * modules/unicase/u16-totitle: Likewise.
47948         * modules/unicase/u16-toupper: Likewise.
47949         * modules/unicase/u32-casecmp: Likewise.
47950         * modules/unicase/u32-casecoll: Likewise.
47951         * modules/unicase/u32-casefold: Likewise.
47952         * modules/unicase/u32-casexfrm: Likewise.
47953         * modules/unicase/u32-ct-casefold: Likewise.
47954         * modules/unicase/u32-ct-tolower: Likewise.
47955         * modules/unicase/u32-ct-totitle: Likewise.
47956         * modules/unicase/u32-ct-toupper: Likewise.
47957         * modules/unicase/u32-is-cased: Likewise.
47958         * modules/unicase/u32-is-casefolded: Likewise.
47959         * modules/unicase/u32-is-lowercase: Likewise.
47960         * modules/unicase/u32-is-titlecase: Likewise.
47961         * modules/unicase/u32-is-uppercase: Likewise.
47962         * modules/unicase/u32-prefix-context: Likewise.
47963         * modules/unicase/u32-suffix-context: Likewise.
47964         * modules/unicase/u32-tolower: Likewise.
47965         * modules/unicase/u32-totitle: Likewise.
47966         * modules/unicase/u32-toupper: Likewise.
47967         * modules/unicase/ulc-casecmp: Likewise.
47968         * modules/unicase/ulc-casecoll: Likewise.
47969         * modules/unicase/ulc-casexfrm: Likewise.
47970         * modules/uniconv/u8-conv-from-enc: Likewise.
47971         * modules/uniconv/u8-conv-to-enc: Likewise.
47972         * modules/uniconv/u8-strconv-from-enc: Likewise.
47973         * modules/uniconv/u8-strconv-from-locale: Likewise.
47974         * modules/uniconv/u8-strconv-to-enc: Likewise.
47975         * modules/uniconv/u8-strconv-to-locale: Likewise.
47976         * modules/uniconv/u16-conv-from-enc: Likewise.
47977         * modules/uniconv/u16-conv-to-enc: Likewise.
47978         * modules/uniconv/u16-strconv-from-enc: Likewise.
47979         * modules/uniconv/u16-strconv-from-locale: Likewise.
47980         * modules/uniconv/u16-strconv-to-enc: Likewise.
47981         * modules/uniconv/u16-strconv-to-locale: Likewise.
47982         * modules/uniconv/u32-conv-from-enc: Likewise.
47983         * modules/uniconv/u32-conv-to-enc: Likewise.
47984         * modules/uniconv/u32-strconv-from-enc: Likewise.
47985         * modules/uniconv/u32-strconv-from-locale: Likewise.
47986         * modules/uniconv/u32-strconv-to-enc: Likewise.
47987         * modules/uniconv/u32-strconv-to-locale: Likewise.
47988         * modules/unictype/bidicategory-byname: Likewise.
47989         * modules/unictype/bidicategory-name: Likewise.
47990         * modules/unictype/bidicategory-of: Likewise.
47991         * modules/unictype/bidicategory-test: Likewise.
47992         * modules/unictype/block-list: Likewise.
47993         * modules/unictype/block-test: Likewise.
47994         * modules/unictype/category-C: Likewise.
47995         * modules/unictype/category-Cc: Likewise.
47996         * modules/unictype/category-Cf: Likewise.
47997         * modules/unictype/category-Cn: Likewise.
47998         * modules/unictype/category-Co: Likewise.
47999         * modules/unictype/category-Cs: Likewise.
48000         * modules/unictype/category-L: Likewise.
48001         * modules/unictype/category-Ll: Likewise.
48002         * modules/unictype/category-Lm: Likewise.
48003         * modules/unictype/category-Lo: Likewise.
48004         * modules/unictype/category-Lt: Likewise.
48005         * modules/unictype/category-Lu: Likewise.
48006         * modules/unictype/category-M: Likewise.
48007         * modules/unictype/category-Mc: Likewise.
48008         * modules/unictype/category-Me: Likewise.
48009         * modules/unictype/category-Mn: Likewise.
48010         * modules/unictype/category-N: Likewise.
48011         * modules/unictype/category-Nd: Likewise.
48012         * modules/unictype/category-Nl: Likewise.
48013         * modules/unictype/category-No: Likewise.
48014         * modules/unictype/category-P: Likewise.
48015         * modules/unictype/category-Pc: Likewise.
48016         * modules/unictype/category-Pd: Likewise.
48017         * modules/unictype/category-Pe: Likewise.
48018         * modules/unictype/category-Pf: Likewise.
48019         * modules/unictype/category-Pi: Likewise.
48020         * modules/unictype/category-Po: Likewise.
48021         * modules/unictype/category-Ps: Likewise.
48022         * modules/unictype/category-S: Likewise.
48023         * modules/unictype/category-Sc: Likewise.
48024         * modules/unictype/category-Sk: Likewise.
48025         * modules/unictype/category-Sm: Likewise.
48026         * modules/unictype/category-So: Likewise.
48027         * modules/unictype/category-Z: Likewise.
48028         * modules/unictype/category-Zl: Likewise.
48029         * modules/unictype/category-Zp: Likewise.
48030         * modules/unictype/category-Zs: Likewise.
48031         * modules/unictype/category-and: Likewise.
48032         * modules/unictype/category-and-not: Likewise.
48033         * modules/unictype/category-byname: Likewise.
48034         * modules/unictype/category-name: Likewise.
48035         * modules/unictype/category-none: Likewise.
48036         * modules/unictype/category-of: Likewise.
48037         * modules/unictype/category-or: Likewise.
48038         * modules/unictype/category-test: Likewise.
48039         * modules/unictype/combining-class: Likewise.
48040         * modules/unictype/ctype-alnum: Likewise.
48041         * modules/unictype/ctype-alpha: Likewise.
48042         * modules/unictype/ctype-blank: Likewise.
48043         * modules/unictype/ctype-cntrl: Likewise.
48044         * modules/unictype/ctype-digit: Likewise.
48045         * modules/unictype/ctype-graph: Likewise.
48046         * modules/unictype/ctype-lower: Likewise.
48047         * modules/unictype/ctype-print: Likewise.
48048         * modules/unictype/ctype-punct: Likewise.
48049         * modules/unictype/ctype-space: Likewise.
48050         * modules/unictype/ctype-upper: Likewise.
48051         * modules/unictype/ctype-xdigit: Likewise.
48052         * modules/unictype/decimal-digit: Likewise.
48053         * modules/unictype/digit: Likewise.
48054         * modules/unictype/mirror: Likewise.
48055         * modules/unictype/numeric: Likewise.
48056         * modules/unictype/property-alphabetic: Likewise.
48057         * modules/unictype/property-ascii-hex-digit: Likewise.
48058         * modules/unictype/property-bidi-arabic-digit: Likewise.
48059         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
48060         * modules/unictype/property-bidi-block-separator: Likewise.
48061         * modules/unictype/property-bidi-boundary-neutral: Likewise.
48062         * modules/unictype/property-bidi-common-separator: Likewise.
48063         * modules/unictype/property-bidi-control: Likewise.
48064         * modules/unictype/property-bidi-embedding-or-override: Likewise.
48065         * modules/unictype/property-bidi-eur-num-separator: Likewise.
48066         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
48067         * modules/unictype/property-bidi-european-digit: Likewise.
48068         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
48069         * modules/unictype/property-bidi-left-to-right: Likewise.
48070         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
48071         * modules/unictype/property-bidi-other-neutral: Likewise.
48072         * modules/unictype/property-bidi-pdf: Likewise.
48073         * modules/unictype/property-bidi-segment-separator: Likewise.
48074         * modules/unictype/property-bidi-whitespace: Likewise.
48075         * modules/unictype/property-byname: Likewise.
48076         * modules/unictype/property-combining: Likewise.
48077         * modules/unictype/property-composite: Likewise.
48078         * modules/unictype/property-currency-symbol: Likewise.
48079         * modules/unictype/property-dash: Likewise.
48080         * modules/unictype/property-decimal-digit: Likewise.
48081         * modules/unictype/property-default-ignorable-code-point: Likewise.
48082         * modules/unictype/property-deprecated: Likewise.
48083         * modules/unictype/property-diacritic: Likewise.
48084         * modules/unictype/property-extender: Likewise.
48085         * modules/unictype/property-format-control: Likewise.
48086         * modules/unictype/property-grapheme-base: Likewise.
48087         * modules/unictype/property-grapheme-extend: Likewise.
48088         * modules/unictype/property-grapheme-link: Likewise.
48089         * modules/unictype/property-hex-digit: Likewise.
48090         * modules/unictype/property-hyphen: Likewise.
48091         * modules/unictype/property-id-continue: Likewise.
48092         * modules/unictype/property-id-start: Likewise.
48093         * modules/unictype/property-ideographic: Likewise.
48094         * modules/unictype/property-ids-binary-operator: Likewise.
48095         * modules/unictype/property-ids-trinary-operator: Likewise.
48096         * modules/unictype/property-ignorable-control: Likewise.
48097         * modules/unictype/property-iso-control: Likewise.
48098         * modules/unictype/property-join-control: Likewise.
48099         * modules/unictype/property-left-of-pair: Likewise.
48100         * modules/unictype/property-line-separator: Likewise.
48101         * modules/unictype/property-logical-order-exception: Likewise.
48102         * modules/unictype/property-lowercase: Likewise.
48103         * modules/unictype/property-math: Likewise.
48104         * modules/unictype/property-non-break: Likewise.
48105         * modules/unictype/property-not-a-character: Likewise.
48106         * modules/unictype/property-numeric: Likewise.
48107         * modules/unictype/property-other-alphabetic: Likewise.
48108         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
48109         * modules/unictype/property-other-grapheme-extend: Likewise.
48110         * modules/unictype/property-other-id-continue: Likewise.
48111         * modules/unictype/property-other-id-start: Likewise.
48112         * modules/unictype/property-other-lowercase: Likewise.
48113         * modules/unictype/property-other-math: Likewise.
48114         * modules/unictype/property-other-uppercase: Likewise.
48115         * modules/unictype/property-paired-punctuation: Likewise.
48116         * modules/unictype/property-paragraph-separator: Likewise.
48117         * modules/unictype/property-pattern-syntax: Likewise.
48118         * modules/unictype/property-pattern-white-space: Likewise.
48119         * modules/unictype/property-private-use: Likewise.
48120         * modules/unictype/property-punctuation: Likewise.
48121         * modules/unictype/property-quotation-mark: Likewise.
48122         * modules/unictype/property-radical: Likewise.
48123         * modules/unictype/property-sentence-terminal: Likewise.
48124         * modules/unictype/property-soft-dotted: Likewise.
48125         * modules/unictype/property-space: Likewise.
48126         * modules/unictype/property-terminal-punctuation: Likewise.
48127         * modules/unictype/property-test: Likewise.
48128         * modules/unictype/property-titlecase: Likewise.
48129         * modules/unictype/property-unassigned-code-value: Likewise.
48130         * modules/unictype/property-unified-ideograph: Likewise.
48131         * modules/unictype/property-uppercase: Likewise.
48132         * modules/unictype/property-variation-selector: Likewise.
48133         * modules/unictype/property-white-space: Likewise.
48134         * modules/unictype/property-xid-continue: Likewise.
48135         * modules/unictype/property-xid-start: Likewise.
48136         * modules/unictype/property-zero-width: Likewise.
48137         * modules/unictype/scripts: Likewise.
48138         * modules/unictype/syntax-c-ident: Likewise.
48139         * modules/unictype/syntax-c-whitespace: Likewise.
48140         * modules/unictype/syntax-java-ident: Likewise.
48141         * modules/unictype/syntax-java-whitespace: Likewise.
48142         * modules/unilbrk/u8-possible-linebreaks: Likewise.
48143         * modules/unilbrk/u8-width-linebreaks: Likewise.
48144         * modules/unilbrk/u16-possible-linebreaks: Likewise.
48145         * modules/unilbrk/u16-width-linebreaks: Likewise.
48146         * modules/unilbrk/u32-possible-linebreaks: Likewise.
48147         * modules/unilbrk/u32-width-linebreaks: Likewise.
48148         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
48149         * modules/unilbrk/ulc-width-linebreaks: Likewise.
48150         * modules/uniname/uniname: Likewise.
48151         * modules/uninorm/canonical-decomposition: Likewise.
48152         * modules/uninorm/composition: Likewise.
48153         * modules/uninorm/decomposing-form: Likewise.
48154         * modules/uninorm/decomposition: Likewise.
48155         * modules/uninorm/filter: Likewise.
48156         * modules/uninorm/nfc: Likewise.
48157         * modules/uninorm/nfd: Likewise.
48158         * modules/uninorm/nfkc: Likewise.
48159         * modules/uninorm/nfkd: Likewise.
48160         * modules/uninorm/u8-normalize: Likewise.
48161         * modules/uninorm/u8-normcmp: Likewise.
48162         * modules/uninorm/u8-normcoll: Likewise.
48163         * modules/uninorm/u8-normxfrm: Likewise.
48164         * modules/uninorm/u16-normalize: Likewise.
48165         * modules/uninorm/u16-normcmp: Likewise.
48166         * modules/uninorm/u16-normcoll: Likewise.
48167         * modules/uninorm/u16-normxfrm: Likewise.
48168         * modules/uninorm/u32-normalize: Likewise.
48169         * modules/uninorm/u32-normcmp: Likewise.
48170         * modules/uninorm/u32-normcoll: Likewise.
48171         * modules/uninorm/u32-normxfrm: Likewise.
48172         * modules/unistdio/u8-asnprintf: Likewise.
48173         * modules/unistdio/u8-asprintf: Likewise.
48174         * modules/unistdio/u8-snprintf: Likewise.
48175         * modules/unistdio/u8-sprintf: Likewise.
48176         * modules/unistdio/u8-u8-asnprintf: Likewise.
48177         * modules/unistdio/u8-u8-asprintf: Likewise.
48178         * modules/unistdio/u8-u8-snprintf: Likewise.
48179         * modules/unistdio/u8-u8-sprintf: Likewise.
48180         * modules/unistdio/u8-u8-vasnprintf: Likewise.
48181         * modules/unistdio/u8-u8-vasprintf: Likewise.
48182         * modules/unistdio/u8-u8-vsnprintf: Likewise.
48183         * modules/unistdio/u8-u8-vsprintf: Likewise.
48184         * modules/unistdio/u8-vasnprintf: Likewise.
48185         * modules/unistdio/u8-vasprintf: Likewise.
48186         * modules/unistdio/u8-vsnprintf: Likewise.
48187         * modules/unistdio/u8-vsprintf: Likewise.
48188         * modules/unistdio/u16-asnprintf: Likewise.
48189         * modules/unistdio/u16-asprintf: Likewise.
48190         * modules/unistdio/u16-snprintf: Likewise.
48191         * modules/unistdio/u16-sprintf: Likewise.
48192         * modules/unistdio/u16-u16-asnprintf: Likewise.
48193         * modules/unistdio/u16-u16-asprintf: Likewise.
48194         * modules/unistdio/u16-u16-snprintf: Likewise.
48195         * modules/unistdio/u16-u16-sprintf: Likewise.
48196         * modules/unistdio/u16-u16-vasnprintf: Likewise.
48197         * modules/unistdio/u16-u16-vasprintf: Likewise.
48198         * modules/unistdio/u16-u16-vsnprintf: Likewise.
48199         * modules/unistdio/u16-u16-vsprintf: Likewise.
48200         * modules/unistdio/u16-vasnprintf: Likewise.
48201         * modules/unistdio/u16-vasprintf: Likewise.
48202         * modules/unistdio/u16-vsnprintf: Likewise.
48203         * modules/unistdio/u16-vsprintf: Likewise.
48204         * modules/unistdio/u32-asnprintf: Likewise.
48205         * modules/unistdio/u32-asprintf: Likewise.
48206         * modules/unistdio/u32-snprintf: Likewise.
48207         * modules/unistdio/u32-sprintf: Likewise.
48208         * modules/unistdio/u32-u32-asnprintf: Likewise.
48209         * modules/unistdio/u32-u32-asprintf: Likewise.
48210         * modules/unistdio/u32-u32-snprintf: Likewise.
48211         * modules/unistdio/u32-u32-sprintf: Likewise.
48212         * modules/unistdio/u32-u32-vasnprintf: Likewise.
48213         * modules/unistdio/u32-u32-vasprintf: Likewise.
48214         * modules/unistdio/u32-u32-vsnprintf: Likewise.
48215         * modules/unistdio/u32-u32-vsprintf: Likewise.
48216         * modules/unistdio/u32-vasnprintf: Likewise.
48217         * modules/unistdio/u32-vasprintf: Likewise.
48218         * modules/unistdio/u32-vsnprintf: Likewise.
48219         * modules/unistdio/u32-vsprintf: Likewise.
48220         * modules/unistdio/ulc-asnprintf: Likewise.
48221         * modules/unistdio/ulc-asprintf: Likewise.
48222         * modules/unistdio/ulc-fprintf: Likewise.
48223         * modules/unistdio/ulc-snprintf: Likewise.
48224         * modules/unistdio/ulc-sprintf: Likewise.
48225         * modules/unistdio/ulc-vasnprintf: Likewise.
48226         * modules/unistdio/ulc-vasprintf: Likewise.
48227         * modules/unistdio/ulc-vfprintf: Likewise.
48228         * modules/unistdio/ulc-vsnprintf: Likewise.
48229         * modules/unistdio/ulc-vsprintf: Likewise.
48230         * modules/unistr/u8-check: Likewise.
48231         * modules/unistr/u8-chr: Likewise.
48232         * modules/unistr/u8-cmp: Likewise.
48233         * modules/unistr/u8-cmp2: Likewise.
48234         * modules/unistr/u8-cpy: Likewise.
48235         * modules/unistr/u8-cpy-alloc: Likewise.
48236         * modules/unistr/u8-endswith: Likewise.
48237         * modules/unistr/u8-mblen: Likewise.
48238         * modules/unistr/u8-mbsnlen: Likewise.
48239         * modules/unistr/u8-mbtouc: Likewise.
48240         * modules/unistr/u8-mbtouc-unsafe: Likewise.
48241         * modules/unistr/u8-mbtoucr: Likewise.
48242         * modules/unistr/u8-move: Likewise.
48243         * modules/unistr/u8-next: Likewise.
48244         * modules/unistr/u8-prev: Likewise.
48245         * modules/unistr/u8-set: Likewise.
48246         * modules/unistr/u8-startswith: Likewise.
48247         * modules/unistr/u8-stpcpy: Likewise.
48248         * modules/unistr/u8-stpncpy: Likewise.
48249         * modules/unistr/u8-strcat: Likewise.
48250         * modules/unistr/u8-strchr: Likewise.
48251         * modules/unistr/u8-strcmp: Likewise.
48252         * modules/unistr/u8-strcoll: Likewise.
48253         * modules/unistr/u8-strcpy: Likewise.
48254         * modules/unistr/u8-strcspn: Likewise.
48255         * modules/unistr/u8-strdup: Likewise.
48256         * modules/unistr/u8-strlen: Likewise.
48257         * modules/unistr/u8-strmblen: Likewise.
48258         * modules/unistr/u8-strmbtouc: Likewise.
48259         * modules/unistr/u8-strncat: Likewise.
48260         * modules/unistr/u8-strncmp: Likewise.
48261         * modules/unistr/u8-strncpy: Likewise.
48262         * modules/unistr/u8-strnlen: Likewise.
48263         * modules/unistr/u8-strpbrk: Likewise.
48264         * modules/unistr/u8-strrchr: Likewise.
48265         * modules/unistr/u8-strspn: Likewise.
48266         * modules/unistr/u8-strstr: Likewise.
48267         * modules/unistr/u8-strtok: Likewise.
48268         * modules/unistr/u8-to-u16: Likewise.
48269         * modules/unistr/u8-to-u32: Likewise.
48270         * modules/unistr/u8-uctomb: Likewise.
48271         * modules/unistr/u16-check: Likewise.
48272         * modules/unistr/u16-chr: Likewise.
48273         * modules/unistr/u16-cmp: Likewise.
48274         * modules/unistr/u16-cmp2: Likewise.
48275         * modules/unistr/u16-cpy: Likewise.
48276         * modules/unistr/u16-cpy-alloc: Likewise.
48277         * modules/unistr/u16-endswith: Likewise.
48278         * modules/unistr/u16-mblen: Likewise.
48279         * modules/unistr/u16-mbsnlen: Likewise.
48280         * modules/unistr/u16-mbtouc: Likewise.
48281         * modules/unistr/u16-mbtouc-unsafe: Likewise.
48282         * modules/unistr/u16-mbtoucr: Likewise.
48283         * modules/unistr/u16-move: Likewise.
48284         * modules/unistr/u16-next: Likewise.
48285         * modules/unistr/u16-prev: Likewise.
48286         * modules/unistr/u16-set: Likewise.
48287         * modules/unistr/u16-startswith: Likewise.
48288         * modules/unistr/u16-stpcpy: Likewise.
48289         * modules/unistr/u16-stpncpy: Likewise.
48290         * modules/unistr/u16-strcat: Likewise.
48291         * modules/unistr/u16-strchr: Likewise.
48292         * modules/unistr/u16-strcmp: Likewise.
48293         * modules/unistr/u16-strcoll: Likewise.
48294         * modules/unistr/u16-strcpy: Likewise.
48295         * modules/unistr/u16-strcspn: Likewise.
48296         * modules/unistr/u16-strdup: Likewise.
48297         * modules/unistr/u16-strlen: Likewise.
48298         * modules/unistr/u16-strmblen: Likewise.
48299         * modules/unistr/u16-strmbtouc: Likewise.
48300         * modules/unistr/u16-strncat: Likewise.
48301         * modules/unistr/u16-strncmp: Likewise.
48302         * modules/unistr/u16-strncpy: Likewise.
48303         * modules/unistr/u16-strnlen: Likewise.
48304         * modules/unistr/u16-strpbrk: Likewise.
48305         * modules/unistr/u16-strrchr: Likewise.
48306         * modules/unistr/u16-strspn: Likewise.
48307         * modules/unistr/u16-strstr: Likewise.
48308         * modules/unistr/u16-strtok: Likewise.
48309         * modules/unistr/u16-to-u32: Likewise.
48310         * modules/unistr/u16-to-u8: Likewise.
48311         * modules/unistr/u16-uctomb: Likewise.
48312         * modules/unistr/u32-check: Likewise.
48313         * modules/unistr/u32-chr: Likewise.
48314         * modules/unistr/u32-cmp: Likewise.
48315         * modules/unistr/u32-cmp2: Likewise.
48316         * modules/unistr/u32-cpy: Likewise.
48317         * modules/unistr/u32-cpy-alloc: Likewise.
48318         * modules/unistr/u32-endswith: Likewise.
48319         * modules/unistr/u32-mblen: Likewise.
48320         * modules/unistr/u32-mbsnlen: Likewise.
48321         * modules/unistr/u32-mbtouc: Likewise.
48322         * modules/unistr/u32-mbtouc-unsafe: Likewise.
48323         * modules/unistr/u32-mbtoucr: Likewise.
48324         * modules/unistr/u32-move: Likewise.
48325         * modules/unistr/u32-next: Likewise.
48326         * modules/unistr/u32-prev: Likewise.
48327         * modules/unistr/u32-set: Likewise.
48328         * modules/unistr/u32-startswith: Likewise.
48329         * modules/unistr/u32-stpcpy: Likewise.
48330         * modules/unistr/u32-stpncpy: Likewise.
48331         * modules/unistr/u32-strcat: Likewise.
48332         * modules/unistr/u32-strchr: Likewise.
48333         * modules/unistr/u32-strcmp: Likewise.
48334         * modules/unistr/u32-strcoll: Likewise.
48335         * modules/unistr/u32-strcpy: Likewise.
48336         * modules/unistr/u32-strcspn: Likewise.
48337         * modules/unistr/u32-strdup: Likewise.
48338         * modules/unistr/u32-strlen: Likewise.
48339         * modules/unistr/u32-strmblen: Likewise.
48340         * modules/unistr/u32-strmbtouc: Likewise.
48341         * modules/unistr/u32-strncat: Likewise.
48342         * modules/unistr/u32-strncmp: Likewise.
48343         * modules/unistr/u32-strncpy: Likewise.
48344         * modules/unistr/u32-strnlen: Likewise.
48345         * modules/unistr/u32-strpbrk: Likewise.
48346         * modules/unistr/u32-strrchr: Likewise.
48347         * modules/unistr/u32-strspn: Likewise.
48348         * modules/unistr/u32-strstr: Likewise.
48349         * modules/unistr/u32-strtok: Likewise.
48350         * modules/unistr/u32-to-u16: Likewise.
48351         * modules/unistr/u32-to-u8: Likewise.
48352         * modules/unistr/u32-uctomb: Likewise.
48353         * modules/uniwbrk/u8-wordbreaks: Likewise.
48354         * modules/uniwbrk/u16-wordbreaks: Likewise.
48355         * modules/uniwbrk/u32-wordbreaks: Likewise.
48356         * modules/uniwbrk/ulc-wordbreaks: Likewise.
48357         * modules/uniwbrk/wordbreak-property: Likewise.
48358         * modules/uniwidth/u8-strwidth: Likewise.
48359         * modules/uniwidth/u8-width: Likewise.
48360         * modules/uniwidth/u16-strwidth: Likewise.
48361         * modules/uniwidth/u16-width: Likewise.
48362         * modules/uniwidth/u32-strwidth: Likewise.
48363         * modules/uniwidth/u32-width: Likewise.
48364         * modules/uniwidth/width: Likewise.
48365         * modules/unicase/cased-tests (Makefile.am): Link all test programs
48366         with $(LIBUNISTRING).
48367         * modules/unicase/ignorable-tests: Likewise.
48368         * modules/unicase/locale-language-tests: Likewise.
48369         * modules/unicase/tolower-tests: Likewise.
48370         * modules/unicase/totitle-tests: Likewise.
48371         * modules/unicase/toupper-tests: Likewise.
48372         * modules/unicase/u8-casecmp-tests: Likewise.
48373         * modules/unicase/u8-casecoll-tests: Likewise.
48374         * modules/unicase/u8-casefold-tests: Likewise.
48375         * modules/unicase/u8-is-cased-tests: Likewise.
48376         * modules/unicase/u8-is-casefolded-tests: Likewise.
48377         * modules/unicase/u8-is-lowercase-tests: Likewise.
48378         * modules/unicase/u8-is-titlecase-tests: Likewise.
48379         * modules/unicase/u8-is-uppercase-tests: Likewise.
48380         * modules/unicase/u8-tolower-tests: Likewise.
48381         * modules/unicase/u8-totitle-tests: Likewise.
48382         * modules/unicase/u8-toupper-tests: Likewise.
48383         * modules/unicase/u16-casecmp-tests: Likewise.
48384         * modules/unicase/u16-casecoll-tests: Likewise.
48385         * modules/unicase/u16-casefold-tests: Likewise.
48386         * modules/unicase/u16-is-cased-tests: Likewise.
48387         * modules/unicase/u16-is-casefolded-tests: Likewise.
48388         * modules/unicase/u16-is-lowercase-tests: Likewise.
48389         * modules/unicase/u16-is-titlecase-tests: Likewise.
48390         * modules/unicase/u16-is-uppercase-tests: Likewise.
48391         * modules/unicase/u16-tolower-tests: Likewise.
48392         * modules/unicase/u16-totitle-tests: Likewise.
48393         * modules/unicase/u16-toupper-tests: Likewise.
48394         * modules/unicase/u32-casecmp-tests: Likewise.
48395         * modules/unicase/u32-casecoll-tests: Likewise.
48396         * modules/unicase/u32-casefold-tests: Likewise.
48397         * modules/unicase/u32-is-cased-tests: Likewise.
48398         * modules/unicase/u32-is-casefolded-tests: Likewise.
48399         * modules/unicase/u32-is-lowercase-tests: Likewise.
48400         * modules/unicase/u32-is-titlecase-tests: Likewise.
48401         * modules/unicase/u32-is-uppercase-tests: Likewise.
48402         * modules/unicase/u32-tolower-tests: Likewise.
48403         * modules/unicase/u32-totitle-tests: Likewise.
48404         * modules/unicase/u32-toupper-tests: Likewise.
48405         * modules/unicase/ulc-casecmp-tests: Likewise.
48406         * modules/unicase/ulc-casecoll-tests: Likewise.
48407         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
48408         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
48409         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
48410         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
48411         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
48412         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
48413         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
48414         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
48415         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
48416         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
48417         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
48418         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
48419         * modules/unictype/bidicategory-byname-tests: Likewise.
48420         * modules/unictype/bidicategory-name-tests: Likewise.
48421         * modules/unictype/bidicategory-of-tests: Likewise.
48422         * modules/unictype/bidicategory-test-tests: Likewise.
48423         * modules/unictype/block-list-tests: Likewise.
48424         * modules/unictype/block-of-tests: Likewise.
48425         * modules/unictype/block-test-tests: Likewise.
48426         * modules/unictype/category-C-tests: Likewise.
48427         * modules/unictype/category-Cc-tests: Likewise.
48428         * modules/unictype/category-Cf-tests: Likewise.
48429         * modules/unictype/category-Cn-tests: Likewise.
48430         * modules/unictype/category-Co-tests: Likewise.
48431         * modules/unictype/category-Cs-tests: Likewise.
48432         * modules/unictype/category-L-tests: Likewise.
48433         * modules/unictype/category-Ll-tests: Likewise.
48434         * modules/unictype/category-Lm-tests: Likewise.
48435         * modules/unictype/category-Lo-tests: Likewise.
48436         * modules/unictype/category-Lt-tests: Likewise.
48437         * modules/unictype/category-Lu-tests: Likewise.
48438         * modules/unictype/category-M-tests: Likewise.
48439         * modules/unictype/category-Mc-tests: Likewise.
48440         * modules/unictype/category-Me-tests: Likewise.
48441         * modules/unictype/category-Mn-tests: Likewise.
48442         * modules/unictype/category-N-tests: Likewise.
48443         * modules/unictype/category-Nd-tests: Likewise.
48444         * modules/unictype/category-Nl-tests: Likewise.
48445         * modules/unictype/category-No-tests: Likewise.
48446         * modules/unictype/category-P-tests: Likewise.
48447         * modules/unictype/category-Pc-tests: Likewise.
48448         * modules/unictype/category-Pd-tests: Likewise.
48449         * modules/unictype/category-Pe-tests: Likewise.
48450         * modules/unictype/category-Pf-tests: Likewise.
48451         * modules/unictype/category-Pi-tests: Likewise.
48452         * modules/unictype/category-Po-tests: Likewise.
48453         * modules/unictype/category-Ps-tests: Likewise.
48454         * modules/unictype/category-S-tests: Likewise.
48455         * modules/unictype/category-Sc-tests: Likewise.
48456         * modules/unictype/category-Sk-tests: Likewise.
48457         * modules/unictype/category-Sm-tests: Likewise.
48458         * modules/unictype/category-So-tests: Likewise.
48459         * modules/unictype/category-Z-tests: Likewise.
48460         * modules/unictype/category-Zl-tests: Likewise.
48461         * modules/unictype/category-Zp-tests: Likewise.
48462         * modules/unictype/category-Zs-tests: Likewise.
48463         * modules/unictype/category-and-not-tests: Likewise.
48464         * modules/unictype/category-and-tests: Likewise.
48465         * modules/unictype/category-byname-tests: Likewise.
48466         * modules/unictype/category-name-tests: Likewise.
48467         * modules/unictype/category-none-tests: Likewise.
48468         * modules/unictype/category-of-tests: Likewise.
48469         * modules/unictype/category-or-tests: Likewise.
48470         * modules/unictype/category-test-withtable-tests: Likewise.
48471         * modules/unictype/combining-class-tests: Likewise.
48472         * modules/unictype/ctype-alnum-tests: Likewise.
48473         * modules/unictype/ctype-alpha-tests: Likewise.
48474         * modules/unictype/ctype-blank-tests: Likewise.
48475         * modules/unictype/ctype-cntrl-tests: Likewise.
48476         * modules/unictype/ctype-digit-tests: Likewise.
48477         * modules/unictype/ctype-graph-tests: Likewise.
48478         * modules/unictype/ctype-lower-tests: Likewise.
48479         * modules/unictype/ctype-print-tests: Likewise.
48480         * modules/unictype/ctype-punct-tests: Likewise.
48481         * modules/unictype/ctype-space-tests: Likewise.
48482         * modules/unictype/ctype-upper-tests: Likewise.
48483         * modules/unictype/ctype-xdigit-tests: Likewise.
48484         * modules/unictype/decimal-digit-tests: Likewise.
48485         * modules/unictype/digit-tests: Likewise.
48486         * modules/unictype/mirror-tests: Likewise.
48487         * modules/unictype/numeric-tests: Likewise.
48488         * modules/unictype/property-alphabetic-tests: Likewise.
48489         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
48490         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
48491         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
48492         * modules/unictype/property-bidi-block-separator-tests: Likewise.
48493         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
48494         * modules/unictype/property-bidi-common-separator-tests: Likewise.
48495         * modules/unictype/property-bidi-control-tests: Likewise.
48496         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
48497         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
48498         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
48499         * modules/unictype/property-bidi-european-digit-tests: Likewise.
48500         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
48501         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
48502         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
48503         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
48504         * modules/unictype/property-bidi-pdf-tests: Likewise.
48505         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
48506         * modules/unictype/property-bidi-whitespace-tests: Likewise.
48507         * modules/unictype/property-byname-tests: Likewise.
48508         * modules/unictype/property-combining-tests: Likewise.
48509         * modules/unictype/property-composite-tests: Likewise.
48510         * modules/unictype/property-currency-symbol-tests: Likewise.
48511         * modules/unictype/property-dash-tests: Likewise.
48512         * modules/unictype/property-decimal-digit-tests: Likewise.
48513         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
48514         * modules/unictype/property-deprecated-tests: Likewise.
48515         * modules/unictype/property-diacritic-tests: Likewise.
48516         * modules/unictype/property-extender-tests: Likewise.
48517         * modules/unictype/property-format-control-tests: Likewise.
48518         * modules/unictype/property-grapheme-base-tests: Likewise.
48519         * modules/unictype/property-grapheme-extend-tests: Likewise.
48520         * modules/unictype/property-grapheme-link-tests: Likewise.
48521         * modules/unictype/property-hex-digit-tests: Likewise.
48522         * modules/unictype/property-hyphen-tests: Likewise.
48523         * modules/unictype/property-id-continue-tests: Likewise.
48524         * modules/unictype/property-id-start-tests: Likewise.
48525         * modules/unictype/property-ideographic-tests: Likewise.
48526         * modules/unictype/property-ids-binary-operator-tests: Likewise.
48527         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
48528         * modules/unictype/property-ignorable-control-tests: Likewise.
48529         * modules/unictype/property-iso-control-tests: Likewise.
48530         * modules/unictype/property-join-control-tests: Likewise.
48531         * modules/unictype/property-left-of-pair-tests: Likewise.
48532         * modules/unictype/property-line-separator-tests: Likewise.
48533         * modules/unictype/property-logical-order-exception-tests: Likewise.
48534         * modules/unictype/property-lowercase-tests: Likewise.
48535         * modules/unictype/property-math-tests: Likewise.
48536         * modules/unictype/property-non-break-tests: Likewise.
48537         * modules/unictype/property-not-a-character-tests: Likewise.
48538         * modules/unictype/property-numeric-tests: Likewise.
48539         * modules/unictype/property-other-alphabetic-tests: Likewise.
48540         * modules/unictype/property-other-default-ignorable-code-point-tests:
48541         Likewise.
48542         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
48543         * modules/unictype/property-other-id-continue-tests: Likewise.
48544         * modules/unictype/property-other-id-start-tests: Likewise.
48545         * modules/unictype/property-other-lowercase-tests: Likewise.
48546         * modules/unictype/property-other-math-tests: Likewise.
48547         * modules/unictype/property-other-uppercase-tests: Likewise.
48548         * modules/unictype/property-paired-punctuation-tests: Likewise.
48549         * modules/unictype/property-paragraph-separator-tests: Likewise.
48550         * modules/unictype/property-pattern-syntax-tests: Likewise.
48551         * modules/unictype/property-pattern-white-space-tests: Likewise.
48552         * modules/unictype/property-private-use-tests: Likewise.
48553         * modules/unictype/property-punctuation-tests: Likewise.
48554         * modules/unictype/property-quotation-mark-tests: Likewise.
48555         * modules/unictype/property-radical-tests: Likewise.
48556         * modules/unictype/property-sentence-terminal-tests: Likewise.
48557         * modules/unictype/property-soft-dotted-tests: Likewise.
48558         * modules/unictype/property-space-tests: Likewise.
48559         * modules/unictype/property-terminal-punctuation-tests: Likewise.
48560         * modules/unictype/property-test-tests: Likewise.
48561         * modules/unictype/property-titlecase-tests: Likewise.
48562         * modules/unictype/property-unassigned-code-value-tests: Likewise.
48563         * modules/unictype/property-unified-ideograph-tests: Likewise.
48564         * modules/unictype/property-uppercase-tests: Likewise.
48565         * modules/unictype/property-variation-selector-tests: Likewise.
48566         * modules/unictype/property-white-space-tests: Likewise.
48567         * modules/unictype/property-xid-continue-tests: Likewise.
48568         * modules/unictype/property-xid-start-tests: Likewise.
48569         * modules/unictype/property-zero-width-tests: Likewise.
48570         * modules/unictype/scripts-tests: Likewise.
48571         * modules/unictype/syntax-c-ident-tests: Likewise.
48572         * modules/unictype/syntax-c-whitespace-tests: Likewise.
48573         * modules/unictype/syntax-java-ident-tests: Likewise.
48574         * modules/unictype/syntax-java-whitespace-tests: Likewise.
48575         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
48576         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
48577         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
48578         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
48579         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
48580         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
48581         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
48582         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
48583         * modules/uniname/uniname-tests: Likewise.
48584         * modules/uninorm/canonical-decomposition-tests: Likewise.
48585         * modules/uninorm/compat-decomposition-tests: Likewise.
48586         * modules/uninorm/composition-tests: Likewise.
48587         * modules/uninorm/decomposing-form-tests: Likewise.
48588         * modules/uninorm/decomposition-tests: Likewise.
48589         * modules/uninorm/filter-tests: Likewise.
48590         * modules/uninorm/nfc-tests: Likewise.
48591         * modules/uninorm/nfd-tests: Likewise.
48592         * modules/uninorm/nfkc-tests: Likewise.
48593         * modules/uninorm/nfkd-tests: Likewise.
48594         * modules/uninorm/u8-normcmp-tests: Likewise.
48595         * modules/uninorm/u8-normcoll-tests: Likewise.
48596         * modules/uninorm/u16-normcmp-tests: Likewise.
48597         * modules/uninorm/u16-normcoll-tests: Likewise.
48598         * modules/uninorm/u32-normcmp-tests: Likewise.
48599         * modules/uninorm/u32-normcoll-tests: Likewise.
48600         * modules/unistdio/u8-asnprintf-tests: Likewise.
48601         * modules/unistdio/u8-vasnprintf-tests: Likewise.
48602         * modules/unistdio/u8-vasprintf-tests: Likewise.
48603         * modules/unistdio/u8-vsnprintf-tests: Likewise.
48604         * modules/unistdio/u8-vsprintf-tests: Likewise.
48605         * modules/unistdio/u16-asnprintf-tests: Likewise.
48606         * modules/unistdio/u16-vasnprintf-tests: Likewise.
48607         * modules/unistdio/u16-vasprintf-tests: Likewise.
48608         * modules/unistdio/u16-vsnprintf-tests: Likewise.
48609         * modules/unistdio/u16-vsprintf-tests: Likewise.
48610         * modules/unistdio/u32-asnprintf-tests: Likewise.
48611         * modules/unistdio/u32-vasnprintf-tests: Likewise.
48612         * modules/unistdio/u32-vasprintf-tests: Likewise.
48613         * modules/unistdio/u32-vsnprintf-tests: Likewise.
48614         * modules/unistdio/u32-vsprintf-tests: Likewise.
48615         * modules/unistdio/ulc-asnprintf-tests: Likewise.
48616         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
48617         * modules/unistdio/ulc-vasprintf-tests: Likewise.
48618         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
48619         * modules/unistdio/ulc-vsprintf-tests: Likewise.
48620         * modules/unistr/u8-check-tests: Likewise.
48621         * modules/unistr/u8-chr-tests: Likewise.
48622         * modules/unistr/u8-cmp-tests: Likewise.
48623         * modules/unistr/u8-cmp2-tests: Likewise.
48624         * modules/unistr/u8-cpy-alloc-tests: Likewise.
48625         * modules/unistr/u8-cpy-tests: Likewise.
48626         * modules/unistr/u8-mblen-tests: Likewise.
48627         * modules/unistr/u8-mbsnlen-tests: Likewise.
48628         * modules/unistr/u8-mbtouc-tests: Likewise.
48629         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
48630         * modules/unistr/u8-mbtoucr-tests: Likewise.
48631         * modules/unistr/u8-move-tests: Likewise.
48632         * modules/unistr/u8-next-tests: Likewise.
48633         * modules/unistr/u8-prev-tests: Likewise.
48634         * modules/unistr/u8-set-tests: Likewise.
48635         * modules/unistr/u8-stpcpy-tests: Likewise.
48636         * modules/unistr/u8-stpncpy-tests: Likewise.
48637         * modules/unistr/u8-strcat-tests: Likewise.
48638         * modules/unistr/u8-strcmp-tests: Likewise.
48639         * modules/unistr/u8-strcoll-tests: Likewise.
48640         * modules/unistr/u8-strcpy-tests: Likewise.
48641         * modules/unistr/u8-strdup-tests: Likewise.
48642         * modules/unistr/u8-strlen-tests: Likewise.
48643         * modules/unistr/u8-strmblen-tests: Likewise.
48644         * modules/unistr/u8-strmbtouc-tests: Likewise.
48645         * modules/unistr/u8-strncat-tests: Likewise.
48646         * modules/unistr/u8-strncmp-tests: Likewise.
48647         * modules/unistr/u8-strncpy-tests: Likewise.
48648         * modules/unistr/u8-strnlen-tests: Likewise.
48649         * modules/unistr/u8-to-u16-tests: Likewise.
48650         * modules/unistr/u8-to-u32-tests: Likewise.
48651         * modules/unistr/u8-uctomb-tests: Likewise.
48652         * modules/unistr/u16-check-tests: Likewise.
48653         * modules/unistr/u16-chr-tests: Likewise.
48654         * modules/unistr/u16-cmp-tests: Likewise.
48655         * modules/unistr/u16-cmp2-tests: Likewise.
48656         * modules/unistr/u16-cpy-alloc-tests: Likewise.
48657         * modules/unistr/u16-cpy-tests: Likewise.
48658         * modules/unistr/u16-mblen-tests: Likewise.
48659         * modules/unistr/u16-mbsnlen-tests: Likewise.
48660         * modules/unistr/u16-mbtouc-tests: Likewise.
48661         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
48662         * modules/unistr/u16-mbtoucr-tests: Likewise.
48663         * modules/unistr/u16-move-tests: Likewise.
48664         * modules/unistr/u16-next-tests: Likewise.
48665         * modules/unistr/u16-prev-tests: Likewise.
48666         * modules/unistr/u16-set-tests: Likewise.
48667         * modules/unistr/u16-stpcpy-tests: Likewise.
48668         * modules/unistr/u16-stpncpy-tests: Likewise.
48669         * modules/unistr/u16-strcat-tests: Likewise.
48670         * modules/unistr/u16-strcmp-tests: Likewise.
48671         * modules/unistr/u16-strcoll-tests: Likewise.
48672         * modules/unistr/u16-strcpy-tests: Likewise.
48673         * modules/unistr/u16-strdup-tests: Likewise.
48674         * modules/unistr/u16-strlen-tests: Likewise.
48675         * modules/unistr/u16-strmblen-tests: Likewise.
48676         * modules/unistr/u16-strmbtouc-tests: Likewise.
48677         * modules/unistr/u16-strncat-tests: Likewise.
48678         * modules/unistr/u16-strncmp-tests: Likewise.
48679         * modules/unistr/u16-strncpy-tests: Likewise.
48680         * modules/unistr/u16-strnlen-tests: Likewise.
48681         * modules/unistr/u16-to-u32-tests: Likewise.
48682         * modules/unistr/u16-to-u8-tests: Likewise.
48683         * modules/unistr/u16-uctomb-tests: Likewise.
48684         * modules/unistr/u32-check-tests: Likewise.
48685         * modules/unistr/u32-chr-tests: Likewise.
48686         * modules/unistr/u32-cmp-tests: Likewise.
48687         * modules/unistr/u32-cmp2-tests: Likewise.
48688         * modules/unistr/u32-cpy-alloc-tests: Likewise.
48689         * modules/unistr/u32-cpy-tests: Likewise.
48690         * modules/unistr/u32-mblen-tests: Likewise.
48691         * modules/unistr/u32-mbsnlen-tests: Likewise.
48692         * modules/unistr/u32-mbtouc-tests: Likewise.
48693         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
48694         * modules/unistr/u32-mbtoucr-tests: Likewise.
48695         * modules/unistr/u32-move-tests: Likewise.
48696         * modules/unistr/u32-next-tests: Likewise.
48697         * modules/unistr/u32-prev-tests: Likewise.
48698         * modules/unistr/u32-set-tests: Likewise.
48699         * modules/unistr/u32-stpcpy-tests: Likewise.
48700         * modules/unistr/u32-stpncpy-tests: Likewise.
48701         * modules/unistr/u32-strcat-tests: Likewise.
48702         * modules/unistr/u32-strcmp-tests: Likewise.
48703         * modules/unistr/u32-strcoll-tests: Likewise.
48704         * modules/unistr/u32-strcpy-tests: Likewise.
48705         * modules/unistr/u32-strdup-tests: Likewise.
48706         * modules/unistr/u32-strlen-tests: Likewise.
48707         * modules/unistr/u32-strmblen-tests: Likewise.
48708         * modules/unistr/u32-strmbtouc-tests: Likewise.
48709         * modules/unistr/u32-strncat-tests: Likewise.
48710         * modules/unistr/u32-strncmp-tests: Likewise.
48711         * modules/unistr/u32-strncpy-tests: Likewise.
48712         * modules/unistr/u32-strnlen-tests: Likewise.
48713         * modules/unistr/u32-to-u16-tests: Likewise.
48714         * modules/unistr/u32-to-u8-tests: Likewise.
48715         * modules/unistr/u32-uctomb-tests: Likewise.
48716         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
48717         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
48718         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
48719         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
48720         * modules/uniwidth/u8-strwidth-tests: Likewise.
48721         * modules/uniwidth/u8-width-tests: Likewise.
48722         * modules/uniwidth/u16-strwidth-tests: Likewise.
48723         * modules/uniwidth/u16-width-tests: Likewise.
48724         * modules/uniwidth/u32-strwidth-tests: Likewise.
48725         * modules/uniwidth/u32-width-tests: Likewise.
48726         * modules/uniwidth/width-tests: Likewise.
48728 2010-05-18  Richard Jones  <rjones@redhat.com>
48730         doc: users.txt: list hivex
48731         * users.txt: Add hivex.
48733 2010-05-18  Richard Jones  <rjones@redhat.com>
48735         doc: users.txt: list febootstrap
48736         * users.txt: Add febootstrap.
48738 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
48740         bootstrap: fix an error when gnulib is not used as a git submodule
48741         * build-aux/bootstrap (gnulib_path): If its length is zero then
48742         assign "gnulib" to it.
48743         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
48745 2010-05-16  Bruno Haible  <bruno@clisp.org>
48747         Avoid autoconf warnings about AM_ICONV.
48748         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
48749         2.64.
48751 2010-05-16  Bruno Haible  <bruno@clisp.org>
48753         absolute-header: Make the macro usable in more situations.
48754         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
48755         from gl_ABSOLUTE_HEADER.
48756         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
48758 2010-05-16  James Youngman  <jay@gnu.org>
48760         doc: update users.txt
48761         * users.txt: Add CSSC.
48763 2010-05-16  Jim Meyering  <meyering@redhat.com>
48765         init.sh: fix an error in the previous change; add more comments
48766         * tests/init.sh: Compare exit code in loop against 9, not 2.
48767         Patch by Bruno Haible.
48768         Make the two tests more similar by adding an empty "then" clause.
48769         Add comments.
48771         init.sh: avoid unnecessary shell re-exec
48772         * tests/init.sh: Improve the re-exec-required check to first test the
48773         current shell.  If it passes the test, do not search for a shell that
48774         does pass, and do not re-exec.  This test is particularly contorted to
48775         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
48776         of $(...) evokes a syntax error and causes immediate shell exit with
48777         status 2.  Bruno Haible reported that the re-exec made it impossible
48778         to single-step through any init.sh-using script.
48780 2010-05-16  Bruno Haible  <bruno@clisp.org>
48782         Fix collision between gnulib's and libintl's printf replacements.
48783         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
48784         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
48785         (printf): When using GNU C, map the __printf__ function to rpl_printf
48786         via __asm__. When not using GNU C, define rpl_printf instead of
48787         __printf__.
48788         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
48789         commit.
48790         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
48791         commit.
48792         * m4/asm-underscore.m4: New file.
48793         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
48794         * modules/stdio (Files): Add m4/asm-underscore.m4.
48795         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
48796         Reported by Ben Pfaff.
48798 2010-05-16  Bruno Haible  <bruno@clisp.org>
48800         verify: Avoid skipping the test on openSUSE 11.0.
48801         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
48803 2010-05-13  Bruno Haible  <bruno@clisp.org>
48805         Avoid useless warnings from G++.
48806         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
48807         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
48808         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48810 2010-05-11  Jim Meyering  <meyering@redhat.com>
48812         maint.mk: tweak preceding change
48813         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
48814         regexps tighter by anchoring at EOL, and make the new group "shy"
48815         for slightly decreased overhead.
48817 2010-05-11  Eric Blake  <eblake@redhat.com>
48819         maint.mk: gnulib doesn't guarantee NSIG
48820         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
48822 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48824         test-pwrite.c: Remove unused variable declaration.
48825         * tests/test-pwrite.c (main): Remove read_buf declaration.
48827         Remove useless test-pwrite.sh file.
48828         * tests/test-pwrite.sh: Delete file.
48829         * modules/pwrite-tests: Remove references.
48830         Reported by Bruno Haible.
48832 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48834         init.sh: fix a typo
48835         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
48837 2010-05-10  Jim Meyering  <meyering@redhat.com>
48839         maint.mk: avoid using a temporary file in the always-defined-macros check
48840         * top/maint.mk (.re-defmac): Remove rule.
48841         (gl_trap_): Remove definition.
48842         (sc_prohibit_always-defined_macros): Rewrite not to create and
48843         depend on a temporary file.  Instead, depend on GNU grep's ability
48844         to read a list of regular expressions from stdin when given "-f -".
48846 2010-05-09  Bruno Haible  <bruno@clisp.org>
48848         Update to GNU gettext 0.18, part 1.
48849         * m4/gettext.m4: Update to GNU gettext 0.18.
48850         * m4/intl.m4: Likewise.
48851         * m4/po.m4: Likewise.
48852         * modules/gettext (Files): Add m4/fcntl-o.m4.
48853         (configure.ac): Require gettext infrastructure from version 0.18.
48855 2010-05-09  Jim Meyering  <meyering@redhat.com>
48857         init.sh: enable MALLOC_PERTURB_
48858         * tests/init.sh: Enable glibc's malloc-perturbing option.
48860         maint.mk: improve sc_cross_check_PATH_usage_in_tests
48861         With my recent change in init.sh from the two-line form:
48862             -#   : ${srcdir=.}
48863             -#   . "$srcdir/init.sh"; path_prepend_ .
48864             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
48865         I noticed that using the one-line form would cause this test
48866         to fail with a false-positive, or to stop working altogether,
48867         depending on whether help-version changed or all the tests did.
48868         * top/maint.mk (_hv_regex): Remove this definition.
48869         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
48870         (_hv_regex_strong): Use a stronger regex to check for conformance.
48871         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
48872         Give a separate diagnostic for lack of conforming use.
48874         maint.mk: prohibit definition of symbols defined by gnulib
48875         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
48876         definition of symbols defined by gnulib.
48878 2010-05-09  Bruno Haible  <bruno@clisp.org>
48880         acl: Avoid test failure on Cygwin-hosted mingw.
48881         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
48883 2010-05-09  Bruno Haible  <bruno@clisp.org>
48885         error: Use system's fcntl function.
48886         * lib/error.c (fcntl): Undefine.
48888 2010-05-09  Jim Meyering  <meyering@redhat.com>
48890         verify: adjust formatting to be more consistent
48891         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
48892         argument-list '('s, and after one comma.
48894 2010-05-09  Bruno Haible  <bruno@clisp.org>
48896         error: More reliable output on mingw.
48897         * lib/error.c: Include <windows.h>.
48898         (is_open): New function.
48899         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
48900         defined.
48902 2010-05-09  Bruno Haible  <bruno@clisp.org>
48904         vasnprintf: Fix syntax errors in libintl build on mingw.
48905         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
48906         pad_ourselves and prec_ourselves after use.
48908 2010-05-08  Bruno Haible  <bruno@clisp.org>
48910         * lib/config.charset: Update comments for Cygwin 1.7.
48911         * lib/localcharset.c: Likewise.
48913 2010-05-07  Jim Meyering  <meyering@redhat.com>
48915         init.sh: improve comments
48916         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
48917         . "${srcdir=.}/init.sh"; path_prepend_ .
48918         Add a note about path_prepend_ and the alternative of using
48919         TESTS_ENVIRONMENT.
48921 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
48923         exclude: Unescape hashed patterns in wildcard mode.
48924         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
48925         to the hash list.
48926         * tests/test-exclude8.sh: New test case.
48927         * modules/exclude-tests: Add new test.
48929 2010-05-05  Eric Blake  <eblake@redhat.com>
48931         verify: automate tests
48932         * modules/verify-tests: New module.
48933         * tests/test-verify.sh: New file.
48934         * tests/test-verify.c: Guard each negative test with a unique id.
48935         Also avoid warning about unused left hand of comma expressions.
48937 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48939         Further improvements to verify.h, suggested by Eric Blake.
48940         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
48941         the GL_* versions, to avoid collision with OpenGL.
48942         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
48943         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
48944         than testing merely whether it's defined.
48946         Modify verify.h to pacify gcc -Wredundant_decls.
48947         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
48948         These use the prefix "GL_" since they're likely to be useful elsewhere.
48949         We may need to break them out into a different .h file.
48950         (__COUNTER__): Define to 0 if the compiler doesn't support it.
48951         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
48952         of verify_function__.
48954 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48956         Tests for module pwrite.
48957         * modules/pwrite-tests: New file.
48958         * tests/test-pwrite.sh: New file.
48959         * tests/test-pwrite.c: New file.
48961         New module pwrite.
48962         * lib/unistd.in.h (pwrite): New declaration.
48963         * lib/pwrite.c: New file, from glibc with modifications.
48964         * m4/pwrite.m4: New file.
48965         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
48966         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
48967         REPLACE_PWRITE.
48968         * modules/pwrite: New file.
48969         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
48970         REPLACE_PWRITE.
48971         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
48972         * doc/posix-functions/pwrite.texi: Mention the new module.
48974 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48976         pread: Update documentation.
48977         * doc/posix-functions/pread.texi: Mention the 'pread' module.
48979 2010-05-04  Eric Blake  <eblake@redhat.com>
48981         docs: update cygwin progress
48982         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
48983         this bug.
48984         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
48985         Added in cygwin 1.7.2.
48986         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
48987         Likewise.
48988         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
48989         Likewise.
48990         * doc/glibc-functions/dup3.texi (dup3): Likewise.
48991         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48992         * doc/glibc-functions/accept4.texi (accept4): Likewise.
48993         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
48994         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
48995         Mention nproc module.
48996         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
48997         bug in cygwin 1.7.5 addition.
48998         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
48999         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
49000         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
49001         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
49002         1.7.5.
49003         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
49004         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
49005         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
49006         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
49007         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
49008         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
49009         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
49010         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
49011         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
49012         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
49013         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
49014         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
49015         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
49016         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
49017         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
49018         Likewise.
49019         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
49020         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
49021         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
49022         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
49023         Likewise.
49024         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
49025         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
49026         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
49027         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
49028         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
49029         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
49030         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
49031         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
49032         Likewise.
49033         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
49034         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
49035         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
49036         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
49037         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
49038         Likewise.
49039         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
49040         Likewise.
49041         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
49042         Likewise.
49043         * doc/glibc-functions/xdrrec_endofrecord.texi
49044         (xdrrec_endofrecord): Likewise.
49045         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
49046         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
49047         Likewise.
49048         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
49049         Likewise.
49051 2010-05-04  Jim Meyering  <meyering@redhat.com>
49053         gendocs.sh: make its "-s FILE" option more useful
49054         * build-aux/gendocs.sh: When honoring the -s FILE option, update
49055         $PACKAGE to reflect the probably-different basename of "FILE".
49057 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49059         bootstrap: don't ignore download_po_files failure
49060         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
49061         failure.
49063 2010-05-03  Jim Meyering  <meyering@redhat.com>
49065         maint.mk: allow to pass options to gendocs.sh
49066         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
49067         (gendocs_options_): New overridable variable.
49069         gnu-web-doc-update: don't ignore configure or build failure
49070         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
49072         announce-gen: backslash-escape '@'s in --help output
49073         * build-aux/announce-gen: Fix syntax errors.
49075         maint.mk, announce-gen: allow project-specific announcement mail headers
49076         * top/maint.mk (translation_project_): Define default.
49077         (announcement_Cc_, announcement_mail_headers_): Likewise.
49078         (announcement): Invoke announce-gen with new --mail-headers option.
49079         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
49081         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
49082         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
49083         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
49084         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
49085         line in the "err2" output file when running "make check" in verbose
49086         mode (i.e., with set -x enabled).
49088 2010-05-03  Bruno Haible  <bruno@clisp.org>
49090         wctob: Fix for weird platforms.
49091         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
49092         argument value.
49094 2010-05-03  Jim Meyering  <meyering@redhat.com>
49096         maint.mk: prohibit unwarranted use of <strings.h>
49097         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
49098         strings.h in a file that does not also use strcasecmp, strncasecmp,
49099         ffs or ffsll.
49101         maint.mk: remove obsolete comments
49102         * top/maint.mk: Remove stale, commented-out rules.
49104 2010-05-02  Bruno Haible  <bruno@clisp.org>
49106         wcwidth: Declare also when it's aliased.
49107         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
49108         macro.
49110 2010-05-02  Bruno Haible  <bruno@clisp.org>
49112         Fix regression from 2010-04-25.
49113         * gnulib-tool (func_modules_transitive_closure): Check the status of
49114         all modules, not only of the tests that are of the form foo-tests where
49115         foo is a module.
49117 2010-05-02  Bruno Haible  <bruno@clisp.org>
49119         wctob: Work around nasty Cygwin 1.7.2 bug.
49120         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
49121         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
49123 2010-05-01  Bruno Haible  <bruno@clisp.org>
49125         fpurge: Sharper test.
49126         * tests/test-fpurge.c (main): Add one more ftell check.
49127         * modules/fpurge-tests (Depends-on): Add ftell.
49128         Suggested by Eric Blake.
49130 2010-05-01  Bruno Haible  <bruno@clisp.org>
49132         ftello: Another test.
49133         * tests/test-ftello3.c: New file.
49134         * modules/ftello-tests (Files): Add it.
49135         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49136         MOSTLYCLEANFILES.
49138         ftell: Another test.
49139         * tests/test-ftell3.c: New file.
49140         * modules/ftell-tests (Files): Add it.
49141         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49142         MOSTLYCLEANFILES.
49144 2010-05-01  Bruno Haible  <bruno@clisp.org>
49146         ftell, ftello: Work around Solaris bug.
49147         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
49148         * lib/ftello.c: Include stdio-impl.h.
49149         (ftello): On Solaris, when _IOWRT is set, compute the result without
49150         looking at _IOREAD.
49151         * modules/ftello (Files): Add lib/stdio-impl.h.
49152         * doc/posix-functions/ftell.texi: Mention Solaris bug.
49153         * doc/posix-functions/ftello.texi: Likewise.
49154         Reported by Eric Blake.
49156 2010-05-01  Bruno Haible  <bruno@clisp.org>
49158         freading: Adapt to special meaning of _IOREAD flag on Solaris.
49159         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
49160         the _IOWRT flag is also set.
49162 2010-05-01  Bruno Haible  <bruno@clisp.org>
49164         Fix doc about a HP-UX stdio bug.
49165         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
49166         * doc/posix-functions/ftello.texi: Likewise.
49168 2010-05-01  Bruno Haible  <bruno@clisp.org>
49170         lseek test: Fix failure on Solaris.
49171         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
49172         output.
49174 2010-04-30  Jim Meyering  <meyering@redhat.com>
49176         bootstrap: don't ignore failure to generate po*/Makevars
49177         * build-aux/bootstrap (with_gettext): Don't ignore failure
49178         to create po/Makevars or runtime-po/Makevars.
49180 2010-04-29  Eric Blake  <eblake@redhat.com>
49182         headers: relax license to LGPLv2+
49183         * modules/fcntl-h (License): Relax license.
49184         * modules/getopt-posix (License): Likewise.
49185         * modules/locale (License): Likewise.
49186         * modules/math (License): Likewise.
49187         * modules/pty (License): Likewise.
49188         * modules/sched (License): Likewise.
49189         * modules/search (License): Likewise.
49190         * modules/spawn (License): Likewise.
49191         * modules/stdarg (License): Likewise.
49192         * modules/sysexits (License): Likewise.
49194 2010-04-29  Jim Meyering  <meyering@redhat.com>
49196         inttypes: relax license to LGPLv2+
49197         * modules/inttypes (License): Relax license.
49199 2010-04-29  Simon Josefsson  <simon@josefsson.org>
49201         * top/maint.mk (indent): Run twice to produce idempotent results.
49203 2010-04-28  Bruno Haible  <bruno@clisp.org>
49205         getdate: Generate getdate.c in the source directory.
49206         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
49207         MOSTLYCLEANFILES.
49208         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
49210 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
49212         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
49213         is not declared as a const *; avoid warnings in that case.
49215 2010-04-28  Eric Blake  <eblake@redhat.com>
49217         canonicalize-lgpl: avoid compiler warning
49218         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
49219         declaration' / 'extraneous semicolon' warning with some compilers.
49220         Reported by Andreas Gruenbacher.
49222 2010-04-28  Jim Meyering  <meyering@redhat.com>
49224         init.sh: ensure a more reliable exit status when exiting via trap
49225         * tests/init.sh (setup_): Don't rely on $? in signal handler.
49226         Inspired by patches from Dmitry V. Levin.
49227         Also trap on signal 3 (SIGQUIT).
49229 2010-04-27  Bruno Haible  <bruno@clisp.org>
49231         Update doc about utimes().
49232         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
49233         'utimens' module.
49234         Reported by Andreas Gruenbacher <agruen@suse.de>.
49236 2010-04-27  Eric Blake  <eblake@redhat.com>
49238         full-read, full-write: relax license
49239         * modules/full-read (License): Drop to LGPLv2+.
49240         * modules/full-write (License): Likewise.
49241         * modules/safe-read (License): Likewise.
49242         * modules/safe-write (License): Likewise.
49244         pthread: mention library for linking
49245         * modules/pthread (Link): Mention $(LIB_PTHREAD).
49247 2010-04-27  Jim Meyering  <meyering@redhat.com>
49249         maint.mk: fix a bug introduced in last change
49250         * top/maint.mk (gl_assured_headers_): Now that all names are on
49251         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
49252         is not anchored to end of word, it should be adequate.
49254         maint.mk: avoid side-effect in latest syntax-check
49255         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
49256         to run commands via $(shell...), and hence to incur cost only when
49257         the new rule is actually run.
49259         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
49260         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
49261         and use that to create a regexp used to detect all #if HAVE_..._H uses.
49262         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
49263         (gl_assured_headers_, az_, AZ_): Define.
49264         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
49266 2010-04-26  Jim Meyering  <jim@meyering.net>
49267             Bruno Haible  <bruno@clisp.org>
49269         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
49270         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
49271         Prompted by an exchange with Gilles Espinasse.
49273 2010-04-26  Jim Meyering  <meyering@redhat.com>
49275         git-version-gen: aesthetic tweak
49276         * build-aux/git-version-gen: Use "$nl" rather than a literal,
49277         so that the command remains on a single line.
49279 2010-04-26  Eric Blake  <eblake@redhat.com>
49281         git-version-gen: allow use on EBCDIC hosts
49282         * build-aux/git-version-gen (dirty): Use literal rather than tying
49283         ourselves to ascii.
49284         Reported by Steve Goetze.
49286 2010-04-25  Bruno Haible  <bruno@clisp.org>
49288         netdb: Add support for GNULIB_POSIXCHECK.
49289         * lib/netdb.in.h: Include warn-on-use.h.
49290         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
49291         functions are used when GNULIB_POSIXCHECK is defined and the
49292         getaddrinfo module is not in use.
49293         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
49294         freeaddrinfo, gai_strerror, getnameinfo are declared.
49295         * modules/netdb (Depends-on): Add warn-on-use.
49296         (Makefile.am): Include warn-on-use.h in netdb.h.
49298 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
49300         build: avoid "make check" failure without .git/ directory
49301         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
49302         there is no .git/ directory.
49304 2010-04-25  Bruno Haible  <bruno@clisp.org>
49306         ptsname: Fix misuse of ttyname_r.
49307         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
49308         of errno.
49310 2010-04-25  Bruno Haible  <bruno@clisp.org>
49312         ttyname_r: Make it work on Solaris 10.
49313         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
49314         if the system function has the POSIX declaration. Test whether the
49315         function fails if the buffer is less than 128 bytes large.
49316         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
49317         system's ttyname_r function. Provide a reasonably large buffer.
49318         * modules/ttyname_r (Depends-on): Add extensions.
49319         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
49321 2010-04-25  Bruno Haible  <bruno@clisp.org>
49323         Use the 'extensions' module for some more functions on Solaris.
49324         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
49325         module.
49326         * doc/posix-functions/ctime_r.texi: Likewise.
49327         * doc/posix-functions/getgrgid_r.texi: Likewise.
49328         * doc/posix-functions/getgrnam_r.texi: Likewise.
49329         * doc/posix-functions/getpwnam_r.texi: Likewise.
49330         * doc/posix-functions/getpwuid_r.texi: Likewise.
49331         * doc/posix-functions/readdir_r.texi: Likewise.
49332         * doc/posix-functions/sigwait.texi: Likewise.
49333         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
49334         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
49336 2010-04-25  Bruno Haible  <bruno@clisp.org>
49338         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
49339         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
49340         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
49341         * lib/ttyname_r.c: Include <limits.h>.
49342         (ttyname_r): Define using the system's ttyname_r function, if it exists
49343         and not on Solaris.
49344         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
49345         set.
49346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
49347         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
49348         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
49349         Reported by Simon Josefsson.
49351 2010-04-25  Bruno Haible  <bruno@clisp.org>
49353         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
49354         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
49355         * doc/posix-functions/ctime_r.texi: Likewise.
49356         * doc/posix-functions/getgrgid_r.texi: Likewise.
49357         * doc/posix-functions/getgrnam_r.texi: Likewise.
49358         * doc/posix-functions/getlogin_r.texi: Likewise.
49359         * doc/posix-functions/getpwnam_r.texi: Likewise.
49360         * doc/posix-functions/getpwuid_r.texi: Likewise.
49361         * doc/posix-functions/readdir_r.texi: Likewise.
49362         * doc/posix-functions/sigwait.texi: Likewise.
49363         * doc/posix-functions/ttyname_r.texi: Likewise.
49364         Reported by Simon Josefsson.
49366 2010-04-25  Bruno Haible  <bruno@clisp.org>
49368         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
49369         * gnulib-tool (func_usage): Document that --with-*-tests options apply
49370         also to --create-testdir.
49371         (func_acceptable): Don't consider the status of *-tests modules here.
49372         (func_modules_transitive_closure): Consider it here, before including a
49373         test module.
49374         (func_import, func_create_testdir): Set inc_all_direct_tests,
49375         inc_all_indirect_tests.
49376         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
49377         --create-testdir and --create-megatestdir.
49379 2010-04-25  Bruno Haible  <bruno@clisp.org>
49381         gnulib-tool: Add --without-*-tests options.
49382         * gnulib-tool (func_usage): Document the --without-*-tests options.
49383         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
49384         excl_unportable_tests): New variables.
49385         Fail if they are specified with --import or --update.
49386         (func_acceptable): Respect the excl_*_tests variables.
49387         (func_import): Set the excl_*_tests variables to empty.
49389 2010-04-25  Simon Josefsson  <simon@josefsson.org>
49390             Bruno Haible  <bruno@clisp.org>
49392         Work around a MacOS X 10.4 bug with openpty.
49393         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
49394         * tests/test-openpty.c (main): Close the master side explicitly.
49396 2010-04-25  Bruno Haible  <bruno@clisp.org>
49398         strnlen: Fix a C++ test error on MacOS X and Solaris.
49399         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
49400         the function is not declared.
49401         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
49402         Simon Josefsson.
49404 2010-04-24  Bruno Haible  <bruno@clisp.org>
49406         Avoid a gcc warning.
49407         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
49408         of correct type for %08lx directive.
49409         Reported by Eric Blake.
49411 2010-04-24  Bruno Haible  <bruno@clisp.org>
49413         vasnprintf: Correct errno value in case of out-of-memory.
49414         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
49415         or sprintf. Use the errno value from SNPRINTF or sprintf.
49416         Reported by Ian Beckwith <ianb@erislabs.net>.
49418 2010-04-24  Bruno Haible  <bruno@clisp.org>
49420         ansi-c++-opt: Find correct compiler when cross-compiling.
49421         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
49422         AC_CHECK_PROGS.
49423         Reported by Simon Josefsson.
49425 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
49427         vc-list-files: Add support for subversion
49428         * build-aux/vc-list-files: Use "svn list" to generate the list of
49429         files controlled by subversion.
49431 2010-04-23  Jim Meyering  <meyering@redhat.com>
49433         vc-list-files tests: convert to use init.sh
49434         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
49435         path_prepend_.
49436         Use Exit, not exit.
49437         Use skip_ rather than open coding it.
49438         Remove trap set-up and compare definitions.
49439         * tests/test-vc-list-files-git.sh: Likewise.
49440         * modules/vc-list-files-tests (Files): Add tests/init.sh.
49442 2010-04-22  Simon Josefsson  <simon@josefsson.org>
49444         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
49445         backup files.
49447 2010-04-21  Simon Josefsson  <simon@josefsson.org>
49449         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
49451 2010-04-20  Eric Blake  <eblake@redhat.com>
49453         tests: be robust to ignored SIGPIPE
49454         * tests/test-select-in.sh: Consume all output.
49455         * tests/test-lseek.sh: Check correct exit status, while avoiding
49456         EPIPE.
49458 2010-04-20  Simon Josefsson  <simon@josefsson.org>
49459             Bruno Haible  <bruno@clisp.org>
49461         visibility: Don't use -fvisibility if it leads to a warning.
49462         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
49463         yes, don't pretend that visibility works if it leads to a warning.
49464         Reported by Mike Gran <spk121@yahoo.com>.
49466 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
49468         * build-aux/bootstrap: Use "git -h" for testing for supported options
49469         instead of "git --help".  The short-form option only shows a summary,
49470         and doesn't layout the full man page.  Grep for the full option name
49471         in the summary, too.
49473 2010-04-19  Bruno Haible  <bruno@clisp.org>
49475         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
49476         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
49477         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
49478         mention of RELOCATABLE_STRIP.
49479         Reported by Sylvain Beucler <beuc@beuc.net>.
49481 2010-04-19  Bruno Haible  <bruno@clisp.org>
49483         * lib/diffseq.h: Fix typo in comment.
49484         Reported by Eric Blake.
49486 2010-04-19  Bruno Haible  <bruno@clisp.org>
49488         ioctl: Move autoconf macro to a .m4 file.
49489         * m4/ioctl.m4: New file, extracted from modules/ioctl.
49490         * modules/ioctl (Files): Add it.
49491         (configure.ac): Simply invoke gl_FUNC_IOCTL.
49492         Reported by Ian Beckwith <ianb@erislabs.net>.
49494 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
49495             Bruno Haible  <bruno@clisp.org>
49497         diffseq: Accommodate use-case with abstract arrays.
49498         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
49499         is not defined.
49500         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
49501         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
49503 2010-04-18  Bruno Haible  <bruno@clisp.org>
49505         * doc/posix-headers/stdbool.texi: More precise wording.
49507 2010-04-17  Jim Meyering  <meyering@redhat.com>
49509         maint.mk: use gnu-style indentation in an embedded perl script
49510         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
49511         Rename variable: s/two/last_two_bytes/
49513 2010-04-16  Eric Blake  <eblake@redhat.com>
49515         test-stdbool: skip test that fails with Solaris CC
49516         * tests/test-stdbool.c (f): Skip test that causes compilation
49517         error under buggy C++ compiler.
49518         * lib/stdbool.in.h: Document the limitation.
49519         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
49521         setenv: allow compilation with C++
49522         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
49523         register keyword.
49525         stdint: allow test to pass with C++
49526         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
49528         getopt: allow compilation with C++
49529         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
49530         struct.
49531         * lib/getopt.c (_getopt_internal_r): Use correct type.
49532         Reported by Dagobert Michelson, via Joel E. Denny.
49534 2010-04-16  Bruno Haible  <bruno@clisp.org>
49536         Override netdb.h always.
49537         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
49538         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
49539         Reported by Ludovic Courtès <ludo@gnu.org>.
49541 2010-04-15  Bruno Haible  <bruno@clisp.org>
49543         openpty: Fix mistake from 2010-03-21.
49544         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
49545         Reported by Simon Josefsson.
49547 2010-04-15  Eric Blake  <eblake@redhat.com>
49549         test-forkpty: fix expected signature
49550         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
49551         Reported by Simon Josefsson.
49553 2010-04-15  Jim Meyering  <meyering@redhat.com>
49555         maint.mk: texinfo_suffix_re_: correct the default regexp
49556         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
49558         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
49559         make it configurable via texinfo_suffix_re_.
49561 2010-04-14  Eric Blake  <eblake@redhat.com>
49563         strtok_r: relax license to LGPLv2+
49564         * modules/strtok_r (License): Relax license.
49565         Reported by Matthias Bolte.
49567 2010-04-14  Simon Josefsson  <simon@josefsson.org>
49569         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
49570         version 1.4.4 by default instead of requiring the libgcrypt
49571         version used during build.  This makes it possible to use the
49572         application with older but still binary compatible libgcrypt
49573         versions.
49575 2010-04-13  Eric Blake  <eblake@redhat.com>
49577         getopt-gnu: match recent glibc fixes and posix ruling
49578         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
49579         '+' handling, when requesting extensions.
49580         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
49581         'W;' handling.
49582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
49583         * doc/posix-functions/getopt.texi (getopt): Document this.
49584         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49585         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49586         Likewise.
49588         getopt: merge bug fixes from glibc
49589         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
49590         diagnostics.  Honor '+:' correctly.  Reject ';'.
49592         getopt-posix: detect MacOS bug
49593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
49594         optind when missing a required argument.
49595         * doc/posix-functions/getopt.texi (getopt): Document the bug.
49596         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49597         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49598         Likewise.
49600         getopt-posix: avoid spurious failure on Solaris
49601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
49602         an indicator that setting optind=1 is sufficient for reset.
49604         getopt-posix: avoid spurious failure on FreeBSD
49605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
49606         in POSIX mode, since the m4 test uses it.
49608         gnulib-tool: silence warning on BSD sh
49609         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
49611 2010-04-13  Jim Meyering  <meyering@redhat.com>
49613         doc: users.txt: GNU patch now uses gnulib
49614         * users.txt: Add patch.
49616 2010-04-12  Jim Meyering  <meyering@redhat.com>
49618         maint.mk: generate more concise timing data for syntax-check rules
49619         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
49620         " done" from each line that reports a syntax-check test duration.
49622 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
49624         git-version-gen: use "git update-index..." rather than "git status"
49625         * build-aux/git-version-gen: Use git update-index --refresh, not
49626         "git status".  With some versions of git, "git status" would fail
49627         to update the index and result in an unwarranted "-dirty" suffix.
49629 2010-04-11  Jim Meyering  <meyering@redhat.com>
49631         openat: correct formatting (no semantic change)
49632         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
49633         Suggested by Bruno Haible.
49635 2010-04-11  Bruno Haible  <bruno@clisp.org>
49637         Stricter declaration checking in testdirs.
49638         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49639         If for_tests is true, augment AM_CPPFLAGS to define
49640         GNULIB_STRICT_CHECKING.
49641         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
49642         GNULIB_STRICT_CHECKING is defined, verify that the function is
49643         declared.
49645 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
49646             Bruno Haible  <bruno@clisp.org>
49648         libunistring: Improve configure output.
49649         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
49650         Don't say "consider installing GNU libunistring" when checking again
49651         with libiconv.
49653 2010-04-11  Bruno Haible  <bruno@clisp.org>
49655         libunistring: Correct value of $LTLIBUNISTRING.
49656         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
49657         correct the value of $LTLIBUNISTRING.
49659 2010-04-11  Bruno Haible  <bruno@clisp.org>
49661         havelib: Add static libraries to LIBS in the right order.
49662         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
49663         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
49665 2010-04-11  Bruno Haible  <bruno@clisp.org>
49667         libunistring: Detect libunistring also when it depends on libiconv.
49668         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
49669         the second AC_LIB_HAVE_LINKFLAGS invocation.
49671 2010-04-11  James Youngman  <jay@gnu.org>
49673         close-stream: declare local scalars to be "const"
49674         * lib/close-stream.c (close_stream): Make boolean variables const
49675         to document the fact that we set but do not change them.
49677 2010-04-11  Bruno Haible  <bruno@clisp.org>
49679         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
49681 2010-04-11  Jim Meyering  <meyering@redhat.com>
49683         maint.mk: don't include dist-check.mk
49684         * top/maint.mk: Remove bogus include directive.
49686         maint.mk: improve empty-line-at-EOF check
49687         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
49688         solution, rather than tail+Perl-based one.  The latter would read
49689         a few kilobytes from the end of each file, and did not handle empty
49690         files properly.
49692         maint.mk: print the elapsed time for each syntax-check rule
49693         * top/maint.mk (sc_m_rules_): Save start time in a file.
49694         (sc_z_rules_): New rules: remove temp file and print elapsed time.
49695         (local-check): Interpose the .z rules
49697 2010-04-11  Jim Meyering  <meyering@redhat.com>
49699         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
49700         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
49701         empty file with one that ends in an empty line.
49703 2010-04-10  Bruno Haible  <bruno@clisp.org>
49705         mkdir: Make it work on mingw64.
49706         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
49707         * lib/mkdir.c: Update comment.
49708         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
49710 2010-04-10  Bruno Haible  <bruno@clisp.org>
49712         Don't override improved macro from newer autoconf.
49713         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
49714         autoconf >= 2.62.
49715         Reported by Joel E. Denny <jdenny@clemson.edu>.
49717 2010-04-10  Jim Meyering  <meyering@redhat.com>
49719         maint.mk: new syntax-check rule: prohibit empty lines at end of file
49720         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
49722         maint.mk: correct a diagnostic
49723         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
49724         in diagnostic; now use $prohibit.
49726 2010-04-10  Bruno Haible  <address@hidden>
49728         fchownat: Fix a C++ test error on Solaris 8.
49729         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
49730         the function does not exist.
49732 2010-04-10  Bruno Haible  <bruno@clisp.org>
49734         vasnprintf: Add more tests.
49735         * tests/test-vasnprintf-posix.c: Include <errno.h>.
49736         (test_function): Test converting an invalid wide string.
49738         vasnprintf: Correct handling of unconvertible wide string arguments.
49739         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
49740         VASNPRINTF.
49741         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
49742         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
49743         smaller than the expected maximum need for the directive. Set errno to
49744         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
49745         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
49746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
49747         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
49748         * modules/vasnprintf (Files): Add m4/printf.m4.
49749         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49751 2010-04-10  Bruno Haible  <bruno@clisp.org>
49753         vasnprintf: Fix crash in %ls directive.
49754         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
49755         string is passed as argument to %ls, with no precision and no width.
49756         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49758 2010-04-10  Bruno Haible  <bruno@clisp.org>
49760         vasnprintf: Fix multiple test failures on mingw.
49761         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
49762         _snprintf, or snwprintf, not _snwprintf.
49764 2010-04-10  Bruno Haible  <bruno@clisp.org>
49766         write: Fix a C++ test error on mingw.
49767         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
49769 2010-04-10  Bruno Haible  <bruno@clisp.org>
49771         vasnprintf test: Reduce code duplication.
49772         * tests/test-vasnprintf.c (test_function): New function, extracted from
49773         test_vasnprintf.
49774         (test_vasnprintf, test_asnprintf): Invoke it.
49776 2010-04-10  Bruno Haible  <bruno@clisp.org>
49778         strnlen: Fix warning in C++ mode on MacOS X.
49779         * lib/string.in.h (strnlen): Use the modern idiom.
49780         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
49781         defining strnlen as a macro already in <config.h>.
49782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49783         REPLACE_STRNLEN.
49784         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
49785         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49787 2010-04-08  James Youngman  <jay@gnu.org>
49789         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
49790         the example.
49792 2010-04-09  Jim Meyering  <meyering@redhat.com>
49794         maint.mk: print better diagnostic when there is no $(_hv_file)
49795         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
49796         announce that when $(_hv_file) (aka help-version) does not exist.
49798         init.sh: run tr in the "C" locale to avoid multibyte interpretation
49799         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
49800         not try to interpret its random input bytes.  Jarno Rajahalme reported
49801         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
49802         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
49803         (mktempd_): Likewise, just in case.
49805         ftruncate: add two years to projected module removal date: 2012
49806         * m4/ftruncate.m4: Adjust comments.
49808         ftruncate: mark module as obsolete; even MinGW provides it, now
49809         * modules/ftruncate (Status): Obsolete.
49810         (Notice): Say that.
49811         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
49812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
49814 2010-04-08  Bruno Haible  <bruno@clisp.org>
49816         Fix side effects from tests-related modules.
49817         * modules/dprintf-posix (Comment): New section.
49818         * modules/fprintf-posix (Comment): Likewise.
49819         * modules/obstack-printf-posix (Comment): Likewise.
49820         * modules/printf-posix (Comment): Likewise.
49821         * modules/snprintf-posix (Comment): Likewise.
49822         * modules/sprintf-posix (Comment): Likewise.
49823         * modules/vasnprintf-posix (Comment): Likewise.
49824         * modules/vasprintf-posix (Comment): Likewise.
49825         * modules/vdprintf-posix (Comment): Likewise.
49826         * modules/vfprintf-posix (Comment): Likewise.
49827         * modules/vprintf-posix (Comment): Likewise.
49828         * modules/vsnprintf-posix (Comment): Likewise.
49829         * modules/vsprintf-posix (Comment): Likewise.
49830         * modules/xprintf-posix (Comment): Likewise.
49831         * modules/xvasprintf-posix (Comment): Likewise.
49832         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
49833         * modules/floorf-tests (Depends-on): Likewise.
49834         * modules/round-tests (Depends-on): Likewise.
49835         * modules/roundf-tests (Depends-on): Likewise.
49836         * modules/trunc-tests (Depends-on): Likewise.
49837         * modules/truncf-tests (Depends-on): Likewise.
49838         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
49839         'fprintf-posix' module is not present.
49840         * tests/test-floorf2.c (check): Likewise.
49841         * tests/test-trunc2.c (check): Likewise.
49842         * tests/test-truncf2.c (check): Likewise.
49843         * tests/test-round2.c (equal): Likewise.
49844         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49846 2010-04-07  Karl Berry  <karl@gnu.org>
49848         * config/srclist.txt,
49849         * config/srclistvars.sh,
49850         * config/srclist-update: doc fixes.
49852 2010-04-07  Jim Meyering  <meyering@redhat.com>
49854         maint.mk: add a PATH crosschecking syntax-check rule
49855         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
49856         Useful if you use a test like the one in help-version (coreutils,
49857         diffutils, grep, gzip) that ensures $(VERSION) matches what is
49858         printed by prog --version.
49860 2010-04-06  Bruno Haible  <bruno@clisp.org>
49862         Fix link error on mingw.
49863         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
49864         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
49866 2010-04-06  Bruno Haible  <bruno@clisp.org>
49868         Assume rmdir exists.
49869         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
49871 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
49873         doc: update users.txt
49874         * users.txt: Add gcal.
49876 2010-04-06  Jim Meyering  <meyering@redhat.com>
49878         init.sh: simply unset TMPDIR rather than risking env -i
49879         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
49880         although it probably works fine on all Unix-based systems, some
49881         systems (Cygwin?) cannot tolerate a totally cleared environment.
49882         Suggestion from Eric Blake.
49884 2010-04-06  Jim Meyering  <meyering@redhat.com>
49886         init.sh: portability fix: use env's POSIX-specified -i option not -u
49887         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
49888         than unportable env -u.  Solaris 5.11's env lacks support for -u.
49890 2010-04-05  Bruno Haible  <bruno@clisp.org>
49892         btowc: Work around Cygwin 1.7.2 bug.
49893         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
49894         does not map NUL to 0.
49895         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
49897 2010-04-05  Bruno Haible  <bruno@clisp.org>
49899         Make the multithread modules work on Cygwin 1.7.2.
49900         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
49901         imported symbols can be declared weak, so that it returns "no" on
49902         Cygwin 1.7.2.
49904 2010-04-05  Bruno Haible  <bruno@clisp.org>
49906         Use the module 'strncat'.
49907         * modules/unistr/u8-strncat (Depends-on): Add strncat.
49909         Tests for module 'strncat'.
49910         * modules/strncat-tests: New file.
49911         * tests/test-strncat.c: New file.
49913         New module 'strncat'.
49914         * lib/string.in.h (strncat): New declaration.
49915         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
49916         * m4/strncat.m4: New file, based on m4/memchr.m4.
49917         * modules/strncat: New file.
49918         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
49919         is declared.
49920         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
49921         REPLACE_STRNCAT.
49922         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
49923         REPLACE_STRNCAT.
49924         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
49925         module.
49926         * tests/test-string-c++.cc: Check signature of strncat.
49928 2010-04-05  Jim Meyering  <meyering@redhat.com>
49930         xstrtoumax-tests: convert to use init.sh
49931         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
49932         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49933         Use Exit, not exit.
49934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49936         xstrtoimax-tests: convert to use init.sh
49937         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
49938         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49939         Use Exit, not exit.
49940         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49942 2010-04-05  Bruno Haible  <bruno@clisp.org>
49944         sys_socket: Avoid #define replacements in C++ mode.
49945         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
49946         warning to the function if possible, rather than #defining the symbol
49947         to a dysfunctional alias.
49949 2010-04-05  Bruno Haible  <bruno@clisp.org>
49951         fseeko: Fix C++ test error on mingw.
49952         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
49953         gl_FUNC_FSEEKO.
49954         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
49955         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
49956         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
49957         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
49959 2010-04-05  Bruno Haible  <bruno@clisp.org>
49961         duplocale: Improve test output.
49962         * tests/test-duplocale.c (main): Print reason for skipped test.
49964 2010-04-05  Bruno Haible  <bruno@clisp.org>
49966         Assume rmdir exists.
49967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
49968         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
49970 2010-04-05  Bruno Haible  <bruno@clisp.org>
49972         Fix link error on Solaris 8 with cc.
49973         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
49975 2010-04-05  Bruno Haible  <bruno@clisp.org>
49977         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49978         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
49980 2010-04-05  Bruno Haible  <bruno@clisp.org>
49982         vasprintf: Update documentation.
49983         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
49985 2010-04-05  Bruno Haible  <bruno@clisp.org>
49987         ptsname: Improve test.
49988         * tests/test-ptsname.c (main): Also try the various master names of BSD
49989         systems.
49991 2010-04-05  Bruno Haible  <bruno@clisp.org>
49993         memchr: Avoid a possible C++ test error.
49994         * lib/string.in.h (memchr): Provide declaration if function is missing.
49995         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
49996         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
49997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
49998         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
50000 2010-04-05  Bruno Haible  <bruno@clisp.org>
50002         strtok_r: Improve idiom.
50003         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
50004         AC_LIBOBJ is used.
50006 2010-04-05  Bruno Haible  <bruno@clisp.org>
50008         strdup: Improve idiom.
50009         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
50010         AC_LIBOBJ is used.
50011         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
50012         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
50013         when AC_LIBOBJ is used.
50015 2010-04-05  Bruno Haible  <bruno@clisp.org>
50017         mbsinit, mbrtowc, wcrtomb: Improve idioms.
50018         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
50019         don't set REPLACE_MBSINIT to 1.
50020         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
50021         don't set REPLACE_MBRTOWC to 1.
50022         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
50023         exist, don't set REPLACE_MBSRTOWCS to 1.
50024         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
50025         exist, don't set REPLACE_MBSNRTOWCS to 1.
50026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
50027         don't set REPLACE_WCRTOMB to 1.
50028         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
50029         exist, don't set REPLACE_WCSRTOMBS to 1.
50030         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
50031         exist, don't set REPLACE_WCSNRTOMBS to 1.
50033 2010-04-05  Bruno Haible  <bruno@clisp.org>
50035         ldexpl: Improve idiom.
50036         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
50037         make sure to set HAVE_DECL_LDEXPL to 0.
50039 2010-04-05  Jim Meyering  <meyering@redhat.com>
50041         xstrtol-tests: convert to use init.sh
50042         * modules/xstrtol-tests (Files): Add tests/init.sh.
50043         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50044         Use Exit, not exit.
50045         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50047         atexit-tests: convert to use init.sh
50048         * modules/atexit-tests (Files): Add tests/init.sh.
50049         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50050         Use Exit, not exit.
50051         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50053         init.sh: fix typo
50054         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
50056         init.sh: make it easier for a test script to write to the tty, ...
50057         when using automake's parallel-tests mode.
50058         * tests/init.sh (stderr_fileno_): Define overridable variable.
50059         (warn_): New function, to use it.
50060         (fail_, skip_, framework_failure_): Use warn_.
50062 2010-04-04  Bruno Haible  <bruno@clisp.org>
50064         btowc: Avoid warning.
50065         * lib/btowc.c: Include <stdlib.h>.
50066         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
50068 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50069             Bruno Haible  <bruno@clisp.org>
50071         wchar: Port to NetBSD 1.5.
50072         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
50073         * lib/wctype.in.h (WEOF): Likewise.
50075 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50076             Bruno Haible  <bruno@clisp.org>
50078         Port extended stdio to NetBSD 1.5.
50079         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
50080         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
50081         older.
50083 2010-04-04  Bruno Haible  <bruno@clisp.org>
50085         string: Remove unused substitution.
50086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50087         HAVE_DECL_STRERROR.
50088         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
50090 2010-04-04  Bruno Haible  <bruno@clisp.org>
50092         strtod: Avoid a possible C++ test error.
50093         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
50094         set REPLACE_STRTOD.
50096 2010-04-04  Bruno Haible  <bruno@clisp.org>
50098         strerror: Update documentation.
50099         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
50101 2010-04-04  Bruno Haible  <bruno@clisp.org>
50103         stdio: Fix some C++ test errors on Solaris 8 with GCC.
50104         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
50105         _GL_CXXALIAS_SYS_CAST.
50107 2010-04-04  Bruno Haible  <bruno@clisp.org>
50109         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50110         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
50111         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
50112         REPLACE_FREXPL to 1.
50113         * doc/posix-functions/frexpl.texi: Update documentation.
50115 2010-04-04  Bruno Haible  <bruno@clisp.org>
50117         math: Fix some C++ test errors on Solaris 8 and Cygwin.
50118         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
50120 2010-04-04  Bruno Haible  <bruno@clisp.org>
50122         Implement nanosleep for native Windows.
50123         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
50125 2010-04-04  Bruno Haible  <bruno@clisp.org>
50127         math: Fix some C++ test errors on Solaris 8.
50128         * lib/math.in.h (truncf, trunc): Use simpler idiom.
50130 2010-04-04  Bruno Haible  <bruno@clisp.org>
50132         math: Fix some C++ test errors on Cygwin.
50133         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
50134         truncl): Provide declaration if the system does not have it.
50135         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
50136         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
50137         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
50138         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
50139         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
50140         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
50141         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
50142         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
50143         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
50144         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
50145         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
50146         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
50147         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
50148         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
50149         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
50150         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
50151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
50152         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50153         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50154         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
50155         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50156         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50158 2010-04-04  Bruno Haible  <bruno@clisp.org>
50160         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
50161         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50162         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
50163         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50164         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50165         * m4/isinf.m4 (gl_ISINF): Likewise.
50166         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50168 2010-04-04  Bruno Haible  <bruno@clisp.org>
50170         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
50171         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50173 2010-04-04  Bruno Haible  <bruno@clisp.org>
50175         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
50176         * modules/tmpfile (configure.ac): Update.
50178         tmpfile: Fix C++ test error on mingw.
50179         * lib/stdio.in.h (tmpfile): New declaration.
50180         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
50181         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
50182         * modules/tmpfile (Depends-on): Add stdio.
50183         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50184         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
50185         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
50186         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
50187         REPLACE_TMPFILE.
50188         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
50190 2010-04-04  Bruno Haible  <bruno@clisp.org>
50192         ioctl: Fix C++ test error on mingw.
50193         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
50194         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
50195         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
50197 2010-04-03  Bruno Haible  <bruno@clisp.org>
50199         wcwidth: Fix C++ test error on mingw.
50200         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
50201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
50202         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
50204 2010-04-03  Bruno Haible  <bruno@clisp.org>
50206         nanosleep: Fix C++ test error on mingw.
50207         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
50208         * lib/time.in.h (nanosleep): Use modern idiom.
50209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
50210         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
50211         REPLACE_NANOSLEEP to 1.
50212         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
50213         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
50215 2010-04-03  Bruno Haible  <bruno@clisp.org>
50217         strptime: Fix C++ test error on mingw.
50218         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
50219         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
50220         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
50221         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
50222         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
50223         not REPLACE_STRPTIME.
50224         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
50225         REPLACE_STRPTIME.
50227 2010-04-03  Bruno Haible  <bruno@clisp.org>
50229         timegm: Fix C++ test error on mingw.
50230         * lib/time.in.h (timegm): Use modern idiom.
50231         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
50232         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
50233         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
50234         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
50236 2010-04-03  Bruno Haible  <bruno@clisp.org>
50238         timegm: Assume declaration if function exists.
50239         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
50240         if it exists. Don't clobber ac_cv_func_timegm.
50242 2010-04-03  Bruno Haible  <bruno@clisp.org>
50244         time_r: Fix C++ test error on mingw.
50245         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
50246         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
50247         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
50248         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
50249         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
50251 2010-04-03  Bruno Haible  <bruno@clisp.org>
50253         time_r: Minor updates.
50254         * modules/time_r (Description): Mention the provided functions.
50255         * lib/time_r.c: Don't include <string.h>.
50256         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
50257         * doc/posix-functions/localtime_r.texi: Likewise.
50259 2010-04-03  Bruno Haible  <bruno@clisp.org>
50261         time: Fix regression introduced on 2010-03-08.
50262         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
50263         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
50265 2010-04-03  Jim Meyering  <meyering@redhat.com>
50267         maint.mk: don't silently disable project-specific syntax-check rules
50268         * top/maint.mk (_prohibit_regexp): Define, to help people realize
50269         that they need to convert their project-specific syntax-check rules
50270         to use the new _sc_search_regexp.
50272 2010-04-03  Bruno Haible  <bruno@clisp.org>
50274         fchdir: Fix regression introduced on 2010-03-08.
50275         * lib/unistd.in.h (fchdir): Fix declaration.
50276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
50277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
50278         REPLACE_FCHDIR.
50279         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
50280         REPLACE_FCHDIR.
50282 2010-04-03  Bruno Haible  <bruno@clisp.org>
50284         getpagesize: Fix C++ test error on mingw.
50285         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
50286         system does not declare the function.
50287         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
50288         declared.
50289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50290         HAVE_DECL_GETPAGESIZE.
50291         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
50293 2010-04-03  Bruno Haible  <bruno@clisp.org>
50295         stdio: Make C++ tests work on mingw.
50296         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
50297         does not declare the function.
50299 2010-04-03  Bruno Haible  <bruno@clisp.org>
50301         ftello: Fix C++ test error on mingw.
50302         * lib/stdio.in.h (ftello): Use modern idiom.
50303         * lib/ftello.c (ftello): Renamed from rpl_ftello.
50304         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
50305         is missing and that it needs to be replaced.
50306         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
50307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
50308         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
50310 2010-04-03  Bruno Haible  <bruno@clisp.org>
50312         fseeko: Fix C++ test error on mingw.
50313         * lib/stdio.in.h (fseeko): Use modern idiom.
50314         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
50315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
50316         is missing and that it needs to be replaced.
50317         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
50318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
50319         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
50321 2010-04-03  Bruno Haible  <bruno@clisp.org>
50323         mkstemp: Fix C++ test error on mingw.
50324         * lib/stdlib.in.h (mkstemp): Use modern idiom.
50325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
50326         function is missing and that it needs to be replaced.
50327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
50328         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
50330 2010-04-03  Bruno Haible  <bruno@clisp.org>
50332         stpncpy: Fix C++ test error on mingw.
50333         * lib/string.in.h (stpncpy): Use modern idiom.
50334         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
50335         function is missing and that it needs to be replaced.
50336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50337         REPLACE_STPNCPY.
50338         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
50340 2010-04-03  Bruno Haible  <bruno@clisp.org>
50342         sys_stat: Fix C++ test error on mingw.
50343         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
50344         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
50346 2010-04-03  Bruno Haible  <bruno@clisp.org>
50348         pty: Update doc.
50349         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
50351 2010-04-03  Bruno Haible  <bruno@clisp.org>
50353         unistd: Fix C++ test error on mingw.
50354         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
50356 2010-04-03  Bruno Haible  <bruno@clisp.org>
50358         Update doc regarding mingw.
50359         * doc/glibc-functions/openpty.texi: Update regarding mingw.
50360         * doc/glibc-functions/login_tty.texi: Likewise.
50361         * doc/glibc-functions/forkpty.texi: Likewise.
50363 2010-04-03  Bruno Haible  <bruno@clisp.org>
50365         stdlib: Avoid compilation failure of c-strtold on mingw.
50366         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
50368 2010-04-03  Bruno Haible  <bruno@clisp.org>
50370         locale: Make C++ tests work on Cygwin and mingw.
50371         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
50372         cannot provide the function.
50373         Reported by Simon Josefsson.
50375 2010-04-03  Bruno Haible  <bruno@clisp.org>
50377         localename: Port to MacOS X 10.6.
50378         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
50379         memory layout of the locales in MacOS X 10.6 as well.
50380         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
50382 2010-04-02  Bruno Haible  <bruno@clisp.org>
50384         gnulib-tool: Ensure that long-running tests are executed last.
50385         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
50386         running tests after the one for the other tests.
50388 2010-04-02  Bruno Haible  <bruno@clisp.org>
50390         gnulib-tool: Ensure the tests in the main directory are executed first.
50391         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
50392         start with the current directory.
50394 2010-04-02  Bruno Haible  <bruno@clisp.org>
50396         Tests for module 'havelib', moved here from GNU gettext.
50397         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
50398         modifications.
50399         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
50400         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
50401         with modifications.
50402         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
50403         modifications.
50404         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
50405         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
50406         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
50407         with modifications.
50408         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
50409         with modifications.
50410         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
50411         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
50412         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
50413         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
50414         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
50415         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
50416         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
50417         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
50418         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
50419         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
50420         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
50421         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
50422         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
50423         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
50424         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
50425         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
50426         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
50427         with modifications.
50428         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
50429         with modifications.
50430         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
50431         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
50432         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
50433         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
50434         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
50435         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
50436         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
50437         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
50438         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
50439         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
50440         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
50441         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
50442         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
50443         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
50444         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
50445         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
50446         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
50447         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
50448         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
50449         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
50450         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
50451         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
50452         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
50453         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
50454         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
50455         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
50456         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
50457         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
50458         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
50459         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
50460         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
50461         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
50462         * tests/havelib/rpathx/rpathx.c: New file, from
50463         gettext/autoconf-lib-link.
50464         * tests/havelib/rpathx/Makefile.am: New file, from
50465         gettext/autoconf-lib-link.
50466         * tests/havelib/rpathx/configure.ac: New file, from
50467         gettext/autoconf-lib-link with modifications.
50468         * tests/havelib/rpathy/rpathy.c: New file, from
50469         gettext/autoconf-lib-link.
50470         * tests/havelib/rpathy/Makefile.am: New file, from
50471         gettext/autoconf-lib-link.
50472         * tests/havelib/rpathy/configure.ac: New file, from
50473         gettext/autoconf-lib-link with modifications.
50474         * tests/havelib/rpathz/rpathz.c: New file, from
50475         gettext/autoconf-lib-link.
50476         * tests/havelib/rpathz/Makefile.am: New file, from
50477         gettext/autoconf-lib-link.
50478         * tests/havelib/rpathz/configure.ac: New file, from
50479         gettext/autoconf-lib-link with modifications.
50480         * tests/havelib/rpathlx/usex.c: New file, from
50481         gettext/autoconf-lib-link.
50482         * tests/havelib/rpathlx/Makefile.am: New file, from
50483         gettext/autoconf-lib-link.
50484         * tests/havelib/rpathlx/configure.ac: New file, from
50485         gettext/autoconf-lib-link with modifications.
50486         * tests/havelib/rpathly/usey.c: New file, from
50487         gettext/autoconf-lib-link.
50488         * tests/havelib/rpathly/Makefile.am: New file, from
50489         gettext/autoconf-lib-link.
50490         * tests/havelib/rpathly/configure.ac: New file, from
50491         gettext/autoconf-lib-link with modifications.
50492         * tests/havelib/rpathlz/usez.c: New file, from
50493         gettext/autoconf-lib-link.
50494         * tests/havelib/rpathlz/Makefile.am: New file, from
50495         gettext/autoconf-lib-link.
50496         * tests/havelib/rpathlz/configure.ac: New file, from
50497         gettext/autoconf-lib-link with modifications.
50498         * tests/havelib/rpathlyx/usey.c: New file, from
50499         gettext/autoconf-lib-link.
50500         * tests/havelib/rpathlyx/Makefile.am: New file, from
50501         gettext/autoconf-lib-link.
50502         * tests/havelib/rpathlyx/configure.ac: New file, from
50503         gettext/autoconf-lib-link with modifications.
50504         * tests/havelib/rpathlzyx/usez.c: New file, from
50505         gettext/autoconf-lib-link.
50506         * tests/havelib/rpathlzyx/Makefile.am: New file, from
50507         gettext/autoconf-lib-link.
50508         * tests/havelib/rpathlzyx/configure.ac: New file, from
50509         gettext/autoconf-lib-link with modifications.
50510         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
50511         with modifications.
50513 2010-04-02  Bruno Haible  <bruno@clisp.org>
50515         gnulib-tool: Create distributed built sources also for the tests.
50516         * gnulib-tool (func_create_testdir): Also generate distributed built
50517         sources in the tests directory.
50519 2010-04-02  Bruno Haible  <bruno@clisp.org>
50521         gnulib-tool: Obey user's environment variables.
50522         * gnulib-tool (func_create_testdir): When creating built sources,
50523         respect the environment variables for autoconf, automake, etc. given by
50524         the user.
50526 2010-04-02  Bruno Haible  <bruno@clisp.org>
50528         gnulib-tool: Provide the value of --m4-base to modules.
50529         * gnulib-tool (func_import, func_create_testdir): Emit a definition
50530         of gl_m4_base.
50532 2010-04-02  Eric Blake  <eblake@redhat.com>
50534         maint.mk: fix some fallout
50535         * NEWS: Document the incompatible change, and its effect on cfg.mk.
50536         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
50538 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50540         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
50541         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
50542         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
50543         (sc_cast_of_x_alloc_return_value): Likewise.
50544         (sc_cast_of_alloca_return_value): Likewise.
50545         (sc_space_tab): Likewise.
50546         (sc_prohibit_atoi_atof): Likewise.
50547         (sc_prohibit_magic_number_exit): Likewise.
50548         (sc_error_exit_success): Likewise.
50549         (sc_file_system): Likewise.
50550         (sc_prohibit_have_config_h): Likewise.
50551         (sc_require_config_h): Likewise.
50552         (sc_prohibit_HAVE_MBRTOWC): Likewise.
50553         (sc_obsolete_symbols): Likewise.
50554         (sc_changelog): Likewise.
50555         (sc_program_name): Likewise.
50556         (sc_the_the): Likewise.
50557         (sc_trailing_blank): Likewise.
50558         (sc_two_space_separator_in_usage): Likewise.
50559         (sc_useless_cpp_parens): Likewise.
50560         (sc_GPL_version): Likewise.
50561         (sc_GFDL_version): Likewise.
50562         (sc_texinfo_acronym): Likewise.
50563         (sc_prohibit_cvs_keyword): Likewise.
50564         (sc_prohibit_stat_st_blocks): Likewise.
50565         (sc_prohibit_S_IS_definition): Likewise.
50566         (sc_redundant_const): Likewise.
50567         (sc_makefile_TAB_only_indentation): Likewise.
50568         (sc_m4_quote_check): Likewise.
50569         (sc_makefile_path_separator_check): Likewise.
50570         (sc_copyright_check): Likewise.
50571         (sc_Wundef_boolean): Likewise.
50572         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
50574         maint.mk: match 0 or more whitespace-before-function-call '('
50575         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
50576         that have zero or two-and-more spaces between the function name
50577         and the open parenthesis.
50578         (sc_error_message_warn_fatal): Likewise.
50579         (sc_error_message_uppercase): Likewise.
50580         (sc_error_message_period): Likewise.
50582 2010-03-31  Eric Blake  <eblake@redhat.com>
50584         maint.mk: check for [ as well as test
50585         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
50586         Based on a libvirt report by Matthias Bolte.
50588         gnumakefile: don't squelch _version output
50589         * top/GNUmakefile (_version): Create one-shot dependency rather
50590         than using $(shell) when version must be regenerated.
50591         (_autoreconf): Run verbosely, by default.
50593         sys_time: avoid compiler warnings
50594         * lib/sys_time.in.h (includes): Ensure gcc pragma is
50595         unconditional, fixing regression from 2010-03-29.
50596         Reported by Simon Josefsson.
50598 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50600         maint.mk: s/_header_without_use/_sc_header_without_use/
50601         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
50602         (sc_prohibit_assert_without_use): Use the new name.
50603         (sc_prohibit_close_stream_without_use): Likewise.
50604         (sc_prohibit_getopt_without_use): Likewise.
50605         (sc_prohibit_quotearg_without_use): Likewise.
50606         (sc_prohibit_quote_without_use): Likewise.
50607         (sc_prohibit_long_options_without_use): Likewise.
50608         (sc_prohibit_inttostr_without_use): Likewise.
50609         (sc_prohibit_ignore_value_without_use): Likewise.
50610         (sc_prohibit_error_without_use): Likewise.
50611         (sc_prohibit_xalloc_without_use): Likewise.
50612         (sc_prohibit_hash_without_use): Likewise.
50613         (sc_prohibit_hash_pjw_without_use): Likewise.
50614         (sc_prohibit_safe_read_without_use): Likewise.
50615         (sc_prohibit_argmatch_without_use): Likewise.
50616         (sc_prohibit_canonicalize_without_use): Likewise.
50617         (sc_prohibit_root_dev_ino_without_use): Likewise.
50618         (sc_prohibit_openat_without_use): Likewise.
50619         (sc_prohibit_c_ctype_without_use): Likewise.
50620         (sc_prohibit_signal_without_use): Likewise.
50621         (sc_prohibit_intprops_without_use): Likewise.
50623 2010-03-30  Eric Blake  <eblake@redhat.com>
50625         maint: improve module indicators
50626         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
50627         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
50628         columns, and avoid extra macro expansion.
50630         fdopendir: work around FreeBSD bug
50631         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
50632         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
50633         * modules/dirent (Makefile.am): Substitute it.
50634         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
50635         declaration.
50636         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
50637         fix.
50638         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50640 2010-03-29  Bruno Haible  <bruno@clisp.org>
50642         Emit #pragma system_header after the inclusion guard, not before.
50643         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
50644         guard that spans the entire file, not before. This enables an
50645         optimization in GCC's preprocessor.
50646         * lib/ctype.in.h: Likewise.
50647         * lib/dirent.in.h: Likewise.
50648         * lib/errno.in.h: Likewise.
50649         * lib/float.in.h: Likewise.
50650         * lib/getopt.in.h: Likewise.
50651         * lib/iconv.in.h: Likewise.
50652         * lib/langinfo.in.h: Likewise.
50653         * lib/locale.in.h: Likewise.
50654         * lib/math.in.h: Likewise.
50655         * lib/netdb.in.h: Likewise.
50656         * lib/netinet_in.in.h: Likewise.
50657         * lib/pty.in.h: Likewise.
50658         * lib/sched.in.h: Likewise.
50659         * lib/se-selinux.in.h: Likewise.
50660         * lib/search.in.h: Likewise.
50661         * lib/spawn.in.h: Likewise.
50662         * lib/stdarg.in.h: Likewise.
50663         * lib/stdint.in.h: Likewise.
50664         * lib/string.in.h: Likewise.
50665         * lib/strings.in.h: Likewise.
50666         * lib/sys_file.in.h: Likewise.
50667         * lib/sys_ioctl.in.h: Likewise.
50668         * lib/sys_time.in.h: Likewise.
50669         * lib/sys_times.in.h: Likewise.
50670         * lib/sys_utsname.in.h: Likewise.
50671         * lib/sys_wait.in.h: Likewise.
50672         * lib/sysexits.in.h: Likewise.
50673         * lib/wctype.in.h: Likewise.
50675 2010-03-28  James Youngman  <jay@gnu.org>
50677         save-cwd: don't leak a file descriptor when the caller execs.
50678         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
50679         saved file descriptor.
50680         * modules/save-cwd (Depends-on): Depend on cloexec.
50682 2010-03-29  Bruno Haible  <bruno@clisp.org>
50684         Remove vestiges of fts-lgpl module.
50685         * lib/fts_.h: Assume GNULIB_FTS is 1.
50686         * lib/fts.c: Likewise.
50687         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50689 2010-03-28  Bruno Haible  <bruno@clisp.org>
50691         Fix definition of tests witness macro.
50692         * gnulib-tool (func_import): Fix definition of witness macro.
50694 2010-03-28  Bruno Haible  <bruno@clisp.org>
50696         Fix ioctl's protoype on glibc systems.
50697         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
50698         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
50699         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
50700         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
50701         signature. If not, arrange to replace the ioctl function.
50702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
50703         REPLACE_IOCTL.
50704         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
50705         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
50706         Reported by Ludovic Courtès <ludo@gnu.org>.
50708 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
50710         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
50711         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
50712         made it so grep -r --include=GLOB* ... did not work.
50714 2010-03-26  Jim Meyering  <meyering@redhat.com>
50715             Eric Blake  <eblake@redhat.com>
50717         maint.mk: prohibit use of test's -o and -a operators
50718         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
50720 2010-03-28  Bruno Haible  <bruno@clisp.org>
50722         Remove unused GNULIB_XYZ macro definitions.
50723         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
50724         invocation.
50726 2010-03-28  Bruno Haible  <bruno@clisp.org>
50728         Mark privileged tests modules.
50729         * modules/idpriv-drop-tests (Status): New section.
50730         * modules/idpriv-droptemp-tests (Status): New section.
50732 2010-03-28  Bruno Haible  <bruno@clisp.org>
50734         Split C++ tests into separate tests modules.
50735         * modules/dirent-c++-tests: New file, extracted from
50736         modules/dirent-tests.
50737         * modules/dirent-tests: Depend on it.
50738         * modules/fcntl-h-c++-tests: New file, extracted from
50739         modules/fcntl-h-tests.
50740         * modules/fcntl-h-tests: Depend on it.
50741         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
50742         * modules/glob-tests: Depend on it.
50743         * modules/iconv-h-c++-tests: New file, extracted from
50744         modules/iconv-h-tests.
50745         * modules/iconv-h-tests: Depend on it.
50746         * modules/langinfo-c++-tests: New file, extracted from
50747         modules/langinfo-tests.
50748         * modules/langinfo-tests: Depend on it.
50749         * modules/locale-c++-tests: New file, extracted from
50750         modules/locale-tests.
50751         * modules/locale-tests: Depend on it.
50752         * modules/math-c++-tests: New file, extracted from modules/math-tests.
50753         * modules/math-tests: Depend on it.
50754         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
50755         * modules/pty-tests: Depend on it.
50756         * modules/search-c++-tests: New file, extracted from
50757         modules/search-tests.
50758         * modules/search-tests: Depend on it.
50759         * modules/signal-c++-tests: New file, extracted from
50760         modules/signal-tests.
50761         * modules/signal-tests: Depend on it.
50762         * modules/spawn-c++-tests: New file, extracted from
50763         modules/spawn-tests.
50764         * modules/spawn-tests: Depend on it.
50765         * modules/stdio-c++-tests: New file, extracted from
50766         modules/stdio-tests.
50767         * modules/stdio-tests: Depend on it.
50768         * modules/stdlib-c++-tests: New file, extracted from
50769         modules/stdlib-tests.
50770         * modules/stdlib-tests: Depend on it.
50771         * modules/string-c++-tests: New file, extracted from
50772         modules/string-tests.
50773         * modules/string-tests: Depend on it.
50774         * modules/sys_ioctl-c++-tests: New file, extracted from
50775         modules/sys_ioctl-tests.
50776         * modules/sys_ioctl-tests: Depend on it.
50777         * modules/sys_select-c++-tests: New file, extracted from
50778         modules/sys_select-tests.
50779         * modules/sys_select-tests: Depend on it.
50780         * modules/sys_socket-c++-tests: New file, extracted from
50781         modules/sys_socket-tests.
50782         * modules/sys_socket-tests: Depend on it.
50783         * modules/sys_stat-c++-tests: New file, extracted from
50784         modules/sys_stat-tests.
50785         * modules/sys_stat-tests: Depend on it.
50786         * modules/sys_time-c++-tests: New file, extracted from
50787         modules/sys_time-tests.
50788         * modules/sys_time-tests: Depend on it.
50789         * modules/time-c++-tests: New file, extracted from modules/time-tests.
50790         * modules/time-tests: Depend on it.
50791         * modules/unistd-c++-tests: New file, extracted from
50792         modules/unistd-tests.
50793         * modules/unistd-tests: Depend on it.
50794         * modules/wchar-c++-tests: New file, extracted from
50795         modules/wchar-tests.
50796         * modules/wchar-tests: Depend on it.
50797         * modules/wctype-c++-tests: New file, extracted from
50798         modules/wctype-tests.
50799         * modules/wctype-tests: Depend on it.
50800         Reported by Simon Josefsson.
50802 2010-03-28  Bruno Haible  <bruno@clisp.org>
50804         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
50805         * gnulib-tool (func_exists_module): New function, extracted from
50806         func_verify_module.
50807         (func_verify_module): Use it.
50808         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
50809         'foo' only if 'foo' exists.
50810         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
50811         module.
50813 2010-03-28  Bruno Haible  <bruno@clisp.org>
50815         gnulib-tool: Add support for special categories of tests.
50816         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
50817         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
50818         (func_usage): Document them.
50819         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
50820         inc_unportable_tests, inc_all_tests): New variables.
50821         (func_acceptable): Consider these variables.
50822         (func_modules_transitive_closure): Make it work when the 'Status' field
50823         consists of multiple words.
50824         (func_import): Store and restore the values of inc_cxx_tests,
50825         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
50826         inc_all_tests in gnulib-comp.m4.
50827         (func_create_testdir): Set inc_all_tests to true.
50828         * doc/gnulib.texi (Extra tests modules): New section.
50829         Suggested by Jim Meyering.
50831 2010-03-28  Bruno Haible  <bruno@clisp.org>
50833         ansi-c++-opt: Allow turning off the C++ build by default.
50834         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
50835         gl_CXX_CHOICE_DEFAULT_NO is defined.
50836         Requested by Eric Blake.
50838 2010-03-28  Bruno Haible  <bruno@clisp.org>
50840         unistd: Avoid #define replacements in C++ mode.
50841         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50842         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50843         setsockopt, shutdown, select): In C++, attach a warning to the function
50844         if possible, rather than #defining the symbol to a dysfunctional alias.
50845         Reported by John W. Eaton <jwe@gnu.org>.
50847 2010-03-28  Bruno Haible  <bruno@clisp.org>
50849         Fix link errors on mingw.
50850         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
50851         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
50852         $(LIBSOCKET).
50853         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
50854         $(LIBSOCKET).
50856 2010-03-28  Bruno Haible  <bruno@clisp.org>
50857             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50859         lib-ignore: Determine different options for different compilers.
50860         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
50861         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
50862         Add comments.
50863         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
50864         * NEWS: Mention the change.
50866 2010-03-27  Bruno Haible  <bruno@clisp.org>
50868         Remove unused GNULIB_XYZ macro definitions.
50869         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50870         * modules/fseek (configure.ac): Likewise.
50871         * modules/ioctl (configure.ac): Likewise.
50872         * modules/open (configure.ac): Likewise.
50873         * modules/stdlib-safer (configure.ac): Likewise.
50875 2010-03-27  Bruno Haible  <bruno@clisp.org>
50877         Add a remark about certain modules.
50878         * modules/malloc (Comment): New section.
50879         * modules/realloc (Comment): Likewise.
50880         * modules/sigpipe (Comment): Likewise.
50882 2010-03-27  Bruno Haible  <bruno@clisp.org>
50884         Resolve conflict between the two kinds of module indicators.
50885         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
50886         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
50887         * modules/canonicalize (configure.ac): Invoke
50888         gl_MODULE_INDICATOR_FOR_TESTS.
50889         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
50890         GNULIB_XYZ.
50891         * tests/test-dirent-c++.cc: Likewise.
50892         * tests/test-dirent-safer.c: Likewise.
50893         * tests/test-dup2.c: Likewise.
50894         * tests/test-fchdir.c: Likewise.
50895         * tests/test-fcntl-h-c++.cc: Likewise.
50896         * tests/test-getopt.c: Likewise.
50897         * tests/test-getopt.h: Likewise.
50898         * tests/test-langinfo-c++.cc: Likewise.
50899         * tests/test-locale-c++.cc: Likewise.
50900         * tests/test-math-c++.cc: Likewise.
50901         * tests/test-pty-c++.cc: Likewise.
50902         * tests/test-search-c++.cc: Likewise.
50903         * tests/test-signal-c++.cc: Likewise.
50904         * tests/test-spawn-c++.cc: Likewise.
50905         * tests/test-stdio-c++.cc: Likewise.
50906         * tests/test-stdlib-c++.cc: Likewise.
50907         * tests/test-string-c++.cc: Likewise.
50908         * tests/test-sys_ioctl-c++.cc: Likewise.
50909         * tests/test-sys_select-c++.cc: Likewise.
50910         * tests/test-sys_socket-c++.cc: Likewise.
50911         * tests/test-sys_stat-c++.cc: Likewise.
50912         * tests/test-sys_time-c++.cc: Likewise.
50913         * tests/test-time-c++.cc: Likewise.
50914         * tests/test-unistd-c++.cc: Likewise.
50915         * tests/test-wchar-c++.cc: Likewise.
50916         * tests/uninorm/test-u8-nfc.c: Likewise.
50917         * tests/uninorm/test-u8-nfd.c: Likewise.
50918         * tests/uninorm/test-u8-nfkc.c: Likewise.
50919         * tests/uninorm/test-u8-nfkd.c: Likewise.
50920         * tests/uninorm/test-u16-nfc.c: Likewise.
50921         * tests/uninorm/test-u16-nfd.c: Likewise.
50922         * tests/uninorm/test-u16-nfkc.c: Likewise.
50923         * tests/uninorm/test-u16-nfkd.c: Likewise.
50924         * tests/uninorm/test-u32-nfc.c: Likewise.
50925         * tests/uninorm/test-u32-nfc-big.c: Likewise.
50926         * tests/uninorm/test-u32-nfd.c: Likewise.
50927         * tests/uninorm/test-u32-nfd-big.c: Likewise.
50928         * tests/uninorm/test-u32-nfkc.c: Likewise.
50929         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
50930         * tests/uninorm/test-u32-nfkd.c: Likewise.
50931         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
50932         * tests/uninorm/test-u32-normalize-big.c: Likewise.
50934 2010-03-27  Bruno Haible  <bruno@clisp.org>
50936         Distinguish two kinds of module indicators.
50937         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
50938         gl_MODULE_INDICATOR.
50939         (gl_MODULE_INDICATOR): New macro.
50940         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
50941         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
50942         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50943         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50944         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50945         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50946         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50947         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50948         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50949         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50950         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50951         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50954         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50956         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50957         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50958         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50959         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50960         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50961         * modules/cloexec (configure.ac): Likewise.
50962         * modules/getopt-gnu (configure.ac): Likewise.
50963         * modules/uninorm/u8-normalize (configure.ac): Likewise.
50964         * modules/uninorm/u16-normalize (configure.ac): Likewise.
50965         * modules/uninorm/u32-normalize (configure.ac): Likewise.
50966         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
50968 2010-03-27  Bruno Haible  <bruno@clisp.org>
50970         New module description field 'Comment'.
50971         * gnulib-tool: New option --extract-comment.
50972         (func_usage): Document it.
50973         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
50974         (func_get_comment): New function.
50975         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
50977 2010-03-27  Bruno Haible  <bruno@clisp.org>
50979         Addendum to 2010-02-07 commit.
50980         * gnulib-tool (func_usage): Document --extract-applicability option.
50982 2010-03-27  Bruno Haible  <bruno@clisp.org>
50984         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
50985         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
50986         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
50987         rather than link errors.
50989 2010-03-27  Bruno Haible  <bruno@clisp.org>
50991         Avoid side effects from tests-related modules on the compilation of lib.
50992         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
50993         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
50994         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
50995         parameter. Emit into AM_CPPFLAGS a definition of the designated C
50996         macro.
50997         (func_import): Define a witness macro. Assign it a value that depends
50998         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
50999         tests-related modules.
51000         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
51001         Reported by Jim Meyering.
51003 2010-03-27  Bruno Haible  <bruno@clisp.org>
51005         Factorize common .m4 code.
51006         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
51007         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
51008         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
51009         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
51010         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51011         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
51012         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
51013         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51014         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51015         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51016         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
51017         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51018         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51019         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51020         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51021         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
51022         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51023         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51025         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
51026         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
51027         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51028         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51030         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51031         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51032         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
51033         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
51034         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
51035         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51036         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51037         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51039 2010-03-27  Bruno Haible  <bruno@clisp.org>
51041         Fix a compilation error on Cygwin with g++ >= 4.3.
51042         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
51043         if it is undefined or if we alias it to chmod.
51044         (lstat): Don't warn about the use of this function if it is undefined
51045         or if we alias it to stat.
51046         Reported by Simon Josefsson.
51048 2010-03-27  Bruno Haible  <bruno@clisp.org>
51050         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
51051         * modules/getlogin (configure.ac): Update.
51053         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
51054         * modules/getlogin_r (configure.ac): Update.
51056         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
51057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
51058         * modules/inet_ntop (configure.ac): Update.
51060         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
51061         * modules/inet_pton (configure.ac): Update.
51063         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
51064         * modules/mbslen (configure.ac): Update.
51066         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
51067         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
51068         * modules/forkpty (configure.ac): Update.
51069         * modules/openpty (configure.ac): Update.
51071 2010-03-26  Simon Josefsson  <simon@josefsson.org>
51073         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
51074         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
51076 2010-03-25  Eric Blake  <eblake@redhat.com>
51078         maint: use pragma consistently across replacement headers
51079         * lib/ctype.in.h (system_header): Hoist for consistent placement.
51080         * lib/dirent.in.h (system_header): Likewise.
51081         * lib/errno.in.h (system_header): Likewise.
51082         * lib/float.in.h (system_header): Likewise.
51083         * lib/getopt.in.h (system_header): Likewise.
51084         * lib/iconv.in.h (system_header): Likewise.
51085         * lib/inttypes.in.h (system_header): Likewise.
51086         * lib/langinfo.in.h (system_header): Likewise.
51087         * lib/locale.in.h (system_header): Likewise.
51088         * lib/math.in.h (system_header): Likewise.
51089         * lib/netdb.in.h (system_header): Likewise.
51090         * lib/netinet_in.in.h (system_header): Likewise.
51091         * lib/pty.in.h (system_header): Likewise.
51092         * lib/sched.in.h (system_header): Likewise.
51093         * lib/se-selinux.in.h (system_header): Likewise.
51094         * lib/search.in.h (system_header): Likewise.
51095         * lib/spawn.in.h (system_header): Likewise.
51096         * lib/stdarg.in.h (system_header): Likewise.
51097         * lib/stdint.in.h (system_header): Likewise.
51098         * lib/string.in.h (system_header): Likewise.
51099         * lib/strings.in.h (system_header): Likewise.
51100         * lib/sys_file.in.h (system_header): Likewise.
51101         * lib/sys_ioctl.in.h (system_header): Likewise.
51102         * lib/sys_socket.in.h (system_header): Likewise.
51103         * lib/sys_times.in.h (system_header): Likewise.
51104         * lib/sys_utsname.in.h (system_header): Likewise.
51105         * lib/sys_wait.in.h (system_header): Likewise.
51106         * lib/sysexits.in.h (system_header): Likewise.
51107         * lib/unistd.in.h (system_header): Likewise.
51108         * lib/wctype.in.h (system_header): Likewise.
51110         arpa/inet: fix mingw compilation warning
51111         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
51112         Reported by Matthew Bolte.
51114 2010-03-25  Bruno Haible  <bruno@clisp.org>
51116         Avoid collision between gnulib wrapper and libintl wrapper.
51117         * lib/printf.c (printf): Don't define if a printf wrapper is already
51118         defined in intl/printf.c.
51119         Reported by Michel Boaventura <michel@michelboaventura.com>.
51121 2010-03-25  Bruno Haible  <bruno@clisp.org>
51123         Use ANSI C.
51124         * lib/readutmp.h (getutent): Provide ANSI C prototype.
51126 2010-03-25  Bruno Haible  <bruno@clisp.org>
51128         Minor formatting changes.
51129         * lib/acosl.c: Insert space before function argument list.
51130         * lib/argz.c: Likewise.
51131         * lib/asinl.c: Likewise.
51132         * lib/expl.c: Likewise.
51133         * lib/gen-uni-tables.c: Likewise.
51134         * lib/gettext.h: Likewise.
51135         * lib/glthread/lock.h: Likewise.
51136         * lib/tanl.c: Likewise.
51137         * lib/uniname/uniname.c: Likewise.
51138         * tests/test-idpriv-drop.c: Likewise.
51139         * tests/test-idpriv-droptemp.c: Likewise.
51140         * tests/test-lock.c: Likewise.
51141         * tests/test-tls.c: Likewise.
51142         * lib/argp-help.c: Insert space before function-like macro argument
51143         list.
51144         * lib/memcmp.c: Likewise.
51145         * tests/test-base64.c: Likewise.
51146         * lib/localename.c: Insert space before sizeof's argument list.
51147         * lib/safe-alloc.h: Likewise.
51148         * lib/file-set.h: Insert space before macro argument list.
51149         * tests/test-argp.c: Likewise.
51150         * lib/argp-namefrob.h: Insert space before function parameter list.
51151         * lib/getaddrinfo.c: Likewise.
51152         * lib/netdb.in.h: Likewise.
51153         * lib/parse-duration.h: Likewise.
51154         * lib/parse-duration.c: Likewise.
51155         * lib/poll.c: Likewise.
51156         * lib/select.c: Likewise.
51157         * lib/trim.h: Likewise.
51158         * tests/test-usleep.c: Likewise.
51159         * lib/ldexpl.c: Insert space before function parameter list and before
51160         function argument list.
51161         * lib/logl.c: Likewise.
51162         * lib/sqrtl.c: Likewise.
51163         * lib/trim.c: Likewise.
51164         * lib/cosl.c: Use GNU style indentation. Insert space before function
51165         argument list.
51166         * lib/sinl.c: Likewise.
51167         * lib/tsearch.c: Insert space after 'for'.
51168         Reported by Jim Meyering.
51170 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
51172         * maint.mk (sc_Wundef_boolean): Check for the presence of the
51173         config header before grepping, as it's not present before
51174         autoreconf/configure are run.  Reported by Simon Josefsson.
51176 2010-03-23  Bruno Haible  <bruno@clisp.org>
51178         pt_chown: Make it work with automake < 1.11.
51179         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
51180         Reported by Simon Josefsson.
51182 2010-03-23  Bruno Haible  <bruno@clisp.org>
51184         pt_chown: Don't depend on GPLed modules.
51185         * lib/pt_chown.c: Don't include idpriv.h.
51186         (main): Don't drop privileges.
51187         * modules/pt_chown (Depends-on): Remove idpriv-drop.
51188         Reported by Simon Josefsson.
51190 2010-03-24  Simon Josefsson  <simon@josefsson.org>
51192         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
51193         suggestions from karl@freefriends.org (Karl Berry).
51195 2010-03-22  Eric Blake  <eblake@redhat.com>
51197         gethostname: further tweaks
51198         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
51199         are overriding gethostname.
51200         Suggested by Bruno Haible.
51202 2010-03-21  Bruno Haible  <bruno@clisp.org>
51204         Fix comments.
51205         * lib/forkpty.c (rpl_forkpty): Fix comment.
51206         * lib/openpty.c (rpl_openpty): Likewise.
51207         Reported by Eric Blake.
51209 2010-03-22  Eric Blake  <eblake@redhat.com>
51211         gethostname: fix build on mingw
51212         * lib/unistd.in.h (includes): Work around fact that mingw
51213         <winsock2.h> re-includes <unistd.h>, by avoiding any
51214         redeclarations if we are being included by <winsock2.h>.
51215         Reported by Matthias Bolte.
51217 2010-03-21  Bruno Haible  <bruno@clisp.org>
51219         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51220         * lib/forkpty.c (forkpty): New replacement function, from glibc with
51221         modifications.
51222         * lib/pty.in.h (forkpty): Update declaration. Add comments.
51223         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
51224         provide the replacement.
51225         * modules/forkpty (Depends-on): Add openpty, login_tty.
51226         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
51227         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
51228         * doc/glibc-functions/forkpty.texi: More supported platforms.
51229         * config/srclist.txt: Add forkpty.c (commented).
51231 2010-03-21  Bruno Haible  <bruno@clisp.org>
51233         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
51234         (Makefile.am): Verify that PTY_LIB is defined.
51236         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
51238 2010-03-21  Bruno Haible  <bruno@clisp.org>
51240         Tests for module 'login_tty'.
51241         * modules/login_tty-tests: New file.
51242         * tests/test-login_tty.c: New file.
51244         New module 'login_tty'.
51245         * lib/login_tty.c: New file.
51246         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
51247         * modules/login_tty: New file.
51248         * doc/glibc-functions/login_tty.texi: Mention the new module.
51250 2010-03-21  Bruno Haible  <bruno@clisp.org>
51252         login_tty: Documentation.
51253         * doc/glibc-functions/login_tty.texi: New file.
51254         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
51256 2010-03-21  Bruno Haible  <bruno@clisp.org>
51258         pty: Consistent macro naming.
51259         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
51260         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
51261         * modules/pty (configure.ac): Update.
51263 2010-03-21  Bruno Haible  <bruno@clisp.org>
51265         Tests for openpty: Make stricter.
51266         * tests/test-openpty.c (main): Add test of canonical processing and
51267         erase.
51268         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
51270         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51271         * lib/openpty.c (openpty): New replacement function.
51272         * lib/pty.in.h: Include <termios.h>.
51273         (openpty): Update declaration. Add comments.
51274         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
51275         is not declared, arrange to provide the replacement. Check for _getpty
51276         and posix_openpt.
51277         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
51278         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
51279         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
51280         * modules/pty-tests (test_pty_c___LDADD): New variable.
51281         * doc/glibc-functions/openpty.texi: More supported platforms.
51283 2010-03-21  Bruno Haible  <bruno@clisp.org>
51285         setenv: Tweaks.
51286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
51287         the test program.
51288         * doc/posix-functions/setenv.texi: Update platforms list.
51290 2010-03-21  Bruno Haible  <bruno@clisp.org>
51292         New module 'unlockpt'.
51293         * lib/unlockpt.c: New file, from glibc with modifications.
51294         * m4/unlockpt.m4: New file.
51295         * modules/unlockpt: New file.
51296         * lib/stdlib.in.h (unlockpt): New declaration.
51297         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
51298         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
51299         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
51300         HAVE_UNLOCKPT.
51301         * doc/posix-functions/unlockpt.texi: Mention the new module.
51302         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
51303         * config/srclist.txt: Add unlockpt.c (commented).
51305 2010-03-21  Jim Meyering  <meyering@redhat.com>
51307         maint.mk: prohibit inclusion of "intprops.h" without use
51308         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
51310 2010-03-21  Bruno Haible  <bruno@clisp.org>
51312         New module 'grantpt'.
51313         * lib/grantpt.c: New file, from glibc with modifications.
51314         * m4/grantpt.m4: New file.
51315         * modules/grantpt: New file.
51316         * lib/stdlib.in.h (grantpt): New declaration.
51317         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
51318         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
51319         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
51320         HAVE_GRANTPT.
51321         * doc/posix-functions/grantpt.texi: Mention the new module.
51322         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
51323         * config/srclist.txt: Add grantpt.c (commented).
51325 2010-03-21  Bruno Haible  <bruno@clisp.org>
51327         New module 'pt_chown'.
51328         * lib/pt_chown.c: New file, from glibc with modifications.
51329         * lib/pty-private.h: New file, from glibc with modifications.
51330         * modules/pt_chown: New file.
51331         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
51333 2010-03-21  Bruno Haible  <bruno@clisp.org>
51335         Tests for module 'ptsname'.
51336         * modules/ptsname-tests: New file.
51337         * tests/test-ptsname.c: New file.
51339         New module 'ptsname'.
51340         * lib/ptsname.c: New file, from glibc with modifications.
51341         * m4/ptsname.m4: New file.
51342         * modules/ptsname: New file.
51343         * lib/stdlib.in.h (ptsname): New declaration.
51344         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
51345         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
51346         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
51347         HAVE_PTSNAME.
51348         * doc/posix-functions/ptsname.texi: Mention the new module.
51349         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
51350         * config/srclist.txt: Add ptsname.c (commented).
51352 2010-03-21  Bruno Haible  <bruno@clisp.org>
51354         Tests for module 'ttyname_r'.
51355         * modules/ttyname_r-tests: New file.
51356         * tests/test-ttyname_r.c: New file.
51358         New module 'ttyname_r'.
51359         * lib/ttyname_r.c: New file.
51360         * m4/ttyname_r.m4: New file.
51361         * modules/ttyname_r: New file.
51362         * lib/unistd.in.h (ttyname_r): New declaration.
51363         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
51364         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
51365         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
51366         HAVE_TTYNAME_R.
51367         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
51368         * doc/posix-functions/ttyname_r.texi: Mention the new module.
51370 2010-03-20  Bruno Haible  <bruno@clisp.org>
51372         signal: Undefine macro definitions in C++ mode.
51373         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
51374         sigfillset): Undefine macro definitions from the system header in C++
51375         mode.
51376         Reported by John W. Eaton <jwe@gnu.org>.
51378 2010-03-20  Bruno Haible  <bruno@clisp.org>
51380         Ensure no #include statements inside extern "C" { ... }.
51381         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
51382         contain #include statements.
51383         * lib/time.in.h: Likewise.
51385 2010-03-20  Bruno Haible  <bruno@clisp.org>
51387         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
51388         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
51389         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
51390         Reported by John W. Eaton <jwe@gnu.org>.
51392 2010-03-20  Bruno Haible  <bruno@clisp.org>
51394         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
51395         Reported by Jim Meyering.
51397 2010-03-20  Bruno Haible  <bruno@clisp.org>
51399         pipe: Set errno upon failure.
51400         * lib/pipe.h: Specify that when -1 is returned, errno is set.
51401         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
51402         errno value in error message.
51404 2010-03-20  Bruno Haible  <bruno@clisp.org>
51405             Jim Meyering  <meyering@redhat.com>
51407         lchown: Avoid "unused variable" warning.
51408         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
51410 2010-03-20  Bruno Haible  <bruno@clisp.org>
51412         Work around unlink() bug on MacOS X 10.5.6.
51413         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
51414         attempting to unlink a parent directory.
51415         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
51416         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
51417         activate for the replacement function.
51418         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
51420 2010-03-20  Bruno Haible  <bruno@clisp.org>
51422         Fix link errors on Solaris 8.
51423         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
51424         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
51426 2010-03-19  Jim Meyering  <meyering@redhat.com>
51428         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
51429         The _LIBC implementation of build_range_exp correctly honors the
51430         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
51431         However, the non-_LIBC implementation would ignore that syntax-bit
51432         flag and return REG_ERANGE unconditionally.
51433         This change makes it honor that flag.
51434         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
51435         Make two pointer parameters "const".
51436         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
51437         (parse_bracket_exp): Update caller.
51439         regex.m4: correct the reversed range endpoint ([b-a]) test
51440         * m4/regex.m4: When requiring that [b-a] evoke failure,
51441         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
51442         test pass once again for x86-based systems.
51444 2010-03-19  Bruno Haible  <bruno@clisp.org>
51446         scandir: Fix link error on Solaris 8.
51447         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
51448         macros.
51450 2010-03-19  Bruno Haible  <bruno@clisp.org>
51452         getusershell: Fix documentation.
51453         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
51454         module.
51455         * doc/glibc-functions/setusershell.texi: Likewise.
51457         getusershell: Provide declaration, missing on Solaris 9.
51458         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
51459         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
51460         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
51461         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
51462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51463         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
51464         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
51465         HAVE_GETUSERSHELL.
51466         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
51468 2010-03-19  Bruno Haible  <bruno@clisp.org>
51470         wctype: Provide iswblank function.
51471         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
51472         exists and is fine.
51473         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
51474         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
51475         * tests/test-wctype.c (main): Re-enable the iswblank tests.
51476         * doc/posix-functions/iswblank.texi: Update.
51478 2010-03-19  Bruno Haible  <bruno@clisp.org>
51480         Tests of module 'pty' in C++ mode.
51481         * modules/pty-tests: New file.
51482         * tests/test-pty-c++.cc: New file.
51483         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51485 2010-03-19  Eric Blake  <eblake@redhat.com>
51487         logb: fix documentation
51488         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
51489         1.5 declaration bug.
51491         forkpty, openpty: prefer glibc's const-safe prototype
51492         * lib/forkpty.c (rpl_forkpty): New file.
51493         * lib/openpty.c (rpl_openpty): Likewise.
51494         * modules/forkpty (Files): Distribute it.
51495         * modules/openpty (Files): Likewise.
51496         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
51497         check...
51498         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
51499         replacement for non-const BSD signature.
51500         * modules/pty (Makefile.am): Substitute witnesses.
51501         * lib/pty.in.h (forkpty, openpty): Declare replacements.
51502         * tests/test-forkpty.c: Update signature check.
51503         * tests/test-openpty.c: Likewise.
51504         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
51505         * doc/glibc-functions/openpty.texi (openpty): Likewise.
51507         forkpty, openpty: split functions into new modules
51508         * modules/pty (Makefile.am): Substitute new witnesses.
51509         (Libraries): Move library detection...
51510         * modules/forkpty: ...into new module.
51511         * modules/openpty: Another new module.
51512         * modules/pty-tests: Rename and split...
51513         * modules/forkpty-tests: ...to this...
51514         * modules/openpty-tests: ...and this.
51515         * tests/test-pty.c: Rename and split...
51516         * tests/test-forkpty.c: ...to this...
51517         * tests/test-openpty.c: ...and this.
51518         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
51519         (gl_PTY): Split library searching...
51520         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
51521         (gl_FORKPTY, gl_OPENPTY): New macros.
51522         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
51523         * NEWS: Mention the split.
51524         * MODULES.html.sh (Misc): Document the modules.
51525         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
51526         * doc/glibc-functions/openpty.texi (openpty): Likewise.
51528         pty: improve replacement header
51529         * lib/pty.in.h: New file.
51530         * modules/pty (Files): Ship it.
51531         (Makefile.am): Always build replacement.
51532         * m4/pty.m4: Rename...
51533         * m4/pty_h.m4: ...to this.
51534         (gl_PTY): Modernize setting of witness macros; update check of
51535         forkpty to take proper advantage of cache.
51536         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
51538         getopt: avoid compiler warning
51539         * lib/getopt.c (attribute_hidden): Remove unused macro.
51541 2010-03-18  Bruno Haible  <bruno@clisp.org>
51543         Fix link errors on Solaris 8.
51544         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
51545         * modules/search-tests (test_search_c___LDADD): Likewise.
51546         * modules/signal-tests (test_signal_c___LDADD): Likewise.
51547         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
51548         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
51549         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
51550         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
51551         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
51552         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
51554 2010-03-18  Bruno Haible  <bruno@clisp.org>
51556         Fix bug introduced on 2010-03-14.
51557         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
51558         (gl_SPAWN_H): Require it.
51559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
51560         Reported by Simon Josefsson.
51562 2010-03-18  Bruno Haible  <bruno@clisp.org>
51564         Fix typo introduced on 2009-12-31.
51565         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
51566         posix_spawn_file_actions_adddup2.
51568 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
51569         and Eric Blake  <eblake@redhat.com>
51571         test-vc-list-files-git: make more robust
51572         * tests/test-vc-list-files-git.sh: Unset problematic environment
51573         variables.  Chain commands together.
51575 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
51577         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
51578         `AC_CHECK_DECL' invocation.
51580 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
51582         * lib/inttostr.c (inttostr): Make sure the invocation of verify
51583         appears before executable statements. Suggested by Petr Sumbera
51584         <Petr.Sumbera@Sun.COM>.
51586 2010-03-14  Bruno Haible  <bruno@clisp.org>
51588         * tests/test-flock.c (test_exclusive): Comment out a test that causes
51589         portability problems. Instead use a simpler test.
51590         (main): Check that invalid arguments are rejected only on Linux.
51592 2010-03-14  Bruno Haible  <bruno@clisp.org>
51594         Fix bug introduced on 2009-12-31.
51595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
51596         gl_PREREQ_SYS_H_WINSOCK2 always.
51597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
51598         SYS_SOCKET_H variable.
51599         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
51600         Update comments.
51601         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
51602         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51603         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51604         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51605         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
51607 2010-03-14  Bruno Haible  <bruno@clisp.org>
51609         Fix values returned by sinl, cosl.
51610         * lib/trigl.h: Add specification comments.
51611         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
51612         that combines the values from the precomputed table with the values of
51613         the Chebyshev polynomials.
51615 2010-03-14  Bruno Haible  <bruno@clisp.org>
51617         Fix compilation error when modules 'posix_spawn[p]' are not used.
51618         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
51619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
51621 2010-03-14  Bruno Haible  <bruno@clisp.org>
51623         Fix compilation error on mingw when module 'time_r' is not used.
51624         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
51625         is 1.
51626         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
51627         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51628         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
51629         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
51631 2010-03-14  Bruno Haible  <bruno@clisp.org>
51633         Fix compilation error with Sun C.
51634         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
51635         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
51636         instead of GCC specific ULONG_LONG_MAX.
51637         * lib/xstrtoll.c: Likewise.
51638         * lib/xstrtoull.c: Likewise.
51640 2010-03-13  Bruno Haible  <bruno@clisp.org>
51642         Allow the user to disable C++ code and tests.
51643         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
51644         (gl_PROG_ANSI_CXX): Require it.
51646 2010-03-13  Bruno Haible  <bruno@clisp.org>
51648         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
51649         cases.
51651 2010-03-13  Bruno Haible  <bruno@clisp.org>
51653         Test that gnulib does not break the standard C++ headers.
51654         * tests/test-locale-c++2.cc: New file.
51655         * modules/locale-tests (Files): Add it.
51656         (Makefile.am): Compile it for test-locale-c++.
51657         * tests/test-math-c++2.cc: New file.
51658         * modules/math-tests (Files): Add it.
51659         (Makefile.am): Compile it for test-math-c++.
51660         * tests/test-signal-c++2.cc: New file.
51661         * modules/signal-tests (Files): Add it.
51662         (Makefile.am): Compile it for test-signal-c++.
51663         * tests/test-stdio-c++2.cc: New file.
51664         * modules/stdio-tests (Files): Add it.
51665         (Makefile.am): Compile it for test-stdio-c++.
51666         * tests/test-stdlib-c++2.cc: New file.
51667         * modules/stdlib-tests (Files): Add it.
51668         (Makefile.am): Compile it for test-stdlib-c++.
51669         * tests/test-string-c++2.cc: New file.
51670         * modules/string-tests (Files): Add it.
51671         (Makefile.am): Compile it for test-string-c++.
51672         * tests/test-time-c++2.cc: New file.
51673         * modules/time-tests (Files): Add it.
51674         (Makefile.am): Compile it for test-time-c++.
51675         Reported by John W. Eaton <jwe@gnu.org>.
51677 2010-03-13  Bruno Haible  <bruno@clisp.org>
51679         * gnulib-tool (func_usage): Clarify which options are available for
51680         --create-testdir and --create-megatestdir.
51682 2010-03-13  Bruno Haible  <bruno@clisp.org>
51684         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
51685         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
51686         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
51687         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
51688         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
51689         when appropriate.
51690         Reported by Jim Meyering.
51692 2010-03-12  Simon Josefsson  <simon@josefsson.org>
51694         * gnulib-tool (func_import): Explain origin of code.
51696 2010-03-12  Bruno Haible  <bruno@clisp.org>
51698         Fix problem with automake's definition of CXXLINK.
51699         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
51700         Reported by Simon Josefsson and Ludovic Courtès.
51702 2010-03-12  Bruno Haible  <bruno@clisp.org>
51704         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
51705         stable releases.
51707 2010-03-11  Bruno Haible  <bruno@clisp.org>
51709         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
51710         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
51711         whether the system provides one variant or multiple variants of the
51712         function.
51713         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
51714         C++ compilers.
51715         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
51716         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
51717         Reported by Jim Meyering.
51719 2010-03-09  Simon Josefsson  <simon@josefsson.org>
51721         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
51723 2010-03-08  Bruno Haible  <bruno@clisp.org>
51725         gnulib-tool: Add support for --libtool in --create-testdir.
51726         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
51727         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
51729 2010-03-08  Eric Blake  <eblake@redhat.com>
51731         gnulib-tool.texi: mention possibility of git submodule
51732         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
51733         submodules.
51734         * doc/.gitignore: Ignore another generated file.
51736 2010-03-08  Karl Berry  <karl@gnu.org>
51738         * doc/gnulib-tool.texi (VCS Issues): Mention third option
51739         of committing gnulib files while skipping others.
51741 2010-03-07  Bruno Haible  <bruno@clisp.org>
51743         Tests of module 'wctype' in C++ mode.
51744         * tests/test-wctype-c++.cc: New file.
51745         * modules/wctype-tests (Files): Add it and tests/signature.h.
51746         (Depends-on): Add ansi-c++-opt.
51747         (Makefile.am): Arrange to compile and run test-wctype-c++.
51749         Tests of module 'wchar' in C++ mode.
51750         * tests/test-wchar-c++.cc: New file.
51751         * modules/wchar-tests (Files): Add it and tests/signature.h.
51752         (Depends-on): Add ansi-c++-opt.
51753         (Makefile.am): Arrange to compile and run test-wchar-c++.
51754         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
51755         gl_MODULE_INDICATOR.
51757         Tests of module 'unistd' in C++ mode.
51758         * tests/test-unistd-c++.cc: New file.
51759         * modules/unistd-tests (Files): Add it and tests/signature.h.
51760         (Depends-on): Add ansi-c++-opt.
51761         (Makefile.am): Arrange to compile and run test-unistd-c++.
51762         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
51763         gl_MODULE_INDICATOR.
51765         Tests of module 'time' in C++ mode.
51766         * tests/test-time-c++.cc: New file.
51767         * modules/time-tests (Files): Add it and tests/signature.h.
51768         (Depends-on): Add ansi-c++-opt.
51769         (Makefile.am): Arrange to compile and run test-time-c++.
51770         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51772         Tests of module 'sys_time' in C++ mode.
51773         * tests/test-sys_time-c++.cc: New file.
51774         * modules/sys_time-tests (Files): Add it and tests/signature.h.
51775         (Depends-on): Add ansi-c++-opt.
51776         (Makefile.am): Arrange to compile and run test-sys_time-c++.
51777         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
51778         gl_MODULE_INDICATOR.
51780         Tests of module 'sys_stat' in C++ mode.
51781         * tests/test-sys_stat-c++.cc: New file.
51782         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
51783         (Depends-on): Add ansi-c++-opt.
51784         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
51785         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
51786         gl_MODULE_INDICATOR.
51788         Tests of module 'sys_socket' in C++ mode.
51789         * tests/test-sys_socket-c++.cc: New file.
51790         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
51791         (Depends-on): Add ansi-c++-opt.
51792         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
51793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
51794         gl_MODULE_INDICATOR.
51796         Tests of module 'sys_select' in C++ mode.
51797         * tests/test-sys_select-c++.cc: New file.
51798         * modules/sys_select-tests (Files): Add it and tests/signature.h.
51799         (Depends-on): Add ansi-c++-opt.
51800         (Makefile.am): Arrange to compile and run test-sys_select-c++.
51801         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
51802         gl_MODULE_INDICATOR.
51804         Tests of module 'sys_ioctl' in C++ mode.
51805         * tests/test-sys_ioctl-c++.cc: New file.
51806         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
51807         (Depends-on): Add ansi-c++-opt.
51808         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
51809         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
51810         gl_MODULE_INDICATOR.
51812         Tests of module 'string' in C++ mode.
51813         * tests/test-string-c++.cc: New file.
51814         * modules/string-tests (Files): Add it and tests/signature.h.
51815         (Depends-on): Add ansi-c++-opt.
51816         (Makefile.am): Arrange to compile and run test-string-c++.
51817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
51818         gl_MODULE_INDICATOR.
51820         Tests of module 'stdlib' in C++ mode.
51821         * tests/test-stdlib-c++.cc: New file.
51822         * modules/stdlib-tests (Files): Add it and tests/signature.h.
51823         (Depends-on): Add ansi-c++-opt.
51824         (Makefile.am): Arrange to compile and run test-stdlib-c++.
51825         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
51826         gl_MODULE_INDICATOR.
51828         Tests of module 'stdio' in C++ mode.
51829         * tests/test-stdio-c++.cc: New file.
51830         * modules/stdio-tests (Files): Add it and tests/signature.h.
51831         (Depends-on): Add ansi-c++-opt.
51832         (Makefile.am): Arrange to compile and run test-stdio-c++.
51833         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
51834         gl_MODULE_INDICATOR.
51836         Tests of module 'spawn' in C++ mode.
51837         * tests/test-spawn-c++.cc: New file.
51838         * modules/spawn-tests (Files): Add it and tests/signature.h.
51839         (Depends-on): Add ansi-c++-opt.
51840         (Makefile.am): Arrange to compile and run test-spawn-c++.
51841         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
51842         gl_MODULE_INDICATOR.
51844         Tests of module 'signal' in C++ mode.
51845         * tests/test-signal-c++.cc: New file.
51846         * modules/signal-tests (Files): Add it and tests/signature.h.
51847         (Depends-on): Add ansi-c++-opt.
51848         (Makefile.am): Arrange to compile and run test-signal-c++.
51849         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
51850         gl_MODULE_INDICATOR.
51852         Tests of module 'search' in C++ mode.
51853         * tests/test-search-c++.cc: New file.
51854         * modules/search-tests (Files): Add it and tests/signature.h.
51855         (Depends-on): Add ansi-c++-opt.
51856         (Makefile.am): Arrange to compile and run test-search-c++.
51857         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
51858         gl_MODULE_INDICATOR.
51860         Tests of module 'math' in C++ mode.
51861         * tests/test-math-c++.cc: New file.
51862         * modules/math-tests (Files): Add it and tests/signature.h.
51863         (Depends-on): Add ansi-c++-opt.
51864         (Makefile.am): Arrange to compile and run test-math-c++.
51865         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51867         Tests of module 'locale' in C++ mode.
51868         * tests/test-locale-c++.cc: New file.
51869         * modules/locale-tests (Files): Add it and tests/signature.h.
51870         (Depends-on): Add ansi-c++-opt.
51871         (Makefile.am): Arrange to compile and run test-locale-c++.
51872         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
51873         gl_MODULE_INDICATOR.
51875         Tests of module 'langinfo' in C++ mode.
51876         * tests/test-langinfo-c++.cc: New file.
51877         * modules/langinfo-tests (Files): Add it and tests/signature.h.
51878         (Depends-on): Add ansi-c++-opt.
51879         (Makefile.am): Arrange to compile and run test-langinfo-c++.
51880         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
51881         gl_MODULE_INDICATOR.
51883         Tests of module 'iconv-h' in C++ mode.
51884         * tests/test-iconv-h-c++.cc: New file.
51885         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
51886         (Depends-on): Add ansi-c++-opt.
51887         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
51889         Tests of module 'glob' in C++ mode.
51890         * tests/test-glob-c++.cc: New file.
51891         * modules/glob-tests (Files): Add it.
51892         (Depends-on): Add ansi-c++-opt.
51893         (Makefile.am): Arrange to compile and run test-glob-c++.
51895         Tests of module 'fcntl-h' in C++ mode.
51896         * tests/test-fcntl-h-c++.cc: New file.
51897         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
51898         (Depends-on): Add ansi-c++-opt.
51899         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
51900         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
51901         gl_MODULE_INDICATOR.
51903         Tests of module 'dirent' in C++ mode.
51904         * tests/test-dirent-c++.cc: New file.
51905         * modules/dirent-tests (Files): Add it and tests/signature.h.
51906         (Depends-on): Add ansi-c++-opt.
51907         (Makefile.am): Arrange to compile and run test-dirent-c++.
51908         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51909         gl_MODULE_INDICATOR.
51911         New module 'ansi-c++-opt'.
51912         * modules/ansi-c++-opt: New file.
51913         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
51915         Document C++ namespace mode.
51916         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
51918         wctype: Avoid #define replacements in C++ mode.
51919         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
51920         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
51921         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
51922         In C++, define a namespaced alias symbol.
51923         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
51924         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
51925         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
51926         rule.
51928         wchar: Avoid #define replacements in C++ mode.
51929         * lib/wchar.in.h: Include c++defs.h.
51930         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
51931         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
51932         symbol.
51933         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
51934         * modules/wchar (Depends-on): Add c++defs.
51935         (Makefile.am): Update wchar.h rule.
51937         unistd: Avoid #define replacements in C++ mode.
51938         * lib/unistd.in.h: Include c++defs.h.
51939         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
51940         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
51941         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
51942         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
51943         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
51944         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
51945         symbol.
51946         (environ): Update.
51947         * modules/unistd (Depends-on): Add c++defs.
51948         (Makefile.am): Update unistd.h rule.
51950         time: Avoid #define replacements in C++ mode.
51951         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
51952         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
51953         define a namespaced alias symbol.
51954         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
51955         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
51956         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
51957         * modules/time (Depends-on): Add c++defs, warn-on-use.
51958         (Makefile.am): Update time.h rule.
51959         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51960         * modules/nanosleep (configure.ac): Likewise.
51961         * modules/strptime (configure.ac): Likewise.
51962         * modules/timegm (configure.ac): Likewise.
51964         sys_time: Avoid #define replacements in C++ mode.
51965         * lib/sys_time.in.h: Include c++defs.h.
51966         (gettimeofday): In C++, define a namespaced alias symbol.
51967         * modules/sys_time (Depends-on): Add c++defs.
51968         (Makefile.am): Update sys/time.h rule.
51970         sys_stat: Avoid #define replacements in C++ mode.
51971         * lib/sys_stat.in.h: Include c++defs.h.
51972         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
51973         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
51974         namespaced alias symbol.
51975         In C++, define a namespaced alias symbol.
51976         * modules/sys_stat (Depends-on): Add c++defs.
51977         (Makefile.am): Update sys/stat.h rule.
51979         sys_socket: Avoid #define replacements in C++ mode.
51980         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
51981         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
51982         definitions also when the system has a <sys/socket.h>.
51983         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51984         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
51985         In C++, define a namespaced alias symbol.
51986         * modules/sys_socket (Depends-on): Add c++defs.
51987         (Makefile.am): Update sys/socket.h rule.
51989         sys_select: Avoid #define replacements in C++ mode.
51990         * lib/sys_select.in.h: Include c++defs.h. Enable the function
51991         definitions also when the system has a <sys/select.h>.
51992         (select): In C++, define a namespaced alias symbol.
51993         * modules/sys_select (Depends-on): Add c++defs.
51994         (Makefile.am): Update sys/select.h rule.
51996         sys_ioctl: Avoid #define replacements in C++ mode.
51997         * lib/sys_ioctl.in.h: Include c++defs.h.
51998         (ioctl): In C++, define a namespaced alias symbol.
51999         * modules/sys_ioctl (Depends-on): Add c++defs.
52000         (Makefile.am): Update sys/ioctl.h rule.
52002         string: Avoid #define replacements in C++ mode.
52003         * lib/string.in.h: Include c++defs.h.
52004         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
52005         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52006         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52007         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
52008         strsignal, strverscmp): In C++, define a namespaced alias symbol.
52009         * modules/string (Depends-on): Add c++defs.
52010         (Makefile.am): Update string.h rule.
52012         stdlib: Avoid #define replacements in C++ mode.
52013         * lib/stdlib.in.h: Include c++defs.h.
52014         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
52015         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
52016         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
52017         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
52018         symbol.
52019         * modules/stdlib (Depends-on): Add c++defs.
52020         (Makefile.am): Update stdlib.h rule.
52022         stdio: Avoid #define replacements in C++ mode.
52023         * lib/stdio.in.h: Include c++defs.h.
52024         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
52025         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
52026         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
52027         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
52028         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
52029         namespaced alias symbol.
52030         * modules/stdio (Depends-on): Add c++defs.
52031         (Makefile.am): Update stdio.h rule.
52033         spawn: Avoid #define replacements in C++ mode.
52034         * lib/spawn.in.h: Include c++defs.h.
52035         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52036         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52037         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52038         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52039         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52040         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52041         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52042         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52043         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52044         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52045         In C++, define a namespaced alias symbol.
52046         * modules/spawn (Depends-on): Add c++defs.
52047         (Makefile.am): Update spawn.h rule.
52049         signal: Avoid #define replacements in C++ mode.
52050         * lib/signal.in.h: Include c++defs.h.
52051         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52052         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
52053         namespaced alias symbol.
52054         * modules/signal (Depends-on): Add c++defs.
52055         (Makefile.am): Update signal.h rule.
52057         search: Avoid #define replacements in C++ mode.
52058         * lib/search.in.h: Include c++defs.h.
52059         (_gl_search_compar_fn, _gl_search_action_fn): New types.
52060         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
52061         symbol.
52062         * modules/search (Depends-on): Add c++defs.
52063         (Makefile.am): Update search.h rule.
52065         math: Avoid #define replacements in C++ mode.
52066         * lib/math.in.h: Include c++defs.h.
52067         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
52068         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
52069         trunc, truncl): In C++, define a namespaced alias symbol.
52070         * modules/math (Depends-on): Add c++defs.
52071         (Makefile.am): Update math.h rule.
52073         locale: Avoid #define replacements in C++ mode.
52074         * lib/locale.in.h: Include c++defs.h.
52075         (duplocale): In C++, define a namespaced alias symbol.
52076         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
52077         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
52078         * modules/locale (Depends-on): Add c++defs.
52079         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
52081         langinfo: Avoid #define replacements in C++ mode.
52082         * lib/langinfo.in.h: Include c++defs.h.
52083         (nl_langinfo): In C++, define a namespaced alias symbol.
52084         * modules/langinfo (Depends-on): Add c++defs.
52085         (Makefile.am): Update langinfo.h rule.
52087         iconv-h: Avoid #define replacements in C++ mode.
52088         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
52089         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
52090         symbol.
52091         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52092         whenever iconv is present.
52093         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
52094         (Makefile.am): Update iconv.h rule.
52096         glob: Avoid #define replacements in C++ mode.
52097         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
52098         (_gl_glob_errfunc_fn): New type.
52099         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
52100         symbol.
52101         * modules/glob (Depends-on): Add c++defs, warn-on-use.
52102         (Makefile.am): Update glob.h rule.
52104         fcntl-h: Avoid #define replacements in C++ mode.
52105         * lib/fcntl.in.h: Include c++defs.h.
52106         (fcntl, open, openat): In C++, define a namespaced alias symbol.
52107         * modules/fcntl-h (Depends-on): Add c++defs.
52108         (Makefile.am): Update fcntl.h rule.
52110         dirent: Avoid #define replacements in C++ mode.
52111         * lib/dirent.in.h: Include c++defs.h.
52112         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
52113         namespaced alias symbol.
52114         (dirfd): Update declaration.
52115         * modules/dirent (Depends-on): Add c++defs.
52116         (Makefile.am): Update dirent.h rule.
52118         ctype: Make it usable in C++ code.
52119         * lib/ctype.in.h: Include c++defs.h.
52120         (isblank): Declare as extern "C".
52121         * modules/ctype (Depends-on): Add c++defs.
52122         (Makefile.am): Update ctype.h rule.
52124         New module 'c++defs'.
52125         * modules/c++defs: New file.
52126         * build-aux/c++defs.h: New file.
52127         Reported by John W. Eaton <jwe@gnu.org>.
52129 2010-03-07  Bruno Haible  <bruno@clisp.org>
52131         logb: Provide missing declaration for Cygwin.
52132         * lib/math.in.h (logb): New declaration.
52133         * m4/logb.m4: New file.
52134         * modules/logb (Files): Add m4/logb.m4.
52135         (Depends-on): Add math.
52136         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
52137         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
52138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
52139         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
52140         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
52142 2010-03-07  Bruno Haible  <bruno@clisp.org>
52144         Fix test-cond link error.
52145         * tests/test-cond.c: Include <stdio.h>.
52147 2010-03-07  Bruno Haible  <bruno@clisp.org>
52149         Fix test-dirent-safer link error.
52150         * modules/dirent-safer-tests (Makefile.am): Define
52151         test_dirent_safer_LDADD.
52153 2010-03-07  Bruno Haible  <bruno@clisp.org>
52155         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
52156         among default module list.
52158 2010-03-07  Bruno Haible  <bruno@clisp.org>
52160         Fix link error on platforms with GNU libiconv.
52161         * modules/unistr/u8-strcoll-tests (Makefile): Define
52162         test_u8_strcoll_LDADD.
52163         * modules/unistr/u16-strcoll-tests (Makefile): Define
52164         test_u16_strcoll_LDADD.
52165         * modules/unistr/u32-strcoll-tests (Makefile): Define
52166         test_u32_strcoll_LDADD.
52168 2010-03-07  Bruno Haible  <bruno@clisp.org>
52170         Use POSIX declarations for socket functions.
52171         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
52172         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
52173         rpl_sendto): Change declaration to match POSIX.
52174         * lib/connect.c (rpl_connect): Likewise.
52175         * lib/accept.c (rpl_accept): Likewise.
52176         * lib/bind.c (rpl_bind): Likewise.
52177         * lib/getpeername.c (rpl_getpeername): Likewise.
52178         * lib/getsockname.c (rpl_getsockname): Likewise.
52179         * lib/recv.c (rpl_recv): Likewise.
52180         * lib/send.c (rpl_send): Likewise.
52181         * lib/recvfrom.c (rpl_recvfrom): Likewise.
52182         * lib/sendto.c (rpl_sendto): Likewise.
52184 2010-03-06  Bruno Haible  <bruno@clisp.org>
52186         Clarify access, euidaccess, faccessat.
52187         * doc/posix-functions/faccessat.texi: Mention security problem under
52188         "Other problems", not "Portability problems".
52189         * doc/posix-functions/access.texi: Likewise. Mention a related security
52190         problem.
52191         * doc/glibc-functions/euidaccess.texi: Mention security problems.
52192         * lib/euidaccess.c: Add comments about platforms.
52193         * lib/unistd.in.h (access, euidaccess): Add warnings.
52195 2010-03-07  Bruno Haible  <bruno@clisp.org>
52197         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
52198         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
52199         (POSIX_SPAWN_SETSCHEDULER): Likewise.
52200         (POSIX_SPAWN_USEVFORK): Define in a way that works when
52201         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52202         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
52203         declare when POSIX_SPAWN_SETSCHEDULER is zero.
52204         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
52205         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
52206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
52207         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
52208         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
52209         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
52210         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
52211         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
52212         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
52213         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
52214         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
52215         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
52216         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
52217         Likewise.
52218         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
52219         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
52220         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
52221         Likewise.
52222         * tests/test-spawn.c (main): Make it work when
52223         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52225 2010-03-07  Bruno Haible  <bruno@clisp.org>
52227         Fix incorrect Makefile.am generation in German locale.
52228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52229         Execute sed command with character range in C locale.
52231 2010-03-06  Bruno Haible  <bruno@clisp.org>
52233         Tests for module 'iconv-h'.
52234         * modules/iconv-h-tests: New file.
52235         * tests/test-iconv-h.c: New file.
52237         New module 'iconv-h'.
52238         * modules/iconv-h: New file.
52239         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
52240         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
52241         (configure.ac): Remove gl_ICONV_H.
52242         (Makefile.am): Remove rule for iconv.h.
52244 2010-03-06  Bruno Haible  <bruno@clisp.org>
52246         More consistent naming of *.m4 files.
52247         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
52248         * modules/wctype (Files): Update.
52250         More consistent naming of *.m4 files.
52251         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
52252         * modules/wchar (Files): Update.
52254 2010-03-06  Jim Meyering  <meyering@redhat.com>
52256         euidaccess: relax license to LGPLv2+
52257         * modules/euidaccess (License): Relax to LGPLv2+.
52259 2010-03-06  Bruno Haible  <bruno@clisp.org>
52261         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
52262         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
52263         (Makefile.am): Augment lib_SOURCES instead.
52265 2010-03-04  Jim Meyering  <meyering@redhat.com>
52267         utime: remove obsolete module
52268         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
52269         unnecessary for years, and has been marked as obsolete for 10 months.
52270         * modules/utime: Remove file.
52271         * lib/utime.c: Remove file.
52272         * m4/utime.m4: Remove file.
52273         * m4/utimes-null.m4: Remove file.
52274         * doc/posix-functions/utime.texi (utime): Remove reference to
52275         the module.  Move the sole "fixed by gnulib" item into the
52276         "problems not fixed by Gnulib" list.
52277         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
52279 2010-03-05  Simon Josefsson  <simon@josefsson.org>
52281         * modules/exit (License): Relax license to LGPLv2+.
52282         (Status): Mark as obsolete.
52283         * NEWS: Mention deprecated 'exit' module.
52284         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
52285         of now obsolete 'exit'.
52287 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52289         fts-lgpl: remove unused module
52290         * modules/fts-lgpl: Remove.
52291         * MODULES.html.sh (func_all_modules): Adjust.
52292         * check-module (find_included_lib_files): Adjust.
52293         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
52295 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
52297         copy-acl: enhance Solaris ACL error handling
52298         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
52299         * lib/set-mode-acl.c (qset_acl): Likewise.
52301 2010-03-02  Bruno Haible  <bruno@clisp.org>
52303         spawn: Don't override the system defined values on FreeBSD 8.
52304         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
52305         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
52306         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
52307         if HAVE_POSIX_SPAWN is 1.
52308         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
52310 2010-03-01  Bruno Haible  <bruno@clisp.org>
52312         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
52313         regarding Automake.
52315 2010-02-25  Bruno Haible  <bruno@clisp.org>
52317         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
52318         * gnulib-tool: Define 'echo' as a function only before the ksh alias
52319         setting, not afterwards.
52320         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
52322 2010-02-24  Eric Blake  <eblake@redhat.com>
52324         bootstrap, git-version-gen: use timestamp
52325         * build-aux/git-version-gen (scriptversion): Force UTC.
52326         * build-aux/bootstrap (scriptversion): New variable.
52328         bootstrap: allow older git
52329         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
52330         older than 1.6.4.  Requested by the libvirt project.
52332 2010-02-23  Eric Blake  <eblake@redhat.com>
52334         warn-on-use: work with old autoconf
52335         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
52336         AS_VAR semantics of autoconf 2.60.
52337         Reported by Bruno Haible.
52339         bootstrap: improve some comments
52340         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
52341         clarification comments.
52343         gettimeofday: provide correct function
52344         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
52345         when replacement is declared, otherwise provide gettimeofday.
52346         Reported by Michael Goffioul.
52348 2010-02-23  Jim Meyering  <meyering@redhat.com>
52350         lib-ignore: relax license to "unlimited", not LGPLv2+
52351         * modules/lib-ignore (License): Relax to "unlimited".
52353 2010-02-23  Jim Meyering  <meyering@redhat.com>
52355         lib-ignore: relax license to LGPLv2+
52356         * modules/lib-ignore (License): Relax to LGPLv2+.
52358 2010-02-22  Eric Blake  <eblake@redhat.com>
52360         lseek: avoid bash 3.2 broken pipe bug
52361         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
52362         warning from bash 3.2.
52363         Reported by Ben Pfaff, with analysis from Bruno Haible.
52365         bootstrap: support non-FSF copyright holder
52366         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
52367         bootstrap.conf override of COPYRIGHT_HOLDER.
52368         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
52370         bootstrap: interoperate with gettext 0.14.1
52371         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
52373         bootstrap: allow for alternate submodule location
52374         * build-aux/bootstrap (gnulib_path): New variable; use instead of
52375         hardcoding submodule location.
52376         (gnulib_mk): Allow direct use of Makefile.am.
52378         bootstrap: use GNULIB_SRCDIR to reduce disk usage
52379         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
52380         rather than reconfiguring where the submodule points.
52382         gettimeofday: restore support for platforms that lack function
52383         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
52384         replacement if function is missing.
52385         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
52386         * modules/sys_time (Makefile.am): Substitute it.
52387         * lib/sys_time.in.h (gettimeofday): Check it.
52388         Reported by Michael Goffioul.
52390 2010-02-21  Bruno Haible  <bruno@clisp.org>
52392         * lib/stdio.in.h (obstack_printf): Fix typo.
52394 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
52396         vc-list-files: use bzr ls's -R option
52397         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
52398         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
52400 2010-02-21  Jim Meyering  <meyering@redhat.com>
52402         init.sh: fix EXEEXT shims to work also for names like test-prog
52403         * tests/init.sh: Re-exec a better shell, when needed.
52404         If the current shell lacks support for posix $(...), an init.sh-using
52405         test will now try to find a shell that supports that.  If EXEEXT is
52406         nonempty, we also require support for hyphen-in-alias-name and shell
52407         substitutions like ${var#glob}.  Failure to find such a shell results
52408         in a skipped test.
52410 2010-02-21  Bruno Haible  <bruno@clisp.org>
52412         Really work around "broken pipe" error message from bash 3.2.
52413         * gnulib-tool (func_reset_sigpipe): Remove function.
52414         (echo): In bash 3.2, define to a function that uses printf.
52415         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
52417 2010-02-20  Bruno Haible  <bruno@clisp.org>
52419         Restore support for automake 1.9.6 with autoconf 2.61.
52420         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
52421         Reported by James Youngman <jay@gnu.org>.
52423 2010-02-20  Bruno Haible  <bruno@clisp.org>
52425         Improve *printf warning condition.
52426         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
52427         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
52428         and the function is overridden due to SIGPIPE emulation.
52430 2010-02-20  Bruno Haible  <bruno@clisp.org>
52432         * lib/stdio.in.h: Tweak comments.
52434 2010-02-19  Bruno Haible  <bruno@clisp.org>
52436         Make it easier to find modules. New gnulib-tool option '--find'.
52437         * gnulib-tool: New option --find.
52438         (func_usage): Document it.
52439         (func_sanitize_modulelist): New function, extracted from
52440         func_all_modules.
52441         (func_all_modules): Invoke it.
52442         * doc/gnulib-tool.texi (Which modules?): New node.
52444 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
52446         * lib/sys_select.in.h: Provide select replacement even if
52447         sys/select.h exists on a system, for Interix.
52449 2010-02-18  Jim Meyering  <meyering@redhat.com>
52451         init.sh: don't use $(...) just yet
52452         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
52453         to accommodate e.g., Solaris' /bin/sh.
52455 2010-02-17  Bruno Haible  <bruno@clisp.org>
52457         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
52458         Reported by Ludovic Courtès <ludo@gnu.org>.
52460 2010-02-16  Simon Josefsson  <simon@josefsson.org>
52462         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
52463         linking with -lintl.
52465 2010-02-17  Simon Josefsson  <simon@josefsson.org>
52467         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
52468         if not provided by the system's netdb.h.  Reported by
52469         ludo@gnu.org (Ludovic Courtès).
52471 2010-02-15  Jim Meyering  <meyering@redhat.com>
52473         init.sh: improve portability and efficiency
52474         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
52475         "dummy" in a for loop.
52476         Use '!', not '^' to select the complement of a character set used
52477         in a "case" statement.
52478         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
52479         Suggestions from Eric Blake.
52481         init.sh: automatically accommodate programs with the .exe suffix
52482         Automatically arrange for an invocation of "prog" to execute the
52483         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
52484         may use the simpler "prog", yet still work when built on a system
52485         that requires specifying the added suffix.
52486         Do this by constructing a function named "prog" that invokes
52487         "prog.exe" for each .exe file in selected directories.
52488         * tests/init.sh (find_exe_basenames_): New function.
52489         (create_exe_shim_functions_): New function.
52490         (path_prepend_): Use it.
52492         maint.mk: mark syntax-check sc_*.m rules as .PHONY
52493         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
52494         "make -t syntax-check" doesn't create a ton of sc_*.m files.
52496 2010-02-14  Jim Meyering  <meyering@redhat.com>
52498         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
52499         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
52500         (sc_prohibit_hash_pjw_without_use): New rule.
52502         maint.mk: allow the default upload destination dir to be overridden
52503         * top/maint.mk (upload_dest_dir_): Define with a default that
52504         preserves the status quo.
52505         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
52506         Reported by Peter Simons.
52508         maint.mk: prohibit inclusion of "hash.h" without_use
52509         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
52511 2010-02-10  Jim Meyering  <meyering@redhat.com>
52513         maint.mk: prohibit inclusion of "ignore-value.h" without_use
52514         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
52516 2010-02-09  Eric Blake  <ebb9@byu.net>
52517         and Bruno Haible  <bruno@clisp.org>
52519         obstack-printf-posix: ensure declaration
52520         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
52521         extracted from gl_FUNC_OBSTACK_PRINTF.
52522         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
52523         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52524         Likewise.
52525         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
52526         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
52527         0.
52529 2010-02-08  Bruno Haible  <bruno@clisp.org>
52531         gnulib-tool: Fix typo in 2010-02-07 commit.
52532         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
52533         Reported by Eric Blake.
52535 2010-02-07  Bruno Haible  <bruno@clisp.org>
52537         gnulib-tool: Fix up caching patches.
52538         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
52539         option --no-cache. Use associative arrays when supported by the shell.
52540         (sed_comments): New variable.
52541         (modcache): Renamed from do_cache.
52542         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
52543         abbreviate unnecessarily.
52544         (have_associative): New variable.
52545         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
52546         way also for ksh and zsh.
52547         (func_init_sed_convert_to_cache_statements): New function, extracted
52548         from func_cache_lookup_module. Add support for associative arrays.
52549         Don't set the c_MODULE_cached variable here. Ignore all lines before
52550         the first field header. Remove only the final newline, not all trailing
52551         newlines. Support empty fields correctly. Limit the use of 'eval' to
52552         assignments.
52553         (func_get_description, func_get_status, func_get_notice,
52554         func_get_applicability, func_get_filelist, func_get_dependencies,
52555         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
52556         func_get_automake_snippet, func_get_include_directive,
52557         func_get_link_directive, func_get_license, func_get_maintainer):
52558         Update documentation. List the unoptimized code first. Add support for
52559         associative arrays. Limit the use of 'eval' to assignments.
52560         (func_get_applicability): Undo stylistic pessimisations.
52561         (func_get_automake_snippet, func_get_include_directive): Reduce code
52562         duplication.
52563         (func_modules_transitive_closure, func_modules_add_dummy,
52564         func_modules_notice, func_modules_to_filelist, func_add_file,
52565         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
52566         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
52567         func_create_testdir, func_create_megatestdir): Update documentation.
52569 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52571         * gnulib-tool (func_cache_lookup_module): Store the module name
52572         belonging to the cache variable; error out if two different
52573         module names map to the same cache variable name.
52575 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52577         gnulib-tool: Make caching optional.
52578         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
52579         Update matching short versions of --no-changelog.
52580         (func_usage): Update.
52581         (sed_extract_cache_prog): Renamed from ...
52582         (sed_extract_prog): ... this; revert to old extraction script.
52583         (func_get_description, func_get_status)
52584         (func_get_notice, func_get_applicability, func_get_filelist)
52585         (func_get_dependencies, func_get_autoconf_early_snippet)
52586         (func_get_autoconf_snippet, func_get_automake_snippet)
52587         (func_get_include_directive, func_get_link_directive)
52588         (func_get_license, func_get_maintainer): If $do_cache is false,
52589         use old, non-caching extraction scripts.
52590         Suggestion by Bruno Haible.
52592 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52594         gnulib-tool: cache module metainformation.
52595         * gnulib-tool (sed_extract_prog): Match newline before each
52596         header, and rewrite header to a shell variable suffix.
52597         (func_cache_var, func_cache_lookup_module): New functions,
52598         to turn a module name into a cache variable prefix, and to
52599         look up and cache module metainformation.
52600         (func_get_description, func_get_status)
52601         (func_get_notice, func_get_applicability, func_get_filelist)
52602         (func_get_dependencies, func_get_autoconf_early_snippet)
52603         (func_get_autoconf_snippet, func_get_automake_snippet)
52604         (func_get_include_directive, func_get_link_directive)
52605         (func_get_license, func_get_maintainer): Use
52606         func_cache_lookup_module.
52608 2010-02-07  Bruno Haible  <bruno@clisp.org>
52610         fnctl: Fix missing dependency.
52611         * modules/fcntl (Depends-on): Add getdtablesize.
52612         Reported by John W. Eaton <jwe@gnu.org>.
52614 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52616         Argp: fix recognition of short alias options.
52618         * lib/argp-parse.c (convert_options): Fix improper use of
52619         `|' between character values.
52620         * tests/test-argp.c (group1_option): New alias option
52621         --read (-r).
52622         (group1_parser): Special handling for 'r'.
52623         (test15): New test case.
52624         (test_fun): Add test15.
52625         * tests/test-argp-2.sh: Update expected --help and --usage
52626         outputs.
52628 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52630         * tests/test-argp.c: Fix indentation.
52632 2010-02-04  Eric Blake  <ebb9@byu.net>
52634         gettimeofday: expose type of second argument
52635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
52636         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
52637         * tests/test-gettimeofday.c: Use it to silence warning.
52638         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
52639         the issue.
52641 2010-02-03  Jim Meyering  <meyering@redhat.com>
52643         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
52644         * lib/regcomp.c (TYPE_SIGNED): Define.
52645         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
52647         regcomp.c: avoid a new -Wshadow warning
52648         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
52650 2010-02-01  Jim Meyering  <meyering@redhat.com>
52652         removing useless parentheses in cpp #define directives
52653         For motivation, see commit c0221df4, "define STREQ(a,b)
52654         consistently, removing useless parentheses"
52655         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
52656         * lib/mountlist.c (MNT_IGNORE): Likewise.
52657         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
52659 2010-02-01  Eric Blake  <ebb9@byu.net>
52661         sys_time: use link-warning
52662         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
52663         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
52664         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
52665         * modules/sys_time (Depends-on): Add warn-on-use.
52666         (Makefile.am): Always build replacement.
52667         (configure.ac): Update substitutions.
52668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
52669         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
52670         bother with SYS_TIME_H.
52671         * modules/gettimeofday (configure.ac): Declare indicator.
52672         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
52673         in use.
52675         closein-tests: silence compiler warning
52676         * tests/test-closein.c (main): Ignore fread result.
52677         * modules/closein-tests (Depends-on): Add ignore-value.
52679         tests: silence warning about system return
52680         * tests/test-areadlink-with-size.c (main): Ignore system result.
52681         * tests/test-areadlink.c (main): Likewise.
52682         * tests/test-areadlinkat-with-size.c (main): Likewise.
52683         * tests/test-areadlinkat.c (main): Likewise.
52684         * tests/test-canonicalize-lgpl.c (main): Likewise.
52685         * tests/test-canonicalize.c (main): Likewise.
52686         * tests/test-chown.c (main): Likewise.
52687         * tests/test-fchownat.c (main): Likewise.
52688         * tests/test-fdutimensat.c (main): Likewise.
52689         * tests/test-fstatat.c (main): Likewise.
52690         * tests/test-futimens.c (main): Likewise.
52691         * tests/test-lchown.c (main): Likewise.
52692         * tests/test-link.c (main): Likewise.
52693         * tests/test-linkat.c (main): Likewise.
52694         * tests/test-lstat.c (main): Likewise.
52695         * tests/test-mkdir.c (main): Likewise.
52696         * tests/test-mkdirat.c (main): Likewise.
52697         * tests/test-mkfifo.c (main): Likewise.
52698         * tests/test-mkfifoat.c (main): Likewise.
52699         * tests/test-mknod.c (main): Likewise.
52700         * tests/test-readlink.c (main): Likewise.
52701         * tests/test-remove.c (main): Likewise.
52702         * tests/test-rename.c (main): Likewise.
52703         * tests/test-renameat.c (main): Likewise.
52704         * tests/test-rmdir.c (main): Likewise.
52705         * tests/test-symlink.c (main): Likewise.
52706         * tests/test-symlinkat.c (main): Likewise.
52707         * tests/test-unlink.c (main): Likewise.
52708         * tests/test-unlinkat.c (main): Likewise.
52709         * tests/test-utimens.c (main): Likewise.
52710         * tests/test-utimensat.c (main): Likewise.
52711         * modules/areadlink-tests (Depends-on): Add ignore-value.
52712         * modules/areadlink-with-size-tests (Depends-on): Likewise.
52713         * modules/areadlinkat-tests (Depends-on): Likewise.
52714         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
52715         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
52716         * modules/canonicalize-tests (Depends-on): Likewise.
52717         * modules/chown-tests (Depends-on): Likewise.
52718         * modules/fdutimensat-tests (Depends-on): Likewise.
52719         * modules/futimens-tests (Depends-on): Likewise.
52720         * modules/lchown-tests (Depends-on): Likewise.
52721         * modules/link-tests (Depends-on): Likewise.
52722         * modules/linkat-tests (Depends-on): Likewise.
52723         * modules/lstat-tests (Depends-on): Likewise.
52724         * modules/mkdir-tests (Depends-on): Likewise.
52725         * modules/mkfifo-tests (Depends-on): Likewise.
52726         * modules/mkfifoat-tests (Depends-on): Likewise.
52727         * modules/mknod-tests (Depends-on): Likewise.
52728         * modules/openat-tests (Depends-on): Likewise.
52729         * modules/readlink-tests (Depends-on): Likewise.
52730         * modules/remove-tests (Depends-on): Likewise.
52731         * modules/rename-tests (Depends-on): Likewise.
52732         * modules/renameat-tests (Depends-on): Likewise.
52733         * modules/rmdir-tests (Depends-on): Likewise.
52734         * modules/symlink-tests (Depends-on): Likewise.
52735         * modules/symlinkat-tests (Depends-on): Likewise.
52736         * modules/unlink-tests (Depends-on): Likewise.
52737         * modules/utimens-tests (Depends-on): Likewise.
52738         * modules/utimensat-tests (Depends-on): Likewise.
52740 2010-01-31  Bruno Haible  <bruno@clisp.org>
52742         Perform the same test for many <math.h> functions.
52743         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
52744         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
52745         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
52746         of gl_MATHFUNC.
52747         * modules/acos (configure.ac): Likewise.
52748         * modules/asin (configure.ac): Likewise.
52749         * modules/atan (configure.ac): Likewise.
52750         * modules/atan2 (configure.ac): Likewise.
52751         * modules/cbrt (configure.ac): Likewise.
52752         * modules/copysign (configure.ac): Likewise.
52753         * modules/cos (configure.ac): Likewise.
52754         * modules/cosh (configure.ac): Likewise.
52755         * modules/erf (configure.ac): Likewise.
52756         * modules/erfc (configure.ac): Likewise.
52757         * modules/exp (configure.ac): Likewise.
52758         * modules/fmod (configure.ac): Likewise.
52759         * modules/hypot (configure.ac): Likewise.
52760         * modules/j0 (configure.ac): Likewise.
52761         * modules/j1 (configure.ac): Likewise.
52762         * modules/jn (configure.ac): Likewise.
52763         * modules/lgamma (configure.ac): Likewise.
52764         * modules/log (configure.ac): Likewise.
52765         * modules/log10 (configure.ac): Likewise.
52766         * modules/log1p (configure.ac): Likewise.
52767         * modules/pow (configure.ac): Likewise.
52768         * modules/remainder (configure.ac): Likewise.
52769         * modules/sin (configure.ac): Likewise.
52770         * modules/sinh (configure.ac): Likewise.
52771         * modules/tan (configure.ac): Likewise.
52772         * modules/tanh (configure.ac): Likewise.
52773         * modules/y0 (configure.ac): Likewise.
52774         * modules/y1 (configure.ac): Likewise.
52775         * modules/yn (configure.ac): Likewise.
52776         Suggested by Paolo Bonzini.
52778 2010-01-31  Bruno Haible  <bruno@clisp.org>
52780         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
52782 2010-01-31  Bruno Haible  <bruno@clisp.org>
52784         Work around getdelim() bug on FreeBSD 8.0.
52785         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
52786         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
52787         not work.
52788         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
52789         is 1.
52790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
52791         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
52792         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
52793         a non-zero size.
52794         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
52796 2010-01-31  Bruno Haible  <bruno@clisp.org>
52798         Work around getline() bug on FreeBSD 8.0.
52799         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
52800         and a non-zero size.
52801         * tests/test-getline.c (main): Likewise.
52802         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
52803         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
52805 2010-01-28  Eric Blake  <ebb9@byu.net>
52807         regex: fix build failure
52808         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
52809         platforms.
52811 2010-01-28  Jim Meyering  <meyering@redhat.com>
52813         regex: do not ignore memory allocation failure
52814         * lib/regex_internal.c (create_cd_newstate): Detect
52815         re_node_set_init_copy failure.   Extracted from glibc commit
52816         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52818         regex: sync more white-space changes from libc
52819         * lib/regex_internal.c: White-space only changes.
52820         * lib/regexec.c: Likewise.
52822         regex: add many uses of __attribute_warn_unused_result__
52823         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
52824         * lib/regexec.c: Likewise.
52825         Extracted from a messy glibc commit.
52827         regcomp.c: spelling and merge-artifact from glibc
52828         * lib/regcomp.c: Merge remainder of glibc's
52829         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52831         regcomp.c: sync white-space changes from glibc
52832         * lib/regcomp.c: Merge to accommodate white space
52833         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52835         regcomp.c: do not ignore internal return values
52836         * lib/regcomp.c: Do not ignore internal return values.
52837         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
52838         but without its white-space changes and spelling fixes.
52840         regex_internal.h: define __attribute_warn_unused_result__
52841         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
52843         maint: add a syntax-check rule to check for vulnerable Makefile.in
52844         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
52846 2010-01-27  Jim Meyering  <meyering@redhat.com>
52848         ncftpput-ftp: clean up spaces
52849         * build-aux/ncftpput-ftp: Make Copyright line consistent.
52850         Remove trailing blanks.
52852 2010-01-27  Simon Josefsson  <simon@josefsson.org>
52854         * build-aux/git-version-gen: Fix copyright statement.
52855         * build-aux/gnupload: Likewise.
52856         * tests/test-arcfour.c: Likewise.
52857         * tests/test-arctwo.c: Likewise.
52858         * tests/test-count-one-bits.c: Likewise.
52859         * tests/test-crc.c: Likewise.
52860         * tests/test-des.c: Likewise.
52861         * tests/test-gc-arcfour.c: Likewise.
52862         * tests/test-gc-arctwo.c: Likewise.
52863         * tests/test-gc-des.c: Likewise.
52864         * tests/test-gc-hmac-md5.c: Likewise.
52865         * tests/test-gc-hmac-sha1.c: Likewise.
52866         * tests/test-gc-md2.c: Likewise.
52867         * tests/test-gc-md4.c: Likewise.
52868         * tests/test-gc-md5.c: Likewise.
52869         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52870         * tests/test-gc-rijndael.c: Likewise.
52871         * tests/test-gc-sha1.c: Likewise.
52872         * tests/test-gc.c: Likewise.
52873         * tests/test-gethostname.c: Likewise.
52874         * tests/test-gettimeofday.c: Likewise.
52875         * tests/test-hash.c: Likewise.
52876         * tests/test-hmac-md5.c: Likewise.
52877         * tests/test-hmac-sha1.c: Likewise.
52878         * tests/test-md2.c: Likewise.
52879         * tests/test-md4.c: Likewise.
52880         * tests/test-md5.c: Likewise.
52881         * tests/test-memchr.c: Likewise.
52882         * tests/test-memchr2.c: Likewise.
52883         * tests/test-memcmp.c: Likewise.
52884         * tests/test-memmem.c: Likewise.
52885         * tests/test-memrchr.c: Likewise.
52886         * tests/test-rawmemchr.c: Likewise.
52887         * tests/test-read-file.c: Likewise.
52888         * tests/test-rijndael.c: Likewise.
52889         * tests/test-sockets.c: Likewise.
52890         * tests/test-strchrnul.c: Likewise.
52891         * tests/test-strstr.c: Likewise.
52892         * tests/test-strtod.c: Likewise.
52893         * build-aux/ncftpput-ftp: Likewise.
52895 2010-01-26  Eric Blake  <ebb9@byu.net>
52897         ignore-value: update recommended header name
52898         * modules/ignore-value (Include): Only use <> for headers that
52899         exist in glibc.
52901 2010-01-26  Jim Meyering  <meyering@redhat.com>
52903         test-userspec.c: avoid compiler warnings
52904         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
52905         and "initialization discards qualifiers..." warnings.
52906         Put the first "uid" in its own scope, and make char* members "const".
52908 2010-01-25  Bruno Haible  <bruno@clisp.org>
52910         gnulib-tool: Make warning diagnostics consistent.
52911         * gnulib-tool (func_warning): New function.
52912         Use it everywhere where gnulib-tool produces output to stderr and it is
52913         not a fatal error.
52915 2010-01-25  Bruno Haible  <bruno@clisp.org>
52917         Fix test dependencies.
52918         * modules/xstrtol-tests (Depends-on): Add inttypes.
52919         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
52921 2010-01-25  Pádraig Brady  <P@draigBrady.com>
52923         syntax-check: detect incorrect boolean macro values in config.h
52924         * modules/maintainer-makefile (configure.ac): Parameterize the location
52925         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
52926         The logic is from Eric Blake and the location indicated by Jim Meyering.
52927         Note the more natural CONFIG_HEADER name is prohibited by automake
52928         for backwards compatibility reasons.
52929         * top/maint.mk (sc_Wundef_boolean): New rule.
52931 2010-01-25  Jim Meyering  <meyering@redhat.com>
52933         bootstrap: detect MacOS 10.6's shasum, too
52934         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
52935         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
52937 2010-01-23  Jim Meyering  <meyering@redhat.com>
52939         xstrtoll: new module
52940         * modules/xstrtoll: New file.
52941         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
52942         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
52943         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
52944         ./configure fails if you use this module and lack "long long".
52945         * modules/xstrtoll-tests: New module.
52946         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
52947         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
52948         new init.sh-based test framework.
52950 2010-01-24  Bruno Haible  <bruno@clisp.org>
52952         Tests for module 'yn'.
52953         * modules/yn-tests: New file.
52954         * tests/test-yn.c: New file.
52956         Tests for module 'y1'.
52957         * modules/y1-tests: New file.
52958         * tests/test-y1.c: New file.
52960         Tests for module 'y0'.
52961         * modules/y0-tests: New file.
52962         * tests/test-y0.c: New file.
52964         Tests for module 'tanh'.
52965         * modules/tanh-tests: New file.
52966         * tests/test-tanh.c: New file.
52968         Tests for module 'tan'.
52969         * modules/tan-tests: New file.
52970         * tests/test-tan.c: New file.
52972         Tests for module 'sqrt'.
52973         * modules/sqrt-tests: New file.
52974         * tests/test-sqrt.c: New file.
52976         Tests for module 'sinh'.
52977         * modules/sinh-tests: New file.
52978         * tests/test-sinh.c: New file.
52980         Tests for module 'sin'.
52981         * modules/sin-tests: New file.
52982         * tests/test-sin.c: New file.
52984         Tests for module 'rint'.
52985         * modules/rint-tests: New file.
52986         * tests/test-rint.c: New file.
52988         Tests for module 'remainder'.
52989         * modules/remainder-tests: New file.
52990         * tests/test-remainder.c: New file.
52992         Tests for module 'pow'.
52993         * modules/pow-tests: New file.
52994         * tests/test-pow.c: New file.
52996         Tests for module 'nextafter'.
52997         * modules/nextafter-tests: New file.
52998         * tests/test-nextafter.c: New file.
53000         Tests for module 'modf'.
53001         * modules/modf-tests: New file.
53002         * tests/test-modf.c: New file.
53004         Tests for module 'logb'.
53005         * modules/logb-tests: New file.
53006         * tests/test-logb.c: New file.
53008         Tests for module 'log1p'.
53009         * modules/log1p-tests: New file.
53010         * tests/test-log1p.c: New file.
53012         Tests for module 'log10'.
53013         * modules/log10-tests: New file.
53014         * tests/test-log10.c: New file.
53016         Tests for module 'log'.
53017         * modules/log-tests: New file.
53018         * tests/test-log.c: New file.
53020         Tests for module 'lgamma'.
53021         * modules/lgamma-tests: New file.
53022         * tests/test-lgamma.c: New file.
53024         Tests for module 'ldexp'.
53025         * modules/ldexp-tests: New file.
53026         * tests/test-ldexp.c: New file.
53028         Tests for module 'jn'.
53029         * modules/jn-tests: New file.
53030         * tests/test-jn.c: New file.
53032         Tests for module 'j1'.
53033         * modules/j1-tests: New file.
53034         * tests/test-j1.c: New file.
53036         Tests for module 'j0'.
53037         * modules/j0-tests: New file.
53038         * tests/test-j0.c: New file.
53040         Tests for module 'hypot'.
53041         * modules/hypot-tests: New file.
53042         * tests/test-hypot.c: New file.
53044         Tests for module 'fmod'.
53045         * modules/fmod-tests: New file.
53046         * tests/test-fmod.c: New file.
53048         Tests for module 'fabs'.
53049         * modules/fabs-tests: New file.
53050         * tests/test-fabs.c: New file.
53052         Tests for module 'exp'.
53053         * modules/exp-tests: New file.
53054         * tests/test-exp.c: New file.
53056         Tests for module 'erfc'.
53057         * modules/erfc-tests: New file.
53058         * tests/test-erfc.c: New file.
53060         Tests for module 'erf'.
53061         * modules/erf-tests: New file.
53062         * tests/test-erf.c: New file.
53064         Tests for module 'cosh'.
53065         * modules/cosh-tests: New file.
53066         * tests/test-cosh.c: New file.
53068         Tests for module 'cos'.
53069         * modules/cos-tests: New file.
53070         * tests/test-cos.c: New file.
53072         Tests for module 'copysign'.
53073         * modules/copysign-tests: New file.
53074         * tests/test-copysign.c: New file.
53076         Tests for module 'cbrt'.
53077         * modules/cbrt-tests: New file.
53078         * tests/test-cbrt.c: New file.
53080         Tests for module 'atan2'.
53081         * modules/atan2-tests: New file.
53082         * tests/test-atan2.c: New file.
53084         Tests for module 'atan'.
53085         * modules/atan-tests: New file.
53086         * tests/test-atan.c: New file.
53088         Tests for module 'asin'.
53089         * modules/asin-tests: New file.
53090         * tests/test-asin.c: New file.
53092         Tests for module 'acos'.
53093         * modules/acos-tests: New file.
53094         * tests/test-acos.c: New file.
53096 2010-01-24  Bruno Haible  <bruno@clisp.org>
53098         Fix tests for common <math.h> functions.
53099         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
53100         code snippet that references the function pointer, rather than merely
53101         calling the function. Substitute the FUNC_LIBM variable.
53102         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
53103         * modules/acos (configure.ac): Likewise.
53104         * modules/asin (configure.ac): Likewise.
53105         * modules/atan (configure.ac): Likewise.
53106         * modules/atan2 (configure.ac): Likewise.
53107         * modules/cbrt (configure.ac): Likewise.
53108         * modules/copysign (configure.ac): Likewise.
53109         * modules/cos (configure.ac): Likewise.
53110         * modules/cosh (configure.ac): Likewise.
53111         * modules/erf (configure.ac): Likewise.
53112         * modules/erfc (configure.ac): Likewise.
53113         * modules/exp (configure.ac): Likewise.
53114         * modules/fabs (configure.ac): Likewise.
53115         * modules/fmod (configure.ac): Likewise.
53116         * modules/hypot (configure.ac): Likewise.
53117         * modules/j0 (configure.ac): Likewise.
53118         * modules/j1 (configure.ac): Likewise.
53119         * modules/jn (configure.ac): Likewise.
53120         * modules/ldexp (configure.ac): Likewise.
53121         * modules/lgamma (configure.ac): Likewise.
53122         * modules/log (configure.ac): Likewise.
53123         * modules/log10 (configure.ac): Likewise.
53124         * modules/log1p (configure.ac): Likewise.
53125         * modules/logb (configure.ac): Likewise.
53126         * modules/modf (configure.ac): Likewise.
53127         * modules/nextafter (configure.ac): Likewise.
53128         * modules/pow (configure.ac): Likewise.
53129         * modules/remainder (configure.ac): Likewise.
53130         * modules/rint (configure.ac): Likewise.
53131         * modules/sin (configure.ac): Likewise.
53132         * modules/sinh (configure.ac): Likewise.
53133         * modules/tan (configure.ac): Likewise.
53134         * modules/tanh (configure.ac): Likewise.
53135         * modules/y0 (configure.ac): Likewise.
53136         * modules/y1 (configure.ac): Likewise.
53137         * modules/yn (configure.ac): Likewise.
53139 2010-01-24  Bruno Haible  <bruno@clisp.org>
53141         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
53142         * tests/test-acosl.c (x): New variable.
53143         (main): Store argument in x and fetch it from x.
53144         * tests/test-asinl.c (x): New variable.
53145         (main): Store argument in x and fetch it from x.
53146         * tests/test-atanl.c (x): New variable.
53147         (main): Store argument in x and fetch it from x.
53148         * tests/test-cosl.c (x): New variable.
53149         (main): Store argument in x and fetch it from x.
53150         * tests/test-expl.c (x): New variable.
53151         (main): Store argument in x and fetch it from x.
53152         * tests/test-logl.c (x): New variable.
53153         (main): Store argument in x and fetch it from x.
53154         * tests/test-sinl.c (x): New variable.
53155         (main): Store argument in x and fetch it from x.
53156         * tests/test-sqrtl.c (x): New variable.
53157         (main): Store argument in x and fetch it from x.
53158         * tests/test-tanl.c (x): New variable.
53159         (main): Store argument in x and fetch it from x.
53161 2010-01-24  Bruno Haible  <bruno@clisp.org>
53163         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
53164         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
53165         assignments to the initial TESTS_ENVIRONMENT.
53166         * doc/gnulib.texi (Unit test modules): Document it.
53167         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
53168         TESTS_ENVIRONMENT.
53169         * modules/btowc-tests (Makefile.am): Likewise.
53170         * modules/c-stack-tests (Makefile.am): Likewise.
53171         * modules/c-strcase-tests (Makefile.am): Likewise.
53172         * modules/copy-file-tests (Makefile.am): Likewise.
53173         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
53174         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
53175         * modules/mbrtowc-tests (Makefile.am): Likewise.
53176         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53177         * modules/mbscasestr-tests (Makefile.am): Likewise.
53178         * modules/mbschr-tests (Makefile.am): Likewise.
53179         * modules/mbscspn-tests (Makefile.am): Likewise.
53180         * modules/mbsinit-tests (Makefile.am): Likewise.
53181         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53182         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
53183         * modules/mbspbrk-tests (Makefile.am): Likewise.
53184         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53185         * modules/mbsrchr-tests (Makefile.am): Likewise.
53186         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
53187         * modules/mbsspn-tests (Makefile.am): Likewise.
53188         * modules/mbsstr-tests (Makefile.am): Likewise.
53189         * modules/nl_langinfo-tests (Makefile.am): Likewise.
53190         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
53191         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53192         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53193         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53194         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53195         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
53196         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53197         * modules/wcrtomb-tests (Makefile.am): Likewise.
53198         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
53199         * modules/wcsrtombs-tests (Makefile.am): Likewise.
53200         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
53201         assignments from TESTS_ENVIRONMENT.
53202         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
53203         augmentation.
53204         * modules/argp-version-etc-tests (Makefile.am): Likewise.
53205         * modules/atexit-tests (Makefile.am): Likewise.
53206         * modules/binary-io-tests (Makefile.am): Likewise.
53207         * modules/closein-tests (Makefile.am): Likewise.
53208         * modules/dprintf-posix-tests (Makefile.am): Likewise.
53209         * modules/exclude-tests (Makefile.am): Likewise.
53210         * modules/fflush-tests (Makefile.am): Likewise.
53211         * modules/fpending-tests (Makefile.am): Likewise.
53212         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53213         * modules/freadahead-tests (Makefile.am): Likewise.
53214         * modules/freadptr-tests (Makefile.am): Likewise.
53215         * modules/freadseek-tests (Makefile.am): Likewise.
53216         * modules/fseek-tests (Makefile.am): Likewise.
53217         * modules/fseeko-tests (Makefile.am): Likewise.
53218         * modules/ftell-tests (Makefile.am): Likewise.
53219         * modules/ftello-tests (Makefile.am): Likewise.
53220         * modules/idpriv-drop-tests (Makefile.am): Likewise.
53221         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
53222         * modules/lseek-tests (Makefile.am): Likewise.
53223         * modules/parse-duration-tests (Makefile.am): Likewise.
53224         * modules/perror-tests (Makefile.am): Likewise.
53225         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
53226         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
53227         * modules/pipe-tests (Makefile.am): Likewise.
53228         * modules/pread-tests (Makefile.am): Likewise.
53229         * modules/printf-posix-tests (Makefile.am): Likewise.
53230         * modules/select-tests (Makefile.am): Likewise.
53231         * modules/sigpipe-tests (Makefile.am): Likewise.
53232         * modules/tsearch-tests (Makefile.am): Likewise.
53233         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
53234         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
53235         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53236         * modules/uniwidth/width-tests (Makefile.am): Likewise.
53237         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
53238         * modules/version-etc-tests (Makefile.am): Likewise.
53239         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53240         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53241         * modules/xalloc-die-tests (Makefile.am): Likewise.
53242         * modules/xprintf-posix-tests (Makefile.am): Likewise.
53243         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53244         * modules/xstrtol-tests (Makefile.am): Likewise.
53245         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53246         * modules/yesno-tests (Makefile.am): Likewise.
53247         Suggested by Jim Meyering.
53249 2010-01-24  Bruno Haible  <bruno@clisp.org>
53251         More documentation.
53252         * doc/gnulib.texi (Writing modules): New chapter.
53253         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
53254         the new chapter.
53256 2010-01-24  Jim Meyering  <meyering@redhat.com>
53258         maint.mk: do not prepend "./" after filtering
53259         * top/maint.mk (_prepend_srcdir_prefix): New variable
53260         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
53261         "./" when $(srcdir) is ".".
53263         define STREQ(a,b) consistently, removing useless parentheses
53264         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
53265         since the only risk is that "a" or "b" contains an unparenthesized
53266         comma, but if either did that, STREQ would have 3 or more arguments.
53267         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
53268         * lib/fts.c (STREQ): Remove unnecessary parentheses.
53269         * lib/hash-triple.c (STREQ): Likewise.
53270         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
53271         * lib/getugroups.c (STREQ): Likewise.
53273 2010-01-23  Jim Meyering  <meyering@redhat.com>
53275         maint.mk: fix syntax-check in a non-srcdir build directory
53276         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
53277         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
53279 2010-01-22  Jim Meyering  <meyering@redhat.com>
53281         userspec: add unit tests
53282         * tests/test-userspec.c: New file.
53283         * modules/userspec-tests: Likewise.
53285 2010-01-21  Jim Meyering  <meyering@redhat.com>
53287         maint.mk: handle source file names containing "." robustly
53288         * top/maint.mk (_dot_escaped_srcdir): Define.
53289         (VC_LIST): Use it in LHS of sed substitution.
53291 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
53293         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
53294         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
53295         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
53296         from a non-srcdir build.
53298 2010-01-20  Eric Blake  <ebb9@byu.net>
53300         warn-on-use: use instead of link-warning
53301         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
53302         * modules/unistd (Depends-on, Makefile.am): Likewise.
53303         * modules/arpa_inet (Depends-on): Replace link-warning with
53304         warn-on-use.
53305         (Makefile.am): Update rules accordingly.
53306         * modules/ctype (Depends-on, Makefile.am): Likewise.
53307         * modules/dirent (Depends-on, Makefile.am): Likewise.
53308         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
53309         * modules/inttypes (Depends-on, Makefile.am): Likewise.
53310         * modules/langinfo (Depends-on, Makefile.am): Likewise.
53311         * modules/locale (Depends-on, Makefile.am): Likewise.
53312         * modules/math (Depends-on, Makefile.am): Likewise.
53313         * modules/search (Depends-on, Makefile.am): Likewise.
53314         * modules/signal (Depends-on, Makefile.am): Likewise.
53315         * modules/spawn (Depends-on, Makefile.am): Likewise.
53316         * modules/stdlib (Depends-on, Makefile.am): Likewise.
53317         * modules/string (Depends-on, Makefile.am): Likewise.
53318         * modules/strings (Depends-on, Makefile.am): Likewise.
53319         * modules/sys_file (Depends-on, Makefile.am): Likewise.
53320         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
53321         * modules/sys_select (Depends-on, Makefile.am): Likewise.
53322         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
53323         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
53324         * modules/sys_times (Depends-on, Makefile.am): Likewise.
53325         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
53326         * modules/wchar (Depends-on, Makefile.am): Likewise.
53327         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
53328         should be poisoned.
53329         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
53330         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
53331         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
53332         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53333         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53334         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53335         * m4/math_h.m4 (gl_MATH_H): Likewise.
53336         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53337         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53338         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
53339         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53340         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53341         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53342         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
53343         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
53344         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
53345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53346         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53348         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53349         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
53350         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53351         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53352         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
53353         GL_LINK_WARNING.
53354         * lib/ctype.in.h: Likewise.
53355         * lib/dirent.in.h: Likewise.
53356         * lib/fcntl.in.h: Likewise.
53357         * lib/inttypes.in.h: Likewise.
53358         * lib/langinfo.in.h: Likewise.
53359         * lib/locale.in.h: Likewise.
53360         * lib/math.in.h: Likewise.
53361         * lib/search.in.h: Likewise.
53362         * lib/signal.in.h: Likewise.
53363         * lib/spawn.in.h: Likewise.
53364         * lib/stdio.in.h: Likewise.
53365         * lib/stdlib.in.h: Likewise.
53366         * lib/string.in.h: Likewise.
53367         * lib/strings.in.h: Likewise.
53368         * lib/sys_file.in.h: Likewise.
53369         * lib/sys_ioctl.in.h: Likewise.
53370         * lib/sys_select.in.h: Likewise.
53371         * lib/sys_socket.in.h: Likewise.
53372         * lib/sys_stat.in.h: Likewise.
53373         * lib/sys_times.in.h: Likewise.
53374         * lib/sys_utsname.in.h: Likewise.
53375         * lib/unistd.in.h: Likewise.
53376         * lib/wchar.in.h: Likewise.
53378 2010-01-20  Bruno Haible  <bruno@clisp.org>
53380         Avoid duplicate -lm.
53381         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
53382         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
53383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
53384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
53385         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
53386         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
53387         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
53388         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
53389         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
53390         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
53391         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
53392         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
53393         Reported by Paolo Bonzini.
53395 2010-01-19  Bruno Haible  <bruno@clisp.org>
53397         langinfo, nl_langinfo: Relicense under LGPLv2+.
53398         * modules/langinfo (License): Change to LGPLv2+.
53399         * modules/nl_langinfo (License): Likewise.
53400         Patch by David Lutterkort <lutter@redhat.com>.
53402 2010-01-19  Bruno Haible  <bruno@clisp.org>
53404         Avoid compilation error with cc on OSF/1 5.1.
53405         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
53406         statement, not before.
53407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53409 2010-01-18  Bruno Haible  <bruno@clisp.org>
53411         Avoid a link error due to the __printf__ symbol.
53412         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
53413         and 2.6.x.
53414         (__format__, __printf__): Remove definitions.
53415         * lib/argp-fmtstream.h: Likewise.
53416         * lib/argp.h: Likewise.
53417         * lib/error.h: Likewise.
53418         * lib/vasnprintf.h: Likewise.
53419         * lib/xprintf.h: Likewise.
53420         * lib/xvasprintf.h: Likewise.
53421         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53423 2010-01-18  Bruno Haible  <bruno@clisp.org>
53425         Tests for module 'tanl'.
53426         * modules/tanl-tests: New file.
53427         * tests/test-tanl.c: New file.
53429         Tests for module 'sqrtl'.
53430         * modules/sqrtl-tests: New file.
53431         * tests/test-sqrtl.c: New file.
53433         Tests for module 'sinl'.
53434         * modules/sinl-tests: New file.
53435         * tests/test-sinl.c: New file.
53437         Tests for module 'logl'.
53438         * modules/logl-tests: New file.
53439         * tests/test-logl.c: New file.
53441         Tests for module 'expl'.
53442         * modules/expl-tests: New file.
53443         * tests/test-expl.c: New file.
53445         Tests for module 'cosl'.
53446         * modules/cosl-tests: New file.
53447         * tests/test-cosl.c: New file.
53449         Tests for module 'atanl'.
53450         * modules/atanl-tests: New file.
53451         * tests/test-atanl.c: New file.
53453         Tests for module 'asinl'.
53454         * modules/asinl-tests: New file.
53455         * tests/test-asinl.c: New file.
53457         Tests for module 'acosl'.
53458         * modules/acosl-tests: New file.
53459         * tests/test-acosl.c: New file.
53461         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53462         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
53463         tanl): Use the standard gnulib idiom.
53464         * lib/cosl.c: Don't include trigl.c and sincosl.c.
53465         * lib/sinl.c: Likewise.
53466         * lib/tanl.c: Don't include trigl.c.
53467         (kernel_tanl): Make static.
53468         * lib/sincosl.c: Include trigl.h first.
53469         * lib/trigl.c: Likewise.
53470         * m4/acosl.m4: New file.
53471         * m4/asinl.m4: New file.
53472         * m4/atanl.m4: New file.
53473         * m4/cosl.m4: New file.
53474         * m4/expl.m4: New file.
53475         * m4/logl.m4: New file.
53476         * m4/sinl.m4: New file.
53477         * m4/sqrtl.m4: New file.
53478         * m4/tanl.m4: New file.
53479         * m4/mathl.m4: Remove file.
53480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
53481         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53482         Don't initialize GNULIB_MATHL.
53483         * modules/acosl: New file.
53484         * modules/asinl: New file.
53485         * modules/atanl: New file.
53486         * modules/cosl: New file.
53487         * modules/expl: New file.
53488         * modules/logl: New file.
53489         * modules/sinl: New file.
53490         * modules/sqrtl: New file.
53491         * modules/tanl: New file.
53492         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
53493         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
53494         substitute GNULIB_MATHL.
53495         * modules/mathl: Rewritten.
53496         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
53497         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
53498         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
53499         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
53500         * doc/posix-functions/expl.texi: Mention the 'expl' module.
53501         * doc/posix-functions/logl.texi: Mention the 'logl' module.
53502         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
53503         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
53504         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
53506 2010-01-18  Bruno Haible  <bruno@clisp.org>
53508         sqrt: Make gl_FUNC_SQRT requirable.
53509         * m4/sqrt.m4: New file.
53510         * modules/sqrt (Files): Add it.
53511         (configure.ac): Invoke gl_FUNC_SQRT.
53513 2010-01-18  Bruno Haible  <bruno@clisp.org>
53515         New modules for common <math.h> functions.
53516         * m4/mathfunc.m4: New file.
53517         * modules/acos: New file.
53518         * modules/asin: New file.
53519         * modules/atan: New file.
53520         * modules/atan2: New file.
53521         * modules/cbrt: New file.
53522         * modules/copysign: New file.
53523         * modules/cos: New file.
53524         * modules/cosh: New file.
53525         * modules/erf: New file.
53526         * modules/erfc: New file.
53527         * modules/exp: New file.
53528         * modules/fabs: New file.
53529         * modules/fmod: New file.
53530         * modules/hypot: New file.
53531         * modules/j0: New file.
53532         * modules/j1: New file.
53533         * modules/jn: New file.
53534         * modules/ldexp: New file.
53535         * modules/lgamma: New file.
53536         * modules/log: New file.
53537         * modules/log10: New file.
53538         * modules/log1p: New file.
53539         * modules/logb: New file.
53540         * modules/modf: New file.
53541         * modules/nextafter: New file.
53542         * modules/pow: New file.
53543         * modules/remainder: New file.
53544         * modules/rint: New file.
53545         * modules/sin: New file.
53546         * modules/sinh: New file.
53547         * modules/sqrt: New file.
53548         * modules/tan: New file.
53549         * modules/tanh: New file.
53550         * modules/y0: New file.
53551         * modules/y1: New file.
53552         * modules/yn: New file.
53553         * doc/posix-functions/acos.texi: Mention the 'acos' module.
53554         * doc/posix-functions/asin.texi: Mention the 'asin' module.
53555         * doc/posix-functions/atan.texi: Mention the 'atan' module.
53556         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
53557         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
53558         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
53559         * doc/posix-functions/cos.texi: Mention the 'cos' module.
53560         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
53561         * doc/posix-functions/erf.texi: Mention the 'erf' module.
53562         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
53563         * doc/posix-functions/exp.texi: Mention the 'exp' module.
53564         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
53565         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
53566         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
53567         * doc/posix-functions/j0.texi: Mention the 'j0' module.
53568         * doc/posix-functions/j1.texi: Mention the 'j1' module.
53569         * doc/posix-functions/jn.texi: Mention the 'jn' module.
53570         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
53571         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
53572         * doc/posix-functions/log.texi: Mention the 'log' module.
53573         * doc/posix-functions/log10.texi: Mention the 'log10' module.
53574         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
53575         * doc/posix-functions/logb.texi: Mention the 'logb' module.
53576         * doc/posix-functions/modf.texi: Mention the 'modf' module.
53577         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
53578         * doc/posix-functions/pow.texi: Mention the 'pow' module.
53579         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
53580         * doc/posix-functions/rint.texi: Mention the 'rint' module.
53581         * doc/posix-functions/sin.texi: Mention the 'sin' module.
53582         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
53583         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
53584         * doc/posix-functions/tan.texi: Mention the 'tan' module.
53585         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
53586         * doc/posix-functions/y0.texi: Mention the 'y0' module.
53587         * doc/posix-functions/y1.texi: Mention the 'y1' module.
53588         * doc/posix-functions/yn.texi: Mention the 'yn' module.
53590 2010-01-18  Jim Meyering  <meyering@redhat.com>
53592         ignore-value: relax license to LGPLv2+
53593         * modules/ignore-value (License): Relax to LGPLv2+.
53595         getdate: don't leak when TZ contains two or more '"'s
53596         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
53597         double quote in TZ after the first one.
53599         readtokens: do not leak internal token_lengths buffer
53600         * lib/readtokens.c (readtokens): Free the local, lengths,
53601         when the supplied "token_lengths" parameter is NULL.
53603 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53605         Fix a couple of missing LIBTHREAD link failures on AIX.
53606         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
53607         $(LIBTHREAD).
53608         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
53610         Link test-poll against INET_PTON_LIB.
53611         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
53612         for inet_pton on Solaris 10.
53614 2010-01-17  Bruno Haible  <bruno@clisp.org>
53616         unistdio/*-sprintf: Fix typo in module description.
53617         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
53618         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
53619         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
53620         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
53621         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
53622         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
53623         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
53624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53626 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53628         gnulib-tool: fix filelist for AIX, HP-UX ksh.
53629         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
53630         variables in shell case patterns, for AIX and HP-UX ksh.
53632         Split large sed scripts, for HP-UX sed.
53633         * modules/stdio: Split sed scripts around 50 sed commands,
53634         to avoid HP-UX limit of 99 commands, in the near future.
53635         * modules/string: Likewise.
53636         * modules/unistd: Likewise.
53638         gnulib-tool: avoid writing in the current directory.
53639         * gnulib-tool (func_emit_lib_Makefile_am)
53640         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
53641         not in the current directory, so concurrent gnulib-tool
53642         instances do not interfere.
53644 2010-01-16  Jim Meyering  <meyering@redhat.com>
53646         doc: update users.txt
53647         * users.txt: Add grep.
53648         (diffutils, gzip): Update URLs.
53650 2010-01-12  Bruno Haible  <bruno@clisp.org>
53652         posix_spawn: Avoid test failure on Cygwin.
53653         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
53654         characters.
53655         Reported by Simon Josefsson.
53657 2010-01-12  Bruno Haible  <bruno@clisp.org>
53659         * tests/test-cond.c (main): When skipping the test, show the reason.
53661 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53663         * lib/striconv.c (str_cd_iconv): Avoid if before free.
53665 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53667         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
53668         VC_LIST_ALWAYS_EXCLUDE_REGEX.
53670 2010-01-12  Eric Blake  <ebb9@byu.net>
53672         build: guarantee AS_VAR_IF
53673         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
53674         (gl_AS_VAR_IF): Move...
53675         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
53676         Reported by Simon Josefsson.
53678 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53680         * lib/stdio.in.h: Fix typo.
53682 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53684         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
53685         libgpg-error.
53687 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53689         * tests/test-xalloc-die.sh: Use $EXEEXT.
53691 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53692             Bruno Haible  <bruno@clisp.org>
53694         getlogin, getlogin_r: Avoid test failure.
53695         * tests/test-getlogin.c: Include <stdio.h>.
53696         (main): Skip the test when the function fails because stdin is not a
53697         tty.
53698         * tests/test-getlogin_r.c: Include <stdio.h>.
53699         (main): Skip the test when the function fails because stdin is not a
53700         tty.
53702 2010-01-11  Eric Blake  <ebb9@byu.net>
53704         tests: avoid more large file warnings
53705         * tests/test-fflush.c: Avoid warning about ftell use.
53706         * tests/test-fseek.c: Avoid warning about fseek use.
53708 2010-01-10  Bruno Haible  <bruno@clisp.org>
53710         nproc: Work better on Linux when /proc and /sys are not mounted.
53711         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
53712         as lower bound when, on glibc/Linux systems,
53713         sysconf (_SC_NPROCESSORS_CONF) returns 1.
53714         Suggested by Pádraig Brady <P@draigbrady.com>.
53715         Reported by Dmitry V. Levin <ldv@altlinux.org>.
53717         nproc: Refactor.
53718         * lib/nproc.c (num_processors_via_affinity_mask): New function,
53719         extracted from num_processors.
53720         (num_processors): Call it.
53722 2010-01-11  Jim Meyering  <meyering@redhat.com>
53724         utimecmp: avoid new warning from upcoming gcc-4.5.0
53725         * lib/utimecmp.c (BILLION): Define using #define rather than an
53726         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
53728 2010-01-11  Eric Blake  <ebb9@byu.net>
53730         math: add portability warnings for classification macros
53731         * modules/math (Depends-on): Add warn-on-use.
53732         (Makefile.am): Provide new substitutions.
53733         * m4/math_h.m4 (gl_MATH_H): Require inline.
53734         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
53735         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
53736         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
53737         implement warnings.
53739         unistd: warn on use of environ without module
53740         * modules/unistd (Depends-on): Add warn-on-use.
53741         (Makefile.am): Provide new substitutions.
53742         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
53743         * lib/unistd.in.h (environ): Wrap with a warning helper function.
53745         stdio: warn on suspicious uses
53746         * modules/stdio (Depends-on): Add warn-on-use.
53747         (Makefile.am): Provide new substitutions.
53748         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
53749         fseeko.
53750         * lib/stdio.in.h (gets): Always warn on use.
53751         (fseek, ftell): Adjust when warnings are issued, and honor
53752         _GL_NO_LARGE_FILES as a way to silence the warning.
53753         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
53754         any warning about large file offsets.
53755         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
53756         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
53757         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
53758         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
53759         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
53760         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
53761         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
53762         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
53764         warn-on-use: new module
53765         * modules/warn-on-use: New file.
53766         * build-aux/warn-on-use.h: Likewise.
53767         * m4/warn-on-use.m4: Likewise.
53768         * MODULES.html.sh (Support for building): Mention it.
53770 2010-01-10  Bruno Haible  <bruno@clisp.org>
53772         Tests for module 'unistr/u32-strdup'.
53773         * modules/unistr/u32-strdup-tests: New file.
53774         * tests/unistr/test-u32-strdup.c: New file.
53776         Tests for module 'unistr/u16-strdup'.
53777         * modules/unistr/u16-strdup-tests: New file.
53778         * tests/unistr/test-u16-strdup.c: New file.
53780         Tests for module 'unistr/u8-strdup'.
53781         * modules/unistr/u8-strdup-tests: New file.
53782         * tests/unistr/test-u8-strdup.c: New file.
53783         * tests/unistr/test-strdup.h: New file.
53785         Tests for module 'unistr/u32-strncmp'.
53786         * modules/unistr/u32-strncmp-tests: New file.
53787         * tests/unistr/test-u32-strncmp.c: New file.
53789         Tests for module 'unistr/u16-strncmp'.
53790         * modules/unistr/u16-strncmp-tests: New file.
53791         * tests/unistr/test-u16-strncmp.c: New file.
53793         Tests for module 'unistr/u8-strncmp'.
53794         * modules/unistr/u8-strncmp-tests: New file.
53795         * tests/unistr/test-u8-strncmp.c: New file.
53796         * tests/unistr/test-strncmp.h: New file.
53798         Tests for module 'unistr/u32-strcoll'.
53799         * modules/unistr/u32-strcoll-tests: New file.
53800         * tests/unistr/test-u32-strcoll.c: New file.
53802         Tests for module 'unistr/u16-strcoll'.
53803         * modules/unistr/u16-strcoll-tests: New file.
53804         * tests/unistr/test-u16-strcoll.c: New file.
53806         Tests for module 'unistr/u8-strcoll'.
53807         * modules/unistr/u8-strcoll-tests: New file.
53808         * tests/unistr/test-u8-strcoll.c: New file.
53810         Tests for module 'unistr/u32-strcmp'.
53811         * modules/unistr/u32-strcmp-tests: New file.
53812         * tests/unistr/test-u32-strcmp.c: New file.
53813         * tests/unistr/test-u32-strcmp.h: New file.
53815         Tests for module 'unistr/u16-strcmp'.
53816         * modules/unistr/u16-strcmp-tests: New file.
53817         * tests/unistr/test-u16-strcmp.c: New file.
53818         * tests/unistr/test-u16-strcmp.h: New file.
53820         Tests for module 'unistr/u8-strcmp'.
53821         * modules/unistr/u8-strcmp-tests: New file.
53822         * tests/unistr/test-u8-strcmp.c: New file.
53823         * tests/unistr/test-u8-strcmp.h: New file.
53824         * tests/unistr/test-strcmp.h: New file.
53826         Tests for module 'unistr/u32-strncat'.
53827         * modules/unistr/u32-strncat-tests: New file.
53828         * tests/unistr/test-u32-strncat.c: New file.
53830         Tests for module 'unistr/u16-strncat'.
53831         * modules/unistr/u16-strncat-tests: New file.
53832         * tests/unistr/test-u16-strncat.c: New file.
53834         Tests for module 'unistr/u8-strncat'.
53835         * modules/unistr/u8-strncat-tests: New file.
53836         * tests/unistr/test-u8-strncat.c: New file.
53837         * tests/unistr/test-strncat.h: New file.
53839         Tests for module 'unistr/u32-strcat'.
53840         * modules/unistr/u32-strcat-tests: New file.
53841         * tests/unistr/test-u32-strcat.c: New file.
53843         Tests for module 'unistr/u16-strcat'.
53844         * modules/unistr/u16-strcat-tests: New file.
53845         * tests/unistr/test-u16-strcat.c: New file.
53847         Tests for module 'unistr/u8-strcat'.
53848         * modules/unistr/u8-strcat-tests: New file.
53849         * tests/unistr/test-u8-strcat.c: New file.
53850         * tests/unistr/test-strcat.h: New file.
53852         Tests for module 'unistr/u32-stpncpy'.
53853         * modules/unistr/u32-stpncpy-tests: New file.
53854         * tests/unistr/test-u32-stpncpy.c: New file.
53856         Tests for module 'unistr/u16-stpncpy'.
53857         * modules/unistr/u16-stpncpy-tests: New file.
53858         * tests/unistr/test-u16-stpncpy.c: New file.
53860         Tests for module 'unistr/u8-stpncpy'.
53861         * modules/unistr/u8-stpncpy-tests: New file.
53862         * tests/unistr/test-u8-stpncpy.c: New file.
53863         * tests/unistr/test-stpncpy.h: New file.
53865         Tests for module 'unistr/u32-strncpy'.
53866         * modules/unistr/u32-strncpy-tests: New file.
53867         * tests/unistr/test-u32-strncpy.c: New file.
53869         Tests for module 'unistr/u16-strncpy'.
53870         * modules/unistr/u16-strncpy-tests: New file.
53871         * tests/unistr/test-u16-strncpy.c: New file.
53873         Tests for module 'unistr/u8-strncpy'.
53874         * modules/unistr/u8-strncpy-tests: New file.
53875         * tests/unistr/test-u8-strncpy.c: New file.
53876         * tests/unistr/test-strncpy.h: New file.
53878         Tests for module 'unistr/u32-stpcpy'.
53879         * modules/unistr/u32-stpcpy-tests: New file.
53880         * tests/unistr/test-u32-stpcpy.c: New file.
53882         Tests for module 'unistr/u16-stpcpy'.
53883         * modules/unistr/u16-stpcpy-tests: New file.
53884         * tests/unistr/test-u16-stpcpy.c: New file.
53886         Tests for module 'unistr/u8-stpcpy'.
53887         * modules/unistr/u8-stpcpy-tests: New file.
53888         * tests/unistr/test-u8-stpcpy.c: New file.
53889         * tests/unistr/test-stpcpy.h: New file.
53891         Tests for module 'unistr/u32-strcpy'.
53892         * modules/unistr/u32-strcpy-tests: New file.
53893         * tests/unistr/test-u32-strcpy.c: New file.
53895         Tests for module 'unistr/u16-strcpy'.
53896         * modules/unistr/u16-strcpy-tests: New file.
53897         * tests/unistr/test-u16-strcpy.c: New file.
53899         Tests for module 'unistr/u8-strcpy'.
53900         * modules/unistr/u8-strcpy-tests: New file.
53901         * tests/unistr/test-u8-strcpy.c: New file.
53902         * tests/unistr/test-strcpy.h: New file.
53904         Tests for module 'unistr/u32-strnlen'.
53905         * modules/unistr/u32-strnlen-tests: New file.
53906         * tests/unistr/test-u32-strnlen.c: New file.
53908         Tests for module 'unistr/u16-strnlen'.
53909         * modules/unistr/u16-strnlen-tests: New file.
53910         * tests/unistr/test-u16-strnlen.c: New file.
53912         Tests for module 'unistr/u8-strnlen'.
53913         * modules/unistr/u8-strnlen-tests: New file.
53914         * tests/unistr/test-u8-strnlen.c: New file.
53915         * tests/unistr/test-strnlen.h: New file.
53917         Tests for module 'unistr/u32-strlen'.
53918         * modules/unistr/u32-strlen-tests: New file.
53919         * tests/unistr/test-u32-strlen.c: New file.
53921         Tests for module 'unistr/u16-strlen'.
53922         * modules/unistr/u16-strlen-tests: New file.
53923         * tests/unistr/test-u16-strlen.c: New file.
53925         Tests for module 'unistr/u8-strlen'.
53926         * modules/unistr/u8-strlen-tests: New file.
53927         * tests/unistr/test-u8-strlen.c: New file.
53929         Tests for module 'unistr/u32-prev'.
53930         * modules/unistr/u32-prev-tests: New file.
53931         * tests/unistr/test-u32-prev.c: New file.
53933         Tests for module 'unistr/u16-prev'.
53934         * modules/unistr/u16-prev-tests: New file.
53935         * tests/unistr/test-u16-prev.c: New file.
53937         Tests for module 'unistr/u8-prev'.
53938         * modules/unistr/u8-prev-tests: New file.
53939         * tests/unistr/test-u8-prev.c: New file.
53941         Tests for module 'unistr/u32-next'.
53942         * modules/unistr/u32-next-tests: New file.
53943         * tests/unistr/test-u32-next.c: New file.
53945         Tests for module 'unistr/u16-next'.
53946         * modules/unistr/u16-next-tests: New file.
53947         * tests/unistr/test-u16-next.c: New file.
53949         Tests for module 'unistr/u8-next'.
53950         * modules/unistr/u8-next-tests: New file.
53951         * tests/unistr/test-u8-next.c: New file.
53953         Tests for module 'unistr/u32-strmbtouc'.
53954         * modules/unistr/u32-strmbtouc-tests: New file.
53955         * tests/unistr/test-u32-strmbtouc.c: New file.
53957         Tests for module 'unistr/u16-strmbtouc'.
53958         * modules/unistr/u16-strmbtouc-tests: New file.
53959         * tests/unistr/test-u16-strmbtouc.c: New file.
53961         Tests for module 'unistr/u8-strmbtouc'.
53962         * modules/unistr/u8-strmbtouc-tests: New file.
53963         * tests/unistr/test-u8-strmbtouc.c: New file.
53965         Tests for module 'unistr/u32-strmblen'.
53966         * modules/unistr/u32-strmblen-tests: New file.
53967         * tests/unistr/test-u32-strmblen.c: New file.
53969         Tests for module 'unistr/u16-strmblen'.
53970         * modules/unistr/u16-strmblen-tests: New file.
53971         * tests/unistr/test-u16-strmblen.c: New file.
53973         Tests for module 'unistr/u8-strmblen'.
53974         * modules/unistr/u8-strmblen-tests: New file.
53975         * tests/unistr/test-u8-strmblen.c: New file.
53977         Tests for module 'unistr/u32-cpy-alloc'.
53978         * modules/unistr/u32-cpy-alloc-tests: New file.
53979         * tests/unistr/test-u32-cpy-alloc.c: New file.
53981         Tests for module 'unistr/u16-cpy-alloc'.
53982         * modules/unistr/u16-cpy-alloc-tests: New file.
53983         * tests/unistr/test-u16-cpy-alloc.c: New file.
53985         Tests for module 'unistr/u8-cpy-alloc'.
53986         * modules/unistr/u8-cpy-alloc-tests: New file.
53987         * tests/unistr/test-u8-cpy-alloc.c: New file.
53988         * tests/unistr/test-cpy-alloc.h: New file.
53990         Tests for module 'unistr/u32-mbsnlen'.
53991         * modules/unistr/u32-mbsnlen-tests: New file.
53992         * tests/unistr/test-u32-mbsnlen.c: New file.
53994         Tests for module 'unistr/u16-mbsnlen'.
53995         * modules/unistr/u16-mbsnlen-tests: New file.
53996         * tests/unistr/test-u16-mbsnlen.c: New file.
53998         Tests for module 'unistr/u8-mbsnlen'.
53999         * modules/unistr/u8-mbsnlen-tests: New file.
54000         * tests/unistr/test-u8-mbsnlen.c: New file.
54002         Tests for module 'unistr/u32-chr'.
54003         * modules/unistr/u32-chr-tests: New file.
54004         * tests/unistr/test-u32-chr.c: New file.
54006         Tests for module 'unistr/u16-chr'.
54007         * modules/unistr/u16-chr-tests: New file.
54008         * tests/unistr/test-u16-chr.c: New file.
54010         Tests for module 'unistr/u8-chr'.
54011         * modules/unistr/u8-chr-tests: New file.
54012         * tests/unistr/test-u8-chr.c: New file.
54013         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
54015         Tests for module 'unistr/u32-cmp2'.
54016         * modules/unistr/u32-cmp2-tests: New file.
54017         * tests/unistr/test-u32-cmp2.c: New file.
54019         Tests for module 'unistr/u16-cmp2'.
54020         * modules/unistr/u16-cmp2-tests: New file.
54021         * tests/unistr/test-u16-cmp2.c: New file.
54023         Tests for module 'unistr/u8-cmp2'.
54024         * modules/unistr/u8-cmp2-tests: New file.
54025         * tests/unistr/test-u8-cmp2.c: New file.
54026         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
54028         Tests for module 'unistr/u32-cmp'.
54029         * modules/unistr/u32-cmp-tests: New file.
54030         * tests/unistr/test-u32-cmp.c: New file.
54032         Tests for module 'unistr/u16-cmp'.
54033         * modules/unistr/u16-cmp-tests: New file.
54034         * tests/unistr/test-u16-cmp.c: New file.
54036         Tests for module 'unistr/u8-cmp'.
54037         * modules/unistr/u8-cmp-tests: New file.
54038         * tests/unistr/test-u8-cmp.c: New file.
54039         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
54041         Tests for module 'unistr/u32-set'.
54042         * modules/unistr/u32-set-tests: New file.
54043         * tests/unistr/test-u32-set.c: New file.
54045         Tests for module 'unistr/u16-set'.
54046         * modules/unistr/u16-set-tests: New file.
54047         * tests/unistr/test-u16-set.c: New file.
54049         Tests for module 'unistr/u8-set'.
54050         * modules/unistr/u8-set-tests: New file.
54051         * tests/unistr/test-u8-set.c: New file.
54052         * tests/unistr/test-set.h: New file.
54054         Tests for module 'unistr/u32-move'.
54055         * modules/unistr/u32-move-tests: New file.
54056         * tests/unistr/test-u32-move.c: New file.
54058         Tests for module 'unistr/u16-move'.
54059         * modules/unistr/u16-move-tests: New file.
54060         * tests/unistr/test-u16-move.c: New file.
54062         Tests for module 'unistr/u8-move'.
54063         * modules/unistr/u8-move-tests: New file.
54064         * tests/unistr/test-u8-move.c: New file.
54065         * tests/unistr/test-move.h: New file.
54067         Tests for module 'unistr/u32-cpy'.
54068         * modules/unistr/u32-cpy-tests: New file.
54069         * tests/unistr/test-u32-cpy.c: New file.
54071         Tests for module 'unistr/u16-cpy'.
54072         * modules/unistr/u16-cpy-tests: New file.
54073         * tests/unistr/test-u16-cpy.c: New file.
54075         Tests for module 'unistr/u8-cpy'.
54076         * modules/unistr/u8-cpy-tests: New file.
54077         * tests/unistr/test-u8-cpy.c: New file.
54078         * tests/unistr/test-cpy.h: New file.
54080 2010-01-09  Bruno Haible  <bruno@clisp.org>
54082         Tests for module 'unistr/u32-uctomb'.
54083         * modules/unistr/u32-uctomb-tests: New file.
54084         * tests/unistr/test-u32-uctomb.c: New file.
54086         Tests for module 'unistr/u16-uctomb'.
54087         * modules/unistr/u16-uctomb-tests: New file.
54088         * tests/unistr/test-u16-uctomb.c: New file.
54090         Tests for module 'unistr/u8-uctomb'.
54091         * modules/unistr/u8-uctomb-tests: New file.
54092         * tests/unistr/test-u8-uctomb.c: New file.
54094         Tests for module 'unistr/u32-mbtoucr'.
54095         * modules/unistr/u32-mbtoucr-tests: New file.
54096         * tests/unistr/test-u32-mbtoucr.c: New file.
54098         Tests for module 'unistr/u16-mbtoucr'.
54099         * modules/unistr/u16-mbtoucr-tests: New file.
54100         * tests/unistr/test-u16-mbtoucr.c: New file.
54102         Tests for module 'unistr/u8-mbtoucr'.
54103         * modules/unistr/u8-mbtoucr-tests: New file.
54104         * tests/unistr/test-u8-mbtoucr.c: New file.
54106         Tests for module 'unistr/u32-mbtouc'.
54107         * modules/unistr/u32-mbtouc-tests: New file.
54108         * tests/unistr/test-u32-mbtouc.c: New file.
54110         Tests for module 'unistr/u16-mbtouc'.
54111         * modules/unistr/u16-mbtouc-tests: New file.
54112         * tests/unistr/test-u16-mbtouc.c: New file.
54114         Tests for module 'unistr/u8-mbtouc'.
54115         * modules/unistr/u8-mbtouc-tests: New file.
54116         * tests/unistr/test-u8-mbtouc.c: New file.
54118         Tests for module 'unistr/u32-mbtouc-unsafe'.
54119         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
54120         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
54121         * tests/unistr/test-u32-mbtouc.h: New file.
54123         Tests for module 'unistr/u16-mbtouc-unsafe'.
54124         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
54125         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
54126         * tests/unistr/test-u16-mbtouc.h: New file.
54128         Tests for module 'unistr/u8-mbtouc-unsafe'.
54129         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
54130         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
54131         * tests/unistr/test-u8-mbtouc.h: New file.
54133         Tests for module 'unistr/u32-mblen'.
54134         * modules/unistr/u32-mblen-tests: New file.
54135         * tests/unistr/test-u32-mblen.c: New file.
54137         Tests for module 'unistr/u16-mblen'.
54138         * modules/unistr/u16-mblen-tests: New file.
54139         * tests/unistr/test-u16-mblen.c: New file.
54141         Tests for module 'unistr/u8-mblen'.
54142         * modules/unistr/u8-mblen-tests: New file.
54143         * tests/unistr/test-u8-mblen.c: New file.
54145         Tests for module 'unistr/u32-to-u16'.
54146         * modules/unistr/u32-to-u16-tests: New file.
54147         * tests/unistr/test-u32-to-u16.c: New file.
54149         Tests for module 'unistr/u32-to-u8'.
54150         * modules/unistr/u32-to-u8-tests: New file.
54151         * tests/unistr/test-u32-to-u8.c: New file.
54153         Tests for module 'unistr/u16-to-u32'.
54154         * modules/unistr/u16-to-u32-tests: New file.
54155         * tests/unistr/test-u16-to-u32.c: New file.
54157         Tests for module 'unistr/u16-to-u8'.
54158         * modules/unistr/u16-to-u8-tests: New file.
54159         * tests/unistr/test-u16-to-u8.c: New file.
54161         Tests for module 'unistr/u8-to-u32'.
54162         * modules/unistr/u8-to-u32-tests: New file.
54163         * tests/unistr/test-u8-to-u32.c: New file.
54165         Tests for module 'unistr/u8-to-u16'.
54166         * modules/unistr/u8-to-u16-tests: New file.
54167         * tests/unistr/test-u8-to-u16.c: New file.
54169         Tests for module 'unistr/u32-check'.
54170         * modules/unistr/u32-check-tests: New file.
54171         * tests/unistr/test-u32-check.c: New file.
54173         Tests for module 'unistr/u16-check'.
54174         * modules/unistr/u16-check-tests: New file.
54175         * tests/unistr/test-u16-check.c: New file.
54177         Tests for module 'unistr/u8-check'.
54178         * modules/unistr/u8-check-tests: New file.
54179         * tests/unistr/test-u8-check.c: New file.
54181         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
54182         (category_equals): New function.
54183         (main): Add more tests.
54184         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
54186         * tests/unictype/test-bidi_byname.c (main): Add more tests.
54188 2010-01-10  Bruno Haible  <bruno@clisp.org>
54190         unistr/u*-strcoll: Try harder to distinguish different strings.
54191         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
54192         compare s1 and s2 to see if they are different.
54194 2010-01-10  Bruno Haible  <bruno@clisp.org>
54196         unistr/u*-stpncpy: Fix the return value.
54197         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
54198         description of the return value consistent with stpncpy in glibc.
54199         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
54200         written non-NUL unit.
54202 2010-01-10  Bruno Haible  <bruno@clisp.org>
54204         unistr/u*-next: Add missing dependencies.
54205         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
54206         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
54207         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
54209 2010-01-10  Bruno Haible  <bruno@clisp.org>
54211         unistr/u8-mbsnlen: Fix return value for incomplete character.
54212         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
54213         u8_mblen.
54214         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
54215         Remove unistr/u8-mblen.
54216         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
54217         u16_mblen.
54218         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
54219         Remove unistr/u16-mblen.
54221 2010-01-10  Bruno Haible  <bruno@clisp.org>
54223         wchar: Fix compilation error when <wchar.h> is used from coreutils.
54224         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
54225         Reported by Brian Gough <bjg@gnu.org> and
54226         Chris Clayton <chris2553@googlemail.com> via
54227         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
54229 2010-01-09  Bruno Haible  <bruno@clisp.org>
54231         unistr/u16-to-u32: Reject invalid input.
54232         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
54233         u16_mbtouc.
54234         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
54235         Remove unistr/u16-mbtouc.
54237         unistr/u16-to-u8: Reject invalid input.
54238         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
54239         u16_mbtouc.
54240         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
54241         Remove unistr/u16-mbtouc.
54243         unistr/u8-to-u32: Reject invalid input.
54244         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
54245         u8_mbtouc.
54246         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
54247         Remove unistr/u8-mbtouc.
54249         unistr/u8-to-u16: Reject invalid input.
54250         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
54251         u8_mbtouc.
54252         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
54253         Remove unistr/u8-mbtouc.
54255 2010-01-09  Bruno Haible  <bruno@clisp.org>
54257         Tests for module 'getlogin'.
54258         * modules/getlogin-tests: New file.
54259         * tests/test-getlogin.c: New file.
54261         New module 'getlogin'.
54262         * lib/unistd.in.h (getlogin): New declaration.
54263         * lib/getlogin.c: New file.
54264         * m4/getlogin.m4: New file.
54265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
54266         HAVE_GETLOGIN.
54267         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
54268         HAVE_GETLOGIN.
54269         * modules/getlogin: New file.
54270         * doc/posix-functions/getlogin.texi: Mention the new module.
54271         Reported by John W. Eaton <jwe@gnu.org>.
54273 2010-01-09  Bruno Haible  <bruno@clisp.org>
54275         getlogin_r: Support for native Windows.
54276         * lib/getlogin_r.c: Include <windows.h>
54277         (getlogin_r): Implement for native Windows.
54278         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
54279         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
54280         via John W. Eaton <jwe@gnu.org>.
54282 2010-01-09  Bruno Haible  <bruno@clisp.org>
54284         getlogin_r: Small fixes.
54285         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
54286         succeeds.
54287         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
54288         before testing whether getlogin_r is declared. No need to set
54289         HAVE_DECL_GETLOGIN_R to 1.
54290         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
54292 2010-01-09  Bruno Haible  <bruno@clisp.org>
54294         * lib/unistd.in.h (getlogin_r): Add comment.
54296 2010-01-09  Bruno Haible  <bruno@clisp.org>
54298         Tests for module 'getlogin_r'.
54299         * modules/getlogin_r-tests: New file.
54300         * tests/test-getlogin_r.c: New file.
54302 2010-01-09  Jim Meyering  <meyering@redhat.com>
54304         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
54305         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
54306         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
54308 2010-01-08  Simon Josefsson  <simon@josefsson.org>
54310         * lib/dup2.c (rpl_dup2): Improve comment.
54312 2010-01-08  Eric Blake  <ebb9@byu.net>
54314         maint.mk: allow packages to add makefile @@ exceptions
54315         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
54316         (sc_makefile_check): Rename...
54317         (sc_makefile_at_at_check): ...to this, and use hook.
54319         dup2: work around mingw bug
54320         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
54321         Reported by Simon Josefsson.
54323 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
54325         glob: Fix C++ compilation.
54326         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
54327         C++.
54329 2010-01-07  Bruno Haible  <bruno@clisp.org>
54331         Fix indentation of wctype.in.h, broken since 2007-01-06.
54332         * lib/wctype.in.h: Fix indentation of preprocessor directives.
54334 2010-01-07  Bruno Haible  <bruno@clisp.org>
54336         mbslen: Avoid collision with system function.
54337         * lib/string.in.h [MirBSD]: Include <wchar.h>.
54338         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
54339         * m4/mbslen.m4: New file.
54340         * modules/mbslen (Files): Add it.
54341         (configure.ac): Invoke gl_MBSLEN.
54342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
54343         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
54344         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
54345         via Ian Beckwith <ianb@erislabs.net>.
54347 2010-01-07  Bruno Haible  <bruno@clisp.org>
54349         dirent: Document the last fix.
54350         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
54352 2010-01-07  Bruno Haible  <bruno@clisp.org>
54354         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
54355         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
54356         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
54357         va_list are defined.
54358         * doc/posix-headers/stdio.texi: Document the bug of missing types.
54359         Reported by Eric Blake.
54361 2010-01-07  Bruno Haible  <bruno@clisp.org>
54363         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
54364         * modules/xlist (Depends-on): Add 'list',
54365         * modules/xoset (Depends-on): Add 'oset'.
54366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54368 2010-01-07  Bruno Haible  <bruno@clisp.org>
54370         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
54371         * doc/posix-functions/strncasecmp.texi: Likewise.
54373 2010-01-07  Bruno Haible  <bruno@clisp.org>
54375         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
54377 2010-01-07  John W. Eaton  <jwe@octave.org>
54379         wctype: allow C++ use
54380         * lib/wctype.in.h: Add extern "C" block for C++.
54382 2010-01-06  Eric Blake  <ebb9@byu.net>
54384         maint.mk: detect incorrect GFDL usage
54385         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
54387 2010-01-06  Jim Meyering  <meyering@redhat.com>
54388         and Eric Blake  <ebb9@byu.net>
54390         maint.mk: ignore multi-line copyright in NEWS
54391         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
54393 2010-01-06  Eric Blake  <ebb9@byu.net>
54395         select: add missing dependency
54396         * modules/select-tests (Depends-on): Move sockets dependency...
54397         * modules/select (Depends-on): ...here.
54398         Reported by Ian Beckwith.
54400         doc: regenerate INSTALL
54401         * doc/INSTALL: Reflect recent autoconf update.
54402         * doc/INSTALL.ISO: Likewise.
54403         * doc/INSTALL.UTF-8: Likewise.
54405         pread: fix compilation on glibc
54406         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
54407         Reported by Ralf Wildenhues.
54409         dirent: fix test failure
54410         * lib/dirent.in.h (includes): Guarantee ino_t.
54411         Reported by Ralf Wildenhues.
54413 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
54415         linkat, renameat: avoid bad free
54416         * lib/at-func2.c (at_func2): Fix typo.
54417         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
54419 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54421         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
54422         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
54423         to avoid failure of symlink test later.
54425 2010-01-06  Eric Blake  <ebb9@byu.net>
54427         stdio, unistd: guarantee ssize_t
54428         * lib/unistd.in.h (includes): Ensure that types required by POSIX
54429         2008 are exposed when needed.
54430         * lib/stdio.in.h (includes): Likewise.
54431         Reported by Ralf Wildenhues.
54433 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
54435         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
54436         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
54437         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
54439 2010-01-06  Jim Meyering  <meyering@redhat.com>
54441         readtokens: this module *does* require xalloc.h
54442         It uses only functions that were omitted by the old syntax-check rule.
54443         * lib/readtokens.c: Include "xalloc.h" once again.
54444         * modules/readtokens (Depends-on): Add xalloc.
54445         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
54447 2010-01-05  Eric Blake  <ebb9@byu.net>
54449         maint: support 'make announcement' from a VPATH build
54450         * top/maint.mk (announcement): Look for correct NEWS file.
54452 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
54454         utimens (fdutimens): ignore a negative FD, per contract
54455         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
54456         when we have a valid file descriptor.  Otherwise, using a brand
54457         new glibc (with just-patched futimens that now fails with EBADF)
54458         would cause this function to fail with ENOSYS.
54459         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
54460         See also http://bugzilla.redhat.com/552320.
54462 2010-01-05  Eric Blake  <ebb9@byu.net>
54464         strcase: document what it provides
54465         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
54466         gnulib module.
54467         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
54468         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
54470 2010-01-05  Jim Meyering  <meyering@redhat.com>
54472         maint: remove useless inclusions of "xalloc.h"
54473         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
54474         * lib/readtokens.c: Likewise.
54475         * lib/same.c: Likewise.
54476         * modules/getloadavg (Depends-on): Remove xalloc.
54477         * modules/readtokens: Likewise.
54478         * modules/same: Likewise.
54480         maint.mk: include 4 more function names in alloca.h-checking regexp
54481         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
54482         regexp.  Before, we would give a false-positive (saying alloca.h
54483         is included unnecessarily) when the only uses involved omitted symbols.
54485         xalloc.h: use consistent formatting
54486         * lib/xalloc.h: Move declarations to start in the first column.
54488 2010-01-05  Eric Blake  <ebb9@byu.net>
54490         mkdir: avoid xalloc
54491         * lib/mkdir.c (includes): Drop unused header.
54492         Reported by John W. Eaton.
54494 2010-01-04  Jim Meyering  <meyering@redhat.com>
54496         nl_langinfo: avoid configure-time syntax error
54497         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
54498         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
54499         the empty string.  Don't let that provoke a shell syntax error.
54501         regcomp, regexec, fnmatch: avoid array bounds read error
54502         * lib/regcomp.c (build_equiv_class): From glibc:
54503         Use only the low 24 bits of a findidx return value as an index
54504         into the weights array.  Patch by Ulrich Drepper:
54505         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
54506         * lib/regexec.c (check_node_accept_bytes): Likewise.
54507         * lib/fnmatch_loop.c (FCT): Likewise.
54509         regcomp: skip collseq lookup when there are no rules
54510         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
54511         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
54513         regcomp: recognize ill-formed { } expressions
54514         * lib/regcomp.c (parse_dup_op): From glibc:
54515         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
54517         regcomp: fix typo in comment
54518         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
54519         s/satisfy/satisfies/.
54521         regcomp: sync from glibc: remove dead store
54522         * lib/regcomp.c (duplicate_node_closure): Remove useless
54523         search_duplicated_node call and dead store.
54525         regcomp: sync from glibc; always use nl_langinfo
54526         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
54527         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
54528         * modules/regex (Depends-on): Add nl_langinfo.
54530 2010-01-04  Eric Blake  <ebb9@byu.net>
54532         fdopendir: fix configure test
54533         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
54535 2010-01-01  Bruno Haible  <bruno@clisp.org>
54537         wchar: Remove unused configure check.
54538         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
54540 2010-01-01  Eric Blake  <ebb9@byu.net>
54542         headers: make check of system header explicit
54543         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
54544         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
54545         ourselves.
54546         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54548         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54549         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
54550         internals.
54551         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
54552         missing.
54553         Suggested by Bruno Haible.
54555 2010-01-01  Jim Meyering  <meyering@redhat.com>
54557         ChangeLog: tweak to eliminate unnecessary copyright line
54558         * ChangeLog: Remove a copyright line that was mistakenly updated
54559         by today's update-copyright run.  Reported by Eric Blake.
54561         test-update-copyright: don't let envvar setting cause test failure
54562         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54564 2010-01-01  Bruno Haible  <bruno@clisp.org>
54566         localename: Avoid gcc warning.
54567         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
54568         function if it is not used.
54570 2010-01-01  Jim Meyering  <meyering@redhat.com>
54572         update nearly all FSF copyright year lists to include 2010
54573         Use the same procedure as for 2009, outlined in
54574         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
54576         version-etc: set COPYRIGHT_YEAR to 2010
54577         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
54579 2009-12-31  Eric Blake  <ebb9@byu.net>
54581         doc: correct availability of cygwin 1.5.x getopt
54582         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
54583         variables.
54584         * doc/posix-functions/opterr.texi (opterr): Likewise.
54585         * doc/posix-functions/optind.texi (optind): Likewise.
54586         * doc/posix-functions/optopt.texi (optopt): Likewise.
54587         * doc/posix-functions/tzname.texi (tzname): Likewise.
54589         openat: update maintainer
54590         * modules/openat (Maintainer): Add myself.
54592         utimens: avoid shadowing warning
54593         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
54594         buffers into one, to avoid shadowing, as well as avoiding a
54595         redundant stat.
54596         Reported by Jim Meyering.
54598         test-dup2: avoid compiler warning
54599         * tests/test-dup2.c (is_inheritable): Only define if used.
54601 2010-01-01  Bruno Haible  <bruno@clisp.org>
54603         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
54604         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
54605         defined, use wctomb instead of wcrtomb.
54607 2010-01-01  Bruno Haible  <bruno@clisp.org>
54609         iconv: Reject native Solaris iconv.
54610         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
54611         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
54613 2009-12-31  Bruno Haible  <bruno@clisp.org>
54615         * tests/test-signal.c (main): Remove test of 'SIG'.
54617 2009-12-31  Bruno Haible  <bruno@clisp.org>
54619         spawn: Fix incomplete fix.
54620         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54621         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54622         warnings for GNULIB_POSIXCHECK again.
54623         Reported by Eric Blake.
54625 2009-12-31  Bruno Haible  <bruno@clisp.org>
54627         Avoid namespace pollution on glibc systems.
54628         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
54629         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
54630         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
54631         glibc systems.
54633 2009-12-31  Bruno Haible  <bruno@clisp.org>
54635         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
54636         (gl_REPLACE_WCHAR_H): Turn into a no-op.
54637         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
54638         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54639         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54640         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54641         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54643 2009-12-31  Bruno Haible  <bruno@clisp.org>
54645         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54646         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
54647         afterwards.
54649 2009-12-31  Bruno Haible  <bruno@clisp.org>
54651         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
54652         SYS_UTSNAME_H.
54654 2009-12-31  Bruno Haible  <bruno@clisp.org>
54656         spawn: Fix misapplied patch.
54657         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54658         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54659         warnings for GNULIB_POSIXCHECK.
54661 2009-12-31  Bruno Haible  <bruno@clisp.org>
54663         times: Update after sys_times changed.
54664         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
54665         * modules/times (Files): Add it.
54666         (configure.ac): Invoke gl_FUNC_TIMES.
54668 2009-12-31  Bruno Haible  <bruno@clisp.org>
54670         Use AC_C_INLINE where necessary.
54671         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
54672         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54674         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54675         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54676         * m4/mbiter.m4 (gl_MBITER): Likewise.
54677         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54678         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54679         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
54680         * modules/u64 (configure.ac): Likewise.
54682 2009-12-31  Bruno Haible  <bruno@clisp.org>
54684         Use AC_C_INLINE instead of module 'inline' where possible.
54685         * modules/inline (Description): Clarify purpose.
54686         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
54687         * modules/count-one-bits (Depends-on): Remove inline.
54688         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
54689         * modules/openat (Depends-on): Remove inline.
54690         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
54691         instead of depending on module 'inline'.
54692         * modules/filevercmp (Depends-on, configure.ac): Likewise.
54693         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
54694         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
54695         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
54696         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
54697         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
54698         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
54699         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
54700         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
54701         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
54702         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
54703         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
54704         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
54705         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
54706         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
54707         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
54708         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
54709         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
54710         Likewise.
54711         * modules/unictype/property-ascii-hex-digit (Depends-on,
54712         configure.ac): Likewise.
54713         * modules/unictype/property-bidi-arabic-digit (Depends-on,
54714         configure.ac): Likewise.
54715         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
54716         configure.ac): Likewise.
54717         * modules/unictype/property-bidi-block-separator (Depends-on,
54718         configure.ac): Likewise.
54719         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
54720         configure.ac): Likewise.
54721         * modules/unictype/property-bidi-common-separator (Depends-on,
54722         configure.ac): Likewise.
54723         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
54724         Likewise.
54725         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
54726         configure.ac): Likewise.
54727         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
54728         configure.ac): Likewise.
54729         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
54730         configure.ac): Likewise.
54731         * modules/unictype/property-bidi-european-digit (Depends-on,
54732         configure.ac): Likewise.
54733         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
54734         configure.ac): Likewise.
54735         * modules/unictype/property-bidi-left-to-right (Depends-on,
54736         configure.ac): Likewise.
54737         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
54738         configure.ac): Likewise.
54739         * modules/unictype/property-bidi-other-neutral (Depends-on,
54740         configure.ac): Likewise.
54741         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
54742         Likewise.
54743         * modules/unictype/property-bidi-segment-separator (Depends-on,
54744         configure.ac): Likewise.
54745         * modules/unictype/property-bidi-whitespace (Depends-on,
54746         configure.ac): Likewise.
54747         * modules/unictype/property-combining (Depends-on, configure.ac):
54748         Likewise.
54749         * modules/unictype/property-composite (Depends-on, configure.ac):
54750         Likewise.
54751         * modules/unictype/property-currency-symbol (Depends-on,
54752         configure.ac): Likewise.
54753         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
54754         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
54755         Likewise.
54756         * modules/unictype/property-default-ignorable-code-point (Depends-on,
54757         configure.ac): Likewise.
54758         * modules/unictype/property-deprecated (Depends-on, configure.ac):
54759         Likewise.
54760         * modules/unictype/property-diacritic (Depends-on, configure.ac):
54761         Likewise.
54762         * modules/unictype/property-extender (Depends-on, configure.ac):
54763         Likewise.
54764         * modules/unictype/property-format-control (Depends-on, configure.ac):
54765         Likewise.
54766         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
54767         Likewise.
54768         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
54769         Likewise.
54770         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
54771         Likewise.
54772         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
54773         Likewise.
54774         * modules/unictype/property-hyphen (Depends-on, configure.ac):
54775         Likewise.
54776         * modules/unictype/property-id-continue (Depends-on, configure.ac):
54777         Likewise.
54778         * modules/unictype/property-id-start (Depends-on, configure.ac):
54779         Likewise.
54780         * modules/unictype/property-ideographic (Depends-on, configure.ac):
54781         Likewise.
54782         * modules/unictype/property-ids-binary-operator (Depends-on,
54783         configure.ac): Likewise.
54784         * modules/unictype/property-ids-trinary-operator (Depends-on,
54785         configure.ac): Likewise.
54786         * modules/unictype/property-ignorable-control (Depends-on,
54787         configure.ac): Likewise.
54788         * modules/unictype/property-iso-control (Depends-on, configure.ac):
54789         Likewise.
54790         * modules/unictype/property-join-control (Depends-on, configure.ac):
54791         Likewise.
54792         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
54793         Likewise.
54794         * modules/unictype/property-line-separator (Depends-on, configure.ac):
54795         Likewise.
54796         * modules/unictype/property-logical-order-exception (Depends-on,
54797         configure.ac): Likewise.
54798         * modules/unictype/property-lowercase (Depends-on, configure.ac):
54799         Likewise.
54800         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
54801         * modules/unictype/property-non-break (Depends-on, configure.ac):
54802         Likewise.
54803         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
54804         Likewise.
54805         * modules/unictype/property-numeric (Depends-on, configure.ac):
54806         Likewise.
54807         * modules/unictype/property-other-alphabetic (Depends-on,
54808         configure.ac): Likewise.
54809         * modules/unictype/property-other-default-ignorable-code-point
54810         (Depends-on, configure.ac): Likewise.
54811         * modules/unictype/property-other-grapheme-extend (Depends-on,
54812         configure.ac): Likewise.
54813         * modules/unictype/property-other-id-continue (Depends-on,
54814         configure.ac): Likewise.
54815         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
54816         Likewise.
54817         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
54818         Likewise.
54819         * modules/unictype/property-other-math (Depends-on, configure.ac):
54820         Likewise.
54821         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
54822         Likewise.
54823         * modules/unictype/property-paired-punctuation (Depends-on,
54824         configure.ac): Likewise.
54825         * modules/unictype/property-paragraph-separator (Depends-on,
54826         configure.ac): Likewise.
54827         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
54828         Likewise.
54829         * modules/unictype/property-pattern-white-space (Depends-on,
54830         configure.ac): Likewise.
54831         * modules/unictype/property-private-use (Depends-on, configure.ac):
54832         Likewise.
54833         * modules/unictype/property-punctuation (Depends-on, configure.ac):
54834         Likewise.
54835         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
54836         Likewise.
54837         * modules/unictype/property-radical (Depends-on, configure.ac):
54838         Likewise.
54839         * modules/unictype/property-sentence-terminal (Depends-on,
54840         configure.ac): Likewise.
54841         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
54842         Likewise.
54843         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
54844         * modules/unictype/property-terminal-punctuation (Depends-on,
54845         configure.ac): Likewise.
54846         * modules/unictype/property-titlecase (Depends-on, configure.ac):
54847         Likewise.
54848         * modules/unictype/property-unassigned-code-value (Depends-on,
54849         configure.ac): Likewise.
54850         * modules/unictype/property-unified-ideograph (Depends-on,
54851         configure.ac): Likewise.
54852         * modules/unictype/property-uppercase (Depends-on, configure.ac):
54853         Likewise.
54854         * modules/unictype/property-variation-selector (Depends-on,
54855         configure.ac): Likewise.
54856         * modules/unictype/property-white-space (Depends-on, configure.ac):
54857         Likewise.
54858         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
54859         Likewise.
54860         * modules/unictype/property-xid-start (Depends-on, configure.ac):
54861         Likewise.
54862         * modules/unictype/property-zero-width (Depends-on, configure.ac):
54863         Likewise.
54864         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
54865         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
54866         Likewise.
54868 2009-12-31  Bruno Haible  <bruno@clisp.org>
54870         Remove unnecessary AC_C_INLINE invocation.
54871         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
54872         since 2009-08-21.
54874 2009-12-31  Jim Meyering  <meyering@redhat.com>
54876         maint.mk: don't require explicit gpg_key_ID in cfg.mk
54877         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
54878         With this change, we can all remove the gpg_key_ID = ... definition
54879         from our respective cfg.mk files.
54881         maint.mk: create announcement template in ~/, not in /tmp
54882         * top/maint.mk (emit_upload_commands): Adjust.
54883         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
54884         Remove temporary file, .ci-msg.
54886 2009-12-31  Eric Blake  <ebb9@byu.net>
54888         link-warning: always build headers with link warnings
54889         * modules/arpa_inet (Makefile.am): Always build replacement
54890         header.
54891         * modules/ctype (Makefile.am): Likewise.
54892         * modules/dirent (Makefile.am): Likewise.
54893         * modules/inttypes (Makefile.am): Likewise.
54894         * modules/langinfo (Makefile.am): Likewise.
54895         * modules/locale (Makefile.am): Likewise.
54896         * modules/spawn (Makefile.am): Likewise.
54897         * modules/sys_file (Makefile.am): Likewise.
54898         * modules/sys_ioctl (Makefile.am): Likewise.
54899         * modules/sys_select (Makefile.am): Likewise.
54900         * modules/sys_socket (Makefile.am): Likewise.
54901         * modules/sys_times (Makefile.am): Likewise.
54902         * modules/sys_utsname (Makefile.am): Likewise.
54903         * modules/sys_wait (Makefile.am): Likewise.
54904         * modules/wchar (Makefile.am): Likewise.
54905         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
54906         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
54907         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
54908         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
54909         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
54910         Likewise.
54911         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54912         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54913         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
54914         Likewise.
54915         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
54916         Likewise.
54917         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
54918         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
54919         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
54920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54921         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54922         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54923         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54924         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
54925         (gl_WCHAR_H_DEFAULTS): Likewise.
54927 2009-12-31  Eric Blake  <ebb9@byu.net>
54929         signal, spawn: use link warnings
54930         * lib/signal.in.h (sigset_t): Make unconditional.
54931         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
54932         (sigpending, sigprocmask, sigaction): Add link warnings.
54933         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
54934         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
54935         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
54936         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
54937         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
54938         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
54939         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
54940         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
54941         (posix_spawn_file_actions_destroy)
54942         (posix_spawn_file_actions_addopen)
54943         (posix_spawn_file_actions_addclose)
54944         (posix_spawn_file_actions_adddup2): Likewise.
54945         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
54946         * tests/test-signal.c (main): Enhance test.
54948         spawn: improve wrapper support
54949         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
54950         (gl_SPAWN_H_DEFAULTS): New defaults.
54951         * modules/spawn (Makefile.am): Substitute them.
54952         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
54953         Only declare if missing or broken.
54955         sys_times, sys_utsname: use include_next
54956         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
54957         header.
54958         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
54959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54960         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54961         * modules/sys_times (Depends-on): Add include_next.
54962         (Makefile.am): Substitute additional values.
54963         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54964         * lib/sys_times.in.h (includes): Include native header, if
54965         available.
54966         * lib/sys_utsname.in.h (includes): Likewise.
54967         * tests/test-sys_times.c (main): Enhance test.
54969         fdutimensat: revert prior patch
54970         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
54971         utimens.h.
54972         Reported by Bruno Haible.
54974 2009-12-30  Eric Blake  <ebb9@byu.net>
54976         sys_wait: drop link-warning dependency
54977         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
54978         link-warning efforts.
54979         * lib/sys_wait.in.h: Likewise.
54981         fdutimensat: remove bogus dependency
54982         * modules/fdutimensat (Depends-on): Drop inline.
54984         unistd: fix typo
54985         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
54987 2009-12-30  Bruno Haible  <bruno@clisp.org>
54989         Fix compilation error with Solaris cc.
54990         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
54991         * lib/unicase/u16-is-invariant.c: Likewise.
54992         * lib/unicase/u32-is-invariant.c: Likewise.
54993         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54995 2009-12-30  Bruno Haible  <bruno@clisp.org>
54997         Fix test crash.
54998         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
54999         locales.
55000         Reported by Simon Josefsson <simon@josefsson.org>.
55002 2009-12-30  Bruno Haible  <bruno@clisp.org>
55004         Fix compilation error on most platforms.
55005         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
55006         Reported by Simon Josefsson <simon@josefsson.org>
55007         and Nelson H. F. Beebe <beebe@math.utah.edu>.
55009 2009-12-30  Eric Blake  <ebb9@byu.net>
55011         futimens, utimensat: work around ntfs-3g bug
55012         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
55013         a ctime bug is present, and expand workaround to cover ntfs-3g.
55014         * lib/utimens.c (fdutimens, lutimens): Likewise.
55015         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
55016         (validate_timespec): Adjust return value.
55017         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
55018         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55019         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
55021 2009-12-29  Eric Blake  <ebb9@byu.net>
55023         link-warning: make usage consistent
55024         * modules/ctype (Depends-on): Add link-warning.
55025         (Makefile.am): Update rules accordingly.
55026         * modules/langinfo (Depends-on, Makefile.am): Likewise.
55027         * modules/locale (Depends-on, Makefile.am): Likewise.
55028         * modules/sys_file (Makefile.am): Likewise.
55029         * modules/getopt-posix (Makefile.am): Delete unused link warning
55030         efforts.
55031         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
55032         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
55033         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
55034         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
55036         stdio: remove unused variables
55037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
55038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
55039         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55041         tests: test more substitute headers
55042         * modules/ctype-tests: New file.
55043         * modules/dirent-tests: Likewise.
55044         * modules/spawn-tests: Likewise.
55045         * modules/sys_file-tests: Likewise.
55046         * modules/sys_ioctl-tests: Likewise.
55047         * modules/sys_wait-tests: Likewise.
55048         * tests/test-ctype.c: Likewise.
55049         * tests/test-dirent.c: Likewise.
55050         * tests/test-spawn.c: Likewise.
55051         * tests/test-sys_file.c: Likewise.
55052         * tests/test-sys_ioctl.c: Likewise.
55053         * tests/test-sys_wait.c: Likewise.
55054         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
55055         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
55056         whether or not flock is in use.
55058         tests: remove License section from module
55059         * modules/arpa_inet-tests: Remove unneeded section.
55060         * modules/byteswap-tests: Likewise.
55061         * modules/ceilf-tests: Likewise.
55062         * modules/ceill-tests: Likewise.
55063         * modules/crypto/des-tests: Likewise.
55064         * modules/crypto/gc-arcfour-tests: Likewise.
55065         * modules/crypto/gc-arctwo-tests: Likewise.
55066         * modules/crypto/gc-des-tests: Likewise.
55067         * modules/crypto/gc-hmac-md5-tests: Likewise.
55068         * modules/crypto/gc-hmac-sha1-tests: Likewise.
55069         * modules/crypto/gc-md2-tests: Likewise.
55070         * modules/crypto/gc-md4-tests: Likewise.
55071         * modules/crypto/gc-md5-tests: Likewise.
55072         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
55073         * modules/crypto/gc-rijndael-tests: Likewise.
55074         * modules/crypto/gc-sha1-tests: Likewise.
55075         * modules/crypto/gc-tests: Likewise.
55076         * modules/crypto/md2-tests: Likewise.
55077         * modules/crypto/md4-tests: Likewise.
55078         * modules/fcntl-h-tests: Likewise.
55079         * modules/floorf-tests: Likewise.
55080         * modules/floorl-tests: Likewise.
55081         * modules/frexp-nolibm-tests: Likewise.
55082         * modules/frexp-tests: Likewise.
55083         * modules/frexpl-nolibm-tests: Likewise.
55084         * modules/frexpl-tests: Likewise.
55085         * modules/getaddrinfo-tests: Likewise.
55086         * modules/inttypes-tests: Likewise.
55087         * modules/isfinite-tests: Likewise.
55088         * modules/isinf-tests: Likewise.
55089         * modules/ldexpl-tests: Likewise.
55090         * modules/locale-tests: Likewise.
55091         * modules/math-tests: Likewise.
55092         * modules/netdb-tests: Likewise.
55093         * modules/netinet_in-tests: Likewise.
55094         * modules/printf-frexp-tests: Likewise.
55095         * modules/printf-frexpl-tests: Likewise.
55096         * modules/priv-set-tests: Likewise.
55097         * modules/random_r-tests: Likewise.
55098         * modules/round-tests: Likewise.
55099         * modules/roundf-tests: Likewise.
55100         * modules/roundl-tests: Likewise.
55101         * modules/search-tests: Likewise.
55102         * modules/select-tests: Likewise.
55103         * modules/signal-tests: Likewise.
55104         * modules/stdbool-tests: Likewise.
55105         * modules/stddef-tests: Likewise.
55106         * modules/stdint-tests: Likewise.
55107         * modules/stdio-tests: Likewise.
55108         * modules/stdlib-tests: Likewise.
55109         * modules/string-tests: Likewise.
55110         * modules/strings-tests: Likewise.
55111         * modules/sys_select-tests: Likewise.
55112         * modules/sys_socket-tests: Likewise.
55113         * modules/sys_stat-tests: Likewise.
55114         * modules/sys_time-tests: Likewise.
55115         * modules/sys_utsname-tests: Likewise.
55116         * modules/sysexits-tests: Likewise.
55117         * modules/time-tests: Likewise.
55118         * modules/trunc-tests: Likewise.
55119         * modules/truncf-tests: Likewise.
55120         * modules/truncl-tests: Likewise.
55121         * modules/tsearch-tests: Likewise.
55122         * modules/unistd-tests: Likewise.
55123         * modules/wchar-tests: Likewise.
55124         * modules/wctype-tests: Likewise.
55126         tests: fix license on several tests
55127         * tests/test-des.c: Update to GPLv3+.
55128         * tests/test-flock.c: Likewise.
55129         * tests/test-fsync.c: Likewise.
55130         * tests/test-futimens.h: Likewise.
55131         * tests/test-gc-arcfour.c: Likewise.
55132         * tests/test-gc-arctwo.c: Likewise.
55133         * tests/test-gc-des.c: Likewise.
55134         * tests/test-gc-hmac-md5.c: Likewise.
55135         * tests/test-gc-hmac-sha1.c: Likewise.
55136         * tests/test-gc-md2.c: Likewise.
55137         * tests/test-gc-md4.c: Likewise.
55138         * tests/test-gc-md5.c: Likewise.
55139         * tests/test-gc-pbkdf2-sha1.c: Likewise.
55140         * tests/test-gc-rijndael.c: Likewise.
55141         * tests/test-gc-sha1.c: Likewise.
55142         * tests/test-gc.c: Likewise.
55143         * tests/test-getcwd.c: Likewise.
55144         * tests/test-link.c: Likewise.
55145         * tests/test-link.h: Likewise.
55146         * tests/test-lutimens.h: Likewise.
55147         * tests/test-md2.c: Likewise.
55148         * tests/test-md4.c: Likewise.
55149         * tests/test-mkdir.h: Likewise.
55150         * tests/test-rename.c: Likewise.
55151         * tests/test-rename.h: Likewise.
55152         * tests/test-safe-alloc.c: Likewise.
55153         * tests/test-utimens-common.h: Likewise.
55154         * tests/test-utimens.h: Likewise.
55156         maint: sync license texts
55157         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
55158         * doc/gpl-3.0.texi: Revert copyright year update.
55159         * doc/lgpl-3.0.texi: Likewise.
55161 2009-12-29  Jim Meyering  <meyering@redhat.com>
55163         update nearly all FSF copyright year lists to include 2009
55164         The files named by the following are exempted:
55165             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
55166               test -f "$dst" && { echo "$dst"; continue; }
55167               test -d "$dst" || continue
55168               echo "$dst"/$(basename "$src")
55169             done > exempt
55170             git ls-files tests/unictype >> exempt
55171         In the remaining files, convert to all-interval notation if
55172         - there is already at least one year interval like 2000-2003
55173         - the file is maintained by me
55174         - the file is in lib/uni*/, where that style already prevails
55175         Otherwise, use update-copyright's default.
55177 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55178         and Eric Blake  <ebb9@byu.net>
55180         tests: don't require debug system() to pass
55181         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
55182         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55183         * tests/test-unlink.h (test_unlink_func): Likewise.
55184         * tests/test-fstatat.c (main): ...into callers.
55185         * tests/test-lstat.c (main): Likewise.
55186         * tests/test-rmdir.c (main): Likewise.
55187         * tests/test-unlink.c (main): Likewise.
55188         * tests/test-unlinkat.c (main): Likewise.
55189         * tests/test-areadlink-with-size.c (main): Don't require a
55190         debug-only system call to pass, aiding cross-testing to mingw.
55191         * tests/test-areadlink.c (main): Likewise.
55192         * tests/test-areadlinkat-with-size.c (main): Likewise.
55193         * tests/test-areadlinkat.c (main): Likewise.
55194         * tests/test-canonicalize-lgpl.c (main): Likewise.
55195         * tests/test-canonicalize.c (main): Likewise.
55196         * tests/test-chown.c (main): Likewise.
55197         * tests/test-fchownat.c (main): Likewise.
55198         * tests/test-lchown.c (main): Likewise.
55199         * tests/test-fdutimensat.c (main): Likewise.
55200         * tests/test-futimens.c (main): Likewise.
55201         * tests/test-link.c (main): Likewise.
55202         * tests/test-linkat.c (main): Likewise.
55203         * tests/test-mkdir.c (main): Likewise.
55204         * tests/test-mkdirat.c (main): Likewise.
55205         * tests/test-mkfifo.c (main): Likewise.
55206         * tests/test-mkfifoat.c (main): Likewise.
55207         * tests/test-mknod.c (main): Likewise.
55208         * tests/test-readlink.c (main): Likewise.
55209         * tests/test-remove.c (main): Likewise.
55210         * tests/test-rename.c (main): Likewise.
55211         * tests/test-renameat.c (main): Likewise.
55212         * tests/test-symlink.c (main): Likewise.
55213         * tests/test-symlinkat.c (main): Likewise.
55214         * tests/test-utimens.c (main): Likewise.
55215         * tests/test-utimensat.c (main): Likewise.
55217 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55219         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
55220         on $(UNUSED_PARAMETER_H) to avoid build failure.
55222 2009-12-28  Jim Meyering  <meyering@redhat.com>
55224         update-copyright: you may specify a max. line length other than 72
55225         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55227         maint: use consistent FSF copyright line syntax
55228         * lib/posixtm.c: Add missing comma in FSF copyright line.
55229         * lib/posixtm.h: Likewise.
55230         * lib/getugroups.c: Add missing ", Inc.".
55232         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
55233         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
55234         FSF copyright line.  Remove trailing blanks.
55236 2009-12-28  Eric Blake  <ebb9@byu.net>
55238         test-dup2: reduce dependencies
55239         * modules/cloexec (Configure.ac): Set witness.
55240         * modules/dup2-tests (Depends-on): Drop cloexec.
55241         * tests/test-dup2.c (main): Skip portion of test if cloexec module
55242         not present.
55243         Suggested by Bruno Haible.
55245 2009-12-26  Bruno Haible  <bruno@clisp.org>
55247         Remove an unneeded dependency.
55248         * modules/fseterr (Depends-on): Remove dup2.
55250 2009-12-26  Eric Blake  <ebb9@byu.net>
55252         tests: use macros.h in more places
55253         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
55254         (ASSERT_STREAM): Provide default of stderr.
55255         * tests/test-dirent-safer.c: Include macros.h, using alternate
55256         stream for assertions.
55257         * tests/test-dup-safer.c: Likewise.
55258         * tests/test-freopen-safer.c: Likewise.
55259         * tests/test-getopt.c: Likewise.
55260         * tests/test-openat-safer.c: Likewise.
55261         * tests/test-pipe.c: Likewise.
55262         * tests/test-popen-safer.c: Likewise.
55263         * modules/dirent-safer-tests (Files): Include macros.h.
55264         * modules/unistd-safer-tests (Files): Likewise.
55265         * modules/freopen-safer-tests (Files): Likewise.
55266         * modules/getopt-posix-tests (Files): Likewise.
55267         * modules/openat-safer-tests (Files): Likewise.
55268         * modules/pipe-tests (Files): Likewise.
55270 2009-12-26  Bruno Haible  <bruno@clisp.org>
55272         javacomp-script: Portability fix.
55273         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
55274         that it also works on Solaris.
55276 2009-12-26  Bruno Haible  <bruno@clisp.org>
55278         localename: Fix storage allocation of gl_locale_name_thread's result.
55279         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
55280         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
55281         all platforms that have 'uselocale'.
55282         (gl_locale_name_thread_unsafe): New function, extracted from
55283         gl_locale_name_thread.
55284         (gl_locale_name_thread): Call struniq on all platforms that have
55285         'uselocale'.
55286         * tests/test-localename.c (test_locale_name_thread): Check that the
55287         resulting strings are permanently allocated.
55288         * modules/localename-tests (Depends-on): Add strdup.
55290 2009-12-26  Bruno Haible  <bruno@clisp.org>
55292         * tests/test-localename.c (categories): Fill in the strings.
55294 2009-12-26  Jim Meyering  <meyering@redhat.com>
55296         isdir: complete the removal of m4/isdir.m4
55297         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
55299         isdir: clean up, since at least grep still uses it
55300         * lib/isdir.c: Include "isdir.h".
55301         (S_ISDIR): Remove now-unneeded definition.
55302         * modules/isdir (Files): Add lib/isdir.h.
55303         * lib/isdir.h: New file, with declaration.
55304         * m4/isdir.m4: Remove file -- unneeded.
55306 2009-12-25  Bruno Haible  <bruno@clisp.org>
55308         selinux-h: Make generated .h files standalone.
55309         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
55310         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
55311         * lib/se-selinux.in.h: Likewise.
55312         * modules/selinux-h (Depends-on): Add unused-parameter.
55313         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
55314         selinux/selinux.h and selinux/context.h.
55315         Suggested by Eric Blake.
55317 2009-12-25  Bruno Haible  <bruno@clisp.org>
55319         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
55320         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
55321         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
55322         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
55323         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
55325 2009-12-24  Bruno Haible  <bruno@clisp.org>
55327         openat: Fix warning.
55328         * lib/openat-proc.c: Include <unistd.h>.
55330 2009-12-24  Bruno Haible  <bruno@clisp.org>
55332         New module 'unused-parameter'.
55333         * build-aux/unused-parameter.h: New file, extracted from earlier
55334         gnulib-common.m4.
55335         * modules/unused-parameter: New file.
55336         * lib/unistr.h: Include unused-parameter.h.
55337         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
55338         _GL_UNUSED.
55339         * modules/unistr/base (Depends-on): Add unused-parameter.
55341 2009-12-24  Bruno Haible  <bruno@clisp.org>
55343         Add missing dependencies to 'extensions' module.
55344         * m4/extensions.m4: Add comment.
55345         * modules/accept4 (Depends-on): Add extensions.
55346         * modules/dup3 (Depends-on): Likewise.
55347         * modules/fcntl (Depends-on): Likewise.
55348         * modules/futimens (Depends-on): Likewise.
55349         * modules/mknod (Depends-on): Likewise.
55350         * modules/pipe2 (Depends-on): Likewise.
55351         * modules/stat-time (Depends-on): Likewise.
55352         * modules/strcasestr-simple (Depends-on): Likewise.
55353         * modules/strsignal (Depends-on): Likewise.
55354         * modules/utimensat (Depends-on): Likewise.
55355         * modules/localcharset (Depends-on): Likewise. Needed because of
55356         gl_FCNTL_O_FLAGS.
55357         * modules/wcrtomb (Depends-on): Likewise. Needed because of
55358         AC_TYPE_MBSTATE_T.
55359         * modules/wcsnrtombs (Depends-on): Likewise.
55360         * modules/wcsrtombs (Depends-on): Likewise.
55362 2009-12-24  Bruno Haible  <bruno@clisp.org>
55364         binary-io: Avoid gcc warning due to SET_BINARY.
55365         * lib/binary-io.h (SET_BINARY): Cast the result to void.
55366         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
55368 2009-12-24  Bruno Haible  <bruno@clisp.org>
55370         Avoid future namespace pollution on glibc systems.
55371         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
55372         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
55373         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
55374         glibc systems.
55376 2009-12-24  Bruno Haible  <bruno@clisp.org>
55378         Refactor common macros used in tests.
55379         * tests/macros.h: New file.
55380         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
55381         and/or <stdlib.h>, if appropriate.
55382         (ASSERT, SIZEOF): Remove macros.
55383         * tests/test-areadlink-with-size.c: Likewise.
55384         * tests/test-areadlinkat.c: Likewise.
55385         * tests/test-areadlinkat-with-size.c: Likewise.
55386         * tests/test-argmatch.c: Likewise.
55387         * tests/test-argv-iter.c: Likewise.
55388         * tests/test-array-mergesort.c: Likewise.
55389         * tests/test-array_list.c: Likewise.
55390         * tests/test-array_oset.c: Likewise.
55391         * tests/test-avltree_list.c: Likewise.
55392         * tests/test-avltree_oset.c: Likewise.
55393         * tests/test-avltreehash_list.c: Likewise.
55394         * tests/test-base64.c: Likewise.
55395         * tests/test-binary-io.c: Likewise.
55396         * tests/test-bitrotate.c: Likewise.
55397         * tests/test-btowc.c: Likewise.
55398         * tests/test-byteswap.c: Likewise.
55399         * tests/test-c-ctype.c: Likewise.
55400         * tests/test-c-stack.c: Likewise.
55401         * tests/test-c-strcasecmp.c: Likewise.
55402         * tests/test-c-strcasestr.c: Likewise.
55403         * tests/test-c-strncasecmp.c: Likewise.
55404         * tests/test-c-strstr.c: Likewise.
55405         * tests/test-canonicalize-lgpl.c: Likewise.
55406         * tests/test-canonicalize.c: Likewise.
55407         * tests/test-carray_list.c: Likewise.
55408         * tests/test-ceilf1.c: Likewise.
55409         * tests/test-ceilf2.c: Likewise.
55410         * tests/test-ceill.c: Likewise.
55411         * tests/test-chown.c: Likewise.
55412         * tests/test-cloexec.c: Likewise.
55413         * tests/test-copy-acl.c: Likewise.
55414         * tests/test-copy-file.c: Likewise.
55415         * tests/test-count-one-bits.c: Likewise.
55416         * tests/test-dprintf-posix.c: Likewise.
55417         * tests/test-dup2.c: Likewise.
55418         * tests/test-dup3.c: Likewise.
55419         * tests/test-duplocale.c: Likewise.
55420         * tests/test-fbufmode.c: Likewise.
55421         * tests/test-fchdir.c: Likewise.
55422         * tests/test-fchownat.c: Likewise.
55423         * tests/test-fcntl-safer.c: Likewise.
55424         * tests/test-fcntl.c: Likewise.
55425         * tests/test-fdopendir.c: Likewise.
55426         * tests/test-fdutimensat.c: Likewise.
55427         * tests/test-fflush2.c: Likewise.
55428         * tests/test-file-has-acl.c: Likewise.
55429         * tests/test-filevercmp.c: Likewise.
55430         * tests/test-flock.c: Likewise.
55431         * tests/test-floorf1.c: Likewise.
55432         * tests/test-floorf2.c: Likewise.
55433         * tests/test-floorl.c: Likewise.
55434         * tests/test-fnmatch.c: Likewise.
55435         * tests/test-fopen.h: Likewise.
55436         * tests/test-fpending.c: Likewise.
55437         * tests/test-fprintf-posix.c: Likewise.
55438         * tests/test-fpurge.c: Likewise.
55439         * tests/test-freadable.c: Likewise.
55440         * tests/test-freadahead.c: Likewise.
55441         * tests/test-freading.c: Likewise.
55442         * tests/test-freadptr.c: Likewise.
55443         * tests/test-freadptr2.c: Likewise.
55444         * tests/test-freadseek.c: Likewise.
55445         * tests/test-freopen.c: Likewise.
55446         * tests/test-frexp.c: Likewise.
55447         * tests/test-frexpl.c: Likewise.
55448         * tests/test-fseek.c: Likewise.
55449         * tests/test-fseeko.c: Likewise.
55450         * tests/test-fstatat.c: Likewise.
55451         * tests/test-fstrcmp.c: Likewise.
55452         * tests/test-fsync.c: Likewise.
55453         * tests/test-ftell.c: Likewise.
55454         * tests/test-ftello.c: Likewise.
55455         * tests/test-func.c: Likewise.
55456         * tests/test-futimens.c: Likewise.
55457         * tests/test-fwritable.c: Likewise.
55458         * tests/test-fwriting.c: Likewise.
55459         * tests/test-getcwd.c: Likewise.
55460         * tests/test-getdate.c: Likewise.
55461         * tests/test-getdelim.c: Likewise.
55462         * tests/test-getdtablesize.c: Likewise.
55463         * tests/test-getgroups.c: Likewise.
55464         * tests/test-getline.c: Likewise.
55465         * tests/test-getndelim2.c: Likewise.
55466         * tests/test-glob.c: Likewise.
55467         * tests/test-hash.c: Likewise.
55468         * tests/test-i-ring.c: Likewise.
55469         * tests/test-iconv-utf.c: Likewise.
55470         * tests/test-iconv.c: Likewise.
55471         * tests/test-idpriv-drop.c: Likewise.
55472         * tests/test-idpriv-droptemp.c: Likewise.
55473         * tests/test-inet_ntop.c: Likewise.
55474         * tests/test-inet_pton.c: Likewise.
55475         * tests/test-isblank.c: Likewise.
55476         * tests/test-isfinite.c: Likewise.
55477         * tests/test-isinf.c: Likewise.
55478         * tests/test-isnan.c: Likewise.
55479         * tests/test-isnand.h: Likewise.
55480         * tests/test-isnanf.h: Likewise.
55481         * tests/test-isnanl.h: Likewise.
55482         * tests/test-lchown.c: Likewise.
55483         * tests/test-ldexpl.c: Likewise.
55484         * tests/test-link.c: Likewise.
55485         * tests/test-linkat.c: Likewise.
55486         * tests/test-linked_list.c: Likewise.
55487         * tests/test-linkedhash_list.c: Likewise.
55488         * tests/test-localename.c: Likewise.
55489         * tests/test-lseek.c: Likewise.
55490         * tests/test-lstat.c: Likewise.
55491         * tests/test-mbmemcasecmp.c: Likewise.
55492         * tests/test-mbmemcasecoll.c: Likewise.
55493         * tests/test-mbrtowc.c: Likewise.
55494         * tests/test-mbscasecmp.c: Likewise.
55495         * tests/test-mbscasestr1.c: Likewise.
55496         * tests/test-mbscasestr2.c: Likewise.
55497         * tests/test-mbscasestr3.c: Likewise.
55498         * tests/test-mbscasestr4.c: Likewise.
55499         * tests/test-mbschr.c: Likewise.
55500         * tests/test-mbscspn.c: Likewise.
55501         * tests/test-mbsinit.c: Likewise.
55502         * tests/test-mbsncasecmp.c: Likewise.
55503         * tests/test-mbsnrtowcs.c: Likewise.
55504         * tests/test-mbspbrk.c: Likewise.
55505         * tests/test-mbspcasecmp.c: Likewise.
55506         * tests/test-mbsrchr.c: Likewise.
55507         * tests/test-mbsrtowcs.c: Likewise.
55508         * tests/test-mbsspn.c: Likewise.
55509         * tests/test-mbsstr1.c: Likewise.
55510         * tests/test-mbsstr2.c: Likewise.
55511         * tests/test-mbsstr3.c: Likewise.
55512         * tests/test-memchr.c: Likewise.
55513         * tests/test-memchr2.c: Likewise.
55514         * tests/test-memcmp.c: Likewise.
55515         * tests/test-memmem.c: Likewise.
55516         * tests/test-memrchr.c: Likewise.
55517         * tests/test-mkdir.c: Likewise.
55518         * tests/test-mkdirat.c: Likewise.
55519         * tests/test-mkfifo.c: Likewise.
55520         * tests/test-mkfifoat.c: Likewise.
55521         * tests/test-mknod.c: Likewise.
55522         * tests/test-nanosleep.c: Likewise.
55523         * tests/test-nl_langinfo.c: Likewise.
55524         * tests/test-obstack-printf.c: Likewise.
55525         * tests/test-open.c: Likewise.
55526         * tests/test-openat.c: Likewise.
55527         * tests/test-pipe-filter-gi1.c: Likewise.
55528         * tests/test-pipe-filter-gi2-main.c: Likewise.
55529         * tests/test-pipe-filter-ii1.c: Likewise.
55530         * tests/test-pipe-filter-ii2-main.c: Likewise.
55531         * tests/test-pipe2.c: Likewise.
55532         * tests/test-popen.h: Likewise.
55533         * tests/test-posixtm.c: Likewise.
55534         * tests/test-pread.c: Likewise.
55535         * tests/test-printf-frexp.c: Likewise.
55536         * tests/test-printf-frexpl.c: Likewise.
55537         * tests/test-printf-posix.c: Likewise.
55538         * tests/test-priv-set.c: Likewise.
55539         * tests/test-quotearg.c: Likewise.
55540         * tests/test-random_r.c: Likewise.
55541         * tests/test-rawmemchr.c: Likewise.
55542         * tests/test-rbtree_list.c: Likewise.
55543         * tests/test-rbtree_oset.c: Likewise.
55544         * tests/test-rbtreehash_list.c: Likewise.
55545         * tests/test-readlink.c: Likewise.
55546         * tests/test-remove.c: Likewise.
55547         * tests/test-rename.c: Likewise.
55548         * tests/test-renameat.c: Likewise.
55549         * tests/test-rmdir.c: Likewise.
55550         * tests/test-round1.c: Likewise.
55551         * tests/test-roundf1.c: Likewise.
55552         * tests/test-roundl.c: Likewise.
55553         * tests/test-safe-alloc.c: Likewise.
55554         * tests/test-sameacls.c: Likewise.
55555         * tests/test-set-mode-acl.c: Likewise.
55556         * tests/test-setenv.c: Likewise.
55557         * tests/test-sigaction.c: Likewise.
55558         * tests/test-signbit.c: Likewise.
55559         * tests/test-sleep.c: Likewise.
55560         * tests/test-snprintf-posix.c: Likewise.
55561         * tests/test-snprintf.c: Likewise.
55562         * tests/test-sprintf-posix.c: Likewise.
55563         * tests/test-stat-time.c: Likewise.
55564         * tests/test-stat.c: Likewise.
55565         * tests/test-strcasestr.c: Likewise.
55566         * tests/test-strchrnul.c: Likewise.
55567         * tests/test-strerror.c: Likewise.
55568         * tests/test-striconv.c: Likewise.
55569         * tests/test-striconveh.c: Likewise.
55570         * tests/test-striconveha.c: Likewise.
55571         * tests/test-strsignal.c: Likewise.
55572         * tests/test-strstr.c: Likewise.
55573         * tests/test-strtod.c: Likewise.
55574         * tests/test-strverscmp.c: Likewise.
55575         * tests/test-symlink.c: Likewise.
55576         * tests/test-symlinkat.c: Likewise.
55577         * tests/test-trunc1.c: Likewise.
55578         * tests/test-trunc2.c: Likewise.
55579         * tests/test-truncf1.c: Likewise.
55580         * tests/test-truncf2.c: Likewise.
55581         * tests/test-truncl.c: Likewise.
55582         * tests/test-uname.c: Likewise.
55583         * tests/test-unlink.c: Likewise.
55584         * tests/test-unlinkat.c: Likewise.
55585         * tests/test-unsetenv.c: Likewise.
55586         * tests/test-usleep.c: Likewise.
55587         * tests/test-utimens.c: Likewise.
55588         * tests/test-utimensat.c: Likewise.
55589         * tests/test-vasnprintf-posix.c: Likewise.
55590         * tests/test-vasnprintf-posix2.c: Likewise.
55591         * tests/test-vasnprintf.c: Likewise.
55592         * tests/test-vasprintf-posix.c: Likewise.
55593         * tests/test-vasprintf.c: Likewise.
55594         * tests/test-vdprintf-posix.c: Likewise.
55595         * tests/test-vfprintf-posix.c: Likewise.
55596         * tests/test-vprintf-posix.c: Likewise.
55597         * tests/test-vsnprintf-posix.c: Likewise.
55598         * tests/test-vsnprintf.c: Likewise.
55599         * tests/test-vsprintf-posix.c: Likewise.
55600         * tests/test-wcrtomb.c: Likewise.
55601         * tests/test-wcsnrtombs.c: Likewise.
55602         * tests/test-wcsrtombs.c: Likewise.
55603         * tests/test-wctype.c: Likewise.
55604         * tests/test-wcwidth.c: Likewise.
55605         * tests/test-xfprintf-posix.c: Likewise.
55606         * tests/test-xmemdup0.c: Likewise.
55607         * tests/test-xprintf-posix.c: Likewise.
55608         * tests/test-xvasprintf.c: Likewise.
55609         * tests/unicase/test-locale-language.c: Likewise.
55610         * tests/unicase/test-mapping-part1.h: Likewise.
55611         * tests/unicase/test-predicate-part1.h: Likewise.
55612         * tests/unicase/test-u8-casecmp.c: Likewise.
55613         * tests/unicase/test-u8-casecoll.c: Likewise.
55614         * tests/unicase/test-u8-casefold.c: Likewise.
55615         * tests/unicase/test-u8-is-cased.c: Likewise.
55616         * tests/unicase/test-u8-is-casefolded.c: Likewise.
55617         * tests/unicase/test-u8-is-lowercase.c: Likewise.
55618         * tests/unicase/test-u8-is-titlecase.c: Likewise.
55619         * tests/unicase/test-u8-is-uppercase.c: Likewise.
55620         * tests/unicase/test-u8-tolower.c: Likewise.
55621         * tests/unicase/test-u8-totitle.c: Likewise.
55622         * tests/unicase/test-u8-toupper.c: Likewise.
55623         * tests/unicase/test-u16-casecmp.c: Likewise.
55624         * tests/unicase/test-u16-casecoll.c: Likewise.
55625         * tests/unicase/test-u16-casefold.c: Likewise.
55626         * tests/unicase/test-u16-is-cased.c: Likewise.
55627         * tests/unicase/test-u16-is-casefolded.c: Likewise.
55628         * tests/unicase/test-u16-is-lowercase.c: Likewise.
55629         * tests/unicase/test-u16-is-titlecase.c: Likewise.
55630         * tests/unicase/test-u16-is-uppercase.c: Likewise.
55631         * tests/unicase/test-u16-tolower.c: Likewise.
55632         * tests/unicase/test-u16-totitle.c: Likewise.
55633         * tests/unicase/test-u16-toupper.c: Likewise.
55634         * tests/unicase/test-u32-casecmp.c: Likewise.
55635         * tests/unicase/test-u32-casecoll.c: Likewise.
55636         * tests/unicase/test-u32-casefold.c: Likewise.
55637         * tests/unicase/test-u32-is-cased.c: Likewise.
55638         * tests/unicase/test-u32-is-casefolded.c: Likewise.
55639         * tests/unicase/test-u32-is-lowercase.c: Likewise.
55640         * tests/unicase/test-u32-is-titlecase.c: Likewise.
55641         * tests/unicase/test-u32-is-uppercase.c: Likewise.
55642         * tests/unicase/test-u32-tolower.c: Likewise.
55643         * tests/unicase/test-u32-totitle.c: Likewise.
55644         * tests/unicase/test-u32-toupper.c: Likewise.
55645         * tests/unicase/test-ulc-casecmp.c: Likewise.
55646         * tests/unicase/test-ulc-casecoll.c: Likewise.
55647         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55648         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55649         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55650         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55651         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55652         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55653         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55654         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55655         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55656         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55657         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55658         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55659         * tests/unictype/test-bidi_byname.c: Likewise.
55660         * tests/unictype/test-bidi_name.c: Likewise.
55661         * tests/unictype/test-bidi_of.c: Likewise.
55662         * tests/unictype/test-bidi_test.c: Likewise.
55663         * tests/unictype/test-block_list.c: Likewise.
55664         * tests/unictype/test-block_of.c: Likewise.
55665         * tests/unictype/test-block_test.c: Likewise.
55666         * tests/unictype/test-categ_and.c: Likewise.
55667         * tests/unictype/test-categ_and_not.c: Likewise.
55668         * tests/unictype/test-categ_byname.c: Likewise.
55669         * tests/unictype/test-categ_name.c: Likewise.
55670         * tests/unictype/test-categ_none.c: Likewise.
55671         * tests/unictype/test-categ_of.c: Likewise.
55672         * tests/unictype/test-categ_or.c: Likewise.
55673         * tests/unictype/test-categ_test_withtable.c: Likewise.
55674         * tests/unictype/test-combining.c: Likewise.
55675         * tests/unictype/test-decdigit.c: Likewise.
55676         * tests/unictype/test-digit.c: Likewise.
55677         * tests/unictype/test-mirror.c: Likewise.
55678         * tests/unictype/test-numeric.c: Likewise.
55679         * tests/unictype/test-pr_byname.c: Likewise.
55680         * tests/unictype/test-pr_test.c: Likewise.
55681         * tests/unictype/test-predicate-part1.h: Likewise.
55682         * tests/unictype/test-scripts.c: Likewise.
55683         * tests/unictype/test-sy_c_ident.c: Likewise.
55684         * tests/unictype/test-sy_java_ident.c: Likewise.
55685         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
55686         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
55687         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
55688         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
55689         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
55690         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
55691         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
55692         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
55693         * tests/uninorm/test-canonical-decomposition.c: Likewise.
55694         * tests/uninorm/test-compat-decomposition.c: Likewise.
55695         * tests/uninorm/test-composition.c: Likewise.
55696         * tests/uninorm/test-decomposing-form.c: Likewise.
55697         * tests/uninorm/test-decomposition.c: Likewise.
55698         * tests/uninorm/test-u8-nfc.c: Likewise.
55699         * tests/uninorm/test-u8-nfd.c: Likewise.
55700         * tests/uninorm/test-u8-nfkc.c: Likewise.
55701         * tests/uninorm/test-u8-nfkd.c: Likewise.
55702         * tests/uninorm/test-u8-normcmp.c: Likewise.
55703         * tests/uninorm/test-u8-normcoll.c: Likewise.
55704         * tests/uninorm/test-u16-nfc.c: Likewise.
55705         * tests/uninorm/test-u16-nfd.c: Likewise.
55706         * tests/uninorm/test-u16-nfkc.c: Likewise.
55707         * tests/uninorm/test-u16-nfkd.c: Likewise.
55708         * tests/uninorm/test-u16-normcmp.c: Likewise.
55709         * tests/uninorm/test-u16-normcoll.c: Likewise.
55710         * tests/uninorm/test-u32-nfc.c: Likewise.
55711         * tests/uninorm/test-u32-nfd.c: Likewise.
55712         * tests/uninorm/test-u32-nfkc.c: Likewise.
55713         * tests/uninorm/test-u32-nfkd.c: Likewise.
55714         * tests/uninorm/test-u32-normalize-big.c: Likewise.
55715         * tests/uninorm/test-u32-normcmp.c: Likewise.
55716         * tests/uninorm/test-u32-normcoll.c: Likewise.
55717         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
55718         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55719         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55720         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55721         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55722         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55723         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55724         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55725         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55726         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55727         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55728         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55729         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55730         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55731         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55732         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55733         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55734         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55735         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55736         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55737         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55738         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55739         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55740         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55741         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55742         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55743         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55744         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55745         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55746         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
55747         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
55748         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
55749         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
55750         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55751         * tests/uniwidth/test-u8-width.c: Likewise.
55752         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55753         * tests/uniwidth/test-u16-width.c: Likewise.
55754         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55755         * tests/uniwidth/test-u32-width.c: Likewise.
55756         * tests/uniwidth/test-uc_width.c: Likewise.
55757         * tests/uniwidth/test-uc_width2.c: Likewise.
55758         * modules/acl-tests (Files): Add tests/macros.h.
55759         * modules/areadlink-tests (Files): Likewise.
55760         * modules/areadlink-with-size-tests (Files): Likewise.
55761         * modules/areadlinkat-tests (Files): Likewise.
55762         * modules/areadlinkat-with-size-tests (Files): Likewise.
55763         * modules/argmatch-tests (Files): Likewise.
55764         * modules/argv-iter-tests (Files): Likewise.
55765         * modules/array-list-tests (Files): Likewise.
55766         * modules/array-mergesort-tests (Files): Likewise.
55767         * modules/array-oset-tests (Files): Likewise.
55768         * modules/avltree-list-tests (Files): Likewise.
55769         * modules/avltree-oset-tests (Files): Likewise.
55770         * modules/avltreehash-list-tests (Files): Likewise.
55771         * modules/base64-tests (Files): Likewise.
55772         * modules/binary-io-tests (Files): Likewise.
55773         * modules/bitrotate-tests (Files): Likewise.
55774         * modules/btowc-tests (Files): Likewise.
55775         * modules/byteswap-tests (Files): Likewise.
55776         * modules/c-ctype-tests (Files): Likewise.
55777         * modules/c-stack-tests (Files): Likewise.
55778         * modules/c-strcase-tests (Files): Likewise.
55779         * modules/c-strcasestr-tests (Files): Likewise.
55780         * modules/c-strstr-tests (Files): Likewise.
55781         * modules/canonicalize-lgpl-tests (Files): Likewise.
55782         * modules/canonicalize-tests (Files): Likewise.
55783         * modules/carray-list-tests (Files): Likewise.
55784         * modules/ceilf-tests (Files): Likewise.
55785         * modules/ceill-tests (Files): Likewise.
55786         * modules/chown-tests (Files): Likewise.
55787         * modules/cloexec-tests (Files): Likewise.
55788         * modules/copy-file-tests (Files): Likewise.
55789         * modules/count-one-bits-tests (Files): Likewise.
55790         * modules/dprintf-posix-tests (Files): Likewise.
55791         * modules/dup2-tests (Files): Likewise.
55792         * modules/dup3-tests (Files): Likewise.
55793         * modules/duplocale-tests (Files): Likewise.
55794         * modules/fbufmode-tests (Files): Likewise.
55795         * modules/fchdir-tests (Files): Likewise.
55796         * modules/fcntl-safer-tests (Files): Likewise.
55797         * modules/fcntl-tests (Files): Likewise.
55798         * modules/fdopendir-tests (Files): Likewise.
55799         * modules/fdutimensat-tests (Files): Likewise.
55800         * modules/fflush-tests (Files): Likewise.
55801         * modules/filevercmp-tests (Files): Likewise.
55802         * modules/flock-tests (Files): Likewise.
55803         * modules/floorf-tests (Files): Likewise.
55804         * modules/floorl-tests (Files): Likewise.
55805         * modules/fnmatch-tests (Files): Likewise.
55806         * modules/fopen-safer-tests (Files): Likewise.
55807         * modules/fopen-tests (Files): Likewise.
55808         * modules/fpending-tests (Files): Likewise.
55809         * modules/fprintf-posix-tests (Files): Likewise.
55810         * modules/fpurge-tests (Files): Likewise.
55811         * modules/freadable-tests (Files): Likewise.
55812         * modules/freadahead-tests (Files): Likewise.
55813         * modules/freading-tests (Files): Likewise.
55814         * modules/freadptr-tests (Files): Likewise.
55815         * modules/freadseek-tests (Files): Likewise.
55816         * modules/freopen-tests (Files): Likewise.
55817         * modules/frexp-nolibm-tests (Files): Likewise.
55818         * modules/frexp-tests (Files): Likewise.
55819         * modules/frexpl-nolibm-tests (Files): Likewise.
55820         * modules/frexpl-tests (Files): Likewise.
55821         * modules/fseek-tests (Files): Likewise.
55822         * modules/fseeko-tests (Files): Likewise.
55823         * modules/fstrcmp-tests (Files): Likewise.
55824         * modules/fsync-tests (Files): Likewise.
55825         * modules/ftell-tests (Files): Likewise.
55826         * modules/ftello-tests (Files): Likewise.
55827         * modules/func-tests (Files): Likewise.
55828         * modules/futimens-tests (Files): Likewise.
55829         * modules/fwritable-tests (Files): Likewise.
55830         * modules/fwriting-tests (Files): Likewise.
55831         * modules/getcwd-tests (Files): Likewise.
55832         * modules/getdate-tests (Files): Likewise.
55833         * modules/getdelim-tests (Files): Likewise.
55834         * modules/getdtablesize-tests (Files): Likewise.
55835         * modules/getgroups-tests (Files): Likewise.
55836         * modules/getline-tests (Files): Likewise.
55837         * modules/getndelim2-tests (Files): Likewise.
55838         * modules/glob-tests (Files): Likewise.
55839         * modules/hash-tests (Files): Likewise.
55840         * modules/i-ring-tests (Files): Likewise.
55841         * modules/iconv-tests (Files): Likewise.
55842         * modules/iconv_open-utf-tests (Files): Likewise.
55843         * modules/idpriv-drop-tests (Files): Likewise.
55844         * modules/idpriv-droptemp-tests (Files): Likewise.
55845         * modules/inet_ntop-tests (Files): Likewise.
55846         * modules/inet_pton-tests (Files): Likewise.
55847         * modules/isblank-tests (Files): Likewise.
55848         * modules/isfinite-tests (Files): Likewise.
55849         * modules/isinf-tests (Files): Likewise.
55850         * modules/isnan-tests (Files): Likewise.
55851         * modules/isnand-nolibm-tests (Files): Likewise.
55852         * modules/isnand-tests (Files): Likewise.
55853         * modules/isnanf-nolibm-tests (Files): Likewise.
55854         * modules/isnanf-tests (Files): Likewise.
55855         * modules/isnanl-nolibm-tests (Files): Likewise.
55856         * modules/isnanl-tests (Files): Likewise.
55857         * modules/lchown-tests (Files): Likewise.
55858         * modules/ldexpl-tests (Files): Likewise.
55859         * modules/link-tests (Files): Likewise.
55860         * modules/linkat-tests (Files): Likewise.
55861         * modules/linked-list-tests (Files): Likewise.
55862         * modules/linkedhash-list-tests (Files): Likewise.
55863         * modules/localename-tests (Files): Likewise.
55864         * modules/lseek-tests (Files): Likewise.
55865         * modules/lstat-tests (Files): Likewise.
55866         * modules/mbmemcasecmp-tests (Files): Likewise.
55867         * modules/mbmemcasecoll-tests (Files): Likewise.
55868         * modules/mbrtowc-tests (Files): Likewise.
55869         * modules/mbscasecmp-tests (Files): Likewise.
55870         * modules/mbscasestr-tests (Files): Likewise.
55871         * modules/mbschr-tests (Files): Likewise.
55872         * modules/mbscspn-tests (Files): Likewise.
55873         * modules/mbsinit-tests (Files): Likewise.
55874         * modules/mbsncasecmp-tests (Files): Likewise.
55875         * modules/mbsnrtowcs-tests (Files): Likewise.
55876         * modules/mbspbrk-tests (Files): Likewise.
55877         * modules/mbspcasecmp-tests (Files): Likewise.
55878         * modules/mbsrchr-tests (Files): Likewise.
55879         * modules/mbsrtowcs-tests (Files): Likewise.
55880         * modules/mbsspn-tests (Files): Likewise.
55881         * modules/mbsstr-tests (Files): Likewise.
55882         * modules/memchr-tests (Files): Likewise.
55883         * modules/memchr2-tests (Files): Likewise.
55884         * modules/memcmp-tests (Files): Likewise.
55885         * modules/memmem-tests (Files): Likewise.
55886         * modules/memrchr-tests (Files): Likewise.
55887         * modules/mkdir-tests (Files): Likewise.
55888         * modules/mkfifo-tests (Files): Likewise.
55889         * modules/mkfifoat-tests (Files): Likewise.
55890         * modules/mknod-tests (Files): Likewise.
55891         * modules/nanosleep-tests (Files): Likewise.
55892         * modules/nl_langinfo-tests (Files): Likewise.
55893         * modules/obstack-printf-tests (Files): Likewise.
55894         * modules/open-tests (Files): Likewise.
55895         * modules/openat-tests (Files): Likewise.
55896         * modules/pipe-filter-gi-tests (Files): Likewise.
55897         * modules/pipe-filter-ii-tests (Files): Likewise.
55898         * modules/pipe2-tests (Files): Likewise.
55899         * modules/popen-safer-tests (Files): Likewise.
55900         * modules/popen-tests (Files): Likewise.
55901         * modules/posixtm-tests (Files): Likewise.
55902         * modules/pread-tests (Files): Likewise.
55903         * modules/printf-frexp-tests (Files): Likewise.
55904         * modules/printf-frexpl-tests (Files): Likewise.
55905         * modules/printf-posix-tests (Files): Likewise.
55906         * modules/priv-set-tests (Files): Likewise.
55907         * modules/quotearg-tests (Files): Likewise.
55908         * modules/random_r-tests (Files): Likewise.
55909         * modules/rawmemchr-tests (Files): Likewise.
55910         * modules/rbtree-list-tests (Files): Likewise.
55911         * modules/rbtree-oset-tests (Files): Likewise.
55912         * modules/rbtreehash-list-tests (Files): Likewise.
55913         * modules/readlink-tests (Files): Likewise.
55914         * modules/remove-tests (Files): Likewise.
55915         * modules/rename-tests (Files): Likewise.
55916         * modules/renameat-tests (Files): Likewise.
55917         * modules/rmdir-tests (Files): Likewise.
55918         * modules/round-tests (Files): Likewise.
55919         * modules/roundf-tests (Files): Likewise.
55920         * modules/roundl-tests (Files): Likewise.
55921         * modules/safe-alloc-tests (Files): Likewise.
55922         * modules/setenv-tests (Files): Likewise.
55923         * modules/sigaction-tests (Files): Likewise.
55924         * modules/signbit-tests (Files): Likewise.
55925         * modules/sleep-tests (Files): Likewise.
55926         * modules/snprintf-posix-tests (Files): Likewise.
55927         * modules/snprintf-tests (Files): Likewise.
55928         * modules/sprintf-posix-tests (Files): Likewise.
55929         * modules/stat-tests (Files): Likewise.
55930         * modules/stat-time-tests (Files): Likewise.
55931         * modules/strcasestr-tests (Files): Likewise.
55932         * modules/strchrnul-tests (Files): Likewise.
55933         * modules/strerror-tests (Files): Likewise.
55934         * modules/striconv-tests (Files): Likewise.
55935         * modules/striconveh-tests (Files): Likewise.
55936         * modules/striconveha-tests (Files): Likewise.
55937         * modules/strsignal-tests (Files): Likewise.
55938         * modules/strstr-tests (Files): Likewise.
55939         * modules/strtod-tests (Files): Likewise.
55940         * modules/strverscmp-tests (Files): Likewise.
55941         * modules/symlink-tests (Files): Likewise.
55942         * modules/symlinkat-tests (Files): Likewise.
55943         * modules/trunc-tests (Files): Likewise.
55944         * modules/truncf-tests (Files): Likewise.
55945         * modules/truncl-tests (Files): Likewise.
55946         * modules/uname-tests (Files): Likewise.
55947         * modules/unicase/cased-tests (Files): Likewise.
55948         * modules/unicase/ignorable-tests (Files): Likewise.
55949         * modules/unicase/locale-language-tests (Files): Likewise.
55950         * modules/unicase/tolower-tests (Files): Likewise.
55951         * modules/unicase/totitle-tests (Files): Likewise.
55952         * modules/unicase/toupper-tests (Files): Likewise.
55953         * modules/unicase/u8-casecmp-tests (Files): Likewise.
55954         * modules/unicase/u8-casecoll-tests (Files): Likewise.
55955         * modules/unicase/u8-casefold-tests (Files): Likewise.
55956         * modules/unicase/u8-is-cased-tests (Files): Likewise.
55957         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
55958         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
55959         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
55960         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
55961         * modules/unicase/u8-tolower-tests (Files): Likewise.
55962         * modules/unicase/u8-totitle-tests (Files): Likewise.
55963         * modules/unicase/u8-toupper-tests (Files): Likewise.
55964         * modules/unicase/u16-casecmp-tests (Files): Likewise.
55965         * modules/unicase/u16-casecoll-tests (Files): Likewise.
55966         * modules/unicase/u16-casefold-tests (Files): Likewise.
55967         * modules/unicase/u16-is-cased-tests (Files): Likewise.
55968         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
55969         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
55970         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
55971         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
55972         * modules/unicase/u16-tolower-tests (Files): Likewise.
55973         * modules/unicase/u16-totitle-tests (Files): Likewise.
55974         * modules/unicase/u16-toupper-tests (Files): Likewise.
55975         * modules/unicase/u32-casecmp-tests (Files): Likewise.
55976         * modules/unicase/u32-casecoll-tests (Files): Likewise.
55977         * modules/unicase/u32-casefold-tests (Files): Likewise.
55978         * modules/unicase/u32-is-cased-tests (Files): Likewise.
55979         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
55980         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
55981         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
55982         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
55983         * modules/unicase/u32-tolower-tests (Files): Likewise.
55984         * modules/unicase/u32-totitle-tests (Files): Likewise.
55985         * modules/unicase/u32-toupper-tests (Files): Likewise.
55986         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
55987         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
55988         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
55989         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
55990         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
55991         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
55992         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
55993         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
55994         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
55995         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
55996         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
55997         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
55998         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
55999         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
56000         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
56001         * modules/unictype/bidicategory-name-tests (Files): Likewise.
56002         * modules/unictype/bidicategory-of-tests (Files): Likewise.
56003         * modules/unictype/bidicategory-test-tests (Files): Likewise.
56004         * modules/unictype/block-list-tests (Files): Likewise.
56005         * modules/unictype/block-of-tests (Files): Likewise.
56006         * modules/unictype/block-test-tests (Files): Likewise.
56007         * modules/unictype/category-C-tests (Files): Likewise.
56008         * modules/unictype/category-Cc-tests (Files): Likewise.
56009         * modules/unictype/category-Cf-tests (Files): Likewise.
56010         * modules/unictype/category-Cn-tests (Files): Likewise.
56011         * modules/unictype/category-Co-tests (Files): Likewise.
56012         * modules/unictype/category-Cs-tests (Files): Likewise.
56013         * modules/unictype/category-L-tests (Files): Likewise.
56014         * modules/unictype/category-Ll-tests (Files): Likewise.
56015         * modules/unictype/category-Lm-tests (Files): Likewise.
56016         * modules/unictype/category-Lo-tests (Files): Likewise.
56017         * modules/unictype/category-Lt-tests (Files): Likewise.
56018         * modules/unictype/category-Lu-tests (Files): Likewise.
56019         * modules/unictype/category-M-tests (Files): Likewise.
56020         * modules/unictype/category-Mc-tests (Files): Likewise.
56021         * modules/unictype/category-Me-tests (Files): Likewise.
56022         * modules/unictype/category-Mn-tests (Files): Likewise.
56023         * modules/unictype/category-N-tests (Files): Likewise.
56024         * modules/unictype/category-Nd-tests (Files): Likewise.
56025         * modules/unictype/category-Nl-tests (Files): Likewise.
56026         * modules/unictype/category-No-tests (Files): Likewise.
56027         * modules/unictype/category-P-tests (Files): Likewise.
56028         * modules/unictype/category-Pc-tests (Files): Likewise.
56029         * modules/unictype/category-Pd-tests (Files): Likewise.
56030         * modules/unictype/category-Pe-tests (Files): Likewise.
56031         * modules/unictype/category-Pf-tests (Files): Likewise.
56032         * modules/unictype/category-Pi-tests (Files): Likewise.
56033         * modules/unictype/category-Po-tests (Files): Likewise.
56034         * modules/unictype/category-Ps-tests (Files): Likewise.
56035         * modules/unictype/category-S-tests (Files): Likewise.
56036         * modules/unictype/category-Sc-tests (Files): Likewise.
56037         * modules/unictype/category-Sk-tests (Files): Likewise.
56038         * modules/unictype/category-Sm-tests (Files): Likewise.
56039         * modules/unictype/category-So-tests (Files): Likewise.
56040         * modules/unictype/category-Z-tests (Files): Likewise.
56041         * modules/unictype/category-Zl-tests (Files): Likewise.
56042         * modules/unictype/category-Zp-tests (Files): Likewise.
56043         * modules/unictype/category-Zs-tests (Files): Likewise.
56044         * modules/unictype/category-and-not-tests (Files): Likewise.
56045         * modules/unictype/category-and-tests (Files): Likewise.
56046         * modules/unictype/category-byname-tests (Files): Likewise.
56047         * modules/unictype/category-name-tests (Files): Likewise.
56048         * modules/unictype/category-none-tests (Files): Likewise.
56049         * modules/unictype/category-of-tests (Files): Likewise.
56050         * modules/unictype/category-or-tests (Files): Likewise.
56051         * modules/unictype/category-test-withtable-tests (Files): Likewise.
56052         * modules/unictype/combining-class-tests (Files): Likewise.
56053         * modules/unictype/ctype-alnum-tests (Files): Likewise.
56054         * modules/unictype/ctype-alpha-tests (Files): Likewise.
56055         * modules/unictype/ctype-blank-tests (Files): Likewise.
56056         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
56057         * modules/unictype/ctype-digit-tests (Files): Likewise.
56058         * modules/unictype/ctype-graph-tests (Files): Likewise.
56059         * modules/unictype/ctype-lower-tests (Files): Likewise.
56060         * modules/unictype/ctype-print-tests (Files): Likewise.
56061         * modules/unictype/ctype-punct-tests (Files): Likewise.
56062         * modules/unictype/ctype-space-tests (Files): Likewise.
56063         * modules/unictype/ctype-upper-tests (Files): Likewise.
56064         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
56065         * modules/unictype/decimal-digit-tests (Files): Likewise.
56066         * modules/unictype/digit-tests (Files): Likewise.
56067         * modules/unictype/mirror-tests (Files): Likewise.
56068         * modules/unictype/numeric-tests (Files): Likewise.
56069         * modules/unictype/property-alphabetic-tests (Files): Likewise.
56070         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
56071         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
56072         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
56073         Likewise.
56074         * modules/unictype/property-bidi-block-separator-tests (Files):
56075         Likewise.
56076         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
56077         Likewise.
56078         * modules/unictype/property-bidi-common-separator-tests (Files):
56079         Likewise.
56080         * modules/unictype/property-bidi-control-tests (Files): Likewise.
56081         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
56082         Likewise.
56083         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
56084         Likewise.
56085         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
56086         Likewise.
56087         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
56088         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
56089         Likewise.
56090         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
56091         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
56092         Likewise.
56093         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
56094         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
56095         * modules/unictype/property-bidi-segment-separator-tests (Files):
56096         Likewise.
56097         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
56098         * modules/unictype/property-byname-tests (Files): Likewise.
56099         * modules/unictype/property-combining-tests (Files): Likewise.
56100         * modules/unictype/property-composite-tests (Files): Likewise.
56101         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
56102         * modules/unictype/property-dash-tests (Files): Likewise.
56103         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
56104         * modules/unictype/property-default-ignorable-code-point-tests (Files):
56105         Likewise.
56106         * modules/unictype/property-deprecated-tests (Files): Likewise.
56107         * modules/unictype/property-diacritic-tests (Files): Likewise.
56108         * modules/unictype/property-extender-tests (Files): Likewise.
56109         * modules/unictype/property-format-control-tests (Files): Likewise.
56110         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
56111         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
56112         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
56113         * modules/unictype/property-hex-digit-tests (Files): Likewise.
56114         * modules/unictype/property-hyphen-tests (Files): Likewise.
56115         * modules/unictype/property-id-continue-tests (Files): Likewise.
56116         * modules/unictype/property-id-start-tests (Files): Likewise.
56117         * modules/unictype/property-ideographic-tests (Files): Likewise.
56118         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
56119         * modules/unictype/property-ids-trinary-operator-tests (Files):
56120         Likewise.
56121         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
56122         * modules/unictype/property-iso-control-tests (Files): Likewise.
56123         * modules/unictype/property-join-control-tests (Files): Likewise.
56124         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
56125         * modules/unictype/property-line-separator-tests (Files): Likewise.
56126         * modules/unictype/property-logical-order-exception-tests (Files):
56127         Likewise.
56128         * modules/unictype/property-lowercase-tests (Files): Likewise.
56129         * modules/unictype/property-math-tests (Files): Likewise.
56130         * modules/unictype/property-non-break-tests (Files): Likewise.
56131         * modules/unictype/property-not-a-character-tests (Files): Likewise.
56132         * modules/unictype/property-numeric-tests (Files): Likewise.
56133         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
56134         * modules/unictype/property-other-default-ignorable-code-point-tests
56135         (Files): Likewise.
56136         * modules/unictype/property-other-grapheme-extend-tests (Files):
56137         Likewise.
56138         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
56139         * modules/unictype/property-other-id-start-tests (Files): Likewise.
56140         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
56141         * modules/unictype/property-other-math-tests (Files): Likewise.
56142         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
56143         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
56144         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
56145         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
56146         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
56147         * modules/unictype/property-private-use-tests (Files): Likewise.
56148         * modules/unictype/property-punctuation-tests (Files): Likewise.
56149         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
56150         * modules/unictype/property-radical-tests (Files): Likewise.
56151         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
56152         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
56153         * modules/unictype/property-space-tests (Files): Likewise.
56154         * modules/unictype/property-terminal-punctuation-tests (Files):
56155         Likewise.
56156         * modules/unictype/property-test-tests (Files): Likewise.
56157         * modules/unictype/property-titlecase-tests (Files): Likewise.
56158         * modules/unictype/property-unassigned-code-value-tests (Files):
56159         Likewise.
56160         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
56161         * modules/unictype/property-uppercase-tests (Files): Likewise.
56162         * modules/unictype/property-variation-selector-tests (Files): Likewise.
56163         * modules/unictype/property-white-space-tests (Files): Likewise.
56164         * modules/unictype/property-xid-continue-tests (Files): Likewise.
56165         * modules/unictype/property-xid-start-tests (Files): Likewise.
56166         * modules/unictype/property-zero-width-tests (Files): Likewise.
56167         * modules/unictype/scripts-tests (Files): Likewise.
56168         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
56169         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
56170         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
56171         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
56172         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
56173         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
56174         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
56175         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
56176         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
56177         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
56178         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
56179         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
56180         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
56181         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
56182         * modules/uninorm/composition-tests (Files): Likewise.
56183         * modules/uninorm/decomposing-form-tests (Files): Likewise.
56184         * modules/uninorm/decomposition-tests (Files): Likewise.
56185         * modules/uninorm/filter-tests (Files): Likewise.
56186         * modules/uninorm/nfc-tests (Files): Likewise.
56187         * modules/uninorm/nfd-tests (Files): Likewise.
56188         * modules/uninorm/nfkc-tests (Files): Likewise.
56189         * modules/uninorm/nfkd-tests (Files): Likewise.
56190         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
56191         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
56192         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
56193         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
56194         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
56195         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
56196         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
56197         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
56198         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
56199         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
56200         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
56201         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
56202         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
56203         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
56204         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
56205         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
56206         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
56207         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
56208         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
56209         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
56210         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
56211         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
56212         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
56213         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
56214         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
56215         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
56216         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
56217         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
56218         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
56219         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
56220         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
56221         * modules/uniwidth/u8-width-tests (Files): Likewise.
56222         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
56223         * modules/uniwidth/u16-width-tests (Files): Likewise.
56224         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
56225         * modules/uniwidth/u32-width-tests (Files): Likewise.
56226         * modules/uniwidth/width-tests (Files): Likewise.
56227         * modules/unlink-tests (Files): Likewise.
56228         * modules/unsetenv-tests (Files): Likewise.
56229         * modules/usleep-tests (Files): Likewise.
56230         * modules/utimens-tests (Files): Likewise.
56231         * modules/utimensat-tests (Files): Likewise.
56232         * modules/vasnprintf-posix-tests (Files): Likewise.
56233         * modules/vasnprintf-tests (Files): Likewise.
56234         * modules/vasprintf-posix-tests (Files): Likewise.
56235         * modules/vasprintf-tests (Files): Likewise.
56236         * modules/vdprintf-posix-tests (Files): Likewise.
56237         * modules/vfprintf-posix-tests (Files): Likewise.
56238         * modules/vprintf-posix-tests (Files): Likewise.
56239         * modules/vsnprintf-posix-tests (Files): Likewise.
56240         * modules/vsnprintf-tests (Files): Likewise.
56241         * modules/vsprintf-posix-tests (Files): Likewise.
56242         * modules/wcrtomb-tests (Files): Likewise.
56243         * modules/wcsnrtombs-tests (Files): Likewise.
56244         * modules/wcsrtombs-tests (Files): Likewise.
56245         * modules/wctype-tests (Files): Likewise.
56246         * modules/wcwidth-tests (Files): Likewise.
56247         * modules/xmemdup0-tests (Files): Likewise.
56248         * modules/xprintf-posix-tests (Files): Likewise.
56249         * modules/xvasprintf-tests (Files): Likewise.
56251 2009-12-24  Eric Blake  <ebb9@byu.net>
56253         test-nanosleep: fix typo
56254         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
56255         patch.
56256         Reported by Bruno Haible.
56258 2009-12-24  Bruno Haible  <bruno@clisp.org>
56260         Reduce namespace pollution on glibc systems.
56261         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
56262         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
56263         systems.
56264         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
56265         <getopt.h> on glibc systems.
56266         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
56267         systems.
56268         * lib/fcntl.c: Include <unistd.h> here instead.
56270 2009-12-24  Bruno Haible  <bruno@clisp.org>
56272         * lib/stdlib.in.h (includes): Fix typo in today's commit.
56274 2009-12-24  Eric Blake  <ebb9@byu.net>
56276         tests: add signature checks
56277         * tests/signature.h (SIGNATURE_CHECK): New file.
56278         * modules/atexit-tests (Files): Use it.
56279         * modules/btowc-tests (Files): Likewise.
56280         * modules/canonicalize-lgpl-tests (Files): Likewise.
56281         * modules/ceilf-tests (Files): Likewise.
56282         * modules/ceill-tests (Files): Likewise.
56283         * modules/chown-tests (Files): Likewise.
56284         * modules/dprintf-posix-tests (Files): Likewise.
56285         * modules/dup2-tests (Files): Likewise.
56286         * modules/dup3-tests (Files): Likewise.
56287         * modules/duplocale-tests (Files): Likewise.
56288         * modules/fchdir-tests (Files): Likewise.
56289         * modules/fcntl-tests (Files): Likewise.
56290         * modules/fdopendir-tests (Files): Likewise.
56291         * modules/fflush-tests (Files): Likewise.
56292         * modules/flock-tests (Files): Likewise.
56293         * modules/floorf-tests (Files): Likewise.
56294         * modules/floorl-tests (Files): Likewise.
56295         * modules/fnmatch-tests (Files): Likewise.
56296         * modules/fopen-tests (Files): Likewise.
56297         * modules/fprintf-posix-tests (Files): Likewise.
56298         * modules/freopen-tests (Files): Likewise.
56299         * modules/frexp-nolibm-tests (Files): Likewise.
56300         * modules/frexp-tests (Files): Likewise.
56301         * modules/frexpl-nolibm-tests (Files): Likewise.
56302         * modules/frexpl-tests (Files): Likewise.
56303         * modules/fseek-tests (Files): Likewise.
56304         * modules/fseeko-tests (Files): Likewise.
56305         * modules/fsync-tests (Files): Likewise.
56306         * modules/ftell-tests (Files): Likewise.
56307         * modules/ftello-tests (Files): Likewise.
56308         * modules/futimens-tests (Files): Likewise.
56309         * modules/getaddrinfo-tests (Files): Likewise.
56310         * modules/getcwd-tests (Files): Likewise.
56311         * modules/getdelim-tests (Files): Likewise.
56312         * modules/getdtablesize-tests (Files): Likewise.
56313         * modules/getgroups-tests (Files): Likewise.
56314         * modules/gethostname-tests (Files): Likewise.
56315         * modules/getline-tests (Files): Likewise.
56316         * modules/getopt-posix-tests (Files): Likewise.
56317         * modules/gettimeofday-tests (Files): Likewise.
56318         * modules/glob-tests (Files): Likewise.
56319         * modules/iconv-tests (Files): Likewise.
56320         * modules/inet_ntop-tests (Files): Likewise.
56321         * modules/inet_pton-tests (Files): Likewise.
56322         * modules/isblank-tests (Files): Likewise.
56323         * modules/lchown-tests (Files): Likewise.
56324         * modules/ldexpl-tests (Files): Likewise.
56325         * modules/link-tests (Files): Likewise.
56326         * modules/linkat-tests (Files): Likewise.
56327         * modules/lseek-tests (Files): Likewise.
56328         * modules/lstat-tests (Files): Likewise.
56329         * modules/mbrtowc-tests (Files): Likewise.
56330         * modules/mbsinit-tests (Files): Likewise.
56331         * modules/mbsnrtowcs-tests (Files): Likewise.
56332         * modules/mbsrtowcs-tests (Files): Likewise.
56333         * modules/memchr-tests (Files): Likewise.
56334         * modules/memcmp-tests (Files): Likewise.
56335         * modules/memmem-tests (Files): Likewise.
56336         * modules/memrchr-tests (Files): Likewise.
56337         * modules/mkdir-tests (Files): Likewise.
56338         * modules/mkfifo-tests (Files): Likewise.
56339         * modules/mkfifoat-tests (Files): Likewise.
56340         * modules/mknod-tests (Files): Likewise.
56341         * modules/nanosleep-tests (Files): Likewise.
56342         * modules/nl_langinfo-tests (Files): Likewise.
56343         * modules/obstack-printf-tests (Files): Likewise.
56344         * modules/open-tests (Files): Likewise.
56345         * modules/openat-tests (Files): Likewise.
56346         * modules/perror-tests (Files): Likewise.
56347         * modules/pipe2-tests (Files): Likewise.
56348         * modules/poll-tests (Files): Likewise.
56349         * modules/popen-tests (Files): Likewise.
56350         * modules/posix_spawn-tests (Files): Likewise.
56351         * modules/posix_spawnp-tests (Files): Likewise.
56352         * modules/pread-tests (Files): Likewise.
56353         * modules/printf-posix-tests (Files): Likewise.
56354         * modules/pty-tests (Files): Likewise.
56355         * modules/random_r-tests (Files): Likewise.
56356         * modules/rawmemchr-tests (Files): Likewise.
56357         * modules/readlink-tests (Files): Likewise.
56358         * modules/remove-tests (Files): Likewise.
56359         * modules/rename-tests (Files): Likewise.
56360         * modules/renameat-tests (Files): Likewise.
56361         * modules/rmdir-tests (Files): Likewise.
56362         * modules/round-tests (Files): Likewise.
56363         * modules/roundf-tests (Files): Likewise.
56364         * modules/roundl-tests (Files): Likewise.
56365         * modules/select-tests (Files): Likewise.
56366         * modules/setenv-tests (Files): Likewise.
56367         * modules/sigaction-tests (Files): Likewise.
56368         * modules/sleep-tests (Files): Likewise.
56369         * modules/snprintf-posix-tests (Files): Likewise.
56370         * modules/snprintf-tests (Files): Likewise.
56371         * modules/sprintf-posix-tests (Files): Likewise.
56372         * modules/stat-tests (Files): Likewise.
56373         * modules/strcasestr-tests (Files): Likewise.
56374         * modules/strchrnul-tests (Files): Likewise.
56375         * modules/strerror-tests (Files): Likewise.
56376         * modules/strsignal-tests (Files): Likewise.
56377         * modules/strstr-tests (Files): Likewise.
56378         * modules/strtod-tests (Files): Likewise.
56379         * modules/strverscmp-tests (Files): Likewise.
56380         * modules/symlink-tests (Files): Likewise.
56381         * modules/symlinkat-tests (Files): Likewise.
56382         * modules/times-tests (Files): Likewise.
56383         * modules/trunc-tests (Files): Likewise.
56384         * modules/truncf-tests (Files): Likewise.
56385         * modules/truncl-tests (Files): Likewise.
56386         * modules/tsearch-tests (Files): Likewise.
56387         * modules/uname-tests (Files): Likewise.
56388         * modules/unlink-tests (Files): Likewise.
56389         * modules/unsetenv-tests (Files): Likewise.
56390         * modules/usleep-tests (Files): Likewise.
56391         * modules/utimensat-tests (Files): Likewise.
56392         * modules/vasprintf-tests (Files): Likewise.
56393         * modules/vdprintf-posix-tests (Files): Likewise.
56394         * modules/vfprintf-posix-tests (Files): Likewise.
56395         * modules/vprintf-posix-tests (Files): Likewise.
56396         * modules/vsnprintf-posix-tests (Files): Likewise.
56397         * modules/vsnprintf-tests (Files): Likewise.
56398         * modules/vsprintf-posix-tests (Files): Likewise.
56399         * modules/wcrtomb-tests (Files): Likewise.
56400         * modules/wcsnrtombs-tests (Files): Likewise.
56401         * modules/wcsrtombs-tests (Files): Likewise.
56402         * modules/wcwidth-tests (Files): Likewise.
56403         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
56404         * tests/test-isinf.c (isinf): Likewise.
56405         * tests/test-isnan.c (isnan): Likewise.
56406         * tests/test-signbit.c (signbit): Likewise.
56407         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
56408         declaration, either as macro or with correct signature.
56409         (select): Ensure function under test is declared with correct
56410         signature in correct header.
56411         * tests/test-atexit.c (atexit): Likewise.
56412         * tests/test-btowc.c (btowc): Likewise.
56413         * tests/test-canonicalize-lgpl.c (realpath)
56414         (canonicalize_file_name): Likewise.
56415         * tests/test-ceilf1.c (ceilf): Likewise.
56416         * tests/test-ceill.c (ceill): Likewise.
56417         * tests/test-chown.c (chown): Likewise.
56418         * tests/test-dprintf-posix.c (dprintf): Likewise.
56419         * tests/test-dup2.c (dup2): Likewise.
56420         * tests/test-dup3.c (dup3): Likewise.
56421         * tests/test-duplocale.c (duplocale): Likewise.
56422         * tests/test-fchdir.c (fchdir): Likewise.
56423         * tests/test-fchownat.c (fchownat): Likewise.
56424         * tests/test-fcntl.c (fcntl): Likewise.
56425         * tests/test-fdopendir.c (fdopendir): Likewise.
56426         * tests/test-fflush.c (fflush): Likewise.
56427         * tests/test-flock.c (flock): Likewise.
56428         * tests/test-floorf1.c (floorf): Likewise.
56429         * tests/test-floorl.c (floorl): Likewise.
56430         * tests/test-fnmatch.c (fnmatch): Likewise.
56431         * tests/test-fopen.c (fopen): Likewise.
56432         * tests/test-fprintf-posix.c (fprintf): Likewise.
56433         * tests/test-freopen.c (freopen): Likewise.
56434         * tests/test-frexp.c (frexp): Likewise.
56435         * tests/test-frexpl.c (frexpl): Likewise.
56436         * tests/test-fseek.c (fseek): Likewise.
56437         * tests/test-fseeko.c (fseeko): Likewise.
56438         * tests/test-fstatat.c (fstatat): Likewise.
56439         * tests/test-fsync.c (fsync): Likewise.
56440         * tests/test-ftell.c (ftell): Likewise.
56441         * tests/test-ftello.c (ftello): Likewise.
56442         * tests/test-futimens.c (futimens): Likewise.
56443         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
56444         (gai_strerror): Likewise.
56445         * tests/test-getcwd.c (getcwd): Likewise.
56446         * tests/test-getdelim.c (getdelim): Likewise.
56447         * tests/test-getdtablesize.c (getdtablesize): Likewise.
56448         * tests/test-getgroups.c (getgroups): Likewise.
56449         * tests/test-gethostname.c (gethostname): Likewise.
56450         * tests/test-getline.c (getline): Likewise.
56451         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
56452         Likewise.
56453         * tests/test-gettimeofday.c (gettimeofday): Likewise.
56454         * tests/test-glob.c (glob, globfree): Likewise.
56455         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
56456         * tests/test-inet_ntop.c (inet_ntop): Likewise.
56457         * tests/test-inet_pton.c (inet_pton): Likewise.
56458         * tests/test-isblank.c (isblank): Likewise.
56459         * tests/test-lchown.c (lchown): Likewise.
56460         * tests/test-ldexpl.c (ldexpl): Likewise.
56461         * tests/test-link.c (link): Likewise.
56462         * tests/test-linkat.c (linkat): Likewise.
56463         * tests/test-lseek.c (lseek): Likewise.
56464         * tests/test-lstat.c (lstat): Likewise.
56465         * tests/test-mbrtowc.c (mbrtowc): Likewise.
56466         * tests/test-mbsinit.c (mbsinit): Likewise.
56467         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
56468         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
56469         * tests/test-memchr.c (memchr): Likewise.
56470         * tests/test-memcmp.c (memcmp): Likewise.
56471         * tests/test-memmem.c (memmem): Likewise.
56472         * tests/test-memrchr.c (memrchr): Likewise.
56473         * tests/test-mkdir.c (mkdir): Likewise.
56474         * tests/test-mkdirat.c (mkdirat): Likewise.
56475         * tests/test-mkfifo.c (mkfifo): Likewise.
56476         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
56477         * tests/test-mknod.c (mknod): Likewise.
56478         * tests/test-nanosleep.c (nanosleep): Likewise.
56479         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
56480         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
56481         Likewise.
56482         * tests/test-open.c (open): Likewise.
56483         * tests/test-openat.c (openat): Likewise.
56484         * tests/test-perror.c (perror): Likewise.
56485         * tests/test-pipe2.c (pipe2): Likewise.
56486         * tests/test-poll.c (poll): Likewise.
56487         * tests/test-popen.c (popen, pclose): Likewise.
56488         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
56489         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
56490         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
56491         (posix_spawn_file_actions_destroy)
56492         (posix_spawn_file_actions_addclose)
56493         (posix_spawn_file_actions_addopen)
56494         (posix_spawn_file_actions_adddup2): Likewise.
56495         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
56496         * tests/test-pread.c (pread): Likewise.
56497         * tests/test-printf-posix.c (printf): Likewise.
56498         * tests/test-pty.c (openpty, forkpty): Likewise.
56499         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
56500         (random_r): Likewise.
56501         * tests/test-rawmemchr.c (rawmemchr): Likewise.
56502         * tests/test-readlink.c (readlink): Likewise.
56503         * tests/test-remove.c (remove): Likewise.
56504         * tests/test-rename.c (rename): Likewise.
56505         * tests/test-renameat.c (renameat): Likewise.
56506         * tests/test-rmdir.c (rmdir): Likewise.
56507         * tests/test-round1.c (round): Likewise.
56508         * tests/test-roundf1.c (roundf): Likewise.
56509         * tests/test-roundl.c (roundl): Likewise.
56510         * tests/test-setenv.c (setenv): Likewise.
56511         * tests/test-sigaction.c (sigaction): Likewise.
56512         * tests/test-sleep.c (sleep): Likewise.
56513         * tests/test-snprintf.c (snprintf): Likewise.
56514         * tests/test-sprintf-posix.c (sprintf): Likewise.
56515         * tests/test-stat.c (stat): Likewise.
56516         * tests/test-stpncpy.c (stpncpy): Likewise.
56517         * tests/test-strcasestr.c (strcasestr): Likewise.
56518         * tests/test-strchrnul.c (strchrnul): Likewise.
56519         * tests/test-strerror.c (strerror): Likewise.
56520         * tests/test-strsignal.c (strsignal): Likewise.
56521         * tests/test-strstr.c (strstr): Likewise.
56522         * tests/test-strtod.c (strtod): Likewise.
56523         * tests/test-strverscmp.c (strverscmp): Likewise.
56524         * tests/test-symlink.c (symlink): Likewise.
56525         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
56526         * tests/test-times.c (times): Likewise.
56527         * tests/test-trunc1.c (trunc): Likewise.
56528         * tests/test-truncf1.c (truncf): Likewise.
56529         * tests/test-truncl.c (truncl): Likewise.
56530         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
56531         Likewise.
56532         * tests/test-uname.c (uname): Likewise.
56533         * tests/test-unlink.c (unlink): Likewise.
56534         * tests/test-unlinkat.c (unlinkat): Likewise.
56535         * tests/test-unsetenv.c (unsetenv): Likewise.
56536         * tests/test-usleep.c (usleep): Likewise.
56537         * tests/test-utimensat.c (utimensat): Likewise.
56538         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
56539         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
56540         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
56541         * tests/test-vprintf-posix.c (vprintf): Likewise.
56542         * tests/test-vsnprintf.c (vsnprintf): Likewise.
56543         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
56544         * tests/test-wcrtomb.c (wcrtomb): Likewise.
56545         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
56546         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
56547         * tests/test-wcwidth.c (wcwidth): Likewise.
56549         build: pull in conditional headers during GNULIB_POSIXCHECK
56550         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
56551         definitions from any conditionally-included headers.
56552         * lib/stdlib.in.h (includes): Likewise.
56553         * lib/unistd.in.h (includes): Likewise.
56555 2009-12-24  Bruno Haible  <bruno@clisp.org>
56557         * tests/test-argv-iter.c: Include header file being tested immediately
56558         after config.h.
56559         * tests/test-base64.c: Likewise.
56560         * tests/test-flock.c: Likewise.
56561         * tests/test-fsync.c: Likewise.
56562         * tests/test-getdate.c: Likewise.
56563         * tests/test-getndelim2.c: Likewise.
56564         * tests/test-isfinite.c: Likewise.
56565         * tests/test-isinf.c: Likewise.
56566         * tests/test-strerror.c: Likewise.
56567         * tests/test-strsignal.c: Likewise.
56569 2009-12-23  Eric Blake  <ebb9@byu.net>
56571         unistd: work around cygwin bug
56572         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
56573         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
56574         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
56576 2009-12-23  Bruno Haible  <bruno@clisp.org>
56578         localename: More tests.
56579         * tests/test-localename.c (SIZEOF): New macro.
56580         (categories): New variable.
56581         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
56582         test_locale_name_default): Add test w.r.t. thread locale.
56583         (test_locale_name_thread): New function.
56584         (main): Invoke it.
56586         localename: Make aware of thread locale.
56587         * lib/localename.h (gl_locale_name_thread): New declaration.
56588         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
56589         behaviour with respect to thread locale.
56590         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
56591         <langinfo.h>, glthread/lock.h.
56592         (SIZE_BITS): New macro.
56593         (string_hash): New function.
56594         (struct hash_node): New type.
56595         (HASH_TABLE_SIZE): New macro.
56596         (struniq_hash_table, struniq_lock): New variables.
56597         (struniq): New function.
56598         (gl_locale_name_thread): New function.
56599         (gl_locale_name): Invoke it.
56600         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
56601         * modules/localename (Depends-on): Add lock.
56602         Reported by Mike Gran <spk121@yahoo.com>.
56604 2009-12-23  Eric Blake  <ebb9@byu.net>
56606         va-args: new module
56607         * modules/va-args: New file.
56608         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
56609         * MODULES.html.sh (Core language properties): Mention it.
56611         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
56612         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
56613         named alias for __attribute__((__unused__)).
56614         * lib/chown.c: Update client.
56615         * lib/fchmodat.c: Likewise.
56616         * lib/fts.c: Likewise.
56617         * lib/getdate.y: Likewise.
56618         * lib/getgroups.c: Likewise.
56619         * lib/getopt.c: Likewise.
56620         * lib/getugroups.c: Likewise.
56621         * lib/mkdir.c: Likewise.
56622         * lib/mkfifo.c: Likewise.
56623         * lib/mkfifoat.c: Likewise.
56624         * lib/mknod.c: Likewise.
56625         * lib/mknodat.c: Likewise.
56626         * lib/readlink.c: Likewise.
56627         * lib/se-context.in.h: Likewise.
56628         * lib/se-selinux.in.h: Likewise.
56629         * lib/sockets.c: Likewise.
56630         * lib/symlink.c: Likewise.
56631         * lib/symlinkat.c: Likewise.
56632         * lib/unicodeio.c: Likewise.
56633         * lib/unistr.h: Likewise.
56634         * tests/test-areadlink.c: Likewise.
56635         * tests/test-areadlinkat.c: Likewise.
56636         * tests/test-filenamecat.c: Likewise.
56637         * tests/test-fseeko.c: Likewise.
56638         * tests/test-ftello.c: Likewise.
56639         * tests/test-getdate.c: Likewise.
56640         * tests/test-getgroups.c: Likewise.
56641         * tests/test-gethostname.c: Likewise.
56642         * tests/test-quotearg.c: Likewise.
56643         * tests/test-version-etc.c: Likewise.
56644         * tests/test-xalloc-die.c: Likewise.
56645         * tests/test-xfprintf-posix.c: Likewise.
56646         * tests/test-xprintf-posix.c: Likewise.
56647         * tests/test-xvasprintf.c: Likewise.
56649         tests: avoid compiler warnings
56650         * tests/test-fcntl.c (main): Delete unused parameters.
56651         * tests/test-freopen-safer.c (main): Likewise.
56652         * tests/test-xalloc-die.c (main): Mark unused parameters.
56653         * tests/test-fseeko.c (main): Likewise.
56654         * tests/test-ftello.c (main): Likewise.
56655         * tests/test-nanosleep.c (main): Avoid declaration warning.
56656         * tests/test-sleep.c (main): Likewise.
56657         * tests/test-unsetenv.c (main): Silence warning about string
56658         literal.
56659         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
56661 2009-12-23  Bruno Haible  <bruno@clisp.org>
56663         * tests/test-localename.c (test_locale_name): New function, extracted
56664         from main. Also test mixed situations.
56665         (test_locale_name_posix, test_locale_name_environ,
56666         test_locale_name_default): New functions.
56667         (main): Invoke them all.
56668         * modules/localename-tests (configure.ac): Test for newlocale.
56670 2009-12-23  Bruno Haible  <bruno@clisp.org>
56672         unistd: Ensure getcwd gets declared before being overridden.
56673         * lib/unistd.in.h: Conditionally include <io.h>.
56675 2009-12-22  Bruno Haible  <bruno@clisp.org>
56677         wchar: Diagnose broken combination of glibc and gcc versions and flags.
56678         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
56679         (gl_WCHAR_H): Invoke it.
56680         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
56681         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
56682         Reported by Karl Berry <karl@freefriends.org>.
56684 2009-12-22  Eric Blake  <ebb9@byu.net>
56686         math, unistd: avoid redundant includes
56687         * lib/math.in.h (isnan): No need to re-include <math.h>.
56688         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
56690         getsubopt: work around cygwin bug
56691         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
56692         avoid conflicting with system getsubopt.
56693         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
56694         bug.
56696         getopt: synchronize from glibc
56697         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
56698         parameter order.  Adjust all callers.
56699         (_getopt_internal_r, main): Adjust quoting in error messages.
56700         Drop considerations for outdated POSIX 1003.2 error message.
56701         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
56702         callers.
56703         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
56705         test-getopt: test stderr behavior
56706         * modules/getopt-posix-tests (Depends-on): Add dup2.
56707         * tests/test-getopt.c (ASSERT): Avoid stderr.
56708         (main): Move stderr to a temporary file.
56709         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
56710         Instead, add parameter to inform caller if output occurred.
56711         (test_getopt): Adjust all existing tests to expect silence, and
56712         add new tests of leading ":".
56713         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56714         glibc shortcomings with leading "-:" or "+:" in optstring.
56715         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56716         Likewise.
56717         * doc/posix-functions/getopt.texi (getopt): Likewise.
56719         test-getopt: enhance test
56720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
56721         supports optind=0.
56722         * tests/test-getopt.c (OPTIND_MIN): Move...
56723         * tests/test-getopt.h (OPTIND_MIN): ...here.
56724         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
56725         Require that optind=0 works, since modern BSD supports it in
56726         addition to optreset, and since coreutils expects it.
56727         (test_getopt_long_only): New test.
56728         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56729         glibc shortcomings with 'W;', and enforcement of optind=0.
56730         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56731         Likewise.
56733 2009-12-21  Bruno Haible  <bruno@clisp.org>
56735         localename: Improvements for MacOS X and Cygwin.
56736         * lib/localename.h (gl_locale_name_environ): New declaration.
56737         * lib/localename.c (gl_locale_name_environ): New function, extracted from
56738         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
56739         (gl_locale_name_posix): Invoke it.
56740         (gl_locale_name_default): Add comments. Use Windows native API also on
56741         Cygwin.
56743 2009-12-21  Bruno Haible  <bruno@clisp.org>
56745         Update list of Win32 locale ids.
56746         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
56747         (LANG_SAMI): Renamed from LANG_SAAMI.
56748         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
56749         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
56750         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
56751         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
56752         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
56753         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
56754         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
56755         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
56756         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
56757         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
56758         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
56759         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
56760         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
56761         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
56762         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
56763         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
56764         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
56765         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
56766         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
56767         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
56768         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
56769         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
56770         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
56771         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
56772         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
56773         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
56774         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
56775         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
56776         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
56777         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
56778         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
56779         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
56780         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
56781         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
56782         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
56783         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
56784         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
56785         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
56786         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
56787         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
56788         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
56789         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
56790         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
56791         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
56792         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
56793         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
56794         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
56795         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
56796         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
56797         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
56798         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
56799         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
56800         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
56801         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
56802         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
56803         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
56804         Add more languages and countries for Sami, Sorbian. Add more countries
56805         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
56806         for Pashto. Change country for Syriac, Tswana.
56808 2009-12-21  Eric Blake  <ebb9@byu.net>
56810         test-utimens: avoid spurious failure
56811         * tests/test-chown.h (nap): Factor...
56812         * tests/nap.h: ...into new file.
56813         * tests/test-lchown.h (nap): Avoid duplication.
56814         * tests/test-utimens-common.h (nap): Use shared implementation,
56815         necessary on file systems with 1-second resolution.
56816         * modules/chown-tests (Files): Include new file.
56817         * modules/fdutimensat-tests (Files): Likewise.
56818         * modules/futimens-tests (Files): Likewise.
56819         * modules/lchown-tests (Files): Likewise.
56820         * modules/openat-tests (Files): Likewise.
56821         * modules/utimens-tests (Files): Likewise.
56822         * modules/utimensat-tests (Files): Likewise.
56824 2009-12-19  Eric Blake  <ebb9@byu.net>
56826         futimens, utimensat: work around Linux bug
56827         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
56828         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56829         * lib/utimensat.c (rpl_utimensat): Work around it.
56830         * lib/futimens.c (rpl_futimens): Adjust comment.
56832         utimens: work around Linux ctime bug
56833         * lib/utimens.c (detect_ctime_bug): New helper function.
56834         (update_timespec): Differentiate between workaround needed for
56835         this bug vs. what is needed for systems that lack utimensat.
56836         (fdutimens, lutimens): Work around bug.
56838         utimens: check for ctime update
56839         * tests/test-utimens-common.h (check_ctime): Define.
56840         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
56841         * tests/test-futimens.h (test_futimens): Likewise.
56842         * tests/test-lutimens.h (test_lutimens): Likewise.
56843         * doc/posix-functions/futimens.texi (futimens): Document the bug.
56844         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56846 2009-12-19  Bruno Haible  <bruno@clisp.org>
56848         dprintf-posix: Check against memory leak fixed on 2009-12-15.
56849         * tests/test-dprintf-posix2.sh: New file.
56850         * tests/test-dprintf-posix2.c: New file.
56851         * modules/dprintf-posix-tests (Files): Add them.
56852         (configure.ac): Check for getrlimit and setrlimit.
56853         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56855 2009-12-19  Bruno Haible  <bruno@clisp.org>
56857         fprintf-posix: Check against memory leak fixed on 2009-12-15.
56858         * tests/test-fprintf-posix3.sh: New file.
56859         * tests/test-fprintf-posix3.c: New file.
56860         * modules/fprintf-posix-tests (Files): Add them.
56861         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56863 2009-12-19  Eric Blake  <ebb9@byu.net>
56865         dirfd: fix prototype
56866         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
56867         * lib/dirfd.c (dirfd): Likewise.
56869         canonicalize: reduce memory usage
56870         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
56871         allocation to size.
56872         Reported by Solar Designer <solar@openwall.com>.
56874 2009-12-19  Bruno Haible  <bruno@clisp.org>
56876         New module attribute 'Applicability'.
56877         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
56878         * gnulib-tool: New option --extract-applicability.
56879         (func_usage): Document it.
56880         (sed_extract_prog): Recognize it.
56881         (func_get_applicability): New function.
56882         (func_import): Generalize handling of 'link-warning' module.
56883         * modules/link-warning (Applicability): New section.
56884         * modules/arg-nonnull (Applicability): New section.
56885         Repoted by Simon Josefsson <simon@josefsson.org>.
56887 2009-12-19  Bruno Haible  <bruno@clisp.org>
56889         fflush: tweak
56890         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
56891         * lib/fseeko.c (rpl_fseeko): Likewise.
56893 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
56895         * lib/gl_list.h: Fix typo in comment.
56897 2009-12-16  Eric Blake  <ebb9@byu.net>
56899         fcntl: use to simplify other modules
56900         * modules/cloexec (Depends-on): Add fcntl.
56901         * modules/fchdir (Depends-on): Likewise.
56902         * modules/fd-safer-flag (Depends-on): Likewise.
56903         * modules/unistd-safer (Depends-on): Likewise.
56904         * modules/dup3 (configure.ac): Set module indicator.
56905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
56906         missing.
56907         * lib/fchdir.c (_gl_register_dup): Fix comment.
56908         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
56909         * lib/dup-safer.c (dup_safer): Likewise.
56910         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
56911         * lib/dup3.c (dup3): Likewise.
56912         * tests/test-fchdir.c (main): Enhance test.
56913         Fixes a dup_cloexec bug reported by Ondřej Vašík.
56915         fcntl: port portions of fcntl to mingw
56916         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
56917         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
56918         replacement for mingw.
56919         * modules/fcntl (Description): Update.
56920         (Depends-on): Add dup2.
56921         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
56922         * modules/fcntl-h (Makefile.am): Substitute it.
56923         * lib/fcntl.in.h (fcntl): Update declaration.
56924         (F_DUPFD, F_GETFD): New macros, when needed.
56925         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56926         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
56927         * tests/test-fcntl.c (check_flags, main): Enhance test for items
56928         we now guarantee.
56930         fcntl: work around cygwin bug in F_DUPFD
56931         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
56932         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
56933         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
56934         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
56935         * doc/posix-functions/fcntl.texi (fcntl): Document it.
56937         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
56938         * modules/fcntl (Files): List new files.
56939         (configure.ac): Run a test.
56940         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
56941         * lib/fcntl.c (rpl_fcntl): Likewise.
56942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
56943         (gl_FCNTL_H): Always replace fcntl.h.
56944         * modules/fcntl-h (Makefile.am): Substitute witnesses.
56945         * lib/fcntl.in.h (fcntl): Declare replacement.
56946         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
56947         needed, plus a witness.
56948         * doc/posix-functions/fcntl.texi (fcntl): Document this.
56949         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
56950         * tests/test-fcntl.c: New file.
56951         * modules/fcntl-tests: Likewise.
56953         binary-io: avoid potential compilation warning
56954         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
56955         directives.
56957         fflush: avoid compilation error on NetBSD
56958         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
56959         between off_t and fpos_t, since the latter is sometimes a struct.
56960         * lib/fseeko.c (rpl_fseeko): Likewise.
56961         Reported by Alexander Nasonov <alnsn@yandex.ru>.
56963 2009-12-15  Eric Blake  <ebb9@byu.net>
56965         fcntl-h, stdio, sys_ioctl: fix declarations
56966         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
56967         function must not take arguments.
56968         * lib/sys_ioctl.in.h (ioctl): Likewise.
56969         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
56970         (open): Add a link warning.
56972 2009-12-15  Jim Meyering  <meyering@redhat.com>
56974         areadlink, areadlink-with-size: relax license to LGPLv2+
56975         * modules/areadlink (License): Relax to LGPLv2+.
56976         * modules/areadlink-with-size (License): Likewise.
56978 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
56979             Bruno Haible  <bruno@clisp.org>
56981         *printf: Fix memory leak.
56982         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
56983         * lib/vfprintf.c (vfprintf): Likewise.
56984         * lib/dprintf.c (dprintf): Likewise.
56985         * lib/vdprintf.c (vdprintf): Likewise.
56987 2009-12-14  Eric Blake  <ebb9@byu.net>
56989         accept4: adjust module dependencies
56990         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
56992         utimens: one more try at avoiding compiler warning
56993         * lib/utimens.c (lutimens): Lower scope of result.
56995 2009-12-13  Bruno Haible  <bruno@clisp.org>
56997         Move the malloc checking from module 'list' to new module 'xlist'.
56998         * modules/xlist: New file.
56999         * lib/gl_xlist.h: New file.
57000         * lib/gl_xlist.c: New file.
57001         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
57002         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
57003         gl_list_add_last, gl_list_add_before, gl_list_add_after,
57004         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
57005         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
57006         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
57007         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
57008         gl_sortedlist_nx_add): New declarations.
57009         (struct gl_list_implementation): Rename and change methods accordingly.
57010         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
57011         (gl_list_nx_create): Renamed from gl_list_create.
57012         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57013         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57014         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57015         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57016         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57017         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57018         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57019         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57020         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
57021         gl_list_create_empty.
57022         (gl_list_nx_create): Renamed from gl_list_create.
57023         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57024         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57025         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57026         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57027         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57028         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57029         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57030         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57031         * lib/gl_array_list.c: Don't include xalloc.h.
57032         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
57033         NULL upon out-of-memory.
57034         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
57035         out-of-memory.
57036         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
57037         Change return type to 'int'.
57038         (gl_array_nx_set_at): Renamed from gl_array_set_at.
57039         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57040         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
57041         upon out-of-memory.
57042         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
57043         upon out-of-memory.
57044         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
57045         upon out-of-memory.
57046         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
57047         upon out-of-memory.
57048         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
57049         out-of-memory.
57050         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
57051         Update.
57052         (gl_array_list_implementation): Update.
57053         * lib/gl_carray_list.c: Don't include xalloc.h.
57054         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
57055         Return NULL upon out-of-memory.
57056         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
57057         out-of-memory.
57058         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
57059         Change return type to 'int'.
57060         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
57061         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57062         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
57063         upon out-of-memory.
57064         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
57065         upon out-of-memory.
57066         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
57067         out-of-memory.
57068         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
57069         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
57070         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
57071         Update.
57072         (gl_carray_list_implementation): Update.
57073         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
57074         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
57075         gl_linked_create_empty. Return NULL upon out-of-memory.
57076         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
57077         out-of-memory.
57078         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
57079         Change return type to 'int'. Return -1 upon out-of-memory.
57080         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
57081         out-of-memory.
57082         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
57083         upon out-of-memory.
57084         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
57085         upon out-of-memory.
57086         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
57087         NULL upon out-of-memory.
57088         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
57089         upon out-of-memory.
57090         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
57091         out-of-memory.
57092         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
57093         Update.
57094         * lib/gl_linked_list.c: Don't include xalloc.h.
57095         (gl_linked_list_implementation): Update.
57096         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
57097         (add_to_bucket): Change return type to 'int'.
57098         (gl_linkedhash_list_implementation): Update.
57099         * lib/gl_anytree_list1.h (free_subtree): New function.
57100         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
57101         gl_tree_create_empty. Return NULL upon out-of-memory.
57102         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
57103         Change return type to 'int'. Return -1 upon out-of-memory.
57104         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
57105         out-of-memory.
57106         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
57107         (gl_tree_remove_node): New function, moved here from
57108         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
57109         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
57110         Update.
57111         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
57112         malloc, not xmalloc. Return NULL upon out-of-memory.
57113         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57114         out-of-memory.
57115         (gl_tree_remove_node_from_tree): New function, extracted from
57116         gl_tree_remove_node.
57117         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57118         upon out-of-memory.
57119         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57120         out-of-memory.
57121         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57122         upon out-of-memory.
57123         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57124         upon out-of-memory.
57125         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57126         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
57127         not xmalloc. Return NULL upon out-of-memory.
57128         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57129         out-of-memory.
57130         (gl_tree_remove_node_from_tree): New function, extracted from
57131         gl_tree_remove_node.
57132         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57133         upon out-of-memory.
57134         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57135         out-of-memory.
57136         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57137         upon out-of-memory.
57138         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57139         upon out-of-memory.
57140         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57141         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
57142         gl_anytree_list1.h before gl_anyavltree_list2.h.
57143         (gl_avltree_list_implementation): Update.
57144         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
57145         gl_anytree_list1.h before gl_anyavltree_list2.h.
57146         (gl_rbtree_list_implementation): Update.
57147         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
57148         Change return type to 'int'. Return -1 upon out-of-memory. Use
57149         __builtin_expect.
57150         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
57151         (gl_avltreehash_list_implementation): Update.
57152         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
57153         (gl_rbtreehash_list_implementation): Update.
57154         * modules/array-list (Depends-on): Remove xalloc.
57155         * modules/carray-list (Depends-on): Likewise.
57156         * modules/linked-list (Depends-on): Likewise.
57157         * modules/linkedhash-list (Depends-on): Likewise.
57158         * modules/avltree-list (Depends-on): Likewise.
57159         * modules/rbtree-list (Depends-on): Likewise.
57160         * modules/avltreehash-list (Depends-on): Likewise.
57161         * modules/rbtreehash-list (Depends-on): Likewise.
57163         * modules/xsublist: New file.
57164         * lib/gl_xsublist.h: New file.
57165         * lib/gl_xsublist.c: New file.
57166         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
57167         (gl_sublist_nx_create): New declaration.
57168         * lib/gl_sublist.c: Don't include xalloc.h.
57169         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
57170         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
57171         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
57172         Change return type to 'int'. Return -1 upon out-of-memory.
57173         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
57174         upon out-of-memory.
57175         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
57176         NULL upon out-of-memory.
57177         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
57178         upon out-of-memory.
57179         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
57180         NULL upon out-of-memory.
57181         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
57182         NULL upon out-of-memory.
57183         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
57184         upon out-of-memory.
57185         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
57186         (gl_sublist_list_implementation): Update.
57187         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
57188         upon out-of-memory.
57189         * modules/sublist (Depends-on): Remove xalloc.
57191         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
57192         * tests/test-carray_list.c: Likewise.
57193         * tests/test-linked_list.c: Likewise.
57194         * tests/test-linkedhash_list.c: Likewise.
57195         * tests/test-avltree_list.c: Likewise.
57196         * tests/test-rbtree_list.c: Likewise.
57197         * tests/test-avltreehash_list.c: Likewise.
57198         * tests/test-rbtreehash_list.c: Likewise.
57199         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
57200         * modules/carray-list-tests (Makefile.am): Likewise.
57201         * modules/linked-list-tests (Makefile.am): Likewise.
57202         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57203         * modules/avltree-list-tests (Makefile.am): Likewise.
57204         * modules/rbtree-list-tests (Makefile.am): Likewise.
57205         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57206         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57208         * NEWS: Mention the changes.
57210         * lib/clean-temp.c: Include gl_xlist.h.
57211         * modules/clean-temp (Depends-on): Add xlist.
57213         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
57214         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
57216         * tests/test-array_oset.c: Include gl_xlist.h.
57217         * modules/array-oset-tests (Depends-on): Add xlist.
57219         Reported by José E. Marchesi <jemarch@gnu.org>.
57221 2009-12-13  Bruno Haible  <bruno@clisp.org>
57223         Move the malloc checking from module 'oset' to new module 'xoset'.
57224         * modules/xoset: New file.
57225         * lib/gl_xoset.h: New file.
57226         * lib/gl_xoset.c: New file.
57227         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
57228         declarations.
57229         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
57230         (struct gl_oset_implementation): Rename and change methods accordingly.
57231         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
57232         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
57233         'int'. Mark as __warn_unused_result__.
57234         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
57235         gl_oset_create_empty.
57236         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
57237         'int'.
57238         * lib/gl_array_oset.c: Don't include xalloc.h.
57239         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
57240         malloc, not xmalloc.
57241         (grow): Change return type to 'int'. Don't call xalloc_die.
57242         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
57243         to 'int'.
57244         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
57245         'int'.
57246         (gl_array_oset_implementation): Update.
57247         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
57248         gl_tree_create_empty.
57249         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
57250         'int'.
57251         * lib/gl_avltree_oset.c: Don't include xalloc.h.
57252         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
57253         xmalloc.
57254         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
57255         not xmalloc.
57256         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
57257         xmalloc.
57258         (gl_avltree_oset_implementation): Update.
57259         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
57260         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
57261         xmalloc.
57262         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
57263         not xmalloc.
57264         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
57265         xmalloc.
57266         (gl_rbtree_oset_implementation): Update.
57267         * modules/array-oset (Depends-on): Remove xalloc.
57268         * modules/avltree-oset (Depends-on): Likewise.
57269         * modules/rbtree-oset (Depends-on): Likewise.
57270         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
57271         * tests/test-avltree_oset.c: Likewise.
57272         * tests/test-rbtree_oset.c: Likewise.
57273         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57274         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
57275         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57276         * NEWS: Mention the change.
57278 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
57280         maint.mk: allow a project to override release-prep commands
57281         * top/maint.mk (alpha, beta, stable): Move release-preparatory
57282         commands into a new rule.
57283         (release-prep): New rule.
57284         (release-prep-hook): New overridable variable.
57286 2009-12-13  Bruno Haible  <bruno@clisp.org>
57288         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
57290 2009-12-13  Jim Meyering  <meyering@redhat.com>
57292         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
57293         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
57295 2009-12-12  Bruno Haible  <bruno@clisp.org>
57297         duplocale: Tweak.
57298         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
57300 2009-12-12  Karl Berry  <karl@gnu.org>
57302         * config/srclist.txt (strtoll.c): tab changes, no more sync.
57304 2009-12-12  Bruno Haible  <bruno@clisp.org>
57306         * m4/po.m4: Undo incorrect untabification.
57308 2009-12-12  Bruno Haible  <bruno@clisp.org>
57310         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
57311         * modules/c-strtod (Depends-on): Add locale.
57312         * modules/c-strtold (Depends-on): Likewise.
57314 2009-12-12  Bruno Haible  <bruno@clisp.org>
57316         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
57318 2009-12-11  Eric Blake  <ebb9@byu.net>
57320         setenv: relax requirement in light of POSIX ruling
57321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
57322         not NULL.
57323         * tests/test-setenv.c (main): Relax test.
57324         * tests/test-unsetenv.c (main): Likewise.
57325         * doc/posix-functions/setenv.texi (setenv): Document this.
57326         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57328 2009-12-11  Bruno Haible  <bruno@clisp.org>
57330         New module 'fd-safer-flag'.
57331         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
57332         * lib/dup-safer.c (dup_safer_flag): Remove function.
57333         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
57334         * lib/fd-safer.c (fd_safer_flag): Remove function.
57335         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
57336         * modules/cloexec (configure.ac): Drop indicator macro.
57337         * modules/fd-safer-flag: New file.
57338         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
57339         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
57340         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
57342 2009-12-11  Bruno Haible  <bruno@clisp.org>
57344         Tests for module 'nl_langinfo'.
57345         * modules/nl_langinfo-tests: New file.
57346         * tests/test-nl_langinfo.sh: New file.
57347         * tests/test-nl_langinfo.c: New file.
57349         New module 'nl_langinfo'.
57350         * lib/nl_langinfo.c: New file.
57351         * m4/nl_langinfo.m4: New file.
57352         * modules/nl_langinfo: New file.
57353         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
57355 2009-12-11  Bruno Haible  <bruno@clisp.org>
57357         Tests for module 'langinfo'.
57358         * modules/langinfo-tests: New file.
57359         * tests/test-langinfo.c: New file.
57361         New module 'langinfo'.
57362         * lib/langinfo.in.h: New file.
57363         * m4/langinfo_h.m4: New file.
57364         * modules/langinfo: New file.
57365         * doc/posix-headers/langinfo.texi: Mention the new module.
57367 2009-12-11  Bruno Haible  <bruno@clisp.org>
57369         * lib/config.charset: Untabify.
57371 2009-12-11  Bruno Haible  <bruno@clisp.org>
57373         * modules/unistd-safer (configure.ac): Drop indicator macro.
57375 2009-12-11  Bruno Haible  <bruno@clisp.org>
57377         Move pipe2-safer code to its own file.
57378         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
57379         * lib/pipe-safer.c (pipe2_safer): Remove function.
57380         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
57381         (Makefile.am): Add it to lib_SOURCES.
57383 2009-12-10  Bruno Haible  <bruno@clisp.org>
57385         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
57387 2009-12-10  Bruno Haible  <bruno@clisp.org>
57389         Declare which arguments expect non-NULL values, for GCC and clang.
57390         * build-aux/arg-nonnull.h: New file.
57391         * modules/arg-nonnull: New file.
57392         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
57393         (inet_ntop, inet_pton): Use it.
57394         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
57395         (closedir, dirfd, opendir, scandir, alphasort): Use it.
57396         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
57397         (open, openat): Use it.
57398         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
57399         (fnmatch): Use it.
57400         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
57401         (getopt, getopt_long, getopt_long_only): Use it.
57402         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
57403         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
57404         Use it.
57405         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
57406         (iconv_open): Use it.
57407         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
57408         (strtoimax, strtoumax): Use it.
57409         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
57410         (duplocale): Use it.
57411         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
57412         (frexp, frexpl): Use it.
57413         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
57414         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
57415         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
57416         (tsearch, tfind, tdelete, twalk): Use it.
57417         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
57418         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
57419         sigpending): Use it.
57420         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
57421         (posix_spawn, posix_spawnp, posix_spawnattr_init,
57422         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
57423         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
57424         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
57425         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
57426         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
57427         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
57428         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
57429         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
57430         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
57431         Use it.
57432         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
57433         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
57434         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
57435         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
57436         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
57437         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
57438         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
57439         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
57440         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
57441         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
57442         strtoull, unsetenv): Use it.
57443         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
57444         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
57445         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
57446         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
57447         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
57448         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
57449         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
57450         (strcasecmp, strncasecmp): Use it.
57451         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
57452         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
57453         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
57454         rpl_setsockopt): Use it.
57455         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
57456         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
57457         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
57458         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
57459         (gettimeofday): Use it.
57460         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
57461         (times): Use it.
57462         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
57463         (uname): Use it.
57464         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
57465         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
57466         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
57467         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
57468         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
57469         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
57470         unlinkat, write): Use it.
57471         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
57472         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
57473         * lib/argv-iter.h: Include arg-nonnull.h.
57474         (_ATTRIBUTE_NONNULL_): Remove macro.
57475         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
57476         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
57477         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
57478         optimization.
57479         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
57480         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
57481         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
57482         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
57483         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
57484         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
57485         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
57486         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
57487         * modules/arpa_inet (Depends-on): Add arg-nonnull.
57488         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
57489         * modules/dirent (Depends-on): Add arg-nonnull.
57490         (Makefile.am): Insert arg-nonnull.h into dirent.h.
57491         * modules/fcntl-h (Depends-on): Add arg-nonnull.
57492         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
57493         * modules/fnmatch (Depends-on): Add arg-nonnull.
57494         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
57495         * modules/getopt-posix (Depends-on): Add arg-nonnull.
57496         (Makefile.am): Insert arg-nonnull.h into getopt.h.
57497         * modules/glob (Depends-on): Add arg-nonnull.
57498         (Makefile.am): Insert arg-nonnull.h into glob.h.
57499         * modules/iconv_open (Depends-on): Add arg-nonnull.
57500         (Makefile.am): Insert arg-nonnull.h into iconv.h.
57501         * modules/inttypes (Depends-on): Add arg-nonnull.
57502         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
57503         * modules/locale (Depends-on): Add arg-nonnull.
57504         (Makefile.am): Insert arg-nonnull.h into locale.h.
57505         * modules/math (Depends-on): Add arg-nonnull.
57506         (Makefile.am): Insert arg-nonnull.h into math.h.
57507         * modules/netdb (Depends-on): Add arg-nonnull.
57508         (Makefile.am): Insert arg-nonnull.h into netdb.h.
57509         * modules/search (Depends-on): Add arg-nonnull.
57510         (Makefile.am): Insert arg-nonnull.h into search.h.
57511         * modules/signal (Depends-on): Add arg-nonnull.
57512         (Makefile.am): Insert arg-nonnull.h into signal.h.
57513         * modules/spawn (Depends-on): Add arg-nonnull.
57514         (Makefile.am): Insert arg-nonnull.h into spawn.h.
57515         * modules/stdio (Depends-on): Add arg-nonnull.
57516         (Makefile.am): Insert arg-nonnull.h into stdio.h.
57517         * modules/stdlib (Depends-on): Add arg-nonnull.
57518         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
57519         * modules/string (Depends-on): Add arg-nonnull.
57520         (Makefile.am): Insert arg-nonnull.h into string.h.
57521         * modules/strings (Depends-on): Add arg-nonnull.
57522         (Makefile.am): Insert arg-nonnull.h into strings.h.
57523         * modules/sys_socket (Depends-on): Add arg-nonnull.
57524         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
57525         * modules/sys_stat (Depends-on): Add arg-nonnull.
57526         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
57527         * modules/sys_time (Depends-on): Add arg-nonnull.
57528         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
57529         * modules/sys_times (Depends-on): Add arg-nonnull.
57530         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
57531         * modules/sys_utsname (Depends-on): Add arg-nonnull.
57532         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
57533         * modules/time (Depends-on): Add arg-nonnull.
57534         (Makefile.am): Insert arg-nonnull.h into time.h.
57535         * modules/unistd (Depends-on): Add arg-nonnull.
57536         (Makefile.am): Insert arg-nonnull.h into unistd.h.
57537         * modules/wchar (Depends-on): Add arg-nonnull.
57538         (Makefile.am): Insert arg-nonnull.h into wchar.h.
57539         * modules/argv-iter (Depends-on): Add arg-nonnull.
57540         * tests/test-canonicalize.c (null_ptr): New function.
57541         (main): Use it.
57542         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
57543         (main): Use it.
57544         * tests/test-memmem.c (null_ptr): New function.
57545         (main): Use it.
57546         Reported by Jim Meyering.
57548 2009-12-10  Bruno Haible  <bruno@clisp.org>
57550         Use spaces for indentation, not tabs.
57551         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
57552         * m4/*.m4: Untabify.
57553         * build-aux/*.h: Untabify.
57554         * tests/**/*.[hc]: Untabify.
57555         * README: New section "Indent with spaces, not TABs", based on
57556         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
57557         * NEWS: Mention the change.
57559 2009-12-10  Bruno Haible  <bruno@clisp.org>
57561         pty test: Fix link error.
57562         * modules/pty-tests (Makefile.am): Add the default LDADD value to
57563         test_pty_LDADD.
57565 2009-12-07  Simon Josefsson  <simon@josefsson.org>
57567         * modules/pty: New file.
57568         * modules/pty-tests: New file.
57569         * m4/pty.m4: New file.
57570         * tests/test-pty.c: New file.
57571         * doc/glibc-headers/pty.texi: Modified.
57572         * doc/glibc-functions/forkpty.texi: Modified.
57573         * doc/glibc-functions/openpty.texi: Modified.
57575 2009-12-10  Bruno Haible  <bruno@clisp.org>
57577         Avoid syntax error in C++ mode.
57578         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
57580 2009-12-10  Bruno Haible  <bruno@clisp.org>
57582         Use sed with option -e.
57583         * gnulib-tool (func_version, func_emit_copyright_notice,
57584         func_emit_initmacro_end, func_import, func_create_testdir): Pass
57585         option -e to sed.
57586         * modules/link-warning (Makefile.am): Likewise.
57588 2009-12-10  Jim Meyering  <meyering@redhat.com>
57590         mgetgroups: do not write bytes beyond end of malloc'd buffer
57591         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
57592         username, we call getgroups with a one-element-shorter buffer,
57593         but still told it the length was original, max_n_groups.
57595 2009-12-09  Eric Blake  <ebb9@byu.net>
57597         cloexec: relax license
57598         * modules/cloexec (Maintainer): Add myself.
57599         (License): Use LGPL, not GPL.
57601         link-warning: optimize generation
57602         * modules/link-warning (Makefile.am): Reduce process usage.
57604 2009-12-09  Bruno Haible  <bruno@clisp.org>
57606         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
57607         workaround was added on 2009-11-17.
57609 2009-12-09  Jim Meyering  <meyering@redhat.com>
57610             Bruno Haible  <bruno@clisp.org>
57612         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
57613         * modules/link-warning (Makefile.am): Make the comment-removing sed
57614         command more robust in the face of bootstrap-prepended comment lines.
57616 2009-12-09  Bruno Haible  <bruno@clisp.org>
57618         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
57619         most one group.
57621 2009-12-09  Simon Josefsson  <simon@josefsson.org>
57622             Bruno Haible  <bruno@clisp.org>
57624         * build-aux/link-warning.h: Add copyright notice.
57625         * modules/link-warning (Makefile.am): Generate link-warning.h from
57626         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
57627         * NEWS: Mention change in link-warning module.
57628         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
57629         * modules/dirent (Makefile.am): Add dependency to dirent.h.
57630         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
57631         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
57632         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
57633         * modules/math (Makefile.am): Add dependency to math.h.
57634         * modules/search (Makefile.am): Add dependency to search.h.
57635         * modules/signal (Makefile.am): Add dependency to signal.h.
57636         * modules/spawn (Makefile.am): Add dependency to spawn.h.
57637         * modules/stdio (Makefile.am): Add dependency to stdio.h.
57638         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
57639         * modules/string (Makefile.am): Add dependency to string.h.
57640         * modules/strings (Makefile.am): Add dependency to strings.h.
57641         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
57642         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
57643         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
57644         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
57645         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
57646         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
57647         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
57648         * modules/unistd (Makefile.am): Add dependency to unistd.h.
57649         * modules/wchar (Makefile.am): Add dependency to wchar.h.
57651 2009-12-09  Bruno Haible  <bruno@clisp.org>
57653         fchdir: Optimize away rpl_fstat when possible.
57654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
57655         REPLACE_OPEN_DIRECTORY.
57656         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
57658 2009-12-09  Bruno Haible  <bruno@clisp.org>
57660         * lib/fchdir.c: Update comment.
57662 2009-12-09  Bruno Haible  <bruno@clisp.org>
57664         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
57666 2009-12-08  Eric Blake  <ebb9@byu.net>
57668         fchdir: avoid memory leak on re-registration.
57669         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
57671 2009-12-08  Jim Meyering  <meyering@redhat.com>
57673         init.sh: avoid Solaris 10 /bin/sh portability problem
57674         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
57675         sourced script:
57676           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
57677           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
57678           bar
57679         tests/init.sh relied on that, accepting a --set-path=DIR argument,
57680         and two tests used that idiom.
57681         * tests/init.sh: Update suggested usage comments.
57682         (path_prepend_): New function, to be used in place
57683         of the --src-path=DIR option.
57684         (setup_): Move PATH-prepending code into path_prepend_.
57685         * tests/test-pread.sh: Adapt to new usage.
57686         * tests/test-xalloc-die.sh: Likewise.
57688 2009-12-08  Simon Josefsson  <simon@josefsson.org>
57690         * doc/gnulib.texi (Glibc pty.h): Add.
57691         * doc/glibc-functions/forkpty.texi: Add.
57692         * doc/glibc-functions/openpty.texi: Add.
57693         Suggested by Bruno Haible.
57695 2009-12-08  Eric Blake  <ebb9@byu.net>
57697         fchdir: fix logic bugs
57698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
57699         * tests/test-fchdir.c (main): Enhance test.
57700         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
57701         is in use.
57703         dup2: fix logic bugs
57704         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
57705         REPLACE_DUP2 to decide when rpl_dup2 is needed.
57706         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
57707         exists.
57708         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
57710 2009-12-07  Eric Blake  <ebb9@byu.net>
57712         unlink: fix m4 detection
57713         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
57715         unistd-safer: add unit test
57716         * modules/unistd-safer-tests: New file.
57717         * tests/test-dup-safer.c: Likewise.
57718         * tests/test-cloexec.c (setmode): Avoid compiler warning.
57719         * tests/test-dup2.c (setmode): Likewise.
57720         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
57722         cloexec: preserve text vs. binary across dup_cloexec
57723         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
57724         mode.
57725         * modules/dup2-tests (Depends-on): Add binary-io.
57726         * modules/cloexec-tests (Depends-on): Likewise.
57727         * tests/test-dup2.c (setmode, is_mode): New helpers.
57728         (main): Add tests that translation mode is preserved.
57729         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
57730         Reported by Bruno Haible.
57732         mgetgroups: reduce duplicate listings
57733         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
57734         resulting array.
57735         * tests/test-chown.h (test_chown): Simplify client.
57736         * tests/test-lchown.h (test_lchown): Likewise.
57738 2009-12-06  Bruno Haible  <bruno@clisp.org>
57740         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
57741         value.
57743 2009-12-06  Bruno Haible  <bruno@clisp.org>
57745         * lib/progname.c: Include stdio.h, stdlib.h.
57746         (set_program_name): Reject a NULL argument.
57748 2009-12-05  Eric Blake  <ebb9@byu.net>
57750         pipe2-safer: new module
57751         * modules/pipe2-safer: New file.
57752         * lib/unistd-safer.h (pipe2_safer): New prototype.
57753         * lib/unistd--.h (pipe2): New wrapper.
57754         * lib/pipe-safer.c (pipe2_safer): New function.
57755         * modules/pipe (Depends-on): Add pipe2-safer.
57756         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
57758         stdlib-safer: preserve cloexec flag for mkostemp[s]
57759         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
57760         fd_safer_flag.
57762         unistd-safer: allow preservation of cloexec status via flag
57763         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
57764         prototypes.
57765         * lib/dup-safer.c (dup_safer_flag): New function.
57766         * lib/fd-safer.c (fd_safer_flag): Likewise.
57767         * modules/cloexec (configure.ac): Set witness.
57769         test-dup2: enhance test
57770         * modules/dup2-tests (Depends-on): Add cloexec.
57771         * tests/test-dup2.c (main): Enhance test.
57773         cloexec: add dup_cloexec
57774         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
57775         header and comments.
57776         * lib/cloexec.c (set_cloexec_flag): Add comments.
57777         (dup_cloexec): New function, with mingw implementation borrowed
57778         from...
57779         * lib/w32spawn.h (dup_noinherit): ...here.
57780         * modules/execute (Depends-on): Add cloexec.
57781         * modules/pipe (Depends-on): Likewise.
57782         * modules/cloexec (Depends-on): Add dup2.
57783         * modules/cloexec-tests (Files): New file.
57784         * tests/test-cloexec.c: Likewise.
57786         test-xalloc-die: fix test for mingw
57787         * modules/xalloc-die-tests (Files): Add tests/init.sh.
57788         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
57789         directory and .exe suffix off argv[0] output.
57791         test-fseeko: fix test for mingw
57792         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
57793         than undefining fseek, so test will pass on mingw.
57795 2009-12-05  Bruno Haible  <bruno@clisp.org>
57797         * lib/progname.h (set_program_name): Clarify specification.
57798         * lib/progname.c (set_program_name): Likewise.
57799         Reported by Jim Meyering.
57801 2009-12-05  Jim Meyering  <meyering@redhat.com>
57803         maint.mk: backslash-escape parens in default regexp
57804         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
57805         backslash-escape the literal parentheses.
57807         maint.mk: news-date-check: use grep -E
57808         * top/maint.mk (today): Define a Make variable, not a...
57809         (news-date-check): ...shell variable.
57810         (news-date-regexp): Use the Make variable.
57811         Use grep's -E option.  Change the failing diagnostic to mention
57812         the variable, $(news-date-regexp).
57814 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
57816         maintainer-makefile: allow customization of NEWS entry format
57817         * top/maint.mk (news-date-regexp): New overridable variable.
57818         (news-date-check): Use it.
57820 2009-12-04  Eric Blake  <ebb9@byu.net>
57822         mgetgroups: add xgetgroups, and avoid ENOSYS failures
57823         * lib/mgetgroups.h (xgetgroups): New prototype.
57824         * lib/mgetgroups.c (xgetgroups): New wrapper.
57825         (mgetgroups): Handle ENOSYS.
57826         * modules/mgetgroups (Depends-on): Add realloc.
57827         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
57829         mgetgroups: avoid argument promotion issues with -1
57830         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
57831         for invalid gid_t.
57832         * tests/test-chown.h (getegid, test_chown): Likewise.
57833         * tests/test-lchown.h (getegid, test_lchown): Likewise.
57835 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
57837         exclude: Fix header file problems.
57838         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
57840 2009-12-01  Jim Meyering  <meyering@redhat.com>
57842         fts: fts_open: do not let an empty string cause immediate failure
57843         This is required in support of GNU rm, for which the command
57844         "rm A '' B" must process and remove both A and B, in spite of
57845         the empty string argument.
57846         * lib/fts.c (fts_open): Do not let the presence of an empty string
57847         cause fts_open to fail immediately.  Most fts-using tools must be
57848         able to process all arguments, in order, and can be expected to
57849         diagnose such arguments themselves.
57851 2009-11-30  Eric Blake  <ebb9@byu.net>
57853         utimens: fix compilation error
57854         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
57855         Declare variable at right scope.
57857 2009-11-29  Jim Meyering  <meyering@redhat.com>
57859         bootstrap: handle perl-5.11's changed --version output
57860         * build-aux/bootstrap (get_version): Handle perl separately,
57861         since perl-5.11's --version output is different.
57863 2009-11-28  Jim Meyering  <meyering@redhat.com>
57865         userspec: depend on the inttostr module, too
57866         * modules/userspec (Depends-on): Add inttostr.
57868         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
57869         * lib/userspec.c (parse_with_separator): Do not accept a user ID
57870         number of MAXUID when it evaluates to (uid_t) -1.
57871         Likewise for group ID.  Reported by Matt McCutchen in
57872         <http://savannah.gnu.org/bugs/?28113>
57874         userspec: reformat to use spaces, not TABs
57875         * lib/userspec.c: Expand TABs to spaces.
57876         Add Emacs' "indent-tabs-mode: nil" hint.
57878 2009-11-27  Eric Blake  <ebb9@byu.net>
57880         getopt-gnu: flush out another BSD bug
57881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
57882         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
57883         flush out BSD bug.
57884         * tests/test-getopt.h (test_getopt): End lists with NULL.
57885         * tests/test-getopt_long.h (test_getopt_long): Likewise.
57886         (test_getopt_long_posix): Enhance test.
57887         * modules/getopt-posix-tests (Depends-on): Add stdbool.
57888         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
57889         getopt-gnu.
57890         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57891         Likewise.
57893 2009-11-27  Simon Josefsson  <simon@josefsson.org>
57895         * modules/idpriv-droptemp-tests (Notice): Fix text.
57897 2009-11-27  Jim Meyering  <meyering@redhat.com>
57899         test-xalloc-die: avoid spurious failure due to libtool argv difference
57900         In a libtool-enabled project, this test would fail due to a difference
57901         in the emitted program name, e.g.,
57902         -test-xalloc-die: memory exhausted
57903         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
57904         Use program to avoid that.
57905         * modules/xalloc-die-tests (Depends-on): Add progname.
57906         * tests/test-xalloc-die.c: Include progname.h".
57907         (program_name): Remove decl.
57908         (main): Call set_program_name.
57909         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
57911 2009-11-26  Richard Jones  <rjones@redhat.com>
57913         w32sock: leave win32 error in place.
57914         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
57916 2009-11-26  Eric Blake  <ebb9@byu.net>
57918         init.sh: suggest to use skip_ and fail_ functions in comments
57919         * tests/init.sh: Add a sentence.
57921 2009-11-25  Bruno Haible  <bruno@clisp.org>
57923         init.sh: add documentation in comments
57924         * tests/init.sh: Add some developer and user documentation.
57926 2009-11-26  Jim Meyering  <meyering@redhat.com>
57928         init.sh: accommodate even those who specify bogus srcdir manually
57929         * tests/init.sh: Normally, srcdir is guaranteed by automake and
57930         configure-time tests to be sanitized, so that there is no need to
57931         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
57932         (with no double quotes) suffices.  However, since tests may be
57933         invoked manually, and since you may explicitly set srcdir to the
57934         name of a directory containing spaces, do quote its uses here.
57935         * tests/test-pread.sh: Likewise.
57936         Suggested by Bruno Haible.
57938         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
57939         * tests/test-pread.sh: Write no data into the pipe, because
57940         test-pread actually reads none.  This avoids a diagnostic,
57941         "bash: echo: write error: Broken pipe", that arises in the unusual
57942         event something is ignoring SIGPIPE, and might be interpreted
57943         as some sort of failure.  Reported by Bruno Haible.
57945 2009-11-25  Jim Meyering  <meyering@redhat.com>
57947         test-pread: cover failure with ESPIPE and EINVAL
57948         * tests/test-pread.c (main): Test for failure, too.
57949         * tests/test-pread.sh: Invoke with stdin on a pipe.
57950         Suggested by Eric Blake.
57952         pread: improvement and fix
57953         * modules/pread (Depends-on): Depend on lseek, for portability to
57954         e.g., mingw.  Suggested by Eric Blake.
57955         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
57957         unistd.in.h: correct declaration of pread
57958         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
57959         Reported by Richard W.M. Jones.
57961         test-pread.sh: distribute the test script
57962         * modules/pread-tests (Files): Include test-pread.sh.
57964         test-pread.sh: clean up
57965         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
57966         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
57967         That is unnecessary, since it's always ".".
57968         Suggestion from Eric Blake.
57970         test-pread.sh: make executable
57971         * tests/test-pread.sh: Set executable bit.
57972         Reported by Eric Blake.
57974         correct typo in test-pread.sh
57975         * tests/test-pread.sh: Add #! line.
57977         test pread
57978         * tests/test-pread.c: New file.
57979         * tests/test-pread.sh: Likewise.
57980         * modules/pread-tests: Likewise.
57982         pread: new module
57983         * modules/pread: New file.
57984         * lib/unistd.in.h (pread): Define/declare.
57985         * lib/pread.c (pread): New file.
57986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
57987         * modules/unistd (Makefile.am): Substitute witnesses.
57988         * doc/posix-functions/pread.texi (pread): Update.
57989         * MODULES.html.sh: Add pread.
57991 2009-11-25  Jim Meyering  <meyering@redhat.com>
57993         tests/init.sh: new file to be used via most *.sh tests
57994         * tests/init.sh: New file.
57996 2009-11-25  Eric Blake  <ebb9@byu.net>
57998         utimens: work around older Linux failure with symlinks
57999         * lib/utimens.c (lutimensat_works_really): New variable.
58000         (fdutimens, lutimens): Use it to manage kernels that support
58001         nanosecond times on files, but not on symlinks.
58002         Reported by Ondřej Vašík.
58004         utimes: fix configure grammar
58005         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
58007 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
58009         regex: Fix fastmap for multibyte character ranges.
58010         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
58011         characters when a multibyte character range is included.
58013 2009-11-22  Andy Wingo  <wingo@pobox.com>
58015         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
58016         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
58018 2009-11-24  Bruno Haible  <bruno@clisp.org>
58020         doc: Most *_l functions exist in MacOS X 10.5.
58021         * doc/posix-functions/duplocale.texi: Update platforms list.
58022         * doc/posix-functions/freelocale.texi: Likewise.
58023         * doc/posix-functions/newlocale.texi: Likewise.
58024         * doc/posix-functions/uselocale.texi: Likewise.
58025         * doc/posix-functions/isalnum_l.texi: Likewise.
58026         * doc/posix-functions/isalpha_l.texi: Likewise.
58027         * doc/posix-functions/isblank_l.texi: Likewise.
58028         * doc/posix-functions/iscntrl_l.texi: Likewise.
58029         * doc/posix-functions/isdigit_l.texi: Likewise.
58030         * doc/posix-functions/isgraph_l.texi: Likewise.
58031         * doc/posix-functions/islower_l.texi: Likewise.
58032         * doc/posix-functions/isprint_l.texi: Likewise.
58033         * doc/posix-functions/ispunct_l.texi: Likewise.
58034         * doc/posix-functions/isspace_l.texi: Likewise.
58035         * doc/posix-functions/isupper_l.texi: Likewise.
58036         * doc/posix-functions/iswalnum_l.texi: Likewise.
58037         * doc/posix-functions/iswalpha_l.texi: Likewise.
58038         * doc/posix-functions/iswblank_l.texi: Likewise.
58039         * doc/posix-functions/iswcntrl_l.texi: Likewise.
58040         * doc/posix-functions/iswctype_l.texi: Likewise.
58041         * doc/posix-functions/iswdigit_l.texi: Likewise.
58042         * doc/posix-functions/iswgraph_l.texi: Likewise.
58043         * doc/posix-functions/iswlower_l.texi: Likewise.
58044         * doc/posix-functions/iswprint_l.texi: Likewise.
58045         * doc/posix-functions/iswpunct_l.texi: Likewise.
58046         * doc/posix-functions/iswspace_l.texi: Likewise.
58047         * doc/posix-functions/iswupper_l.texi: Likewise.
58048         * doc/posix-functions/iswxdigit_l.texi: Likewise.
58049         * doc/posix-functions/isxdigit_l.texi: Likewise.
58050         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
58051         * doc/posix-functions/strcasecmp_l.texi: Likewise.
58052         * doc/posix-functions/strcoll_l.texi: Likewise.
58053         * doc/posix-functions/strfmon_l.texi: Likewise.
58054         * doc/posix-functions/strftime_l.texi: Likewise.
58055         * doc/posix-functions/strncasecmp_l.texi: Likewise.
58056         * doc/posix-functions/strxfrm_l.texi: Likewise.
58057         * doc/posix-functions/tolower_l.texi: Likewise.
58058         * doc/posix-functions/toupper_l.texi: Likewise.
58059         * doc/posix-functions/towctrans_l.texi: Likewise.
58060         * doc/posix-functions/towlower_l.texi: Likewise.
58061         * doc/posix-functions/towupper_l.texi: Likewise.
58062         * doc/posix-functions/wcscoll_l.texi: Likewise.
58063         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
58064         * doc/posix-functions/wctrans_l.texi: Likewise.
58065         * doc/posix-functions/wctype_l.texi: Likewise.
58066         * doc/glibc-functions/strptime_l.texi: Likewise.
58067         * doc/glibc-functions/strtod_l.texi: Likewise.
58068         * doc/glibc-functions/strtof_l.texi: Likewise.
58069         * doc/glibc-functions/strtol_l.texi: Likewise.
58070         * doc/glibc-functions/strtold_l.texi: Likewise.
58071         * doc/glibc-functions/strtoll_l.texi: Likewise.
58072         * doc/glibc-functions/strtoul_l.texi: Likewise.
58073         * doc/glibc-functions/strtoull_l.texi: Likewise.
58074         * doc/glibc-functions/wcsftime_l.texi: Likewise.
58075         * doc/glibc-functions/wcstod_l.texi: Likewise.
58076         * doc/glibc-functions/wcstof_l.texi: Likewise.
58077         * doc/glibc-functions/wcstol_l.texi: Likewise.
58078         * doc/glibc-functions/wcstold_l.texi: Likewise.
58079         * doc/glibc-functions/wcstoll_l.texi: Likewise.
58080         * doc/glibc-functions/wcstoul_l.texi: Likewise.
58081         * doc/glibc-functions/wcstoull_l.texi: Likewise.
58083 2009-11-24  Bruno Haible  <bruno@clisp.org>
58085         duplocale: Fix logic bug.
58086         * lib/duplocale.c: Don't include <langinfo.h>.
58087         (_NL_LOCALE_NAME): Remove macro.
58088         (rpl_duplocale): Use setlocale instead of nl_langinfo.
58089         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
58091 2009-11-23  Jim Meyering  <meyering@redhat.com>
58093         test-update-copyright: don't hard-code /usr/bin/perl
58094         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
58095         perl to print the current year.  Gilles Espinasse reported that
58096         the replaced use of perl was hard-coded as /usr/bin/perl.
58098 2009-11-23  Bruno Haible  <bruno@clisp.org>
58100         duplocale: Add support for glibc 2.3.x.
58101         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
58103 2009-11-22  Bruno Haible  <bruno@clisp.org>
58105         vasnprintf: Tiny optimization.
58106         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
58107         MacOS X.
58109 2009-11-22  Bruno Haible  <bruno@clisp.org>
58111         Tests for module 'duplocale'.
58112         * modules/duplocale-tests: New file.
58113         * tests/test-duplocale.c: New file.
58115         New module 'duplocale'.
58116         * m4/duplocale.m4: New file.
58117         * lib/locale.in.h (duplocale): New declaration.
58118         * lib/duplocale.c: New file.
58119         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
58120         gl_LOCALE_H_DEFAULTS): New macros.
58121         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
58122         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
58123         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
58124         REPLACE_DUPLOCALE.
58125         * modules/duplocale: New file.
58126         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
58128 2009-11-22  Bruno Haible  <bruno@clisp.org>
58130         * modules/locale-tests (configure.ac): Test for newlocale function.
58131         * tests/test-locale.c: When the system has extended locale functions,
58132         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
58134         locale: Make locale_t available when possible.
58135         * lib/locale.in.h: Include <xlocale.h> when it exists.
58136         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
58137         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
58138         * modules/locale (Depends-on): Add extensions.
58139         (Makefile.am): Also substitute HAVE_XLOCALE_H.
58140         * doc/posix-headers/locale.texi: Document the problem with locale_t.
58142 2009-11-22  Bruno Haible  <bruno@clisp.org>
58144         Add comments.
58145         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
58146         invocation.
58147         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58148         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58149         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58151 2009-11-22  Bruno Haible  <bruno@clisp.org>
58153         error: account for the possibility of freopen (stdout).
58154         * lib/error.c: Include <unistd.h>.
58155         (flush_stdout): New function, extracted from error and error_at_line.
58156         Determine stdout's fd dynamically.
58157         (error, error_at_line): Invoke flush_stdout.
58158         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
58159         * modules/error (Depends-on): Add unistd.
58161 2009-11-22  Bruno Haible  <bruno@clisp.org>
58163         diffseq: Add comment.
58164         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
58166 2009-11-22  Jim Meyering  <meyering@redhat.com>
58168         c-stack: avoid defining an unused static function
58169         * lib/c-stack.c (find_stack_direction): Do not define this function
58170         when it will not be used.
58172         diffseq: avoid spurious gcc warnings
58173         * lib/diffseq.h (IF_LINT2): Define.
58174         (compareseq): Use it to initialize two members of "part".
58175         This avoids two used-uninitialized warnings.
58177 2009-11-21  Jim Meyering  <meyering@redhat.com>
58179         c-stack: avoid "ignoring return value of `write'" warning
58180         * lib/c-stack.c: Include "ignore-value.h".
58181         (die): Explicitly ignore each write return value.
58182         * modules/c-stack (Depends-on): Add ignore-value.
58184 2009-11-21  Bruno Haible  <bruno@clisp.org>
58186         diffseq: reduce scope of variable 'best'.
58187         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
58188         variable, earlier used for two different purposes.
58190 2009-11-21  Jim Meyering  <meyering@redhat.com>
58192         diffseq: remove useless assignment to "best"
58193         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
58194         assignment.  At that point "best" is already guaranteed to be zero.
58196 2009-11-20  Eric Blake  <ebb9@byu.net>
58198         build: mention ftp redirector in release announcements
58199         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
58200         values that used to come from cfg.mk; mention FTP redirect URL.
58201         * build-aux/announce-gen: Mention the mirror list.
58202         Suggested by Karl Berry.
58204         nanosleep: improve port to mingw
58205         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
58206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
58207         LIB_NANOSLEEP, but only when needed.
58208         * modules/select (Link): Document LIBSOCKET.
58209         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
58210         enough.
58212         nanosleep: work around cygwin bug
58213         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
58214         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
58215         bug.
58216         (getnow): Delete, not needed.
58217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
58218         LIB_CLOCK_GETTIME.
58219         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
58220         clock-time, gettime.
58221         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
58222         bug.
58223         * modules/nanosleep-tests: New test.
58224         * tests/test-nanosleep.c: New file.
58226         sleep: work around cygwin bug
58227         * lib/sleep.c (rpl_sleep): Work around the bug.
58228         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
58229         (gl_PREREQ_SLEEP): Delete unused macro.
58230         * modules/sleep (Depends-on): Add verify.
58231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
58232         * modules/unistd (Makefile.am): Substitute witness.
58233         * lib/unistd.in.h (sleep): Update prototype.
58234         * doc/posix-functions/sleep.texi (sleep): Document the bug.
58235         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
58236         * modules/sleep-tests (Depends-on): Check for alarm.
58238 2009-11-20  Jim Meyering  <meyering@redhat.com>
58240         maint.mk: improve sc_prohibit_magic_number_exit
58241         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
58242         so it does not match uses like System.exit(1).
58243         Add comments showing how to correct all offenders.
58245 2009-11-19  Eric Blake  <ebb9@byu.net>
58247         xalloc-die-tests: add missing library
58248         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
58250         test-xvasprintf: silence compiler warnings
58251         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
58252         empty string from gcc.
58254 2009-11-19  Jim Meyering  <meyering@redhat.com>
58256         xfreopen: new module, from coreutils
58257         * modules/xfreopen: New module.
58258         * lib/xfreopen.c: New file.
58259         * lib/xfreopen.h: New file.
58260         * MODULES.html.sh (File stream based Input/Output"): Add it.
58262 2009-11-19  Eric Blake  <ebb9@byu.net>
58264         manywarnings: depend on warnings
58265         * modules/manywarnings (Depends-on): Add warnings.
58267         build: avoid compiler warnings
58268         * lib/select.c (rpl_select): Delete unused variable.
58269         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
58271 2009-11-18  Eric Blake  <ebb9@byu.net>
58273         tests: avoid false negative with --with-packager
58274         * tests/test-version-etc.sh: Discard packager information.
58275         * tests/test-argp-version-etc-1.sh: Likewise.
58276         Reported by Mike Frysinger.
58278         utimens: fix regression on Solaris
58279         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
58280         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
58281         can only change fd timestamps via futimesat.  Instead, use an
58282         additional witness macro to avoid BSD bug.
58283         Reported by Jim Meyering.
58285 2009-11-17  Eric Blake  <ebb9@byu.net>
58287         usleep: use it to simplify tests
58288         * modules/stat-time-tests (Depends-on): Add usleep.
58289         (configure.ac): Drop usleep check.
58290         * modules/chown-tests (Depends-on, configure.ac): Likewise.
58291         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
58292         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
58293         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
58294         * modules/openat-tests (Depends-on, configure.ac): Likewise.
58295         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
58296         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
58297         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
58298         Likewise.
58299         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
58300         * tests/test-lchown.h (nap): Likewise.
58301         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
58302         * tests/test-stat-time.c (nap): Likewise.
58303         * tests/test-utimens-common.h (nap): Update comments.
58305         usleep: new module
58306         * modules/usleep: New file.
58307         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
58308         * lib/usleep.c (usleep): Likewise.
58309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
58310         * modules/unistd (Makefile.am): Substitute witnesses.
58311         * lib/unistd.in.h (usleep): Add declaration.
58312         * doc/pastposix-functions/usleep.texi (usleep): Document this.
58313         * MODULES.html.sh (Date and time): Likewise.
58314         * modules/usleep-tests (Depends-on): New test.
58315         * tests/test-usleep.c: New file.
58317         chown: work around OpenBSD bug
58318         * lib/chown.c (rpl_chown): Work around the bug.
58319         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
58320         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
58321         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
58322         * modules/chown (Depends-on): Add stdbool.
58323         * modules/lchown (Depends-on): Likewise.
58324         * doc/posix-functions/chown.texi (chown): Document the bug.
58325         * doc/posix-functions/lchown.texi (lchown): Likewise.
58326         * tests/test-lchown.h (test_chown): Relax test.
58328         mkstemp: avoid conflict with C++ keyword template
58329         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
58330         * lib/mkostemp.c (mkostemp): Likewise.
58331         * lib/mkostemps.c (mkostemps): Likewise.
58332         * lib/mkstemp.c (mkstemp): Likewise.
58333         * lib/mkstemps.c (mkstemps): Likewise.
58335         xalloc-die-tests: optimize
58336         * tests/test-xalloc-die.sh: Reduce number of processes.
58338 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58340         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
58341         patch from ludo@gnu.org (Ludovic Courtès).
58343 2009-11-17  Jim Meyering  <meyering@redhat.com>
58345         version-etc: use proper license string
58346         * modules/version-etc (License): Use LGPL, not LGPLv3+.
58347         * modules/version-etc-fsf: Likewise.
58349 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58351         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
58352         printed to stdout.  Deal with EOL differences.
58354 2009-11-17  Eric Blake  <ebb9@byu.net>
58356         unsetenv: work around Solaris bug
58357         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
58358         * lib/unsetenv.c (rpl_unsetenv): Work around it.
58359         Reported by Jim Meyering.
58361         vasnprintf: avoid compiler warnings
58362         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
58363         variables.
58364         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
58366 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58368         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
58369         settings since xalloc-die is no longer the self test,
58370         xalloc-die.sh is.
58372 2009-11-17  Jim Meyering  <meyering@redhat.com>
58374         test-xalloc-die.sh: make the code agree with the commit log
58375         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
58376         at the end, just in case you happen to have a test-xalloc-die
58377         program in some other PATH directory.
58379         test-xalloc-die.sh: fix a portability bug
58380         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
58381         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
58382         Otherwise, argv[0] (as often seen in diagnostics) would be too
58383         system-dependent, sometimes with, and sometimes without the leading "./".
58385         version-etc-fsf: relax license to LGPLv3+
58386         * modules/version-etc-fsf (License): Relax license.
58388 2009-11-16  Eric Blake  <ebb9@byu.net>
58390         xalloc-die-tests: avoid printing null pointer
58391         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
58392         shell script.
58393         * tests/test-xalloc-die.c (program_name): Declare.
58394         * tests/test-xalloc-die.sh (tmpfiles): New file.
58396         setenv, unsetenv: work around various bugs
58397         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
58398         (setenv) [HAVE_SETENV]: Work around bugs.
58399         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
58400         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
58401         for bugs.
58402         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
58403         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
58404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
58405         * modules/stdlib (Makefile.am): Update substitutions.
58406         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
58407         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
58408         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58409         * modules/setenv-tests: New test.
58410         * modules/unsetenv-tests: Likewise.
58411         * tests/test-setenv.c: New file.
58412         * tests/test-unsetenv.c: Likewise.
58414 2009-11-16  Jim Meyering  <meyering@redhat.com>
58416         version-etc: relax license to LGPLv3+
58417         * modules/version-etc (License): Relax license.
58419         better AC_REQUIRE expanded-before-required-warning avoidance
58420         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
58421         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
58422         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
58423         which is no longer needed.
58425 2009-11-16  Eric Blake  <ebb9@byu.net>
58427         test-freading: clean up temporary file
58428         * tests/test-freading.c (main): Remove file on success, and use
58429         ASSERT more liberally.
58430         Reported by Jim Meyering.
58432 2009-11-16  Jim Meyering  <meyering@redhat.com>
58434         avoid new AC_REQUIRE expanded-before-required warnings
58435         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
58436         merely using it.
58437         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
58438         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
58440 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58442         * tests/test-xalloc-die.c: New file.
58443         * modules/xalloc-die-tests: New file.
58444         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
58445         XFAIL_TESTS so it can be appended by modules.
58447 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58449         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
58450         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
58452 2009-11-14  Eric Blake  <ebb9@byu.net>
58454         fnmatch: avoid compiler warning
58455         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
58456         to silence compiler warning about mismatch signedness in ?:.
58457         Reported by Robert Millan.
58459         intprops: add double-inclusion guard
58460         * lib/intprops.h: Allow idempotent includes.
58461         Suggested by Bruce Korb.
58463         openat: detect Solaris fchownat bug
58464         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
58465         penalizing glibc chownat when only lchownat is broken.
58466         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
58467         trailing slash bugs.
58468         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
58469         * modules/openat-tests (Files): Include more files.
58470         (Depends-on): Add mgetgroups, sleep, stat-time.
58471         (configure.ac): Add additional checks.
58472         (Makefile.am): Build new test.
58473         * tests/test-fchownat.c: New file.
58475         lchown: detect Solaris and FreeBSD bug
58476         * lib/lchown.c (rpl_lchown): Work around bug.
58477         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
58478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58479         * modules/unistd (Makefile.am): Populate it.
58480         * lib/unistd.in.h (lchown): Update declaration.
58481         * doc/posix-functions/lchown.texi (lchown): Document the bug.
58482         * modules/lchown-tests: New file.
58483         * tests/test-lchown.h (test_lchown): Likewise.
58484         * tests/test-lchown.c (main): Likewise.
58486         chown: detect Solaris and FreeBSD bug
58487         * lib/chown.c (rpl_chown): Work around bug.
58488         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
58489         (gl_PREREQ_CHOWN): Delete.
58490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58491         * modules/unistd (Makefile.am): Populate it.
58492         * lib/unistd.in.h (chown): Update declaration.
58493         * lib/lchown.c (chown): Update client.
58494         * modules/lchown (Depends-on): Add lstat.
58495         * doc/posix-functions/chown.texi (chown): Document the bug.
58496         * doc/posix-functions/getgroups.texi (getgroups): Document
58497         getgroups pitfall.
58498         * modules/chown-tests: New file.
58499         * tests/test-chown.h (test_chown): Likewise.
58500         * tests/test-chown.c (main): Likewise.
58502 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
58504         gnulib-tool: correctly detect absence of m4 directories
58505         * gnulib-tool: Avoid extra newline on data passed to wc -l.
58507 2009-11-14  Jim Meyering  <meyering@redhat.com>
58509         maint.mk: Prohibit inclusion of "xalloc.h" without use.
58510         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58512 2009-11-14  John W. Eaton  <jwe@gnu.org>
58514         strftime.h: wrap function declaration in extern "C" block
58515         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
58517 2009-11-13  Eric Blake  <ebb9@byu.net>
58519         getgroups: avoid compiler warning
58520         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
58522         getgroups: work around FreeBSD bug
58523         * lib/getgroups.c (rpl_getgroups): Work around the bug.
58524         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
58525         * doc/posix-functions/getgroups.texi (getgroups): Document it.
58526         * tests/test-getgroups.c (main): Fix buffer overrun.
58528         getgroups: avoid compilation failure
58529         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
58530         * modules/getgroups (Depends-on): Add stdint.
58532 2009-11-13  Jim Meyering  <meyering@redhat.com>
58534         test-getgroups: avoid compilation failure
58535         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
58537 2009-11-13  Eric Blake  <ebb9@byu.net>
58539         mgetgroups: new module, taken from coreutils
58540         * modules/mgetgroups: New file.
58541         * lib/mgetgroups.h: Likewise.
58542         * lib/mgetgroups.c (mgetgroups): Likewise.
58543         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
58544         * MODULES.html.sh (Users and groups): Mention it.
58546         getgroups: don't expose GETGROUPS_T to user
58547         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
58548         an element at a time if GETGROUPS_T is wrong size.
58549         * lib/getugroups.h (getugroups): Change signature.
58550         * lib/unistd.in.h (getgroups): Likewise.
58551         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
58552         signature needs fixing.
58553         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
58554         AC_TYPE_GETGROUPS.
58555         * modules/group-member (Depends-on): Add getgroups.
58556         * lib/group-member.c (group_info, get_group_info): Use gid_t.
58557         (group_member): Rely on getgroups replacement.
58558         * lib/getugroups.c (getugroups): Use gid_t.
58559         * tests/test-getgroups.c (main): Likewise.
58560         * NEWS: Mention the signature change.
58561         * doc/posix-functions/getgroups.texi (getgroups): Mention the
58562         problem with signature.
58563         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
58564         GETGROUPS_T is still useful for setgroups.
58566         getgroups, getugroups: provide stubs for mingw
58567         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
58568         * lib/getugroups.c (getugroups): Likewise.
58569         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
58570         function.  Modernize replacement scheme.
58571         (gl_PREREQ_GETGROUPS): Delete.
58572         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
58573         * modules/getgroups (configure.ac): Declare witness.
58574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
58575         * modules/unistd (Depends-on): Substitute witness.
58576         * lib/unistd.in.h (getgroups): Declare replacement.
58578         getgroups: avoid calling exit
58579         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
58580         drop xalloc.
58581         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
58582         dependencies.
58583         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
58584         exiting, in the rare case of malloc failure.
58586         getgroups: fix logic error
58587         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
58588         has more than 20 groups.
58589         * modules/getgroups-tests: New test.
58590         * tests/test-getgroups.c: New file.
58592 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58594         * tests/test-base64.c: Improve.
58596 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58598         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
58599         Blake <ebb9@byu.net>.
58601 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58603         * tests/test-xvasprintf.c: Add %s%s related checks.
58605 2009-11-12  Eric Blake  <ebb9@byu.net>
58607         version-etc: match standards.texi style
58608         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
58609         and use <> only for URLs.
58611 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
58613         fts: do not fail on a submount during traversal
58614         * lib/fts.c (fts_build): Read the stat info again after opening
58615         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
58616         Original report at http://bugzilla.redhat.com/501848.
58618 2009-11-12  Jim Meyering  <meyering@redhat.com>
58620         bootstrap: sync from coreutils
58621         * build-aux/bootstrap (bootstrap_epilogue): New function.
58622         Use git_modules_config in one more place.  This make bootstrap's
58623         --gnulib-srcdir option more useful for testing.
58625         bootstrap: generalize autoheader check
58626         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
58627         AC_CONFIG_HEADERS.
58629 2009-11-11  Eric Blake  <ebb9@byu.net>
58631         mkfifoat: use new modules for Solaris and BSD bugs
58632         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
58633         * lib/mkfifoat.c (mknodat): Split...
58634         * lib/mknodat.c (mknodat): ...into new file.
58635         * modules/mkfifoat (Files): Ship new file.
58636         (Depends-on): Add mkfifo, mknod.
58637         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
58638         (Depends-on): Add symlink.
58639         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
58640         redundant with test_mkfifo.h.
58641         (do_mkfifoat, do_mknodat): New helpers.
58643         mknod: new module
58644         * modules/mknod: New file.
58645         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
58646         * lib/mknod.c (mknod): Likewise.
58647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58648         defaults.
58649         * modules/sys_stat (Makefile.am): Substitute them.
58650         * lib/sys_stat.in.h (mknod): Declare replacement.
58651         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58652         Document it.
58653         * doc/posix-functions/mknod.texi (mknod): Likewise.
58654         * modules/mknod-tests: New test.
58655         * tests/test-mknod.c: Likewise.
58657         mkfifo: new module
58658         * modules/mkfifo: New file.
58659         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58660         * lib/mkfifo.c (mkfifo): Likewise.
58661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58662         defaults.
58663         * modules/sys_stat (Makefile.am): Substitute them.
58664         * lib/sys_stat.in.h (mkfifo): Declare replacement.
58665         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58666         Document it.
58667         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
58668         * modules/mkfifo-tests: New test.
58669         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
58670         from test-mkfifoat.c.
58671         * tests/test-mkfifo.c: New file.
58673         readlink: detect FreeBSD bug
58674         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
58675         slash on symlink.
58676         * doc/posix-functions/readlink.texi (readlink): Document the bug.
58677         * tests/test-readlink.h (test_readlink): Enhance test.
58679         symlink: detect FreeBSD bug
58680         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
58681         slash on symlink.
58682         * doc/posix-functions/symlink.texi (symlink): Document the bug.
58683         * tests/test-symlink.h (test_symlink): Enhance test.
58685 2009-11-10  Eric Blake  <ebb9@byu.net>
58687         link: detect FreeBSD bug
58688         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
58689         symlink.
58690         * doc/posix-functions/link.texi (link): Document the bug.
58691         * tests/test-link.h (test_link): Enhance test.
58692         * tests/test-linkat.c (main): Update caller.
58694         unlink, remove: detect FreeBSD bug
58695         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
58696         slash on symlink.
58697         * doc/posix-functions/unlink.texi (unlink): Document the bug.
58698         * doc/posix-functions/remove.texi (remove): Likewise.
58699         * tests/test-unlink.h (test_unlink): Enhance test.
58700         * tests/test-remove.c (main): Likewise.
58702 2009-11-09  Eric Blake  <ebb9@byu.net>
58704         rename: detect FreeBSD bug
58705         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
58706         slash on symlink.
58707         * modules/renameat-tests (Depends-on): Add filenamecat.
58708         * tests/test-rename.h (test_rename): Allow one more errno.
58709         * tests/test-renameat.c (main): Likewise.
58710         * doc/posix-functions/rename.texi (rename): Document the bug.
58712         open: detect FreeBSD bug
58713         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
58714         symlink.
58715         * doc/posix-functions/open.texi (open): Document the bug.
58716         * doc/posix-functions/utimes.texi (utimes): Likewise.
58717         * tests/test-open.h (test_open): Add parameters, and test symlink
58718         handling.
58719         * tests/test-open.c (main): Adjust caller.
58720         * tests/test-fcntl-safer.c (main): Likewise.
58721         * modules/open-tests (Depends-on): Add stdbool, symlink.
58722         * modules/fcntl-safer-tests (Depends-on): Likewise.
58723         * tests/test-openat.c (main): Add test-open tests.
58725         stat: detect FreeBSD bug
58726         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
58727         symlink.
58728         * doc/posix-functions/stat.texi (stat): Document the bug.
58729         * tests/test-stat.h (test_stat_func): Add argument.
58730         * tests/test-stat.c (main): Adjust caller.
58731         * tests/test-fstatat.c (main): Likewise.
58732         * modules/stat-tests (Depends-on): Add stdbool, symlink.
58733         Reported by Jim Meyering.
58735 2009-11-09  James Youngman  <jay@gnu.org>
58737         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
58738         * lib/strftime.c: Correct placement of #include "ignore-value.h".
58740 2009-11-08  Jim Meyering  <meyering@redhat.com>
58742         utimens: remove invalid futimesat call
58743         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
58744         It used the file descriptor of the target file as the DIR_FD
58745         parameter and NULL as the file name.  That caused failure with
58746         errno == EFAULT on FreeBSD-8.0-rc2
58748 2009-11-07  Eric Blake  <ebb9@byu.net>
58750         fflush, freadseek: use fseeko, not fseek
58751         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
58752         (clear_ungetc_buffer): Avoid potential problems on large files.
58753         * lib/freadseek.c (freadseek): Likewise.
58754         * modules/freadseek (Depends-on): Add fseeko.
58755         * modules/fseek (configure.ac): Set a witness.
58756         * tests/test-fflush.c (main): Use fseeko.
58757         * tests/test-fpurge.c (fseek): Disable link warning.
58758         * tests/test-freadable.c (fseek): Likewise.
58759         * tests/test-freading.c (fseek): Likewise.
58760         * tests/test-fseeko.c (fseek): Likewise.
58761         * tests/test-ftell.c (fseek): Likewise.
58762         * tests/test-ftello.c (fseek): Likewise.
58763         * tests/test-fwritable.c (fseek): Likewise.
58764         * tests/test-fwriting.c (fseek): Likewise.
58766 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58768         * modules/memchr (Depends-on): Drop getpagesize dependency.
58770 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58772         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
58773         Reported by Ludovic Courtès.
58774         * build-aux/pmccabe2html: Improve example usage.
58775         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
58777 2009-11-06  Jim Meyering  <meyering@redhat.com>
58779         do-release-commit-and-tag: New module.
58780         Automate the release-commit and tag process.
58781         * build-aux/do-release-commit-and-tag: New script, from coreutils.
58782         * modules/do-release-commit-and-tag: New file.
58783         * MODULES.html.sh (Support for maintaining and releasing): Add it.
58785 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58787         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
58788         because test-select.c uses inet_pton.
58790 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58792         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
58793         GETADDRINFO_LIB.  Bump serial number.
58794         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
58795         Suggested by Eric Blake <ebb9@byu.net>.
58797 2009-11-05  Eric Blake  <ebb9@byu.net>
58799         strtod: detect darwin bug
58800         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
58801         Reported by Leo Davis.
58803         freopen-safer: new module
58804         * modules/freopen-safer: New module.
58805         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
58806         * lib/freopen-safer.c (freopen_safer): New file.
58807         * lib/stdio-safer.h (freopen_safer): New declaration.
58808         * lib/stdio--.h (freopen): New override.
58809         * MODULES.html.sh (File stream based Input/Output): Mention it.
58810         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
58811         freopen-safer module.
58812         * doc/posix-functions/stderr.texi (stderr): Likewise.
58813         * doc/posix-functions/stdin.texi (stdin): Likewise.
58814         * doc/posix-functions/stdout.texi (stdout): Likewise.
58815         * modules/freopen-safer-tests: New test.
58816         * tests/test-reopen-safer.c: New file.
58818 2009-11-05  Jim Meyering  <meyering@redhat.com>
58820         maint.mk: Prohibit inclusion of "close-stream.h" without use.
58821         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58823 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58825         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
58827 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58829         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
58831 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58833         Fix link error.
58834         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58835         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58837 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58839         * tests/test-func.c: Also test value of __func__.
58841 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58843         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
58844         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
58846 2009-11-05  Bruno Haible  <bruno@clisp.org>
58848         Fix link error.
58849         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58850         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58851         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
58853 2009-11-05  Bruno Haible  <bruno@clisp.org>
58855         Tests for module 'inet_pton'.
58856         * modules/inet_pton-tests: New file.
58857         * tests/test-inet_pton.c: New file.
58859 2009-11-05  Bruno Haible  <bruno@clisp.org>
58861         Tests for module 'inet_ntop'.
58862         * modules/inet_ntop-tests: New file.
58863         * tests/test-inet_ntop.c: New file.
58865 2009-11-04  Eric Blake  <ebb9@byu.net>
58867         stdlib-safer: wrap all mkstemp variants
58868         * modules/mkostemp (configure.ac): Set witness.
58869         * modules/mkostemps (configure.ac): Likewise.
58870         * modules/mkstemps (configure.ac): Likewise.
58871         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
58872         (mkstemps_safer): Wrap more functions.
58873         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
58874         wrapping.
58875         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
58876         (mkstemps_safer): Implement the wrappers.
58878         mkstemps, mkostemps: new modules
58879         * modules/mkostemps: New module.
58880         * modules/mkstemps: Likewise.
58881         * lib/mkostemps.c (mkostemps): New file.
58882         * lib/mkstemps.c (mkstemps): Likewise.
58883         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
58884         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
58885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
58886         * modules/stdlib (Makefile.am): Substitute them.
58887         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
58888         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
58889         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
58890         * doc/gnulib.texi (Glibc stdlib.h): Include them.
58891         * MODULES.html.sh (File system functions): Mention them.
58893         tempname: resync from glibc
58894         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
58895         same values for __GT_FILE as glibc.  Abort even when assertions
58896         are disabled.
58897         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
58898         match its value otherwise.  Allow idempotent inclusion.
58899         * lib/mkdtemp.c (mkdtemp): Adjust caller.
58900         * lib/mkostemp.c (mkostemp): Likewise.
58901         * lib/mkstemp.c (mkstemp): Likewise.
58902         * lib/tmpfile.c (tmpfile): Likewise.
58903         * NEWS: Document this.
58905         utimens: fix use of futimens on older Linux
58906         * lib/utimens.c (fdutimens): Use updated, rather than original,
58907         timespec to avoid bug in older Linux kernel.
58908         Reported by Simon Josefsson.
58910 2009-11-04  Bruno Haible  <bruno@clisp.org>
58912         Make num_processors more flexible and consistent.
58913         * lib/nproc.h (enum nproc_query): New type.
58914         (num_processors): Add a 'query' argument.
58915         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
58916         (num_processors): Add a 'query' argument. Test the value of the
58917         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
58918         mingw, count the number of CPUs available for the current process.
58919         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
58920         Check for sched_getaffinity and sched_getaffinity_np.
58921         * modules/nproc (Depends-on): Add c-ctype, extensions.
58922         * NEWS: Mention the change.
58924 2009-11-03  Bruno Haible  <bruno@clisp.org>
58926         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
58928 2009-11-03  Jim Meyering  <meyering@redhat.com>
58930         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
58931         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
58932         if it is defined.
58934 2009-11-02  Eric Blake  <ebb9@byu.net>
58936         mktime, timegm: share common declaration
58937         * lib/mktime-internal.h: New file.
58938         * lib/mktime.c: Use it rather than open-coding a declaration.
58939         * lib/timegm.c: Likewise.
58940         * modules/mktime (Files): Ship it.
58941         * modules/timegm (Files): Likewise.
58942         Suggested by Bruno Haible.
58944         test-update-copyright: update test to match script changes
58945         * tests/test-update-copyright.sh: Avoid hard-coding perl
58946         location.  Don't update *.bak created by earlier runs.
58948 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58949             Simon Josefsson  <simon@josefsson.org>
58950             Bruno Haible  <bruno@clisp.org>
58952         Fix link error on Solaris 8.
58953         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
58954         also in libnsl. Define also INET_PTON_LIB.
58955         * modules/inet_pton (Link): New section.
58957 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58958             Bruno Haible  <bruno@clisp.org>
58960         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
58961         * modules/inet_ntop (Link): New section.
58962         Reported by Boyan Kasarov <bkasarov@gmail.com>.
58964 2009-11-02  Eric Blake  <ebb9@byu.net>
58966         maint: avoid compiler warnings in m4 macros
58967         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
58968         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
58970 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58972         * m4/pmccabe2html.m4: Remove file.
58973         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
58974         function.  Change maintainer.
58975         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
58976         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
58977         Courtès).
58979 2009-10-31  Eric Blake  <ebb9@byu.net>
58981         fseeko: fix m4 regression
58982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
58983         regression from 2009-10-27.
58984         Reported by Ralf Wildenhues.
58986 2009-10-31  Jim Meyering  <meyering@redhat.com>
58988         inttostr: aesthetics and improved (compile-time) safety
58989         Define inttype_is_signed rather than inttype_is_unsigned,
58990         since the sole use is via "#if inttype_is_signed".
58991         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
58992         inttype_is_unsigned.
58993         * lib/offtostr.c (inttype_is_signed): Likewise.
58994         * lib/uinttostr.c (inttype_is_signed): Likewise.
58995         * lib/umaxtostr.c (inttype_is_signed): Likewise.
58996         * lib/inttostr.c (inttostr): Use verify to cross-check the
58997         inttype_is_signed value and the signedness of the actual type.
58998         * modules/inttostr (Depends-on): Add verify.
59000 2009-10-30  Eric Blake  <ebb9@byu.net>
59002         build: avoid compiler warnings
59003         * lib/fchmodat.c (lchmod): Mark unused variables.
59004         * lib/getopt.c (_getopt_initialize): Likewise.
59005         * lib/mktime.c (__mktime_internal): Provide prototype.
59006         * lib/inttostr.c (inttostr): Avoid compiler warning even with
59007         older gcc that do not understand #pragma GCC diagnostic.
59008         * lib/uinttostr.c (inttype_is_unsigned): Define.
59009         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
59011 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
59013         stat: fix compilation on AIX
59014         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
59015         only see struct stat64.
59017 2009-10-30  Eric Blake  <ebb9@byu.net>
59019         exclude: make more robust
59020         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
59021         rather than masking a coding bug.
59022         Suggested by Bruno Haible.
59024 2009-10-30  Jim Meyering  <meyering@redhat.com>
59026         perl scripts: remove #!/usr/bin/perl in favor of more portable...
59027         Rather than putting #!/usr/bin/perl on the first line,
59028         start with a variant of what's recommended by "man perlrun" that
59029         invokes the first "perl" program from your shell's search path.
59030         * build-aux/gitlog-to-changelog: Replace #!... as above.
59031         Add a "Local Variables" perl mode setting.
59032         Prompted by a patch from Ludovic Courtès.
59033         Improved by Eric Blake.
59034         * build-aux/useless-if-before-free: Likewise.
59035         * build-aux/announce-gen: Likewise.
59036         * build-aux/update-copyright: Likewise.
59038 2009-10-29  Eric Blake  <ebb9@byu.net>
59040         filenamecat-lgpl: adjust clients
59041         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
59042         filenamecat.
59043         * modules/renameat (Depends-on): Likewise.
59045         filenamecat: split into filenamecat-lgpl
59046         * modules/filenamecat-lgpl: New module.
59047         * modules/filenamecat (Files): Move library-safe files into
59048         filenamecat-lgpl.
59049         (Depends-on): Add filenamecat-lgpl.
59050         (configure.ac): Declare witness.
59051         * lib/filenamecat.h (file_name_concat): Only declare when using
59052         GPL module.
59053         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
59054         Move...
59055         * lib/filenamecat-lgpl.c: ...into new file.
59056         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
59057         (gl_FILE_NAME_CONCAT): Use it.
59058         * MODULES.html.sh (File system functions): Mention new module.
59060         argp: avoid memory leak
59061         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
59062         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
59063         base_name, since the latter malloc()s and can call exit().
59064         Leak introduced 2006-07-03.
59066         dirname-lgpl: adjust clients that don't need full dirname
59067         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
59068         * modules/filenamecat (Depends-on): Likewise.
59069         * modules/linkat (Depends-on): Likewise.
59070         * modules/mkancesdirs (Depends-on): Likewise.
59071         * modules/mkdir (Depends-on): Likewise.
59072         * modules/openat (Depends-on): Likewise.
59073         * modules/savewd (Depends-on): Likewise.
59074         * modules/rename (Depends-on): Likewise.
59075         (License): Relax license.
59076         * modules/mkdir-tests (Depends-on): Drop progname.
59077         (Makefile.am): Delete unneeded LDADD.
59078         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
59080         dirname: split into dirname-lgpl
59081         * modules/dirname-lgpl: New module.
59082         * modules/dirname (Files): Move library-safe files into
59083         dirname-lgpl.
59084         (Depends-on): Add dirname-lgpl.
59085         (configure.ac): Declare witness.
59086         * modules/double-slash-root (License): Relax license.
59087         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
59088         module.
59089         * lib/dirname.c (dir_len, mdir_name): Move...
59090         * lib/dirname-lgpl.c: ...into new file.
59091         * lib/basename.c (last_component, base_len): Move...
59092         * lib/basename-lgpl.c: ...into new file.
59093         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
59094         (gl_DIRNAME): Use it.
59095         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
59096         Mention new module.
59097         * modules/dirname-tests (Depends-on): Add progname.
59098         * tests/test-dirname.c (program_name): Delete.
59100         mkdir: make safe for libraries
59101         * modules/mkdir (Depends-on): Drop xalloc.
59102         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
59103         exit.
59105         tests: avoid some compiler warnings
59106         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
59107         literals.
59108         * tests/test-memchr.c (main): Avoid type mismatch.
59109         * tests/test-arpa_inet.c (main): Avoid unused parameters.
59110         * tests/test-base64.c (main): Likewise.
59111         * tests/test-getdelim.c (main): Likewise.
59112         * tests/test-gethostname.c (main): Likewise.
59113         * tests/test-getline.c (main): Likewise.
59114         * tests/test-netinet_in.c (main): Likewise.
59115         * tests/test-select.c (open_server_socket, main): Likewise.
59116         * tests/test-select-stdin.c (main): Likewise.
59117         * tests/test-sockets.c (main): Likewise.
59118         * tests/test-strsignal.c (main): Likewise.
59119         * tests/test-sys_select.c (main): Likewise.
59120         * tests/test-sys_socket.c (main): Likewise.
59121         * tests/test-u64.c (main): Likewise.
59122         * tests/test-xfprintf-posix.c (main): Likewise.
59123         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
59125         sockets: avoid compiler warning
59126         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
59128         maint: detect usage(1) and other suspicious exits
59129         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
59131 2009-10-29  Jim Meyering  <meyering@redhat.com>
59133         timespec: long-to-int truncation could make timespec_cmp malfunction
59134         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
59135         a multiple of 2^32 nanoseconds as no difference.
59137 2009-10-28  Jim Meyering  <meyering@redhat.com>
59139         fprintftime: wrap macro code argument in "do {...} while(0)"
59140         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
59141         cpy macro must be a statement that can be followed by a semicolon.
59142         Now that the else clause contains a comment and is hence longer
59143         than one line, I require curly braces.  That in turn requires
59144         that we wrap this code block in the standard do...while(0).
59146         fprintftime: remove stray semicolon from previous change
59147         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
59149         fprintftime: avoid a warning about ignored fwrite return value
59150         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
59151         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
59152         that is unsafe.
59153         * modules/fprintftime (Depends-on): Add ignore-value.
59155         exclude: avoid an unwarranted warning
59156         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
59158 2009-10-27  Eric Blake  <ebb9@byu.net>
59160         fseek: avoid compilation failure when fflush is replaced
59161         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
59162         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
59163         module is in use.
59164         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
59165         module is not in use; since REPLACE_FSEEK worked otherwise.
59166         (GNULIB_FTELLO): Likewise for ftell.
59167         Reported by Ian Beckwith and others.
59169 2009-10-27  Bruno Haible  <bruno@clisp.org>
59171         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
59172         Reported by Jim Meyering.
59174 2009-10-27  Jim Meyering  <jim@meyering.net>
59175             Bruno Haible  <bruno@clisp.org>
59177         Avoid warning despite dropping the return value of fwrite.
59178         * lib/unicodeio.c: Include ignore-value.h.
59179         (fwrite_success_callback): Explicitly ignore fwrite's return value.
59180         * modules/unicodeio (Depends-on): Add ignore-value.
59182 2009-10-26  Eric Blake  <ebb9@byu.net>
59184         areadlinkat: fix fallback path
59185         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
59186         pointer and zero.
59188 2009-10-22  Pádraig Brady  <P@draigBrady.com>
59190         Use a better IO block size for modern systems
59191         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
59192         * lib/md2.c: Likewise.
59193         * lib/md4.c: Likewise.
59194         * lib/md5.c: Likewise.
59195         * lib/sha1.c: Likewise.
59196         * lib/sha256.c: Likewise.
59197         * lib/sha512.c: Likewise.
59199 2009-10-22  Eric Blake  <ebb9@byu.net>
59201         tests: avoid several compiler warnings
59202         * tests/test-getcwd.c (main): Avoid buffer underflow.
59203         * tests/test-getdate.c (main): String literals are not safe with
59204         putenv, so use setenv.  Declare unused argument.
59205         * modules/getdate-tests (Depends-on): Add setenv.
59206         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
59207         problems with string literals in char *.
59208         * tests/test-hash.c (main): Avoid shadowing declaration.
59209         (insert_new): Treat string literals as char const *.
59210         * tests/test-getopt.h (test_getopt): Likewise.
59211         (getopt_loop): Alter types to minimize casting elsewhere.
59212         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
59213         (test_getopt_long_posix): Likewise.
59214         (do_getopt_long): Add wrapper to minimize casting.
59215         * tests/test-atexit.c (clear_temp_file): Use void.
59216         * tests/test-areadlink-with-size.c (main): Declare unused
59217         arguments.
59218         * tests/test-areadlink.c (main): Likewise.
59219         * tests/test-areadlinkat-with-size.c (main): Likewise.
59220         * tests/test-areadlinkat.c (main): Likewise.
59221         * tests/test-canonicalize-lgpl.c (main): Likewise.
59222         * tests/test-canonicalize.c (main): Likewise.
59223         * tests/test-dirent-safer.c (main): Likewise.
59224         * tests/test-dirname.c (main): Likewise.
59225         * tests/test-dup2.c (main): Likewise.
59226         * tests/test-fchdir.c (main): Likewise.
59227         * tests/test-fcntl-h.c (main): Likewise.
59228         * tests/test-fcntl-safer.c (main): Likewise.
59229         * tests/test-fdopendir.c (main): Likewise.
59230         * tests/test-fdutimensat.c (main): Likewise.
59231         * tests/test-fflush.c (main): Likewise.
59232         * tests/test-filenamecat.c (main): Likewise.
59233         * tests/test-filevercmp.c (main): Likewise.
59234         * tests/test-fopen-safer.c (main): Likewise.
59235         * tests/test-fopen.c (main): Likewise.
59236         * tests/test-fpending.c (main): Likewise.
59237         * tests/test-fpurge.c (main): Likewise.
59238         * tests/test-freading.c (main): Likewise.
59239         * tests/test-fstatat.c (main): Likewise.
59240         * tests/test-fsync.c (main): Likewise.
59241         * tests/test-futimens.c (main): Likewise.
59242         * tests/test-getndelim2.c (main): Likewise.
59243         * tests/test-gettimeofday.c (main): Likewise.
59244         * tests/test-getopt.c (main): Likewise.
59245         * tests/test-i-ring.c (main): Likewise.
59246         * tests/test-inttypes.c (main): Likewise.
59247         * tests/test-link.c (main): Likewise.
59248         * tests/test-lstat.c (main): Likewise.
59249         * tests/test-math.c (main): Likewise.
59250         * tests/test-md5.c (main): Likewise.
59251         * tests/test-memchr2.c (main): Likewise.
59252         * tests/test-memrchr.c (main): Likewise.
59253         * tests/test-mkdir.c (main): Likewise.
59254         * tests/test-mkdirat.c (main): Likewise.
59255         * tests/test-mkfifoat.c (main): Likewise.
59256         * tests/test-open.c (main): Likewise.
59257         * tests/test-openat-safer.c (main): Likewise.
59258         * tests/test-openat.c (main): Likewise.
59259         * tests/test-quotearg.c (main): Likewise.
59260         * tests/test-rawmemchr.c (main): Likewise.
59261         * tests/test-readlink.c (main): Likewise.
59262         * tests/test-remove.c (main): Likewise.
59263         * tests/test-rename.c (main): Likewise.
59264         * tests/test-renameat.c (main): Likewise.
59265         * tests/test-rmdir.c (main): Likewise.
59266         * tests/test-sha1.c (main): Likewise.
59267         * tests/test-signal.c (main): Likewise.
59268         * tests/test-sigaction.c (main): Likewise.
59269         * tests/test-stat.c (main): Likewise.
59270         * tests/test-stat-time.c (main): Likewise.
59271         * tests/test-stddef.c (main): Likewise.
59272         * tests/test-stdint.c (main): Likewise.
59273         * tests/test-stdio.c (main): Likewise.
59274         * tests/test-stdlib.c (main): Likewise.
59275         * tests/test-strchrnul.c (main): Likewise.
59276         * tests/test-strerror.c (main): Likewise.
59277         * tests/test-string.c (main): Likewise.
59278         * tests/test-strtod.c (main): Likewise.
59279         * tests/test-strverscmp.c (main): Likewise.
59280         * tests/test-symlink.c (main): Likewise.
59281         * tests/test-symlinkat.c (main): Likewise.
59282         * tests/test-sys_stat.c (main): Likewise.
59283         * tests/test-sys_time.c (main): Likewise.
59284         * tests/test-time.c (main): Likewise.
59285         * tests/test-unistd.c (main): Likewise.
59286         * tests/test-unlink.c (main): Likewise.
59287         * tests/test-unlinkat.c (main): Likewise.
59288         * tests/test-utimens.c (main): Likewise.
59289         * tests/test-utimensat.c (main): Likewise.
59290         * tests/test-version-etc.c (main): Likewise.
59291         * tests/test-wchar.c (main): Likewise.
59292         * tests/test-wctype.c (main): Likewise.
59293         * tests/test-xprintf-posix.c (main): Likewise.
59294         * tests/test-posixtm.c (main): Likewise.
59295         (STREQ): Delete unused macro.
59296         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
59297         shadowed variables.
59298         * tests/test-memchr.c (main): Likewise.
59300 2009-10-21  Eric Blake  <ebb9@byu.net>
59302         areadlinkat: avoid failure on older glibc
59303         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
59304         rather than mis-comparing 0 against FUNC_RESULT of char*.
59306 2009-10-21  Bruno Haible  <bruno@clisp.org>
59308         * modules/stpncpy (License): Relicense under LGPLv2+.
59309         Reported by David Lutterkort <lutter@redhat.com>.
59311 2009-10-20  Eric Blake  <ebb9@byu.net>
59313         utimensat: work around Solaris 9 bug
59314         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
59315         has trailing slash bugs.
59316         * tests/test-lutimens.h (test_lutimens): Enhance test.
59317         * tests/test-utimens.h (test_utimens): Likewise.
59318         * doc/posix-functions/utime.texi (utime): Enhance documentation.
59319         * doc/posix-functions/utimes.texi (utimes): Likewise.
59320         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59321         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
59322         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
59323         * doc/posix-functions/futimens.texi (futimens): Likewise.
59325         fdutimensat: new module
59326         * modules/fdutimensat: New file.
59327         * lib/fdutimensat.c (fdutimensat): Likewise.
59328         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
59329         * MODULES.html.sh (File system functions): Mention module.
59330         * modules/fdutimensat-tests: New test.
59331         * tests/test-fdutimensat.c: Likewise.
59333         doc: regenerate INSTALL
59334         * doc/INSTALL: Reflect recent autoconf update.
59335         * doc/INSTALL.ISO: Likewise.
59336         * doc/INSTALL.UTF-8: Likewise.
59338 2009-10-20  Pádraig Brady  <P@draigBrady.com>
59340         acl: warn if ACL support is not detected
59341         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
59343 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
59345         * lib/nproc.h: Add extern "C" block for C++.
59347 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
59348             Bruno Haible  <bruno@clisp.org>
59350         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
59351         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
59352         * doc/posix-functions/isalpha.texi: Likewise.
59353         * doc/posix-functions/isblank.texi: Likewise.
59354         * doc/posix-functions/iscntrl.texi: Likewise.
59355         * doc/posix-functions/isdigit.texi: Likewise.
59356         * doc/posix-functions/isgraph.texi: Likewise.
59357         * doc/posix-functions/islower.texi: Likewise.
59358         * doc/posix-functions/isprint.texi: Likewise.
59359         * doc/posix-functions/ispunct.texi: Likewise.
59360         * doc/posix-functions/isspace.texi: Likewise.
59361         * doc/posix-functions/isupper.texi: Likewise.
59362         * doc/posix-functions/isxdigit.texi: Likewise.
59364 2009-10-18  Bruno Haible  <bruno@clisp.org>
59366         Tests for module 'isblank'.
59367         * modules/isblank-tests: New file.
59368         * tests/test-isblank.c: New file.
59370         New module 'isblank'.
59371         * lib/isblank.c: New file.
59372         * m4/isblank.m4: New file.
59373         * modules/isblank: New file.
59374         * doc/posix-functions/isblank.texi: Mention the new module.
59376 2009-10-18  Bruno Haible  <bruno@clisp.org>
59378         New module 'ctype'.
59379         * lib/ctype.in.h: New file.
59380         * m4/ctype.m4: New file.
59381         * modules/ctype: New file.
59382         * doc/posix-headers/ctype.texi: Mention the new module.
59384 2009-10-18  Jim Meyering  <meyering@redhat.com>
59386         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
59387         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
59388         right after its initialization, rather than farther down.
59389         Keeping these in close proximity makes it easier to ensure
59390         that each such variable is initialized.  E.g.,
59392             LIB_CLOCK_GETTIME=
59393             AC_SUBST([LIB_CLOCK_GETTIME])
59395         This change also increments these serial numbers.
59396         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
59397         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59400 2009-10-18  Bruno Haible  <bruno@clisp.org>
59402         Don't let environment variables perturb build.
59403         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
59404         (gl_PREREQ_GETHRXTIME): ... not here.
59406 2009-10-18  Bruno Haible  <bruno@clisp.org>
59408         Avoid symlink attack in localcharset module.
59409         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
59410         (O_NOFOLLOW): Define fallback.
59411         (get_charset_aliases): Don't open the file if it is a symbolic link.
59412         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
59413         gl_FCNTL_H.
59414         (gl_FCNTL_H): Require it.
59415         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
59416         * modules/localcharset (Files): Add m4/fcntl_h.m4.
59417         Reported by Fergal Glynn <fglynn@veracode.com>.
59419 2009-10-18  Bruno Haible  <bruno@clisp.org>
59421         Implement nproc for mingw.
59422         * lib/nproc.c: Include <windows.h>
59423         (num_processors): On native Windows platforms, try GetSystemInfo.
59425 2009-10-18  Bruno Haible  <bruno@clisp.org>
59427         Implement nproc for IRIX.
59428         * lib/nproc.c: Include <sys/sysmp.h>.
59429         (num_processors): On IRIX systems, try sysmp.
59430         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
59432 2009-10-18  Bruno Haible  <bruno@clisp.org>
59434         Implement nproc for HP-UX.
59435         * lib/nproc.c: Include <sys/pstat.h>
59436         (num_processors): On HP-UX systems, try pstat_getdynamic.
59437         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
59438         pstat_getdynamic.
59440 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
59441             Bruno Haible  <bruno@clisp.org>
59443         Implement nproc for NetBSD, OpenBSD.
59444         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
59445         (ARRAY_SIZE): New macro.
59446         (num_processors): On BSD systems, try sysctl of HW_NCPU.
59447         * m4/nproc.m4: New file.
59448         * modules/nproc (Files): Add m4/nproc.m4.
59449         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
59450         (Makefile.am): Instead, augment lib_SOURCES.
59452 2009-10-18  Bruno Haible  <bruno@clisp.org>
59454         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
59455         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
59456         sys/param.h.
59458 2009-10-16  Eric Blake  <ebb9@byu.net>
59460         utimensat: new module
59461         * modules/utimensat: New file.
59462         * lib/utimensat.c (utimensat): Likewise.
59463         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59464         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
59465         so we can work around Linux bugs.
59466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59467         * modules/sys_stat (Makefile.am): Substitute them.
59468         * lib/sys_stat.in.h (utimensat): Declare it.
59469         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59470         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59471         * modules/utimensat-tests: New test.
59472         * tests/test-utimensat.c: Likewise.
59474         utimens: let lutimens work on non-symlinks
59475         * lib/utimens.c (lutimens): Fall back to utimens rather than
59476         failing with ENOSYS, when file is not a symlink.
59477         (utimens): Reduce redirection.
59478         * tests/test-lutimens.h (test_lutimens): Update test to cover
59479         non-symlinks.
59480         * tests/test-utimens.h (test_utimens): Update test to cover
59481         symlinks.
59482         * tests/test-utimens.c (main): Update caller.
59484         utimens: cache whether utimensat syscall works
59485         * lib/utimens.c (utimensat_works_really): New cache variable.
59486         (fdutimens, lutimens): Use it to avoid failing syscall.
59488         test-stat-time, test-utimens: improve portability
59489         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
59490         ext4 on alpha, and for cygwin.
59491         * tests/test-utimens-common.h: New file.
59492         (nap): Factor delays into single function.
59493         * tests/test-lutimens.h (test_lutimens): Use new header.
59494         * tests/test-futimens.h (test_futimens): Likewise.
59495         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
59496         timestamps to occur from same machine, as was done previously for
59497         test_utimens.
59498         * modules/utimens-tests (Files): Ship new file.
59499         * modules/futimens-tests (Files): Likewise.
59500         Reported in part by Jim Meyering.
59502         sys_stat: sort replacement declarations
59503         * lib/sys_stat.in.h: Sort declarations.
59504         * lib/futimens.c (futimens): Fix typo.
59506 2009-10-15  Jim Meyering  <meyering@redhat.com>
59508         don't let environment settings perturb build
59509         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
59510         could cause a configure-time and/or build-time malfunction.
59511         Typically, a configure-time function-in-library test is performed
59512         via code like this:
59514           LIB_VAR=
59515           AC_SUBST([LIB_VAR])
59516           prefix_saved_LIBS=$LIBS
59517             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
59518                        [test "$ac_cv_search_FUNC" = "none required" ||
59519                         LIB_VAR=$ac_cv_search_FUNC])
59520           LIBS=$prefix_saved_LIBS
59522         However, in each of the files affected by this change, the LIB_VAR=
59523         initialization was omitted.  Thus, when set in the environment, its
59524         value would propagate into generated Makefiles when FUNC is not found
59525         in LIB_NAME.
59526         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
59527         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59530 2009-10-14  Eric Blake  <ebb9@byu.net>
59532         fchdir: avoid infinite recursion in mingw
59533         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
59534         recursing.
59536         test-stat-time: port to mingw
59537         * tests/test-stat-time.c (force_unlink): Return a value.
59538         (test_ctime) [W32]: Fix compilation error.
59539         (nap): Don't call usleep with too large an argument.  Use
59540         force_unlink.
59541         * doc/pastposix-functions/usleep.texi (usleep): Document the
59542         portability issue.
59544 2009-10-13  Jim Meyering  <meyering@redhat.com>
59546         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
59547         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
59548         * modules/pipe-filter-ii: Likewise.
59549         * modules/sys_socket-tests: Likewise.
59550         * modules/tsearch-tests: Likewise.
59551         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
59552         (check): Depend on it.
59554 2009-10-12  Eric Blake  <ebb9@byu.net>
59556         utimens-tests: port to NFS file systems
59557         * tests/test-utimens.h (test_utimens): Refactor utimecmp
59558         comparisons to avoid spurious failures from timestamp drift
59559         between NFS machines.
59561 2009-10-12  Eric Blake  <ebb9@byu.net>
59563         stat-time-tests: minor cleanups
59564         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
59565         * tests/test-stat-time.c (nap): Separate assignment from call.
59566         Suggested by Paolo Bonzini and Bruno Haible.
59568         sys_stat: guarantee struct timespec
59569         * lib/sys_stat.in.h (includes): Always include <time.h>
59570         * modules/sys_stat (Depends-on): Add time.
59571         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
59572         mode_t permission values.
59573         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
59574         get at subsecond timestamps.
59576 2009-10-10  Eric Blake  <ebb9@byu.net>
59578         futimens: new module
59579         * modules/futimens: New file.
59580         * lib/futimens.c (futimens): Likewise.
59581         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
59582         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
59583         we can work around Linux bugs.
59584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59585         * modules/sys_stat (Makefile.am): Substitute them.
59586         * lib/sys_stat.in.h (futimens): Declare it.
59587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59588         * doc/posix-functions/futimens.texi (futimens): Likewise.
59589         * modules/futimens-tests: New test.
59590         * tests/test-futimens.c: Likewise.
59592         utimens: introduce fdutimens
59593         * lib/utimens.h (fdutimens): New prototype.
59594         * lib/utimens.c (gl_futimens): Move guts...
59595         (fdutimens): ...to new interface.
59596         * tests/test-utimens.c (do_fdutimens): Use it.
59598         utimens: add UTIME_NOW and UTIME_OMIT support
59599         * lib/utimens.c (validate_timespec, update_timespec): New helper
59600         functions.
59601         (gl_futimens, lutimens): Use them.
59602         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
59603         stdbool, sys_stat.
59604         (Link): Mention resulting library dependency.
59605         * modules/utimecmp (Link): Likewise.
59606         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
59607         (Makefile.am): Pick up library dependency.
59608         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
59609         definition.
59610         * tests/test-sys_stat.c: Test the definitions.
59611         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
59612         * NEWS: Document library dependency.
59614         utimecmp: support symlink timestamps
59615         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
59616         hashing when possible.  Use pathconf when available.
59617         (SYSCALL_RESOLUTION): Recognize tighter resolution.
59618         * modules/utimecmp (Depends-on): Add lstat.
59620         utimens: add lutimens interface
59621         * lib/utimens.c (lutimens): New function.
59622         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
59623         * lib/utimens.h (lutimens): Declare new interface.
59624         * tests/test-utimens.c (main): Enhance test.
59625         * tests/test-lutimens.h (test_lutimens): New file.
59626         * modules/utimens-tests (Files): Distribute it.
59627         (Depends-on): Add symlink.
59628         (configure.ac): Check for usleep.
59630         utimens: validate futimens usage
59631         * lib/utimens.c (gl_futimens): Require valid fd up front, using
59632         fewer syscalls on failure later on.  Avoid compiler warning on
59633         mingw.
59634         * modules/utimens (Depends-on): Add dup2.
59636         utimens: add test
59637         * modules/utimens-tests: New test.
59638         * tests/test-utimens.h: New file.
59639         * tests/test-futimens.h: Likewise.
59640         * tests/test-utimens.c: Likewise.
59642         doc: mention timestamp portability issues
59643         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
59644         instead.
59645         * doc/posix-functions/utime.texi (utime): Likewise.
59646         * doc/posix-functions/utimes.texi (utimes): Likewise.
59647         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
59648         instead.
59649         * doc/posix-functions/futimens.texi (futimens): Mention utimens
59650         module.
59651         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59652         Mention weakness with symlink timestamps.
59653         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
59654         to utimensat/futimens instead.
59655         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
59657         test-dup2: enhance test
59658         * tests/test-dup2.c (main): Also check AT_FDCWD.
59660         test-stat-time: avoid more spurious failures
59661         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
59662         xfs; and avoid race if the two timestamps cross quantization edge.
59664         relocatable: prefer 'file system' over 'filesystem'
59665         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
59666         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
59667         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
59668         * doc/relocatable.texi (Enabling Relocatability): Likewise.
59669         * lib/relocatable.c (compute_curr_prefix): Likewise.
59671 2009-10-10  Jim Meyering  <meyering@redhat.com>
59673         stat-time-tests: check for the usleep function
59674         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
59676 2009-10-10  Bruno Haible  <bruno@clisp.org>
59678         * modules/xnanosleep: Put the Link section after the Include section.
59680 2009-10-09  Eric Blake  <ebb9@byu.net>
59682         dup2: work around FreeBSD 6.1 bug
59683         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
59684         * doc/posix-functions/dup2.texi (dup2): Document it.
59685         Reported by Nelson H. F. Beebe and Jim Meyering.
59687         test-stat-time: port to buggy NFS clients
59688         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
59689         (test_ctime): Also skip test if mtime and ctime are skewed.
59691         maint: prefer 'file system' over 'filesystem'
59692         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59693         * doc/posix-functions/lstat.texi (lstat): Likewise.
59694         * lib/file-has-acl.c (file_has_acl): Likewise.
59695         * lib/fwriteerror.c [TEST]: Likewise.
59696         * tests/test-areadlink.h (test_areadlink): Likewise.
59697         * tests/test-areadlinkat-with-size.c (main): Likewise.
59698         * tests/test-areadlinkat.c (main): Likewise.
59699         * tests/test-canonicalize-lgpl.c (main): Likewise.
59700         * tests/test-canonicalize.c (main): Likewise.
59701         * tests/test-fstatat.c (main): Likewise.
59702         * tests/test-linkat.c (main): Likewise.
59703         * tests/test-lstat.h (test_lstat_func): Likewise.
59704         * tests/test-mkdir.h (test_mkdir): Likewise.
59705         * tests/test-readlink.h (test_readlink): Likewise.
59706         * tests/test-remove.c (main): Likewise.
59707         * tests/test-rename.h (test_rename): Likewise.
59708         * tests/test-renameat.c (main): Likewise.
59709         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59710         * tests/test-symlink.h (test_symlink): Likewise.
59711         * tests/test-symlinkat.c (main): Likewise.
59712         * tests/test-unlink.h (test_unlink_func): Likewise.
59713         * tests/test-unlinkat.c (main): Likewise.
59715         maint: make realtime library usage explicit
59716         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
59717         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
59718         * modules/settime (Link): Likewise.
59719         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
59721         test-stat-time: speed up execution
59722         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
59723         warning on mingw.
59724         (nap): New helper function.
59725         (prepare_test): Use it to reduce sleep time.
59726         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
59727         execution.
59728         * modules/stat-time-tests (configure.ac): Check for usleep.
59730 2009-10-09  Jim Meyering  <meyering@redhat.com>
59732         selinux-h: always use getfilecon wrappers
59733         * lib/getfilecon.c: New file.
59734         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
59735         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
59736         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
59737         (fgetfilecon): Provide a stub.
59738         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
59739         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
59740         file unconditionally.
59741         When <selinux/selinux.h> is found, arrange to use wrappers.
59742         * modules/selinux-h (Files): Add getfilecon.c.
59743         (Makefile.am): Substitute include-next-related bits
59744         into the now-always-generated selinux/selinux.h file.
59745         * doc/glibc-functions/lgetfilecon.texi: New file.
59746         * doc/glibc-functions/fgetfilecon.texi: New file.
59747         * doc/glibc-functions/getfilecon.texi: New file.
59748         * doc/glibc-functions/getfilecon-desc.texi: New file.
59749         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
59750         which to pull in the new files.
59751         * MODULES.html.sh (Misc): Add selinux-h.
59753 2009-10-08  Jim Meyering  <meyering@redhat.com>
59755         unistd: fix comment typo
59756         * lib/unistd.in.h (euidaccess): Fix a comment typo.
59758 2009-10-08  Eric Blake  <ebb9@byu.net>
59760         areadlink: use SIZE_MAX consistently
59761         * modules/areadlink (Depends-on): Add stdint.
59762         * modules/areadlink-with-size (Depends-on): Likewise.
59763         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
59764         gives NULL; drop sys/types, since unistd gives size_t; and add
59765         stdint for SIZE_MAX.
59766         (SIZE_MAX): Rely on headers.
59767         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
59768         and add stdint.
59769         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
59770         (SIZE_MAX): Likewise.
59771         (INITIAL_BUF_SIZE): Turn into enum.
59772         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
59774 2009-10-08  Jim Meyering  <meyering@redhat.com>
59776         areadlinkat: avoid compilation failure
59777         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
59778         Fix typo in comment.
59780 2009-10-07  Eric Blake  <ebb9@byu.net>
59782         areadlinkat-with-size: new module
59783         * modules/areadlinkat-with-size: New module.
59784         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
59785         * lib/areadlink.h (areadlinkat): Declare it.
59786         * MODULES.html.sh (File system functions): Mention it.
59787         * modules/areadlinkat-with-size-tests: New test.
59788         * tests/test-areadlinkat-with-size.c: New file.
59790         xreadlinkat: new module
59791         * modules/xreadlinkat: New module.
59792         * lib/xreadlinkat.c (xreadlinkat): New file.
59793         * lib/xreadlink.h (xreadlinkat): Declare it.
59794         * MODULES.html.sh (File system functions): Mention it.
59796         areadlinkat: new module
59797         * lib/at-func.c (FUNC_FAIL): New define.
59798         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
59799         * modules/areadlinkat: New module.
59800         * lib/linkat.c (areadlinkat): Move...
59801         * lib/areadlinkat.c (areadlinkat): ...to new file.
59802         * lib/areadlink.h (areadlinkat): Declare it.
59803         * modules/linkat (Depends-on): Add areadlinkat.
59804         * MODULES.html.sh (File system functions): Mention it.
59805         * modules/areadlinkat-tests: New test.
59806         * tests/test-areadlinkat.c: New file.
59808         areadlink, areadlink-with-size: add tests
59809         * modules/areadlink-tests: New test.
59810         * modules/areadlink-with-size-tests: Likewise.
59811         * tests/test-areadlink.h: New file.
59812         * tests/test-areadlink.c: Likewise.
59813         * tests/test-areadlink-with-size.c: Likewise.
59815         maint: minor cleanups
59816         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
59817         _UNUSED_PARAMETER_ instead.
59818         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
59819         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
59820         * modules/linkat-tests (Files): Distribute test-link.h.
59822         openat, utimens: whitespace cleanup
59823         * lib/openat.c: Prefer space throughout, rather than mix of 8
59824         spaces vs. tabs.
59825         * lib/at-func.c: Likewise.
59826         * lib/utimens.c: Likewise.
59828         openat: avoid using wrong fd
59829         * lib/openat.c (openat_permissive): Reject user's fd if saving the
59830         working directory chooses same fd.
59831         * lib/at-func.c (AT_FUNC_NAME): Likewise.
59833         mkdir, mkdirat: fix cygwin 1.5.x bug
59834         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
59835         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
59836         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
59837         bug.
59838         (gl_PREREQ_MKDIR): Delete unused macro.
59839         * modules/mkdir (Files): Track file rename.
59840         (configure.ac): Update macro name.
59841         * modules/openat (Depends-on): Add mkdir.
59842         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
59844         mkdir, mkdirat: add tests
59845         * modules/mkdir-tests: New test.
59846         * tests/test-mkdir.h: New file.
59847         * tests/test-mkdir.c: Likewise.
59848         * tests/test-mkdirat.c: Likewise.
59849         * modules/openat-tests (Files): Add new files.
59850         (Makefile.am): Run new test.
59852 2009-10-06  Eric Blake  <ebb9@byu.net>
59854         doc: tweak *at function documentation
59855         * doc/posix-functions/faccessat.texi (faccessat): Mention
59856         known issue with replacement.
59857         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
59858         * doc/posix-functions/linkat.texi (linkat): Likewise.
59859         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
59860         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
59861         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59862         * doc/posix-functions/renameat.texi (renameat): Likewise.
59863         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59865         openat: fix GNU/Hurd bug in unlinkat
59866         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
59867         broken.
59868         * doc/posix-functions/unlink.texi (unlink): Document this.
59869         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
59871         fdopendir: fix GNU/Hurd bug
59872         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
59873         allowing non-directory fds.
59874         * lib/fdopendir.c (rpl_fdopendir): Work around it.
59875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59876         * modules/dirent (Makefile.am): Substitute it.
59877         * lib/dirent.in.h (fdopendir): Declare replacement.
59878         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
59879         * tests/test-fdopendir.c (main): Test something other than
59880         /dev/null, since on Hurd that behaves like a directory.
59882         test-symlink: port to GNU/Hurd
59883         * tests/test-symlink.h (test_symlink): Relax expected errno.
59885         doc: tweak more cygwin information
59886         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
59887         now compatible with glibc.
59888         * doc/posix-functions/getopt.texi (getopt): Likewise.
59890         getopt-gnu: add another test
59891         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
59892         guarantee behavior relied on by m4.
59893         * tests/test-getopt.c (main): Use it.
59894         * modules/getopt-posix-tests (Depends-on): Add setenv.
59895         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
59897         getopt: fix compilation on darwin
59898         * lib/getopt.in.h (includes): Leave breadcrumbs during system
59899         include.
59900         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
59901         Reported by Ludovic Courtès.
59903 2009-10-06  Bruno Haible  <bruno@clisp.org>
59905         * modules/size_max (Description): Discourage its use.
59906         Reported by Simon Josefsson.
59908 2009-10-06  Jim Meyering  <meyering@redhat.com>
59910         linkat: avoid compilation failure
59911         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
59913 2009-10-05  Eric Blake  <ebb9@byu.net>
59915         linkat: support Linux 2.6.17
59916         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
59917         linkat on Linux, but allow cache variable override.
59918         * lib/linkat.c (rpl_linkat): Define override.
59919         * modules/linkat (Depends-on): Add symlinkat.
59920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
59921         * modules/unistd (Makefile.am): Substitute it.
59922         * lib/unistd.in.h (linkat): Declare replacement.
59923         Reported by Pádraig Brady.
59925         quotearg: port test to systems with C.UTF-8 locale
59926         * tests/test-quotearg.c (struct result_strings): Add another
59927         member, differentiating between C.ASCII and C.UTF-8 handling.
59928         (compare_strings): Add parameter.
59929         (main): Adjust all callers.
59931         getopt: avoid clash with FreeBSD _getopt_internal
59932         * lib/getopt.in.h (_getopt_internal): Override the name.
59933         * lib/getopt_int.h (includes): Pick up any overrides.
59934         Reported by Reuben Thomas.
59936         hash: allow C89 compilation
59937         * lib/hash.c (check_tuning): Move declaration before statement.
59938         Reported by Reuben Thomas.
59940 2009-10-05  Karl Berry  <karl@gnu.org>
59942         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
59944 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
59945             Bruno Haible  <bruno@clisp.org>
59947         * lib/uname.c (uname): Use a table-driven algorithm to compute
59948         Windows NT versions.
59950 2009-10-04  Bruno Haible  <bruno@clisp.org>
59952         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
59953         program_invocation_short_name.
59954         * modules/progname (configure.ac): Test for presence of
59955         program_invocation_short_name.
59956         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
59958 2009-10-04  Bruno Haible  <bruno@clisp.org>
59960         * lib/progname.c (set_program_name): Fix comment.
59961         Reported by Jim Meyering.
59963 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59964             Bruno Haible  <bruno@clisp.org>
59966         * lib/uname.c: Include <string.h>.
59967         (uname): Do only one call to GetVersionEx in the common case.
59969 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59970             Bruno Haible  <bruno@clisp.org>
59972         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
59973         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
59974         (uname): Add support for Windows CE and various non-x86 CPU types.
59976 2009-10-03  Bruno Haible  <bruno@clisp.org>
59978         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
59979         invocation to tests/configure.ac.
59980         Reported by Ian Beckwith <ianb@erislabs.net>.
59982 2009-10-02  Eric Blake  <ebb9@byu.net>
59984         fchdir: avoid compiler warning
59985         * lib/fchdir.c (canonicalize_file_name)
59986         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
59988         test-open: support mingw errno values
59989         * tests/test-open.h (test_open): Relax test.
59990         * tests/test-fopen.h (test_fopen): Likewise.
59991         * tests/test-openat-safer.c (main): Likewise.
59993         open: fix opening directory on mingw
59994         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
59996         test-open: on GNU/Hurd, /dev/null is a directory
59997         * tests/test-fopen.h (main): Rename...
59998         (test_fopen): ...to this.  Use a guaranteed non-directory when
59999         confirming open behavior on trailing slash.
60000         * tests/test-openat-safer.c (main): Likewise.
60001         * tests/test-open.h (main): Likewise....
60002         (test_open): ...to this.
60003         * tests/test-fopen.c (main): Adjust caller.
60004         * tests/test-fopen-safer.c (main): Likewise.
60005         * tests/test-open.c (main): Likewise.
60006         * tests/test-fcntl-safer.c (main): Likewise.
60007         Reported by Samuel Thibault.
60009         rename, fchdir: don't ignore chdir failure
60010         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
60011         * lib/rename.c (rpl_rename) [W32]: Likewise.
60012         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
60013         an empty destination directory if source cannot be renamed,
60014         although there is still possibility for failure.
60015         * doc/posix-functions/rename.texi (rename): Document the race.
60016         Reported by Jim Meyering.
60018         maint: cleanup whitespace in recent commits
60019         * lib/rename.c (rpl_rename): Remove tabs.
60020         * tests/test-link.h (test_link): Likewise.
60021         * lib/fchdir.c (get_name): Likewise.
60022         Reported by Jim Meyering.
60024 2009-10-02  Ben Pfaff  <blp@gnu.org>
60026         relocatable-prog-wrapper: Add missing dependency on
60027         double-slash-root.
60028         * modules/relocatable-prog-wrapper: Add dependency.
60029         Reported by Ian Beckwith <ianb@erislabs.net>.
60031 2009-10-02  Eric Blake  <ebb9@byu.net>
60033         renameat: fix Solaris bugs
60034         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
60035         needed fixing.
60036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
60037         * modules/stdio (Makefile.am): Substitute it.
60038         * lib/stdio.in.h (renameat): Declare replacement.
60039         * lib/renameat.c (rpl_renameat): Implement fix.
60041         renameat: new module
60042         * modules/renameat: New file.
60043         * lib/renameat.c (renameat): Likewise.
60044         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
60045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60046         * modules/stdio (Makefile.am): Substitute them.
60047         * lib/stdio.in.h (renameat): Declare it.
60048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60049         * doc/posix-functions/renameat.texi (renameat): Likewise.
60050         * modules/renameat-tests: New test.
60051         * tests/test-renameat.c: Likewise.
60053         rename: fix mingw bugs
60054         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
60055         directory overwrite bugs.
60057         rename: fix another cygwin 1.5 bug
60058         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
60059         checks.
60060         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
60061         unnecessary cygwin workarounds.  Also work around bug with moving
60062         full directory onto an empty one.
60063         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
60065         rename-dest-slash: merge into rename module
60066         * modules/rename-dest-slash (Status): Mark obsolete.
60067         (Depends-on): Add rename.
60068         (Files): Let rename do it all.
60069         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
60070         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
60071         * m4/rename-dest-slash.m4: ...so this file can be deleted.
60072         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
60073         * lib/rename.c (rpl_rename): Update comments.
60075         rename: fix cygwin 1.5.x bugs
60076         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
60077         * lib/rename.c (rpl_rename): Work around them.
60078         * modules/rename (Depends-on): Add same-inode.
60080         rename: fix Solaris 10 bug
60081         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60082         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
60083         was the only bug.
60085         rename: fix Solaris 9 bug
60086         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
60087         on non-directory.  Avoid calling exit.
60088         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
60089         strdup.
60090         * modules/rename-tests (Depends-on): Drop lstat.
60091         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60092         (gl_PREREQ_RENAME): Delete unused macro.
60094         rename-dest-slash: fix NetBSD bug
60095         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
60096         links.
60097         * modules/rename-dest-slash (Depends-on): Add same-inode.
60099         rename-tests: new test, exposes several platform bugs
60100         * modules/rename-tests: New file.
60101         * tests/test-rename.h: Likewise.
60102         * tests/test-rename.c: Likewise.
60103         * doc/posix-functions/rename.texi (rename): Improve documentation,
60104         including bugs that will eventually be fixed in gnulib.
60106 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
60108         * lib/uname.c: Include <stdlib.h>
60109         (uname): Assume version info is available.
60111 2009-10-02  Jim Meyering  <meyering@redhat.com>
60113         gnu-web-doc-update: correct --help output
60114         * build-aux/gnu-web-doc-update: Make --help output relevant.
60116         gnu-web-doc-update: add standard options
60117         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
60119         gnu-web-doc-update: New module.
60120         Use this script to automatically update the on-line web documentation
60121         for your GNU project at http://www.gnu.org/software/$pkg/manual/
60122         * modules/gnu-web-doc-update: New file, from coreutils.
60123         * build-aux/gnu-web-doc-update: New script.
60125 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
60127         link: LoadLibrary is not needed.
60128         * lib/link.c: Use GetModuleHandle.
60130 2009-10-01  Eric Blake  <ebb9@byu.net>
60132         getopt: bump serial number
60133         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
60134         change.
60136         tests: tighten link, rmdir, and remove tests
60137         * tests/test-link.h (includes): No need to use <config.h> here.
60138         Clean up if directory hard link was created, otherwise test for
60139         trailing '.'.
60140         * tests/test-linkat.c (main): Simplify.
60141         * tests/test-remove.c (main): Enhance test for trailing '.'.
60142         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60144 2009-10-01  Jim Meyering  <meyering@redhat.com>
60146         maint.mk: requiring "make major" was annoying, for a "minor" release.
60147         What is intended is "stable", to contrast with alpha and beta,
60148         so require "make stable", not "make major".
60149         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
60150         (get_tool_versions): Likewise.
60151         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
60153 2009-09-30  Ben Pfaff  <blp@gnu.org>
60155         Fix broken build of replacement for Windows tmpfile().
60156         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
60157         flags argument added along with the 'mkostemp' module.
60159 2009-09-28  Bruno Haible  <bruno@clisp.org>
60161         Avoid identifier clash with POSIX function 'remove' defined as a macro.
60162         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
60163         to 'remove_elt'.
60164         (gl_list_remove): Update.
60165         * lib/gl_list.c (gl_list_remove): Update.
60166         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
60167         to 'remove_elt'.
60168         (gl_oset_remove): Update.
60169         * lib/gl_list.c (gl_oset_remove): Update.
60170         Reported by Eric Blake.
60172 2009-09-28  Eric Blake  <ebb9@byu.net>
60174         doc: mention yet more cygwin 1.7 status
60175         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
60176         cygwin.
60177         * doc/glibc-functions/execvpe.texi (execvpe): New file.
60178         * doc/gnulib.texi (Glibc unistd.h): Mention it.
60180         argp: fix test failure
60181         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
60182         that are not upper-case.  Pass correct range to tolower.
60184 2009-09-27  Jim Meyering  <meyering@redhat.com>
60186         test-yesno: work around sparc-dash here-document infelicity
60187         Without this change, the literal \177 byte in a here document
60188         would make dash 0.5.5.1-3 access uninitialized memory.
60189         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
60190         Instead, use a marker, "@", and filter through tr to create the desired
60191         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
60193 2009-09-27  Bruno Haible  <bruno@clisp.org>
60195         Disable untested support for new flavours of ACLs on AIX.
60196         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
60197         progress.
60198         * lib/set-mode-acl.c (qset_acl): Likewise.
60200 2008-12-07  Bruno Haible  <bruno@clisp.org>
60202         Add support for new flavours of ACLs on AIX. (Untested.)
60203         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
60204         (file_has_acl): Add support for newer AIX.
60205         * lib/set-mode-acl.c (qset_acl): Likewise.
60206         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
60207         Rainer Tammer <tammer@tammer.net>.
60209 2009-09-26  Eric Blake  <ebb9@byu.net>
60211         argp: fix compilation of getopt
60212         * lib/getopt.in.h (includes): Use different guard than glibc.
60213         Reported by Sergey Poznyakoff.
60215         doc: mention more cygwin 1.7 status
60216         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
60217         bug.
60218         * doc/posix-functions/execl.texi (execl): Likewise.
60219         * doc/posix-functions/execle.texi (execle): Likewise.
60220         * doc/posix-functions/execlp.texi (execlp): Likewise.
60221         * doc/posix-functions/execv.texi (execv): Likewise.
60222         * doc/posix-functions/execve.texi (execve): Likewise.
60223         * doc/posix-functions/execvp.texi (execvp): Likewise.
60224         * doc/glibc-functions/canonicalize_file_name.texi
60225         (canonicalize_file_name): Cygwin 1.7 now provides this.
60226         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
60227         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
60228         on AT_SYMLINK_NOFOLLOW.
60230 2009-09-24  Eric Blake  <ebb9@byu.net>
60232         test-linkat: make test more robust
60233         * tests/test-linkat.c (main): Avoid collision with EEXIST.
60235         getopt: fix inclusion guards for cygwin
60236         * modules/getopt-posix (Depends-on): Add include-next.
60237         (Makefile.am): Substitute more items in replacement header.
60238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
60239         <getopt.h>.
60240         * lib/getopt.in.h (includes): Use split inclusion guard, and
60241         prefer <getopt.h> over include <unistd.h> when one is present.
60242         (option): Also override name of 'struct option'.
60244         same-inode: revert prior change; it is not yet ready
60245         * NEWS: Undo mention of this change.
60246         * lib/same-inode.h (same-inode.h): Undo tri-state change.
60247         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
60248         * lib/cycle-check.c (cycle_check): Likewise.
60249         * lib/same.c (same_name): Likewise.
60250         * lib/at-func2.c (at_func2): Likewise.
60252 2009-09-23  Eric Blake  <ebb9@byu.net>
60254         linkat: new module
60255         * modules/linkat: New file.
60256         * lib/at-func2.c (at_func2): Likewise.
60257         * lib/linkat.c (linkat): Likewise.
60258         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
60259         * lib/openat-priv.h (at_func2): Add declaration.
60260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60261         * modules/unistd (Makefile.am): Substitute them.
60262         * lib/unistd.in.h (linkat): Declare it.
60263         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60264         * doc/posix-functions/linkat.texi (linkat): Likewise.
60265         * doc/posix-functions/link.texi (link): Tweak wording.
60266         * tests/test-link.c (main): Move guts...
60267         * tests/test-link.h (test_link): ...into new file.
60268         * modules/linkat-tests: New test.
60269         * tests/test-linkat.c: Likewise.
60270         * modules/link-tests (Files): Ship new file.
60271         (Depends-on): Add stdbool.
60273         dirname: add library-safe mdir_name
60274         * lib/dirname.h (mdir_name): New prototype.
60275         * lib/dirname.c (dir_name): Move guts...
60276         (mdir_name): ...to new function that avoids xalloc_die.
60278         fchdir: another mingw fix
60279         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
60280         * lib/fchdir.c (get_name): New helper method; skips canonicalize
60281         on mingw (where it has not yet been ported), and make it optional
60282         elsewhere.
60283         (_gl_register_fd): Use it.
60285         same-inode: make SAME_INODE tri-state, to port to mingw
60286         * NEWS: Mention this change.
60287         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
60288         st_ino always being 0.
60289         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
60290         * lib/cycle-check.c (cycle_check): Likewise.
60291         * lib/same.c (same_name): Likewise.
60293         lstat: avoid mingw compilation error
60294         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
60295         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
60296         lstat ourselves.
60297         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
60298         was adequate.
60299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
60300         the checks for lstat.
60301         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
60303         link: fix test failure on Solaris 9
60304         * lib/link.c (rpl_link): Don't assume link will catch bogus
60305         trailing slash on source.
60307         test-symlinkat: enhance test
60308         * tests/test-readlink.c (main): Move guts...
60309         * tests/test-readlink.h (test_readlink): ...into new file.
60310         * tests/test-symlink.c (main): Move guts...
60311         * tests/test-symlink.h (test_symlink): ...into new file.
60312         * tests/test-symlinkat.c (main): Use new files for further
60313         coverage.
60314         (do_symlink, do_readlink): New helper functions.
60315         * modules/symlink-tests (Files): Ship new file.
60316         (Depends-on): Add stdbool.
60317         * modules/readlink-tests (Files): Ship new file.
60318         (Depends-on): Add stdbool.
60319         * modules/symlinkat-tests (Files): Use new files.
60321 2009-09-23  Eric Blake  <ebb9@byu.net>
60323         readlink: document portability issue with symlink length
60324         * doc/posix-functions/lstat.texi (lstat): Mention that some file
60325         systems have bogus st_size on symlinks, and mention the
60326         areadlink-with-size module.
60327         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60328         * doc/posix-functions/readlink.texi (readlink): Mention the
60329         areadlink module, and ERANGE failure.
60330         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60331         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
60333         readlink: fix Solaris 9 bug with trailing slash
60334         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
60335         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
60336         * doc/posix-functions/readlink.texi (readlink): Document this.
60337         * modules/readlink-tests: New test.
60338         * tests/test-readlink.c: Likewise.
60340         readlink: fix cygwin 1.5.x bug with return type
60341         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
60342         * lib/unistd.in.h (readlink): Use ssize_t.
60343         * lib/readlink.c (readlink): Likewise.
60344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60345         * modules/unistd (Makefile.am): Substitute it.
60346         * lib/unistd.in.h (readlink): Declare replacement.
60347         * doc/posix-functions/readlink.texi (readlink): Document this.
60349         symlink: use throughout gnulib
60350         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
60351         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
60352         symlink is not used.
60353         * modules/symlinkat (Depends-on): Add symlink.
60354         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60355         * modules/canonicalize-tests (Depends-on): Likewise.
60356         * modules/lstat-tests (Depends-on): Likewise.
60357         * modules/openat-tests (Depends-on): Likewise.
60358         * modules/remove-tests (Depends-on): Likewise.
60359         * modules/rmdir-tests (Depends-on): Likewise.
60360         * modules/unlink-tests (Depends-on): Likewise.
60361         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
60362         * tests/test-canonicalize.c (symlink): Likewise.
60363         * tests/test-fstatat.c (symlink): Likewise.
60364         * tests/test-lstat.c (symlink): Likewise.
60365         * tests/test-remove.c (symlink): Likewise.
60366         * tests/test-rmdir.c (symlink): Likewise.
60367         * tests/test-unlink.c (symlink): Likewise.
60368         * tests/test-unlinkat.c (symlink): Likewise.
60370         symlink: new module, for Solaris 9 bug
60371         * modules/symlink: New file.
60372         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
60373         * lib/symlink.c: Likewise.
60374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
60375         * modules/unistd (Makefile.am): Substitute them.
60376         * lib/unistd.in.h (symlink): Declare replacement.
60377         * MODULES.html.sh (File system functions): Mention it.
60378         * doc/posix-functions/symlink.texi (symlink): Likewise.
60379         * modules/symlink-tests: New test.
60380         * tests/test-symlink.c: Likewise.
60382 2009-09-23  Bruno Haible  <bruno@clisp.org>
60384         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
60385         when needed.
60386         Test case: gnulib-tool --import --with-tests atexit inttypes.
60387         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
60389 2009-09-23  Bruno Haible  <bruno@clisp.org>
60391         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
60392         subcommand, not in a subshell.
60394 2009-09-22  Eric Blake  <ebb9@byu.net>
60396         unistd: sort replacement declarations
60397         * lib/unistd.in.h: Sort declarations.
60399         open, openat: minor optimization
60400         * lib/open.c (open): If open succeeded, len is non-zero.
60401         * lib/openat.c (rpl_openat): Likewise.
60403         link-follow: ensure correct result
60404         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
60405         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
60406         distinguish between possible failures.
60408 2009-09-21  Eric Blake  <ebb9@byu.net>
60410         fts: avoid compiler warning
60411         * lib/fts.c (dirent_inode_sort_may_be_useful)
60412         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
60414 2009-09-19  Bruno Haible  <bruno@clisp.org>
60416         * lib/progreloc.c (canonicalize_file_name): New declaration.
60418 2009-09-19  Eric Blake  <ebb9@byu.net>
60420         link: fix quoting
60421         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
60423         openat: fix openat bugs on Solaris 9
60424         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
60425         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
60426         * modules/openat (Depends-on): Add open.
60427         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
60428         * modules/fcntl-h (Makefile.am): Substitute it.
60429         * lib/fcntl.in.h (openat): Declare replacement.
60430         * doc/posix-functions/openat.texi (openat): Document this.
60432         openat: move fstatat and unlinkat into correct files
60433         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
60434         compiled.
60435         * lib/openat.c (fstatat, unlinkat): Move...
60436         * lib/fstatat.c (fstatat): ...into correct files.
60437         * lib/unlinkat.c (unlinkat): Likewise.
60439         openat: fix unlinkat bugs on Solaris 9
60440         * lib/unlinkat.c (unlinkat): New file.
60441         * modules/openat (Depends-on): Add unlink.
60442         (Files): Distribute it.
60443         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
60444         trailing slash behavior is broken.
60445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60446         * modules/unistd (Makefile.am): Substitute it.
60447         * lib/unistd.in.h (unlinkat): Declare replacement.
60448         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
60450         openat: fix fstatat bugs on Solaris 9
60451         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
60452         stat.
60453         * doc/posix-functions/fstatat.texi (fstatat): Document this.
60455         test-unlinkat: enhance test, to expose Solaris 9 bug
60456         * tests/test-unlink.c (main): Factor guts...
60457         * tests/test-unlink.h (test_rmdir_func): ...into new file.
60458         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
60459         * tests/test-rmdir.c (main): Adjust caller.
60460         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
60461         (unlinker): New helper function.
60462         (rmdirat): Enhance check.
60463         * modules/rmdir-tests (Depends-on): Add stdbool.
60464         * modules/unlink-tests (Depends-on): Likewise.
60465         (Files): Add test-unlink.h.
60466         * modules/openat-tests (Files): Likewise.
60467         (Depends-on): Add unlinkdir.
60469         test-fstatat: new test, to expose Solaris 9 bugs
60470         * tests/test-stat.c (main): Factor guts...
60471         * tests/test-stat.h (test_stat_func): ...into new file.
60472         * tests/test-lstat.c (main): Factor guts...
60473         * tests/test-lstat.h (test_lstat_func): ...into new file.
60474         * tests/test-fstatat.c: New file.
60475         * modules/stat-tests (Files): Add test-stat.h.
60476         * modules/lstat-tests (Files): Add test-lstat.h.
60477         (Depends-on): Add stdbool.
60478         * modules/openat-tests (Depends-on): Add pathmax.
60479         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
60480         (Makefile.am): Run new test.
60482         remove: new module, for mingw and Solaris 9 bugs
60483         * modules/remove: New file.
60484         * lib/remove.c: Likewise.
60485         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
60486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60487         * modules/stdio (Makefile.am): Use them.
60488         * lib/stdio.in.h (remove): Declare replacement.
60489         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60490         * doc/posix-functions/remove.texi (remove): Likewise.
60491         * modules/remove-tests: New test.
60492         * tests/test-remove.c: Likewise.
60494         unlink: new module, for Solaris 9 bug
60495         * modules/unlink: New file.
60496         * lib/unlink.c: Likewise.
60497         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
60498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60499         * modules/unistd (Makefile.am): Use them.
60500         * lib/unistd.in.h (stat): Declare replacement.
60501         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60502         * doc/posix-functions/unlink.texi (unlink): Likewise.
60503         * modules/unlink-tests: New test.
60504         * tests/test-unlink.c: Likewise.
60506         lstat: fix Solaris 9 bug
60507         * lib/lstat.c (lstat): Also check for trailing slash on
60508         non-symlink, non-directories.  Use stat module to simplify logic.
60509         * doc/posix-functions/lstat.texi (lstat): Document it.
60510         * modules/lstat-tests (Depends-on): Add errno, same-inode.
60511         (configure.ac): Check for symlink.
60512         * tests/test-lstat.c (main): Add more tests.
60514         stat: add as dependency to other modules
60515         * modules/chown (Depends-on): Add stat.
60516         * modules/euidaccess (Depends-on): Likewise.
60517         * modules/fchdir (Depends-on): Likewise.
60518         * modules/isdir (Depends-on): Likewise.
60519         * modules/link (Depends-on): Likewise.
60520         * modules/lstat (Depends-on): Likewise.
60521         * modules/mkdir-p (Depends-on): Likewise.
60522         * modules/modechange (Depends-on): Likewise.
60523         * modules/open (Depends-on): Likewise.
60524         * modules/readlink (Depends-on): Likewise.
60525         * modules/same (Depends-on): Likewise.
60527         stat: fix Solaris 9 bug
60528         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
60529         slash.
60530         * lib/stat.c (rpl_stat): Work around it.
60531         * doc/posix-functions/stat.texi (stat): Update documentation.
60533         stat: new module, for mingw bug
60534         * modules/stat: New file.
60535         * lib/stat.c: Likewise.
60536         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
60537         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60538         * modules/sys_stat (Makefile.am): Use them.
60539         * lib/sys_stat.in.h (stat): Declare replacement.
60540         * lib/openat.c (fstatat): Deal with lstat and stat being function
60541         macros.
60542         * modules/openat (Depends-on): Add inline.
60543         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60544         * doc/posix-functions/stat.texi (stat): Likewise.
60545         * modules/stat-tests: New test.
60546         * tests/test-stat.c: Likewise.
60548 2009-09-19  Jim Meyering  <meyering@redhat.com>
60550         syntax-check: detect unnecessary inclusion of canonicalize.h
60551         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
60553 2009-09-19  Eric Blake  <ebb9@byu.net>
60555         canonicalize-lgpl: adjust clients to use correct header
60556         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60557         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
60558         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
60559         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
60560         * lib/progreloc.c (includes): Likewise.
60562 2009-09-19  Jim Meyering  <meyering@redhat.com>
60564         test-posixtm.c: correct a comment
60565         * tests/test-posixtm.c: Correct first-line comment.
60566         Spotted by Eric Blake.
60568 2009-09-16  Jim Meyering  <meyering@redhat.com>
60570         posixtm-tests: make T const-correct; add a test case
60571         * tests/test-posixtm.c (T): Declare const.
60572         Add a test for -(2^31+1).
60573         Remove useless can-succeed-only-in-2002 test.
60575         posixtm-tests: adjust the sole failing test
60576         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
60577         expected output matches what mktime now produces.  Cross-checked via
60578         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
60580         posixtm: move #ifdef'd tests into a new module
60581         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
60582         * tests/test-posixtm.c: ... this new file.
60583         * modules/posixtm-tests: New module.
60585 2009-09-19  Eric Blake  <ebb9@byu.net>
60587         openat: simplify use of at-func.c
60588         * lib/at-func.c (includes): Include prerequisites here, to
60589         simplify requirements on client files.
60590         * lib/openat-priv.h: Add double-inclusion guard.
60591         * lib/faccessat.c (includes): Simplify.
60592         * lib/fchmodat.c (includes): Likewise.
60593         * lib/fchownat.c (includes): Likewise.
60594         * lib/mkdirat.c (includes): Likewise.
60595         * lib/mkfifoat.c (includes): Likewise.
60596         * lib/symlinkat.c (includes): Likewise.
60598         openat: allow return of fd 0
60599         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
60600         * modules/save-cwd (Depends-on): Replace fcntl-safer with
60601         unistd-safer.
60602         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
60603         <fcntl.h>; this module does not leak fds.
60604         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
60605         must be allowed to return 0, leaving openat_safer to add the
60606         safety.
60607         (openat_permissive): Avoid writing to just-opened fd 2 if
60608         restoring the current directory fails.
60609         * lib/openat-die.c (openat_restore_fail): Add comment.
60610         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
60611         (save_cwd): Guarantee safe fd, but without use of open_safer.
60612         * tests/test-openat.c: New test.
60613         * modules/openat-tests (Files, Makefile.am): Distribute and build
60614         new file.
60616         relocatable-prog-wrapper: fix build
60617         * modules/relocatable-prog-wrapper (Files): Update name of
60618         canonicalize m4 file, broken on 2009-09-17.
60619         Reported by emad hajjar <aleppos@hotmail.com>.
60621 2009-09-19  Bruno Haible  <bruno@clisp.org>
60623         * lib/safe-alloc.h: Use the standard header with GPL copyright.
60624         * lib/safe-alloc.c: Likewise.
60625         Reported by Ian Beckwith <ianb@erislabs.net>.
60627 2009-09-18  Bruno Haible  <bruno@clisp.org>
60629         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
60630         Reported by <erobles@sensacd.com.mx>.
60632 2009-09-17  Eric Blake  <ebb9@byu.net>
60634         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
60635         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
60636         slashes when checking if last component is missing.
60637         * tests/test-canonicalize.c (main): Test this.
60639         canonicalize, canonicalize-lgpl: honor // if distinct from /
60640         * modules/canonicalize (Files): Add double-slash-root.m4.
60641         * modules/canonicalize-lgpl (Files): Likewise.
60642         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60643         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
60644         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
60645         fallback definition.
60646         (canonicalize_filename_mode): Use it to protect //.
60647         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
60648         (__realpath): Likewise.
60649         * tests/test-canonicalize.c (main): Test this.
60650         * tests/test-canonicalize-lgpl.c (main): Likewise.
60651         * modules/canonicalize-tests (Depends-on): Add same-inode.
60652         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60654         canonicalize-lgpl: fix glibc bug with trailing slash
60655         * m4/canonicalize-lgpl.m4: Move contents...
60656         * m4/canonicalize.m4: ...here.
60657         (gl_CANONICALIZE_LGPL): Factor realpath check...
60658         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
60659         glibc 2.3.5 bug, fixed 2005-04-27.
60660         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
60661         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
60662         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
60663         * modules/canonicalize-lgpl (Files): Manage file rename.
60664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60665         * modules/stdlib (Makefile.am): Substitute witness.
60666         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
60667         is needed.
60668         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
60669         replacement is required.
60670         * lib/canonicalize.c (canonicalize_file_name): Likewise.
60671         * doc/glibc-functions/canonicalize_file_name.texi
60672         (canonicalize_file_name): Document this.
60673         * doc/posix-functions/realpath.texi (realpath): Likewise.
60675         canonicalize-lgpl: reject non-directory with trailing slash
60676         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
60677         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
60678         catches failures in glibc 2.3.5.
60679         * tests/test-canonicalize.c (main): Likewise.
60681         canonicalize-lgpl: use native realpath if it works
60682         * lib/canonicalize-lgpl.c (realpath): Guard with
60683         FUNC_REALPATH_WORKS.
60684         * lib/stdlib.in.h (realpath): Make declaration optional based on
60685         HAVE_REALPATH.
60686         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
60687         native realpath works.
60688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60689         * modules/stdlib (Makefile.am): Substitute witness.
60691         canonicalize, canonicalize-lgpl: use <stdlib.h>
60692         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
60693         (Include): Mention <stdlib.h>.
60694         (configure.ac): Mention functions we provide.
60695         * modules/canonicalize (configure.ac): Likewise.
60696         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
60697         realpath if canonicalize_file_name is missing.
60698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
60699         * modules/stdlib (Makefile.am): Substitute witnesses.
60700         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
60701         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
60702         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
60703         * NEWS: Document this.
60704         * doc/glibc-functions/canonicalize_file_name.texi
60705         (canonicalize_file_name): Likewise.
60706         * doc/posix-functions/realpath.texi (realpath): Likewise.
60707         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
60709         test-canonicalize: consolidate into single C program
60710         * tests/test-canonicalize.sh: Delete; move setup into...
60711         * tests/test-canonicalize.c (main): ...the program, making it
60712         easier to run in debugger.  Add some tests.
60713         * modules/canonicalize-tests (Files): Remove unused file.
60714         (Depends-on): Add progname.
60715         (configure.ac, Makefile.am): Simplify.
60717         test-canonicalize-lgpl: consolidate into single C program
60718         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
60719         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
60720         easier to run in debugger.  Add some tests.
60721         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
60722         (configure.ac, Makefile.am): Simplify.
60724         canonicalize: avoid resolvepath
60725         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
60726         unnecessary checks.
60727         * lib/canonicalize.c (includes): Simplify.
60728         (canonicalize_file_name): Drop resolvepath implementation.
60729         * modules/canonicalize (Depends-on): Drop filenamecat.
60731         canonicalize: don't lose errno
60732         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
60733         over calls to free.
60735         canonicalize: simplify errno handling
60736         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
60737         assignment.
60739         canonicalize, canonicalize-lgpl: update module dependencies
60740         * modules/canonicalize (Depends-on): Add extensions, lstat,
60741         pathmax, stdlib.
60742         (Files): Drop pathmax.h.
60743         (configure.ac): Adjust macro name.
60744         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
60745         lstat, stdlib, sys_stat.
60746         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
60747         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
60748         extensions.
60749         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
60750         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
60751         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
60752         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
60753         declaration, if available.
60754         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
60755         we can rely on the readlink module.
60756         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
60757         (includes): Use <unistd.h> unconditionally.
60759 2009-09-17  Eric Blake  <ebb9@byu.net>
60761         maint: make Include sections of modules consistent
60762         * modules/alloca: Use only header name; no need to list #include.
60763         * modules/alloca-opt: Likewise.
60764         * modules/arpa_inet: Likewise.
60765         * modules/canon-host: Likewise.
60766         * modules/configmake: Likewise.
60767         * modules/dirent: Likewise.
60768         * modules/eealloc: Likewise.
60769         * modules/environ: Likewise.
60770         * modules/fchdir: Likewise.
60771         * modules/fcntl: Likewise.
60772         * modules/fcntl-h: Likewise.
60773         * modules/gethrxtime: Likewise.
60774         * modules/gettime: Likewise.
60775         * modules/ignore-value: Likewise.
60776         * modules/inet_ntop: Likewise.
60777         * modules/inet_pton: Likewise.
60778         * modules/inttypes: Likewise.
60779         * modules/isnand-nolibm: Likewise.
60780         * modules/isnanf-nolibm: Likewise.
60781         * modules/mbchar: Likewise.
60782         * modules/mbfile: Likewise.
60783         * modules/mbiter: Likewise.
60784         * modules/mbuiter: Likewise.
60785         * modules/netdb: Likewise.
60786         * modules/netinet_in: Likewise.
60787         * modules/nproc: Likewise.
60788         * modules/pagealign_alloc: Likewise.
60789         * modules/poll: Likewise.
60790         * modules/printf-frexp: Likewise.
60791         * modules/pthread: Likewise.
60792         * modules/putenv: Likewise.
60793         * modules/random_r: Likewise.
60794         * modules/relocatable-prog: Likewise.
60795         * modules/search: Likewise.
60796         * modules/select: Likewise.
60797         * modules/selinux-h: Likewise.
60798         * modules/settime: Likewise.
60799         * modules/signal: Likewise.
60800         * modules/size_max: Likewise.
60801         * modules/socklen: Likewise.
60802         * modules/ssize_t: Likewise.
60803         * modules/stdarg: Likewise.
60804         * modules/stdbool: Likewise.
60805         * modules/stddef: Likewise.
60806         * modules/stdint: Likewise.
60807         * modules/stdio: Likewise.
60808         * modules/stdlib: Likewise.
60809         * modules/string: Likewise.
60810         * modules/strings: Likewise.
60811         * modules/sys_file: Likewise.
60812         * modules/sys_ioctl: Likewise.
60813         * modules/sys_select: Likewise.
60814         * modules/sys_socket: Likewise.
60815         * modules/sys_stat: Likewise.
60816         * modules/sys_time: Likewise.
60817         * modules/sys_times: Likewise.
60818         * modules/sys_utsname: Likewise.
60819         * modules/sys_wait: Likewise.
60820         * modules/sysexits: Likewise.
60821         * modules/time: Likewise.
60822         * modules/times: Likewise.
60823         * modules/tmpfile: Likewise.
60824         * modules/trim: Likewise.
60825         * modules/unistd: Likewise.
60826         * modules/wchar: Likewise.
60827         * modules/wctype: Likewise.
60829 2009-09-17  Bruno Haible  <bruno@clisp.org>
60831         Make getdate.y compile on QNX and NetBSD 5 / i386.
60832         * m4/getdate.m4 (gl_GETDATE): Conditionally define
60833         TIME_T_FITS_IN_LONG_INT.
60834         * lib/getdate.y (long_time_t): New type.
60835         (relative_time): Change type of 'seconds' field to long_time_t.
60836         (get_date): Update types of local variables. Check against overflow
60837         during conversion from long_time_t to time_t.
60838         Reported by Matt Kraai <kraai@ftbfs.org>
60839         and Hasso Tepper <hasso@netbsd.org>.
60841 2009-09-17  Bruno Haible  <bruno@clisp.org>
60843         * modules/COPYING: Update copyright years.
60844         * modules/README: Likeiwse.
60845         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
60846         Reported by Ian Beckwith <ianb@erislabs.net>.
60848 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60850         * users.txt: Update references for gnuit package.
60852 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60854         * m4/getdelim.m4: Fix typo in copyright line.
60856 2009-09-17  Bruno Haible  <bruno@clisp.org>
60858         * lib/atoll.c: Use the standard header with GPL copyright.
60859         * lib/argz.in.h: Likewise.
60860         * lib/glob.c: Likewise.
60861         * lib/glob-libc.h: Likewise.
60862         * lib/random_r.c: Likewise.
60863         * lib/siglist.h: Likewise.
60864         * lib/strsignal.c: Likewise.
60865         Reported by Ian Beckwith <ianb@erislabs.net>.
60867 2009-09-17  Eric Blake  <ebb9@byu.net>
60869         rmdir: ensure correct dependency order
60870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
60872 2009-09-17  Bruno Haible  <bruno@clisp.org>
60874         Disable assertion that fails on NetBSD 5 / i386.
60875         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
60876         Reported by Sam Steingold <sds@gnu.org>
60877         and Hasso Tepper <hasso@netbsd.org>.
60879 2009-09-16  Eric Blake  <ebb9@byu.net>
60881         unlinkdir: port to mingw
60882         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
60883         on which no one can unlink a directory.
60885         stdlib: sort witness names
60886         * modules/stdlib (Makefile.am): Sort replacements.
60887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60888         * lib/stdlib.in.h: Likewise.
60890         parse-duration-tests: avoid link failure
60891         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
60892         LIBINTL.
60893         Reported by Tom G. Christensen.
60895         openat-tests: ensure unlinkat behaves like rmdir
60896         * tests/test-rmdir.c (main): Factor guts...
60897         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
60898         * modules/rmdir-tests (Files): Ship new file.
60899         * modules/openat-tests: New test.
60900         * tests/test-unlinkat.c: Likewise.
60902         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
60903         * modules/rmdir-errno (Status, Notice): Now obsolete.
60905         rmdir: work around cygwin 1.5.x and mingw bugs
60906         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
60907         * lib/rmdir.c (rmdir): Work around it.
60908         * modules/rmdir (Status, Notice): No longer obsolete.
60909         (Files): Add dos.m4.
60910         (Depends-on): Add unistd.
60911         (configure.ac): Set witnesses.
60912         (License): Relax to LGPLv2+.
60913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
60914         * modules/unistd (Makefile.am): Substitute witnesses.
60915         * lib/unistd.in.h (rmdir): Declare replacement.
60916         * doc/posix-functions/rmdir.texi (rmdir): Document this.
60917         * modules/rmdir-tests: New tests.
60918         * tests/test-rmdir.c: Likewise.
60920 2009-09-15  Eric Blake  <ebb9@byu.net>
60922         fchdir: improve use of replacement functions
60923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
60924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
60925         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
60926         REPLACE_CLOSEDIR.
60927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
60928         * modules/sys_stat (Makefile.am): Substitute correct witness.
60929         * modules/dirent (Makefile.am): Likewise.
60930         * modules/unistd (Makefile.am): Likewise.
60931         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
60932         * lib/unistd.in.h (dup): Likewise.
60933         * lib/sys_stat.in.h (fstat): Likewise.
60935         maint: ignore gnulib-tool temp files
60936         * .gitignore: Ignore files created during gnulib-tool --test.
60938 2009-09-13  Jim Meyering  <meyering@redhat.com>
60940         posixtm: don't reject a time that specify "60" as the number of seconds
60941         * lib/posixtm.c (posixtime): The code to reject invalid dates
60942         would also reject a time specified with the .60 suffix.
60943         But POSIX allows that, in order to accommodate leap seconds.
60944         So don't reject it.
60945         (main): Adjust tests accordingly.
60946         * modules/posixtm (Depends-on): Add stpcpy.
60948 2009-09-11  Jim Meyering  <meyering@redhat.com>
60950         announce-gen: include [$release_type] in emitted Subject:
60951         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
60952         e.g., [stable] in the emitted Subject: line.
60954 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60956         Remove obsolete macros from several modules.
60957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
60958         obsolete Autoconf macros with their modern counterparts.
60959         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
60960         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
60961         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
60962         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60963         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
60964         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60966         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
60967         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
60968         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
60969         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
60970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
60971         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
60972         * m4/sockets.m4 (gl_SOCKETS): Likewise.
60973         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
60974         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
60975         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60976         * m4/time_r.m4 (gl_TIME_R): Likewise.
60977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
60978         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
60979         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60981         Fix copyright header in build-aux scripts.
60982         * build-aux/git-version-gen: Fix copyright header to match GPLv3
60983         recommendation.
60984         * build-aux/ncftpput-ftp: Likewise.
60985         * build-aux/update-copyright: Likewise.
60987 2009-09-09  Eric Blake  <ebb9@byu.net>
60989         test-link: allow Linux choice of errno
60990         * tests/test-link.c (main): Relax test for alternate error.
60992         strndup: fix improper m4 caching
60993         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
60994         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
60995         (gl_PREREQ_STRNDUP): Delete.
60996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
60997         * modules/string (Makefile.am): Substitute it.
60998         * lib/string.in.h (strndup): Modernize prototype.
61000         getcwd: port to mingw
61001         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
61002         different from the POSIX assumptions made throughout the getcwd
61003         module; fortunately, the mingw getcwd does not need replacement.
61004         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
61005         * modules/getcwd-tests: New test.
61006         * tests/test-getcwd.c: Likewise.
61008         link: fix platform bugs
61009         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
61010         * lib/link.c (link): Work around them.  Fix related mingw bug.
61011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
61012         * modules/unistd (Makefile.am): Substitute it.
61013         * lib/unistd.in.h (link): Declare replacement.
61014         * doc/posix-functions/link.texi (link): Document this.
61015         * modules/link (Depends-on): Add strdup-posix, sys_stat.
61017         test-link: consolidate into single C program, test more cases
61018         * tests/test-link.sh: Delete.
61019         * tests/test-link.c: Test more error conditions.  Exposes bugs on
61020         at least Cygwin and Solaris.
61021         * modules/link-tests (Files): Remove unused file.
61022         (Depends-on): Add errno, sys_stat.
61023         (Makefile.am): Simplify.
61025 2009-09-08  Bruno Haible  <bruno@clisp.org>
61027         Work around towlower, towupper bug on mingw.
61028         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
61029         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
61030         * doc/posix-functions/towlower.texi: Mention the mingw bug.
61031         * doc/posix-functions/towupper.texi: Likewise.
61032         Reported by Eric Blake.
61034 2009-09-08  Jim Meyering  <meyering@redhat.com>
61036         build: don't try to run autoheader if we don't use it
61037         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
61038         is not used in configure.ac.
61040 2009-09-08  Eric Blake  <ebb9@byu.net>
61042         euidaccess: fix compilation error
61043         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
61045         rawmemchr: relax license
61046         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
61047         okay.
61048         Reported by Jim Meyering.
61050         mkfifoat: new module
61051         * modules/mkfifoat: New file.
61052         * lib/mkfifoat.c: Likewise.
61053         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
61054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61055         * modules/sys_stat (Makefile.am): Use them.
61056         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
61057         * MODULES.html.sh (File system functions): Mention module.
61058         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61059         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61060         * modules/mkfifoat-tests: New test.
61061         * tests/test-mkfifoat.c: Likewise.
61063         strchrnul: relax license
61064         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
61065         okay.
61066         Reported by Jim Meyering.
61068 2009-09-08  Eric Blake  <ebb9@byu.net>
61070         fstatat: fix compilation on Solaris
61071         * lib/fstatat.c (includes): Add fcntl.h.
61072         Reported by Pádraig Brady.
61074 2009-09-07  Eric Blake  <ebb9@byu.net>
61076         rename: modernize replacement
61077         * modules/rename (Depends-on): Add stdio.
61078         (configure.ac): Declare witness.
61079         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
61080         stdio take care of replacement.
61081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61082         * modules/stdio (Makefile.am): Substitute them.
61083         * lib/stdio.in.h (rename): Declare replacement.
61084         * lib/rename.c (includes): Allow cross-compilation to non-windows
61085         machines.
61086         * doc/posix-functions/rename.texi (rename): Improve
61087         documentation.
61089         stdio: sort witness names
61090         * modules/stdio (Makefile.am): Sort replacements.
61091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61092         * lib/stdio.in.h: Likewise.
61094         getcwd: minor cleanups
61095         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
61096         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
61098         openat: provide more convenience names
61099         * modules/faccessat (configure.ac): Add C witness.
61100         * lib/unistd.in.h (readlinkat): Fix typo.
61101         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
61102         convenience wrappers.
61103         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
61104         wrappers in syntax checks.
61106 2009-09-06  Eric Blake  <ebb9@byu.net>
61108         doc: fix comments in recent patches
61109         * lib/faccessat.c: Mention correct function.
61110         * lib/fchmodat.c: Likewise.
61111         * lib/fchownat.c: Likewise.
61112         * lib/symlinkat.c: Likewise.
61113         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
61114         constants.
61116         faccessat, symlinkat: continue cleanup of previous patch
61117         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
61118         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61119         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
61120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
61121         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
61122         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
61123         set.
61125 2009-09-06  Bruno Haible  <bruno@clisp.org>
61127         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
61128         (fstatat): Declare if GNULIB_FSTATAT is set.
61129         (mkdirat): Declare if GNULIB_MKDIRAT is set.
61130         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
61131         (unlinkat): Declare if GNULIB_UNLINKAT is set.
61132         * modules/fcntl-h (Files): Remove m4/openat.m4.
61133         * modules/sys_stat (Files): Remove m4/openat.m4.
61134         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
61135         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
61136         * modules/unistd (Files): Remove m4/openat.m4.
61137         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
61138         GNULIB_OPENAT.
61139         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
61140         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
61141         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
61142         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
61143         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
61144         gl_OPENAT_DEFAULTS.
61145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
61146         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
61147         Don't require gl_OPENAT_DEFAULTS.
61148         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
61149         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
61150         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
61151         (gl_OPENAT_DEFAULTS): Remove macro.
61153 2009-09-06  Bruno Haible  <bruno@clisp.org>
61155         * modules/openat (configure.ac): Remove unneeded witness.
61157 2009-09-06  Bruno Haible  <bruno@clisp.org>
61159         Set errno to ENOSYS when a function is entirely unsupported.
61160         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
61161         EOPNOTSUPP.
61162         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61163         * modules/chown (Depends-on): Remove errno.
61165 2009-09-06  Bruno Haible  <bruno@clisp.org>
61167         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
61169 2009-09-06  Bruno Haible  <bruno@clisp.org>
61171         * lib/sys_stat.in.h: Fix preprocessor command indentation.
61173 2009-09-06  Ben Pfaff  <blp@gnu.org>
61174             Bruno Haible  <bruno@clisp.org>
61176         Work around a glibc bug in strtok_r.
61177         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
61178         Undefine if UNDEFINE_STRTOK_R is set.
61179         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
61180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61181         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
61182         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
61183         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
61184         UNDEFINE_STRTOK_R.
61185         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
61187 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
61189         exclude: minor fix
61190         * lib/exclude.c: Include wctype.h
61192 2009-09-06  Akim Demaille  <demaille@gostai.com>
61194         bootstrap: improve error message
61195         * build-aux/bootstrap (find_tool): Upon failure, report the list
61196         of candidates.
61197         Honor the initial value of the envvar.
61199 2009-09-05  Eric Blake  <ebb9@byu.net>
61201         symlinkat: new module
61202         * modules/symlinkat: New file.
61203         * lib/symlinkat.c: Likewise.
61204         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
61205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61206         * modules/unistd (Makefile.am): Use them.
61207         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
61208         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
61209         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
61210         * MODULES.html.sh (File system functions): Mention module.
61211         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61212         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61213         * modules/symlinkat-tests: New test.
61214         * tests/test-symlinkat.c: Likewise.
61216         test-openat-safer: add more checks
61217         * tests/test-openat-safer.c (main): Check more code paths.
61219 2009-09-05  Jim Meyering  <meyering@redhat.com>
61221         syntax-check: detect unnecessary inclusion of openat.h
61222         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
61224 2009-09-05  Bruno Haible  <bruno@clisp.org>
61226         Support towlower, towupper.
61227         * doc/posix-functions/towlower.texi: Mention module wctype.
61228         * doc/posix-functions/towupper.texi: Likewise.
61229         * lib/wctype.in.h (towlower, towupper): New functions.
61230         * tests/test-wctype.c: Include stdio.h, stdlib.h.
61231         (ASSERT): New macro.
61232         (e): New variable.
61233         (main): Test also towlower, towupper. Test WEOF argument.
61234         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61236 2009-09-05  Bruno Haible  <bruno@clisp.org>
61238         Fix conversion behaviour when the input is invalid.
61239         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
61240         mark occurring in first pass of indirect conversion.
61241         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
61242         input.
61243         Found by clang's static analyzer.
61245 2009-09-05  Bruno Haible  <bruno@clisp.org>
61247         * tests/test-striconveh.c (main): Test indirect conversion on platforms
61248         where direct conversion is possible.
61250 2009-09-04  Eric Blake  <ebb9@byu.net>
61252         openat: fail with ENOENT on empty name
61253         * lib/openat-proc.c (openat_proc_name): Special-case the empty
61254         buffer.
61256         link-follow: fix logic bug in prior patch
61257         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
61258         reversed sense of yes and no in prior patch.  Avoid confusing
61259         compilation failure with desired semantics.
61261         link-follow: accommodate mingw and cross-compilation
61262         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
61263         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
61264         cross-compilation results to -1, to make linkat easier to
61265         implement when cross-compiling.  Trivially support mingw.
61266         * modules/link-follow (configure.ac): Call new name.
61267         * NEWS: Mention this.
61269 2009-09-03  Eric Blake  <ebb9@byu.net>
61271         faccessat: compile replacement
61272         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
61273         needed.
61275         fts: fix compilation error
61276         * lib/fts.c (includes): Re-add "openat.h", for
61277         openat_needs_fchdir.
61279         faccessat: new module
61280         * modules/faccessat: New file.
61281         * lib/faccessat.c: Likewise.
61282         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61284         * modules/unistd (Makefile.am): Use it.
61285         * lib/unistd.in.h (faccessat): Declare it.
61286         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
61287         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
61288         * MODULES.html.sh (File system functions): Mention it.
61289         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
61290         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
61292         euidaccess: prefer POSIX over non-standard implementation
61293         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
61294         * lib/euidaccess.c (euidaccess): Use it if available.
61296         openat: make template easier to use
61297         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
61298         AT_FUNC_F2 to be undefined.
61299         (VALIDATE_FLAG): New macro; use it to reject bad flags.
61300         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
61301         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
61302         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
61303         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
61304         Likewise.
61305         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
61306         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
61307         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
61308         Likewise.
61310         openat: declare in POSIX headers
61311         * NEWS: Mention this.
61312         * modules/openat (configure.ac): Declare witnesses.
61313         (Depends-on): Add fcntl-h, sys_stat, unistd.
61314         (Include): Mention correct headers.
61315         * modules/fcntl-h (Depends-on): Add link-warning.
61316         (Files): Add openat.m4.
61317         (Makefile.am): Substitute witnesses.
61318         * modules/sys_stat (Files, Makefile.am): Likewise.
61319         * modules/unistd (Files, Makefile.am): Likewise.
61320         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
61321         (gl_OPENAT_DEFAULTS): New macro.
61322         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
61323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
61324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
61325         (SYS_STAT_H): Remove unused variable.
61326         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
61327         * lib/fcntl--.h (includes): Remove unneeded header.
61328         * lib/openat-safer.c (includes): Likewise.
61329         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
61330         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
61331         appropriate headers.
61332         (__OPENAT_PREFIX): Delete.
61333         * lib/fcntl.in.h (openat): Provide declaration.
61334         (AT_FDCWD): Fix Solaris bug.
61335         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
61336         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
61337         * lib/fchmodat.c (includes):  Adjust to find declaration.
61338         * lib/fchownat.c (includes): Likewise.
61339         * lib/mkdirat.c (includes): Likewise.
61340         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
61341         still visible.
61343 2009-09-02  Eric Blake  <ebb9@byu.net>
61345         errno: use consistently
61346         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
61347         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
61348         * lib/canonicalize.c (ELOOP): Likewise.
61349         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
61350         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
61351         * lib/lchown.c (EOPNOTSUPP): Likewise.
61352         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
61353         * lib/savewd.c (ESTALE): Likewise.
61354         * lib/settime.c (ENOSYS): Likewise.
61355         * lib/utimens.c (ENOSYS): Likewise.
61356         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
61357         * lib/chdir-safer.c (ELOOP): Likewise.
61358         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
61359         * modules/c-stack (Depends-on): Add errno.
61360         * modules/canonicalize (Depends-on): Likewise.
61361         * modules/chdir-safer (Depends-on): Likewise.
61362         * modules/fdopendir (Depends-on): Likewise.
61363         * modules/inet_ntop (Depends-on): Likewise.
61364         * modules/inet_pton (Depends-on): Likewise.
61365         * modules/lchown (Depends-on): Likewise.
61366         * modules/openat (Depends-on): Likewise.
61367         * modules/savewd (Depends-on): Likewise.
61368         * modules/settime (Depends-on): Likewise.
61369         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
61371         fts: avoid leaking fds
61372         * modules/fts (Depends-on): Add cloexec.
61373         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
61374         flag.
61376         fts: make directory fds more robust
61377         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
61378         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
61380         backupfile, chdir-long, fts, savedir: make safer
61381         * lib/backupfile.c (includes): Use "dirent--.h", since
61382         numbered_backup can write to stderr during readdir.
61383         * lib/savedir.c (includes): Likewise.
61384         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
61385         emulation can write to stderr on failure.
61386         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
61387         * lib/getcwd.c: Document why opendir_safer is unused.
61388         * lib/glob.c: Likewise.
61389         * lib/scandir.c: Likewise.
61390         * lib/openat-proc.c: Likewise, for open_safer.
61391         * modules/backupfile (Depends-on): Add dirent-safer.
61392         * modules/savedir (Depends-on): Likewise.
61393         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
61394         * modules/chdir-long (Depends-on): Add openat-safer.
61396         openat-safer: new module
61397         * modules/openat-safer: New file.
61398         * lib/openat-safer.c: Likewise.
61399         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
61400         * lib/fcntl-safer.h (openat_safer): Declare.
61401         * lib/fcntl--.h (openat): Override.
61402         * MODULES.html.sh (File descriptor based I/O): Mention it.
61403         * lib/openat.h: Add double-inclusion guards.
61404         * lib/openat.c (includes): Only include "fcntl-safer.h", not
61405         "fcntl--.h", so we can implement openat.
61406         * modules/openat-safer-tests: New test.
61407         * tests/test-openat-safer.c: New file.
61409         dirent-safer: new module
61410         * modules/dirent-safer: New file.
61411         * lib/dirent--.h: Likewise.
61412         * lib/dirent-safer.h: Likewise.
61413         * lib/opendir-safer.c: Likewise.
61414         * m4/dirent-safer.m4: Likewise.
61415         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
61416         * modules/dirent-safer-tests: New test.
61417         * tests/test-dirent-safer.c: New file.
61418         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
61420         fdopendir: optimize on mingw
61421         * lib/unistd.in.h (_gl_directory_name): New prototype.
61422         * lib/fchdir.c (_gl_directory_name): Implement it.
61423         (fchdir): Use it to simplify implementation.
61424         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
61425         fchdir, when available, to avoid calling [f]chdir().
61427         fdopendir: split into its own module
61428         * lib/openat.c (fdopendir): Move...
61429         * lib/fdopendir.c: ...into new file.
61430         * modules/fdopendir: New module.
61431         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
61432         * modules/openat (Depends-on): Add fdopendir.
61433         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
61434         fdopendir here.
61435         * modules/savedir (Depends-on): Only need fdopendir, not full
61436         openat.
61437         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
61438         * lib/openat.h (fdopendir): Drop prototype.
61439         * lib/dirent.in.h (fdopendir): Provide prototype.
61440         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
61441         * modules/dirent (Makefile.am): Substitute them.
61442         * MODULES.html.sh (File system functions): Mention it.
61443         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
61444         * modules/fdopendir-tests: New file.
61445         * tests/test-fdopendir.c: Likewise.
61447         fchdir: use more consistent macro convention
61448         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
61449         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
61450         REPLACE_FCHDIR, rather than relying on config.h macros.
61451         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
61452         inside a single make-time REPLACE_FCHDIR block, rather than using
61453         the config.h FCHDIR_REPLACEMENT.
61454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
61455         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
61456         Manage fstat replacement.
61457         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
61458         REPLACE_FCHDIR.
61459         * modules/sys_stat (Files): Add m4/unistd_h.m4.
61460         (Makefile.am): Substitute REPLACE_FCHDIR.
61461         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
61462         FCHDIR_REPLACEMENT.
61463         * lib/dup-safer.c (dup_safer): Likewise.
61464         * lib/dup2.c (rpl_dup2): Likewise.
61465         * lib/dup3.c (rpl_dup3): Likewise.
61466         * lib/open.c (rpl_open): Likewise.
61468         fchdir: simplify error handling, and support dup3
61469         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
61470         stdbool, malloc-posix, realloc-posix.
61471         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
61472         (ensure_dirs_slot): Return false on allocation failure.
61473         (rpl_dup2): Delete.
61474         (_gl_register_dup): New function.
61475         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
61476         (_gl_register_fd): Close fd on allocation failure.
61477         * lib/fcntl.in.h (_gl_register_fd): Update signature.
61478         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
61479         prototype.
61480         (rpl_dup2_fchdir): Delete prototype.
61481         * lib/open.c (open): Update caller.
61482         * lib/dup2.c (dup2): Track fchdir metadata.
61483         * lib/dup3.c (dup3): Likewise.
61484         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
61485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
61487 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61489         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
61490         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
61491         don't pass arguments to AC_OUTPUT.
61493 2009-09-02  Bruno Haible  <bruno@clisp.org>
61495         * modules/mkdtemp (License): Relicense under LGPLv2+.
61496         Reported by Paolo Bonzini.
61498 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61500         Replace uses of obsolete autoconf macros in Jim's modules.
61501         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
61502         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
61503         can evoke a warning from autoconf when run with -Wobsolete
61504         enabled.  They were declared obsolete for good reasons (see
61505         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
61506         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
61507         should not continue using the deprecated macros.
61508         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
61509         obsolete Autoconf macros with modern counterparts.
61510         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61511         * m4/dos.m4 (gl_AC_DOS): Likewise.
61512         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
61513         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
61514         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
61515         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
61516         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
61517         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
61518         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
61519         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
61520         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61521         Likewise.
61522         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61523         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61524         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
61525         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
61526         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61527         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61529 2009-09-01  Eric Blake  <ebb9@byu.net>
61531         fchdir: fix off-by-one bug in previous patch
61532         * lib/fchdir.c (rpl_fstat): Use correct bounds.
61533         (_gl_unregister_fd): Delete useless if.
61535 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
61537         maint.mk: sort the list of syntax-check rules
61538         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
61539         easier to get a sense of progress when the rules are run sequentially
61540         and take a long time.
61542 2009-09-01  Simon Josefsson  <simon@josefsson.org>
61544         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
61545         * modules/netinet_in: Likewise.
61546         * modules/sys_file: Likewise.
61547         * modules/sys_ioctl: Likewise.
61548         * modules/sys_select: Likewise.
61549         * modules/sys_socket: Likewise.
61550         * modules/sys_stat: Likewise.
61551         * modules/sys_time: Likewise.
61552         * modules/sys_times: Likewise.
61553         * modules/sys_utsname: Likewise.
61554         * modules/sys_wait: Likewise.
61556 2009-09-01  Jim Meyering  <meyering@redhat.com>
61558         fts: help ensure that return values are not ignored
61559         * lib/fts_.h (__GNUC_PREREQ): Define.
61560         (__attribute_warn_unused_result__): Define.
61561         (fts_children, fts_close, fts_open, fts_read): Declare with
61562         __attribute_warn_unused_result__.
61564         fts: fts_close now fails also when closing a dir file descriptor fails
61565         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
61566         and propagate to caller, along with errno.
61568         announce-gen: correct formatting in --help output
61569         * build-aux/announce-gen (usage): Move the one-line description in
61570         --help output "up", to where it belongs, just after Usage:.
61572 2009-08-31  Eric Blake  <ebb9@byu.net>
61574         fchdir: port to mingw
61575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
61576         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
61577         opened, then use a substitute.
61578         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
61579         replacement.
61580         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
61581         (_gl_register_fd): No need to check stat if open already filters
61582         all directories.
61583         (fchdir): Fix error condition to match POSIX.
61584         * modules/fchdir (Depends-on): Add sys_stat.
61585         * doc/posix-functions/open.texi (open): Document the limitation.
61586         * modules/fchdir-tests: New file.
61587         * tests/test-fchdir.c: Likewise.
61589         canonicalize: allow cross-testing from cygwin to mingw
61590         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
61591         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
61592         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
61593         Likewise.
61594         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
61595         target does not support symlinks.
61596         * tests/test-canonicalize-lgpl.sh: Likewise.
61598         chown: avoid compilation warning on mingw
61599         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
61600         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
61601         mingw.
61602         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61603         * modules/chown (Depends-on): Add errno.
61605 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61607         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
61608         command.
61610 2009-08-31  Jim Meyering  <meyering@redhat.com>
61612         canonicalize: remove useless initialization
61613         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
61614         initialization of local, "end".
61616 2009-08-30  Bruno Haible  <bruno@clisp.org>
61618         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
61619         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
61620         ENOSYS.
61622 2009-08-30  Bruno Haible  <bruno@clisp.org>
61624         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
61625         /usr/xpg4/bin/tr when it exists.
61626         * tests/test-pipe-filter-gi1.sh: Likewise.
61628 2009-08-30  Bruno Haible  <bruno@clisp.org>
61630         Work around deficient /usr/bin/id program on Solaris.
61631         * tests/test-file-has-acl.sh (ID): New variable.
61632         * tests/test-set-mode-acl.sh (ID): Likewise.
61633         * tests/test-copy-acl.sh (ID): Likewise.
61634         * tests/test-copy-file.sh (ID): Likewise.
61636 2009-08-30  Bruno Haible  <bruno@clisp.org>
61638         New module 'xstriconveh'.
61639         * lib/xstriconveh.h: New file.
61640         * lib/xstriconveh.c: New file.
61641         * modules/xstriconveh: New file.
61643 2009-08-30  Bruno Haible  <bruno@clisp.org>
61645         Make it easier to use mem_cd_iconveh.
61646         * lib/striconveh.h (iconveh_t): New type.
61647         (iconveh_open, iconveh_close): New declarations.
61648         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61649         with a single 'const iconveh_t *' argument.
61650         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
61651         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61652         with a single 'const iconveh_t *' argument.
61653         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
61654         * tests/test-striconveh.c (main): Update.
61655         * NEWS: Mention the change.
61657 2009-08-30  Bruno Haible  <bruno@clisp.org>
61659         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
61660         problem.
61662 2009-08-30  Bruno Haible  <bruno@clisp.org>
61664         Work around iconv_open problem on Solaris.
61665         * lib/iconv_open-solaris.gperf: New file.
61666         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
61667         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
61668         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
61669         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
61670         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
61671         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
61673 2009-08-29  Jim Meyering  <meyering@redhat.com>
61675         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
61676         * top/maint.mk (cvs-check): Remove target; it was just an alias
61677         to the better-named vc-diff-check.
61678         (maintainer-distcheck): Remove rule.  It was used only from
61679         the (alpha/beta/major) target, and all of its commands but one
61680         were coreutils-specific.
61681         (vc-dist): Remove rule.
61682         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
61683         Run vc-diff-check, not vc-dist.
61684         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
61686 2009-08-27  Bruno Haible  <bruno@clisp.org>
61688         * tests/test-bitrotate.c (main): Remove test that uses a shift count
61689         of 0.
61691 2009-08-27  Bruno Haible  <bruno@clisp.org>
61693         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
61694         compilers.
61695         * doc/func.texi: Document the SunPRO C bug.
61697 2009-08-27  Bruno Haible  <bruno@clisp.org>
61699         Fix link error on Solaris.
61700         * tests/test-parse-duration.c (xstrdup): Remove function.
61702 2009-08-26  Pádraig Brady  <P@draigbrady.com>
61704         ignore-value: handle pointer types, too
61705         * lib/ignore-value.h (__attribute__): Remove definition.
61706         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
61707         of a more concise and more-often effective "(void) i" statement.
61708         (ignore_ptr): New function to suppress warnings from functions that
61709         return pointers, and to make it explicit that one function doesn't
61710         handle all cases.
61712 2009-08-25  Bruno Haible  <bruno@clisp.org>
61714         dup2: work around a Linux bug.
61715         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
61716         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
61717         * doc/posix-functions/dup2.texi: Mention the Linux bug.
61718         Reported by Simon Josefsson.
61720 2009-08-25  Jim Meyering  <meyering@redhat.com>
61722         libguestfs uses gnulib
61723         * users.txt: Add libguestfs.
61725 2009-08-24  Eric Blake  <ebb9@byu.net>
61727         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
61728         * lib/pipe2.c (includes): Add binary-io.h.
61729         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
61731 2009-08-24  Bruno Haible  <bruno@clisp.org>
61733         Tolerate declared but missing accept4 syscall.
61734         * lib/accept4.c (accept4): Invoke original accept4 function first, if
61735         available.
61736         * lib/sys_socket.in.h (accept4): If the function is already present,
61737         override it.
61738         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
61739         * modules/accept4 (Makefile.am): Compile accept4.c always.
61740         Reported by Paolo Bonzini and Eric Blake.
61742 2009-08-23  Bruno Haible  <bruno@clisp.org>
61744         New module 'accept4'.
61745         * lib/sys_socket.in.h (accept4): New declaration.
61746         * lib/accept4.c: New file.
61747         * m4/accept4.m4: New file.
61748         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61749         GNULIB_ACCEPT4, HAVE_ACCEPT4.
61750         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
61751         HAVE_ACCEPT4.
61752         * modules/accept4: New file.
61753         * doc/glibc-functions/accept4.texi: Mention the new module.
61755 2009-08-24  Jim Meyering  <meyering@redhat.com>
61757         progname: also set global program_invocation_name, when possible
61758         Before this change, a libtool-enabled program that calls glibc's
61759         error function would report the program name as
61760         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
61761         * modules/progname (configure.ac): Check for a declaration of
61762         program_invocation_name.
61763         * lib/progname.c:  Include <errno.h>.
61764         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
61765         Set program_invocation_name.
61767 2009-08-23  Bruno Haible  <bruno@clisp.org>
61769         * lib/dup3.c: Include <string.h>.
61771 2009-08-23  Bruno Haible  <bruno@clisp.org>
61773         * lib/dup3.c (dup3): Test only once whether the system actually exists.
61774         * lib/pipe2.c (pipe2): Likewise.
61775         Suggested by Eric Blake.
61777 2009-08-23  Bruno Haible  <bruno@clisp.org>
61779         Tolerate declared but missing dup3 syscall.
61780         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
61781         * lib/unistd.in.h (dup3): If the function is already present,
61782         override it.
61783         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
61784         * modules/dup3 (Makefile.am): Compile dup3.c always.
61785         Reported by Paolo Bonzini.
61787 2009-08-23  Bruno Haible  <bruno@clisp.org>
61789         Tolerate declared but missing pipe2 syscall.
61790         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
61791         available.
61792         * lib/unistd.in.h (pipe2): If the function is already present,
61793         override it.
61794         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
61795         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
61796         Reported by Paolo Bonzini.
61798 2009-08-23  Bruno Haible  <bruno@clisp.org>
61800         * lib/pipe2.c (pipe2): Move #ifs inside function.
61802 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61804         quotearg: document limitations of quote_these_too
61805         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
61806         those limitations are created.
61807         * lib/quotearg.h (set_char_quoting): Document that digits and
61808         letters that are special after backslash are not permitted.
61809         (quotearg_char): Cross-reference set_char_quoting documentation.
61811 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
61813         quotearg: implement custom_quoting_style
61814         * lib/quotearg.c: (struct quoting_options): Add left_quote and
61815         right_quote fields.
61816         (set_custom_quoting): New public function.
61817         (quotearg_buffer_restyled): Add left_quote and right_quote
61818         arguments, handle them very much like locale quoting, and update
61819         all uses.
61820         (quotearg_n_custom): New public function.
61821         (quotearg_n_custom_mem): New public function.
61822         (quotearg_custom): New public function.
61823         (quotearg_custom_mem): New public function.
61824         * lib/quotearg.h: Prototype and document new public functions.
61825         (enum quoting_style): For escape_quoting_style and
61826         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
61827         ignored even though they're otherwise like c_quoting_style.
61828         Add custom_quoting_style member and document with comparison to
61829         clocale_quoting_style.
61830         * tests/test-quotearg.c (custom_quotes): New array.
61831         (custom_results): New array.
61832         (main): Extend to test custom quoting.
61834 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61836         quotearg: fix right quote escaping when it's in quote_these_too
61837         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
61838         quote, be sure to prepend only one backslash.
61839         * tests/test-quotearg.c (use_quote_double_quotes): New function.
61840         (main): Test it.
61842 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61844         quotearg-tests: test escaping of embedded locale quotes
61845         * tests/test-quotearg.c (struct result_strings): Add member for
61846         new input.
61847         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
61848         (inputs): Add new input.
61849         (results_g): Add expected results.
61850         (flag_results): Likewise.
61851         (locale_results): Likewise.
61852         (compare_strings): Check those.
61854 2009-08-23  Bruno Haible  <bruno@clisp.org>
61856         Tests for module 'dup3'.
61857         * modules/dup3-tests: New file.
61858         * tests/test-dup3.c: New file.
61860         New module 'dup3'.
61861         * lib/unistd.in.h (dup3): New declaration.
61862         * lib/dup3.c: New file.
61863         * m4/dup3.m4: New file.
61864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
61865         HAVE_DUP3.
61866         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
61867         * modules/dup3: New file.
61868         * doc/glibc-functions/dup3.texi: Mention the new module.
61870 2009-08-23  Bruno Haible  <bruno@clisp.org>
61872         Tweak the dup2 test.
61873         * tests/test-dup2.c (main): Create the test file empty. Verify that an
61874         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
61875         the test file is still empty. Fix argument order of lseek.
61877 2009-08-23  Bruno Haible  <bruno@clisp.org>
61879         Avoid test link errors when the modules getopt-gnu, gettext are used.
61880         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
61881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61883 2009-08-23  Bruno Haible  <bruno@clisp.org>
61885         Fix getdtablesize() on mingw.
61886         * lib/getdtablesize.c (getdtablesize): Implement differently.
61887         * lib/unistd.in.h (getdtablesize): Improve comment.
61889 2009-08-23  Bruno Haible  <bruno@clisp.org>
61891         New module 'mkostemp'.
61892         Based on Ulrich Drepper's 2007-08-10 change in glibc.
61893         * lib/stdlib.in.h (mksotemp): New declaration.
61894         * lib/mkostemp.c: New file, from glibc with modifications.
61895         * lib/tempname.h (GT_FILE): Remove outdated comment.
61896         (gen_tempname): Add flags argument.
61897         * lib/tempname.c (__GT_BIGFILE): Remove macro.
61898         (__GT_FILE): Map to 1.
61899         (small_open, large_open): Remove macros.
61900         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
61901         * lib/mkstemp.c (mkstemp): Update.
61902         * lib/mkdtemp.c (mkdtemp): Likewise.
61903         * m4/mkostemp.m4: New file.
61904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
61905         HAVE_MKOSTEMP.
61906         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
61907         HAVE_MKOSTEMP.
61908         * modules/mkostemp: New file, based on modules/mkstemp.
61909         * doc/glibc-functions/mkostemp.texi: Mention the new module.
61910         * NEWS: Mention the change.
61912 2009-08-23  Bruno Haible  <bruno@clisp.org>
61914         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
61915         Reported by Eric Blake.
61917 2009-08-23  Bruno Haible  <bruno@clisp.org>
61919         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
61920         Reported by Eric Blake.
61922 2009-08-23  Bruno Haible  <bruno@clisp.org>
61924         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
61925         * modules/pipe2 (Depends-on): Likewise.
61927 2009-08-23  Eric Blake  <ebb9@byu.net>
61929         fcntl-h: add O_TTY_INIT support
61930         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
61931         * tests/test-fcntl-h.c (o): Test it.
61932         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61934         fcntl-h: rename from fcntl, in preparation for fcntl(2)
61935         * modules/fcntl: Move <fcntl.h> header replacement...
61936         * modules/fcntl-h: ...to new name, so as not to collide with
61937         like-named function.
61938         * tests/test-fcntl.c: Rename...
61939         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
61940         * modules/fcntl-tests: Rename...
61941         * modules/fcntl-h-tests: ...to this.  Update test file name.
61942         * modules/chdir-long (Depends-on): Update clients.
61943         * modules/chdir-safer (Depends-on): Likewise.
61944         * modules/fcntl-safer (Depends-on): Likewise.
61945         * modules/fts (Depends-on): Likewise.
61946         * modules/mkancesdirs (Depends-on): Likewise.
61947         * modules/mkdir-p (Depends-on): Likewise.
61948         * modules/open (Depends-on): Likewise.
61949         * modules/savewd (Depends-on): Likewise.
61950         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
61951         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61953 2009-08-22  Bruno Haible  <bruno@clisp.org>
61955         * modules/binary-io (License): Relicense under LGPL.
61956         * modules/pipe2 (License): Likewise.
61958 2009-08-22  Bruno Haible  <bruno@clisp.org>
61960         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
61961         return value.
61962         * lib/pipe-filter-gi.c (filter_init): Likewise.
61963         Reported by Eric Blake.
61965 2009-08-22  Bruno Haible  <bruno@clisp.org>
61967         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
61968         * modules/pipe (Depends-on): Add pipe2.
61970 2009-08-22  Bruno Haible  <bruno@clisp.org>
61972         Tests for module 'pipe2'.
61973         * modules/pipe2-tests: New file.
61974         * tests/test-pipe2.c: New file.
61976         New module 'pipe2'.
61977         * lib/unistd.in.h (pipe2): New declaration.
61978         * lib/pipe2.c: New file.
61979         * m4/pipe2.m4: New file.
61980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
61981         HAVE_PIPE2.
61982         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
61983         * modules/pipe2: New file.
61984         * doc/glibc-functions/pipe2.texi: Mention the new module.
61986 2009-08-22  Bruno Haible  <bruno@clisp.org>
61988         Reference some new glibc functions.
61989         * doc/glibc-functions/accept4.texi: New file.
61990         * doc/glibc-functions/dup3.texi: New file.
61991         * doc/glibc-functions/mkostemp.texi: New file.
61992         * doc/glibc-functions/pipe2.texi: New file.
61993         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
61994         (Glibc sys/socket.h): Refer to accept4.
61995         (Glibc unistd.h): Refer to dup3, pipe2.
61996         Reported by Eric Blake.
61998 2009-08-22  Jim Meyering  <meyering@redhat.com>
61999             Bruno Haible  <bruno@clisp.org>
62001         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
62002         This makes it so packages using automake-1.11's silent-rules option
62003         can print e.g., a single "GEN    configmake.h" line, rather than
62004         the 30+ statements that perform the job.  If you want to see the
62005         actual commands, you can still run "make V=1".
62006         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
62007         so that make output is abbreviated when those variables are defined
62008         appropriately.
62009         * modules/argz: Likewise.
62010         * modules/arpa_inet: Likewise.
62011         * modules/byteswap: Likewise.
62012         * modules/configmake: Likewise.
62013         * modules/dirent: Likewise.
62014         * modules/errno: Likewise.
62015         * modules/fcntl: Likewise.
62016         * modules/float: Likewise.
62017         * modules/fnmatch: Likewise.
62018         * modules/getopt-posix: Likewise.
62019         * modules/glob: Likewise.
62020         * modules/iconv_open: Likewise.
62021         * modules/inttypes: Likewise.
62022         * modules/localcharset: Likewise.
62023         * modules/locale: Likewise.
62024         * modules/math: Likewise.
62025         * modules/netdb: Likewise.
62026         * modules/netinet_in: Likewise.
62027         * modules/poll: Likewise.
62028         * modules/posix_spawnp-tests: Likewise.
62029         * modules/sched: Likewise.
62030         * modules/search: Likewise.
62031         * modules/selinux-h: Likewise.
62032         * modules/signal: Likewise.
62033         * modules/spawn: Likewise.
62034         * modules/stdarg: Likewise.
62035         * modules/stdbool: Likewise.
62036         * modules/stddef: Likewise.
62037         * modules/stdint: Likewise.
62038         * modules/stdio: Likewise.
62039         * modules/stdlib: Likewise.
62040         * modules/string: Likewise.
62041         * modules/strings: Likewise.
62042         * modules/sys_file: Likewise.
62043         * modules/sys_ioctl: Likewise.
62044         * modules/sys_select: Likewise.
62045         * modules/sys_socket: Likewise.
62046         * modules/sys_stat: Likewise.
62047         * modules/sys_time: Likewise.
62048         * modules/sys_times: Likewise.
62049         * modules/sys_utsname: Likewise.
62050         * modules/sys_wait: Likewise.
62051         * modules/sysexits: Likewise.
62052         * modules/time: Likewise.
62053         * modules/unistd: Likewise.
62054         * modules/wchar: Likewise.
62055         * modules/wctype: Likewise.
62057 2009-08-22  Jim Meyering  <meyering@redhat.com>
62059         announce-gen: detect write failure
62060         * build-aux/announce-gen: Add Coda at end.
62061         Remove equivalent-but-more-verbose block at top.
62063 2009-08-19  Akim Demaille  <demaille@gostai.com>
62065         bootstrap: --help to stdout.
62066         * bootstrap (usage): Don't send --help to stderr.
62067         Use a here doc instead of a long string.
62069 2009-08-21  Eric Blake  <ebb9@byu.net>
62071         test-popen-safer: split from test-popen
62072         * tests/test-popen.c (main): Move...
62073         * tests/test-popen.h: ...into new file.
62074         * tests/test-popen-safer2.c: New file.
62075         * modules/popen-tests (Files): Add test-popen.h.
62076         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
62077         Suggested by Bruno Haible.
62079         test-fcntl-safer: split from test-open
62080         * tests/test-open.c (main): Move...
62081         * tests/test-open.h: ...into new file.
62082         * tests/test-fcntl-safer.c: New file.
62083         * modules/open-tests (Files): Add test-open.h.
62084         * modules/fcntl-safer-tests: New file.
62085         Suggested by Bruno Haible.
62087         test-fopen-safer: split from test-fopen
62088         * tests/test-fopen.c (main): Move...
62089         * tests/test-fopen.h: ...into new file.
62090         * tests/test-fopen-safer.c: New file.
62091         * modules/fopen-tests (Files): Add test-fopen.h.
62092         * modules/fopen-safer-tests: New file.
62093         Suggested by Bruno Haible.
62095 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62097         popen-safer: test O_CLOEXEC at run-time.
62098         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
62100 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62102         fcntl: move more flags to the header
62103         * lib/cloexec.c: Do not define FD_CLOEXEC here.
62104         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
62105         * lib/fcntl.in.h: Do both things here.
62107 2009-08-21  Jim Meyering  <meyering@redhat.com>
62109         consistently remove $@-t before redirecting to it
62110         * modules/argz: Remove $@-t and $@ before redirecting to the former.
62111         * modules/alloca-opt: Likewise.
62112         * modules/byteswap: Likewise.
62113         * modules/fnmatch: Likewise.
62114         * modules/getopt-posix: Likewise.
62115         * modules/glob: Likewise.
62116         * modules/poll: Likewise.
62117         * modules/posix_spawnp-tests: Likewise.
62118         * modules/sys_socket: Likewise.
62119         * modules/sysexits: Likewise.
62121 2009-08-21  Eric Blake  <ebb9@byu.net>
62123         popen: simplify access to original popen
62124         * lib/popen.c (rpl_popen): No need to worry about popen being a
62125         macro.
62126         Reported by Bruno Haible.
62128 2009-08-20  Eric Blake  <ebb9@byu.net>
62130         build: avoid some compiler warnings
62131         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
62132         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
62133         type.
62134         (new_exclude_segment, excluded_file_pattern_p)
62135         (excluded_file_name_p): Reduce scope.
62136         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
62137         old-style declaration.
62139 2009-08-20  Simon Josefsson  <simon@josefsson.org>
62141         * tests/test-exclude1.sh: Handle Windows EOL.
62142         * tests/test-exclude2.sh: Likewise.
62143         * tests/test-exclude3.sh: Likewise.
62144         * tests/test-exclude4.sh: Likewise.
62145         * tests/test-exclude5.sh: Likewise.
62146         * tests/test-exclude6.sh: Likewise.
62147         * tests/test-exclude7.sh: Likewise.
62149 2009-08-19  Akim Demaille  <demaille@gostai.com>
62151         bootstrap: find sha1sum when named gsha1sum.
62152         * bootstrap (find_tool): New.
62153         ($SHA1SUM): New.
62154         Use it.
62156 2009-08-20  Jim Meyering  <meyering@redhat.com>
62158         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
62159         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
62160         expression that converts "." in a file name to "\." in the resulting
62161         regexp.  Start with a dummy statement, so that prior shell variable
62162         definitions are expanded portably.  Reported by Simon Josefsson.
62164 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
62166         Fix polling for writeability of a screen buffer.
62167         * lib/poll.c: Distinguish input and screen buffers for the
62168         Win32 implementation.
62169         * lib/select.c: Likewise.
62171 2009-08-19  Eric Blake  <ebb9@byu.net>
62173         popen-safer: prevent popen from clobbering std descriptors
62174         * modules/popen-safer: New file.
62175         * lib/popen-safer.c: Likewise.
62176         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
62177         * lib/stdio--.h (popen): Provide override.
62178         * lib/stdio-safer.h (popen_safer): Provide declaration.
62179         * tests/test-popen.c (includes): Partially test this.
62180         * modules/popen-safer-tests: New file, for more tests.
62181         * tests/test-popen-safer.c: Likewise.
62182         * MODULES.html.sh (file stream based Input/Output): Mention it.
62184         tests: test some of the *-safer modules
62185         * modules/fopen-safer (Depends-on): Add fopen.
62186         * modules/fcntl-safer (Depends-on): Add fcntl.
62187         * modules/stdlib-safer (Depends-on): Add stdlib.
62188         (configure.ac): Set indicator.
62189         * modules/unistd-safer (configure.ac): Likewise.
62190         * modules/tmpfile-safer (configure.ac): Likewise.
62191         (Depends-on): Add tmpfile.
62192         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
62193         active.
62194         * tests/test-fopen.c (includes): Test safer versions when they are
62195         in use.
62196         * tests/test-open.c (includes): Likewise.
62198         popen: fix cygwin 1.5 bug when stdin closed
62199         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
62200         * modules/popen: New file.
62201         * modules/popen-tests: Likewise.
62202         * tests/test-popen.c: Likewise.
62203         * m4/popen.m4: Likewise.
62204         * lib/popen.c: Likewise.
62205         * lib/stdio.in.h (popen): New declaration.
62206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
62207         * modules/stdio (Makefile.am): Likewise.
62208         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
62210 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
62212         maint.mk: give full control over update-copyright exclusions
62213         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
62214         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
62215         (update-copyright): Don't force inclusion of top-level
62216         ChangeLog.  Don't force exclusion of all COPYING files, but make
62217         them the default exclusion instead.
62219 2009-08-16  Bruno Haible  <bruno@clisp.org>
62221         Fix test failures on Solaris 10.
62222         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
62223         tests when Solaris iconv() is used.
62224         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62225         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62226         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62227         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62228         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62230 2009-08-16  Bruno Haible  <bruno@clisp.org>
62232         Fix test failures on Solaris 10.
62233         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
62234         'tr' program and pass it as first argument.
62235         * tests/test-pipe-filter-gi1.sh: Likewise.
62236         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
62237         program as first argument.
62238         * tests/test-pipe-filter-gi1.c (main): Likewise.
62240 2009-08-16  Eric Blake  <ebb9@byu.net>
62242         fpurge: fix previous commits
62243         * modules/fpurge (Makefile.am): Make replacement conditional,
62244         partially reverting 2007-04-29 change; missed in previous
62245         attempt.
62246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
62247         is missing.
62249 2009-08-16  Bruno Haible  <bruno@clisp.org>
62251         Clarify fpurge's effect on the file position.
62252         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
62253         * tests/test-fpurge.c (main): Make a second pass for checking the file
62254         position.
62256 2009-08-16  Bruno Haible  <bruno@clisp.org>
62258         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
62259         declaration of fpurge is missing.
62260         * tests/test-fpurge.c (main): Check that the file has not more contents
62261         than expected. Close the file before removing it.
62263 2009-08-15  Eric Blake  <ebb9@byu.net>
62265         fpurge: don't wrap working cygwin implementation
62266         * lib/fpurge.c (fpurge): Fix comment typo.
62267         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
62268         1.7 to avoid replacement.
62269         * tests/test-fpurge.c (main): Enhance test.
62271 2009-08-15  Eric Blake  <ebb9@byu.net>
62272         and Jim Meyering  <meyering@redhat.com>
62274         test-update-copyright: skip if perl is insufficient
62275         * tests/test-update-copyright.sh: Failure to run maintainer tool
62276         should not cause testsuite failure on cygwin 1.5.
62278 2009-08-14  Eric Blake  <ebb9@byu.net>
62280         doc: mention more functions added in cygwin 1.7.0
62281         * doc/posix-headers/limits.texi (limits.h): Update for recent
62282         cygwin additions.
62283         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
62284         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
62285         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
62286         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
62287         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
62289 2009-08-14  Eric Blake  <ebb9@byu.net>
62291         maint.mk: simplify update-copyright rule
62292         * top/maint.mk (update-copyright-local): Delete, and document how
62293         to do it in cfg.mk instead.
62294         (update-copyright-exclude-regexp): Delete, and document how to do
62295         it in .x-update-copyright instead.
62296         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
62297         exclude ChangeLog.
62299 2009-08-14  Bruno Haible  <bruno@clisp.org>
62301         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
62303 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62305         maint.mk: support update-copyright-env
62306         * top/maint.mk (update-copyright-env): Define place-holder.
62307         (update-copyright): Expand $(update-copyright-env) before
62308         invoking update-copyright.
62310 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62312         update-copyright: implement forced reformatting
62313         * build-aux/update-copyright: Implement and document
62314         UPDATE_COPYRIGHT_FORCE.
62315         * tests/test-update-copyright.sh: Test it.
62317 2009-08-14  Eric Blake  <ebb9@byu.net>
62318         and Bruno Haible  <bruno@clisp.org>
62320         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
62321         * tests/test-locale.c: Revert previous patch related to NULL.
62322         * tests/test-stdio.c: Likewise.
62323         * tests/test-stdlib.c: Likewise.
62324         * tests/test-string.c: Likewise.
62325         * tests/test-unistd.c: Likewise.
62326         * modules/time-tests (Depends-on): Add verify.
62327         * modules/wchar-tests (Depends-on): Likewise.
62328         * tests/test-time.c: Test for NULL compliance.
62329         * tests/test-wchar.c: Likewise.
62330         * modules/locale (Depends-on): Add stddef.
62331         * modules/stdio (Depends-on): Likewise.
62332         * modules/stdlib (Depends-on): Likewise.
62333         * modules/string (Depends-on): Likewise.
62334         * modules/time (Depends-on): Likewise.
62335         * modules/unistd (Depends-on): Likewise.
62336         * modules/wchar (Depends-on): Likewise.
62337         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
62338         * lib/stdlib.in.h (includes): Likewise.
62339         * lib/string.in.h (includes): Likewise.
62340         * lib/time.in.h (includes): Likewise.
62341         * lib/unistd.in.h (includes): Likewise.
62342         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
62343         replaced.
62344         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62345         * m4/stddef_h.m4: New file.
62346         * modules/stddef: Likewise.
62347         * lib/stddef.in.h: Likewise.
62348         * modules/stddef-tests: Likewise.
62349         * tests/test-stddef.c: Likewise.
62350         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
62351         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
62352         * doc/posix-headers/locale.texi (locale.h): Likewise.
62353         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
62354         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62355         * doc/posix-headers/string.texi (string.h): Likewise.
62356         * doc/posix-headers/time.texi (time.h): Likewise.
62357         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
62358         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
62360 2009-08-14  Eric Blake  <ebb9@byu.net>
62362         doc: improve git diff of texinfo files
62363         * .gitattributes: Add rule for *.texi files, with hint on how to
62364         use it.
62365         Copied from m4, and based on a report by Bruno Haible.
62367 2009-08-14  Bruno Haible  <bruno@clisp.org>
62369         Disable multithread support by default on Cygwin 1.5.x for real.
62370         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
62372 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62374         update-copyright: much ado about intervals
62375         * build-aux/update-copyright: Implement and document
62376         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
62377         of copyright year intervals.
62378         Also, document UPDATE_COPYRIGHT_YEAR.
62379         * tests/test-update-copyright.sh: Test it.
62381         update-copyright: convert 2-digit to 4-digit years
62382         * build-aux/update-copyright: Implement and document.
62383         * tests/test-update-copyright.sh: Update.
62385 2009-08-14  Jim Meyering  <meyering@redhat.com>
62387         test-exclude: avoid coreutils "make check" failure
62388         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
62389         just as in test-argmatch.c.
62391 2009-08-13  Eric Blake  <ebb9@byu.net>
62393         test-dup2: fix bad assumption
62394         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
62395         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
62397         test-version-etc: fix CRLF portability issue
62398         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
62399         recognize \r.
62400         * tests/test-argp-version-etc-1.sh: Likewise.
62402         getopt: update client modules
62403         * modules/argp (Depends-on): Use getopt-gnu.
62404         * modules/git-merge-changelog (Depends-on): Likewise.
62405         * modules/long-options (Depends-on): Likewise.
62406         * modules/xstrtol (Depends-on): Likewise.
62408 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62410         * tests/test-version-etc.sh: Don't fail on different
62411         project/version.  Don't fail on CRLF differences.  Rewrite to use
62412         multiple -e instead of multiple sed forks, suggested by Eric Blake
62413         <ebb9@byu.net>.
62414         * tests/test-argp-version-etc-1.sh: Likewise.
62416 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62418         * tests/test-version-etc.sh: Don't fail on different
62419         project/version.
62421 2009-08-12  Bruno Haible  <bruno@clisp.org>
62423         Tests for modules 'getopt-posix', 'getopt-gnu'.
62424         * modules/getopt-posix-tests: New file.
62425         * tests/test-getopt.c: New file.
62426         * tests/test-getopt.h: New file.
62427         * tests/test-getopt_long.h: New file.
62429         New modules 'getopt-posix', 'getopt-gnu'.
62430         * modules/getopt-gnu: New file, renamed from modules/getopt.
62431         * modules/getopt-posix: New file.
62432         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
62433         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
62434         (gl_GETOPT): Remove macro.
62435         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
62436         Disable the test against BSD systems that declare optreset. Test
62437         against mingw bug. Test against lack of support of optional arguments
62438         on many platforms.
62439         * doc/glibc-headers/getopt.texi: Update module name and list of
62440         relevant platforms.
62441         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
62442         'getopt-gnu' and more portability problems.
62443         * NEWS: Mention the changes.
62445 2009-08-12  Bruno Haible  <bruno@clisp.org>
62447         Ensure that optarg etc. get declared by <unistd.h>.
62448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
62449         AC_USE_SYSTEM_EXTENSIONS.
62450         * modules/getopt (Depends-on): Add 'extensions'.
62452 2009-08-12  Bruno Haible  <bruno@clisp.org>
62454         Avoid test link errors.
62455         * modules/pipe-filter-ii-tests (Makefile.am): Define
62456         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
62457         * modules/pipe-filter-gi-tests (Makefile.am): Define
62458         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
62459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62461 2009-08-12  Bruno Haible  <bruno@clisp.org>
62463         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
62464         gl_GETOPT_SUBSTITUTE before.
62465         (gl_GETOPT): Use it.
62466         * m4/argp.m4 (gl_ARGP): Update.
62467         Reported by Sergey Poznyakoff.
62469         * m4/getopt.m4: Reorder macros.
62470         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
62471         (gl_GETOPT_SUBSTITUTE): Remove macro.
62473 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62475         Minor improvement in gitlog-to-changelog
62477         * build-aux/gitlog-to-changelog: New option `--format' makes
62478         output format string configurable.
62480 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62482         Optimize exclude: use hash tables for non-wildcard patterns.
62484         * lib/exclude.c: Include hash.h and mbuiter.h
62485         (struct exclude_pattern, exclude_segment): New data types.
62486         (struct exclude): Rewrite.
62487         (fnmatch_pattern_has_wildcards): New function.
62488         (new_exclude_segment, free_exclude_segment): New functions.
62489         (excluded_file_pattern_p, excluded_file_name_p): New functions.
62490         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
62491         * lib/exclude.h (is_fnmatch_pattern): New prototype.
62492         * modules/exclude: Depend on hash and mbuiter.
62494         * modules/exclude-tests: New file.
62495         * tests/test-exclude.c: New file.
62496         * tests/test-exclude1.sh: New file.
62497         * tests/test-exclude2.sh: New file.
62498         * tests/test-exclude3.sh: New file.
62499         * tests/test-exclude4.sh: New file.
62500         * tests/test-exclude5.sh: New file.
62501         * tests/test-exclude6.sh: New file.
62502         * tests/test-exclude7.sh: New file.
62504 2009-08-12  Bruno Haible  <bruno@clisp.org>
62506         Ensure that getopt() gets declared by <unistd.h>.
62507         * lib/unistd.in.h: Conditionally include getopt.h.
62508         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
62509         Set GNULIB_UNISTD_H_GETOPT.
62510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62511         GNULIB_UNISTD_H_GETOPT.
62512         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
62514 2009-08-12  Bruno Haible  <bruno@clisp.org>
62516         Clarify logic.
62517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
62518         gl_replace_getopt instead of GETOPT_H.
62520 2009-08-12  Bruno Haible  <bruno@clisp.org>
62522         * m4/getopt.m4: Add comments.
62524 2009-08-12  Bruno Haible  <bruno@clisp.org>
62526         Disable multithread support by default on Cygwin 1.5.x.
62527         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
62528         set gl_use_threads=no if not specified otherwise.
62530 2009-08-11  Bruno Haible  <bruno@clisp.org>
62532         Avoid compilation error on NetBSD 5.0.
62533         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
62534         * tests/test-stdio.c: Likewise.
62535         * tests/test-stdlib.c: Likewise.
62536         * tests/test-string.c: Likewise.
62537         * tests/test-unistd.c: Likewise.
62538         Reported by Greg Troxel <gdt@ir.bbn.com>
62539         at <https://savannah.gnu.org/support/?106973>.
62541 2009-08-11  Bruno Haible  <bruno@clisp.org>
62543         * modules/dup2-tests (Depends-on): Remove close.
62545         Undo 2009-07-19 commit.
62546         * modules/acl-tests (Depends-on): Remove close.
62547         * modules/binary-io-tests (Depends-on): Likewise.
62548         * modules/closein-tests (Depends-on): Likewise.
62549         * modules/flock-tests (Depends-on): Likewise.
62550         * modules/fsync-tests (Depends-on): Likewise.
62551         * modules/lseek-tests (Depends-on): Likewise.
62552         * modules/pipe-tests (Depends-on): Likewise.
62553         * modules/posix_spawn-tests (Depends-on): Likewise.
62554         * modules/posix_spawnp-tests (Depends-on): Likewise.
62555         * modules/stat-time-tests (Depends-on): Likewise.
62556         * modules/yesno-tests (Depends-on): Likewise.
62558 2009-08-10  Bruno Haible  <bruno@clisp.org>
62560         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
62562 2009-08-10  Bruno Haible  <bruno@clisp.org>
62564         Fix a gcc warning.
62565         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
62567 2009-08-10  Bruno Haible  <bruno@clisp.org>
62569         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
62570         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
62571         not only the first time.
62572         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
62573         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
62574         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
62575         is 1, not only the first time.
62577 2009-08-10  Bruno Haible  <bruno@clisp.org>
62579         Make it possible to use module 'gethostname' without module 'close'.
62580         * lib/unistd.in.h (close): Evoke a link error only if
62581         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
62582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62583         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62584         * modules/unistd (Makefile.am): Substitute
62585         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62586         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
62587         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
62588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
62589         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62590         * modules/sys_ioctl (Makefile.am): Substitute
62591         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62592         * modules/socket (configure.ac): On native Windows, set
62593         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
62594         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62595         Reported by Sam Steingold <sds@gnu.org>.
62597 2009-08-10  Bruno Haible  <bruno@clisp.org>
62599         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
62600         * modules/ioctl (configure.ac): Likewise.
62602 2009-08-10  Bruno Haible  <bruno@clisp.org>
62604         Avoid collision between gnulib wrapper and libintl wrapper.
62605         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
62606         already defined in intl/printf.c.
62607         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
62608         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
62610 2009-08-09  Bruno Haible  <bruno@clisp.org>
62612         Make <sys/select.h> really self-contained, also on Solaris 10.
62613         * lib/sys_select.in.h: Include <string.h>.
62614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
62615         Solaris 10 problem.
62616         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
62617         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
62618         Reported by Jim Meyering.
62620 2009-08-09  Bruno Haible  <bruno@clisp.org>
62622         Avoid warnings from 'aclocal' that are due to a use of macro name
62623         AM_XGETTEXT_OPTION that is not defined in automake.
62624         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
62625         automake.
62626         * modules/error (configure.ac): Likewise.
62627         * modules/propername (configure.ac): Likewise.
62628         * modules/vasprintf (configure.ac): Likewise.
62629         * modules/verror (configure.ac): Likewise.
62630         * modules/xprintf (configure.ac): Likewise.
62631         * modules/xvasprintf (configure.ac): Likewise.
62633 2009-08-08  Bruno Haible  <bruno@clisp.org>
62635         Avoid compilation error in C++ mode.
62636         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
62637         Reported by Sam Steingold <sds@gnu.org>.
62639 2009-08-08  Bruno Haible  <bruno@clisp.org>
62641         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
62642         for the various Unix platforms.
62643         * doc/posix-headers/limits.texi: Update platforms list regarding
62644         HOST_NAME_MAX.
62645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62647 2009-08-07  Jim Meyering  <meyering@redhat.com>
62649         selinux-at: fix typo in a comment
62650         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
62651         Spotted by Paolo Bonzini.
62653         selinux-at: remove redundant m4 code, add documentation
62654         * modules/selinux-at (configure.ac): Remove redundant code.
62655         LIB_SELINUX is already set via the dependent module, selinux-h.
62656         (Include): Add quotes around selinux-at.h.
62657         * lib/selinux-at.h: Add documentation.
62658         Reported by Bruno Haible in
62659         http://marc.info/?l=gnulib-bug&m=124958988300749
62661 2009-08-07  Bruno Haible  <bruno@clisp.org>
62663         Avoid link error on MacOS X 10.3 and 10.4.
62664         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
62665         on non-ELF systems.
62666         * lib/argp-pv.c (argp_program_version): Likewise.
62667         Reported by Simon Josefsson.
62669 2009-08-07  Simon Josefsson  <simon@josefsson.org>
62671         * tests/test-version-etc.sh: Use $EXEEXT.
62673 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
62675         update-copyright: update documentation to point to maint.mk
62676         * build-aux/update-copyright: Here.
62678 2009-08-06  Jim Meyering  <meyering@redhat.com>
62680         maint.mk: support update-copyright-local
62681         * top/maint.mk (update-copyright-local): Define place-holder.
62682         (update-copyright): Depend on $(update-copyright-local).
62684 2009-08-06  Jim Meyering  <meyering@redhat.com>
62686         selinux-at: new module
62687         Initially written for coreutils, this module will soon be
62688         used by findutils, too.
62689         * MODULES.html.sh [Misc]: Add selinux-at.
62690         * lib/selinux-at.h: New file, from coreutils.
62691         * lib/selinux-at.c: Likewise.
62692         * modules/selinux-at: Likewise.
62693         (License): Change from LGPL to GPL, since it depends
62694         on the GPL'd openat module.
62696         doc: update README
62697         * README: Remove references to cogito.
62698         Remove cvs-repo-updating instructions from 2007.
62699         Don't imply that CVS is better if you have limited disk space.
62701 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62703         update-copyright: support C-style comments
62704         * build-aux/update-copyright: Implement and document.
62705         * tests/test-update-copyright.sh: Test.
62707 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62709         update-copyright: support omitted "(C)"
62710         * build-aux/update-copyright: Implement and document.  Also,
62711         allow variable whitespace before "(C)".
62712         * tests/test-update-copyright.sh: Test.
62714 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62716         update-copyright: don't trip on non-FSF copyright statements
62717         * build-aux/update-copyright: Fix so that the first correctly
62718         formatted FSF copyright statement is recognized no matter what
62719         appears before it.  Update documentation.
62720         * tests/test-update-copyright.sh: Test that.
62722 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62724         update-copyright: clean up code a little
62725         * build-aux/update-copyright: Append "_re" to the name of any
62726         variable holding a regular expression.
62727         Replace "old" and "new" with "stmt" in variable names.
62728         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
62729         handled correctly.
62730         Format code more consistently.
62732 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62734         update-copyright-tests: improve portability
62735         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
62736         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
62738 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62740         update-copyright: support @copyright{} and &copy;
62741         * build-aux/update-copyright: Implement and document.
62742         * tests/test-update-copyright.sh: Test.
62744 2009-08-04  Jim Meyering  <meyering@redhat.com>
62746         update-copyright-tests: correctly test EOL=\r\n handling
62747         * tests/test-update-copyright.sh: Put \r at the end of some lines
62748         for the dos-eol tests.  Based on a patch by Joel E. Denny.
62750         maint.mk: make update-copyright exclusion list more configurable
62751         * top/maint.mk (update-copyright): Default to excluding COPYING,
62752         but allow an override, in case someone does want to update that file.
62754         maint.mk: don't update copyright date in COPYING
62755         * top/maint.mk (update-copyright): Exclude COPYING.
62757         maint.mk: add a copyright-updating rule
62758         * top/maint.mk (update-copyright): New rule.
62759         Derived from coreutils/Makefile.am.
62761         update-copyright: rename some variables
62762         * build-aux/update-copyright: Rename a few variables for clarity.
62763         Tweak syntax.  List Joel E. Denny as coauthor.
62765 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62767         update-copyright: fix bug for 2-digit last year and add tests
62768         * build-aux/update-copyright: Fix bug.
62769         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
62770         specified.
62771         * modules/update-copyright-tests: New
62772         * tests/test-update-copyright.sh: New.
62774 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62776         update-copyright: handle leading tabs in line prefix
62777         * build-aux/update-copyright: Count leading tabs as 8 spaces
62778         when computing margin.  This helps with the formatting of
62779         ChangeLogs, for example.
62780         Fix documentation a little.
62782 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62784         update-copyright: support EOL=\r\n
62785         * build-aux/update-copyright: Implement that.
62787 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62789         update-copyright: automatically format copyright statements
62790         * build-aux/update-copyright: Implement that.
62791         Also, be a little more predictable and safer by always failing
62792         when the full copyright format is not perfectly recognized as an
62793         unbroken whole.  Discussed at
62794         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
62795         Rewrite documentation.
62797 2009-08-03  Bruno Haible  <bruno@clisp.org>
62799         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
62801 2009-08-02  Bruno Haible  <bruno@clisp.org>
62803         Tests for module 'uname'.
62804         * modules/uname-tests: New file.
62805         * tests/test-uname.c: New file.
62807         New module 'uname'.
62808         * lib/uname.c: New file.
62809         * m4/uname.m4: New file.
62810         * modules/uname: New file.
62811         * doc/posix-functions/uname.texi: Mention the new module.
62813 2009-08-02  Bruno Haible  <bruno@clisp.org>
62815         Tests for module 'sys_utsname'.
62816         * modules/sys_utsname-tests: New file.
62817         * tests/test-sys_utsname.c: New file.
62819         New module 'sys_utsname'.
62820         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
62821         * m4/sys_utsname_h.m4: New file.
62822         * modules/sys_utsname: New file.
62823         * doc/posix-headers/sys_utsname.texi: Mention the new module.
62825 2009-08-02  Bruno Haible  <bruno@clisp.org>
62827         Implicitly initialize the sockets library.
62828         * lib/gethostname.c: Include sockets.h.
62829         (rpl_gethostname): Invoke gl_sockets_startup.
62830         * lib/socket.c: Include sockets.h.
62831         (rpl_socket): Invoke gl_sockets_startup.
62832         * modules/gethostname (Depends-on): Add sockets.
62833         * modules/socket (Depends-on): Likewise.
62834         * tests/test-poll.c: Don't include sockets.h.
62835         (main): Don't invoke gl_sockets_startup.
62836         * tests/test-select.c: Don't include sockets.h.
62837         (main): Don't invoke gl_sockets_startup.
62839 2009-08-02  Bruno Haible  <bruno@clisp.org>
62841         Allow multiple calls to gl_sockets_startup.
62842         * lib/sockets.c (initialized_sockets_version): New variable.
62843         (gl_sockets_startup): Do nothing if already called for this or a higher
62844         version.
62845         (gl_sockets_cleanup): Reset initialized_sockets_version.
62847 2009-08-03  Simon Josefsson  <simon@josefsson.org>
62849         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
62850         different project/version.
62852 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
62853             Bruno Haible  <bruno@clisp.org>
62855         Tests for module 'pipe-filter-gi'.
62856         * modules/pipe-filter-gi-tests: New file.
62857         * tests/test-pipe-filter-gi1.sh: New file.
62858         * tests/test-pipe-filter-gi1.c: New file.
62859         * tests/test-pipe-filter-gi2.sh: New file.
62860         * tests/test-pipe-filter-gi2-main.c: New file.
62861         * tests/test-pipe-filter-gi2-child.c: New file.
62863         New module 'pipe-filter-gi'.
62864         * lib/pipe-filter-gi.c: New file.
62865         * modules/pipe-filter-gi: New file.
62867 2009-08-02  Bruno Haible  <bruno@clisp.org>
62868             Paolo Bonzini  <bonzini@gnu.org>
62870         Tests for module 'pipe-filter-ii'.
62871         * modules/pipe-filter-ii-tests: New file.
62872         * tests/test-pipe-filter-ii1.sh: New file.
62873         * tests/test-pipe-filter-ii1.c: New file.
62874         * tests/test-pipe-filter-ii2.sh: New file.
62875         * tests/test-pipe-filter-ii2-main.c: New file.
62876         * tests/test-pipe-filter-ii2-child.c: New file.
62878         New module 'pipe-filter-ii'.
62879         * lib/pipe-filter.h: New file.
62880         * lib/pipe-filter-ii.c: New file.
62881         * lib/pipe-filter-aux.h: New file.
62882         * modules/pipe-filter-ii: New file.
62884 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62886         * lib/gc-libgcrypt.c: Change copyright to FSF.
62887         * lib/gc-gnulib.c: Likewise.
62889 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
62891         * lib/gethostname.c: Include limits.h.
62893 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62894             Bruno Haible  <bruno@clisp.org>
62896         Ensure HOST_NAME_MAX as part of the gethostname module.
62897         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
62898         define also HOST_NAME_MAX.
62899         * tests/test-gethostname.c: Include <limits.h>.
62900         (main): Check also HOST_NAME_MAX.
62901         * doc/posix-headers/limits.texi: Document the mingw problem.
62903 2009-08-02  Bruno Haible  <bruno@clisp.org>
62905         * lib/gethostname.c (gethostname): Fix handling of large len argument.
62906         Add comments.
62908 2009-03-31  Simon Josefsson  <simon@josefsson.org>
62910         * lib/gethostname.c: Add Windows wrapper.
62911         * m4/gethostname.m4: Look for gethostname in -lws2_32.
62912         * modules/gethostname: Depend on sys_socket & errno, for also
62913         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
62914         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
62916 2009-07-31  Jim Meyering  <meyering@redhat.com>
62918         getloadavg: fix symbol name in comment
62919         * lib/getloadavg.c: Correct a typo I introduced when adding
62920         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
62921         Matt Kraai spotted the problem.
62923 2009-07-29  Matt Kraai  <mkraai@beckman.com>
62925         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
62926         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
62927         code also if ! defined N_NAME_POINTER.
62928         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
62929         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
62930         but the n_name member is a 12-byte array.
62932 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
62934         update-copyright: generalize comment handling
62935         * build-aux/update-copyright: Handle copyright statements
62936         within more comment styles.
62937         Document usage.
62938         Report any file with an external copyright holder or parse failure.
62940 2009-07-29  Jim Meyering  <meyering@redhat.com>
62942         mktime: correct setting of REPLACE_MKTIME
62943         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
62945         update-copyright: new module
62946         * modules/update-copyright: New file.
62947         * build-aux/update-copyright: New file.
62948         * MODULES.html.sh (maint+release support): Add update-copyright.
62950 2009-07-27  Bruno Haible  <bruno@clisp.org>
62952         Fix compilation error when <ctime> is used and mktime is replaced.
62953         * lib/time.in.h (mktime): New declaration.
62954         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
62955         REPLACE_MKTIME instead of defining mktime in config.h.
62956         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
62957         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
62958         Reported by Ross McFarland <rwmcfa1@neces.com>.
62960 2009-07-27  Bruno Haible  <bruno@clisp.org>
62962         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
62963         Reported by Matt Kraai <mkraai@beckman.com>.
62965 2009-07-25  Jim Meyering  <meyering@redhat.com>
62967         maint.mk: avoid warnings about missing files
62968         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
62969         diagnostic when .prev-version does not exist.
62970         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
62971         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
62972         nonexistent cfg.mk.
62973         Suggestions from Simon Josefsson.
62975 2009-07-25  Bruno Haible  <bruno@clisp.org>
62977         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
62978         defined as macros. Needed on QNX 6.4.1.
62979         Reported by Matt Kraai <mkraai@beckman.com>.
62981 2009-07-23  Jim Meyering  <meyering@redhat.com>
62983         maint.mk: invoke "make dist" with a working value of XZ_OPT
62984         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
62986 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
62988         Make fseeko.c compile on QNX.
62989         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
62991 2009-07-22  Peter Simons  <simons@cryp.to>
62993         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
62994         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
62995         * lib/md4.h: Likewise.
62996         * lib/md5.h: Likewise.
62997         * lib/sha1.h: Likewise.
62998         * lib/sha256.h: Likewise.
62999         * lib/sha512.h: Likewise.
63001         tests-sha1: don't assign literal string to 'char *' variable
63002         * tests/test-sha1.c (main): Declare locals with "const" to match
63003         attributes of the right hand side.
63005 2009-07-21  Eric Blake  <ebb9@byu.net>
63007         dup2: fix more mingw problems
63008         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
63009         fd to itself.
63010         * doc/posix-functions/dup2.texi (dup2): Document the bug.
63011         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
63012         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
63013         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
63014         care of mingw bugs.
63016 2009-07-21  Jim Meyering  <meyering@redhat.com>
63018         vc-list-files: avoid failure when /bin/sh is dash
63019         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
63020         On some Debian based systems, /bin/sh is a symlink to dash, and running
63021         this command would omit the "/" following each 'tests' prefix:
63022           dash -x build-aux/vc-list-files -C . tests
63023         That is because bash and dash work differently:
63024           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
63025           bash ok
63026           dash odd
63028 2009-07-21  Eric Blake  <ebb9@byu.net>
63030         dup2-tests: test previous patch
63031         * modules/dup2-tests: New file.
63032         * tests/test-dup2.c: Likewise.
63033         * tests/test-open.c (main): Avoid unspecified behavior.
63034         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
63035         test.
63037         dup2: work around mingw and cygwin 1.5 bug
63038         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
63039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63040         * modules/unistd (Makefile.am): Substitute it.
63041         * lib/unistd.in.h (dup2): Declare the replacement.
63042         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
63043         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
63044         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
63045         * modules/execute (Depends-on): Add dup2.
63046         * modules/fseterr (Depends-on): Likewise.
63047         * modules/pipe (Depends-on): Likewise.
63048         * modules/posix_spawn-internal (Depends-on): Likewise.
63050 2009-07-21  Bruno Haible  <bruno@clisp.org>
63052         * modules/.gitattributes: New file.
63054 2009-07-20  Bruno Haible  <bruno@clisp.org>
63056         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
63057         (main): Use it.
63059 2009-07-20  Eric Blake  <ebb9@byu.net>
63061         test-pipe: make a bit more robust.
63062         * tests/test-pipe.c (myerr): Allow error messages regardless of
63063         what we do to stderr.
63064         (test_pipe): Rearrange to avoid deadlock.
63065         (child_main): Try a larger read, to ensure we avoided deadlock.
63066         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
63067         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
63068         if misused.
63070 2009-07-19  Jim Meyering  <meyering@redhat.com>
63072         fts: avoid false-positive cycle-detection
63073         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
63074         for each new command line argument.
63076 2009-07-19  Bruno Haible  <bruno@clisp.org>
63078         Fix build error on mingw with the modules sys_select and unistd.
63079         * modules/acl-tests (Depends-on): Add close.
63080         * modules/binary-io-tests (Depends-on): Likewise.
63081         * modules/closein-tests (Depends-on): Likewise.
63082         * modules/flock-tests (Depends-on): Likewise.
63083         * modules/fsync-tests (Depends-on): Likewise.
63084         * modules/lseek-tests (Depends-on): Likewise.
63085         * modules/pipe-tests (Depends-on): Likewise.
63086         * modules/posix_spawn-tests (Depends-on): Likewise.
63087         * modules/posix_spawnp-tests (Depends-on): Likewise.
63088         * modules/stat-time-tests (Depends-on): Likewise.
63089         * modules/yesno-tests (Depends-on): Likewise.
63091 2009-07-19  Bruno Haible  <bruno@clisp.org>
63093         Unify conditionals.
63094         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
63095         macros, not at the compiler macros.
63096         * lib/pipe.c: Likewise.
63097         * lib/execute.c: Likewise.
63098         * lib/spawni.c: Likewise.
63100 2009-07-19  Bruno Haible  <bruno@clisp.org>
63102         Fix handling of closed stdin/stdout/stderr on mingw.
63103         * lib/w32spawn.h: Include unistd.h.
63104         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
63105         file descriptor with O_NOINHERIT flag.
63106         (fd_safer_noinherit): New function, based on fd-safer.c.
63107         (dup_safer_noinherit): New function, based on dup-safer.c.
63108         (undup_safer_noinherit): New function.
63109         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
63110         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
63111         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
63112         instead of fd_safer.
63113         * tests/test-pipe.c: Include <windows.h>.
63114         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
63115         result.
63117         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
63118         from main.
63119         (test_pipe): Pass an extra argument for disambiguation.
63120         (main): Invoke parent_main or child_main.
63122         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
63123         consistently.
63125 2009-07-18  Eric Blake  <ebb9@byu.net>
63127         test-pipe: fix mingw build
63128         * tests/test-pipe.c (main): Avoid fcntl on mingw.
63130 2009-07-18  Bruno Haible  <bruno@clisp.org>
63132         * modules/pipe-tests (Makefile.am): Fix typo.
63134 2009-07-18  Eric Blake  <ebb9@byu.net>
63136         error: fix mingw build
63137         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
63138         Reported by Bruno Haible.
63140         error: avoid undefined use of stdout
63141         * lib/error.c (error, error_at_line): Check that fd 1 is open
63142         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
63143         is handling faults and the close_stdout module wants to report the
63144         detection of closed stdout as an error.
63146 2009-07-17  Eric Blake  <ebb9@byu.net>
63148         pipe: be robust in face of closed fds
63149         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
63150         should cause child to misbehave.
63151         * modules/pipe-tests: New module.
63152         * tests/test-pipe.c: New file.
63153         * tests/test-pipe.sh: New file.
63154         Reported by Akim Demaille.
63156 2009-07-14  Bruno Haible  <bruno@clisp.org>
63158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
63159         Reported by anonymous kc.
63161 2009-07-07  Jim Meyering  <meyering@redhat.com>
63163         maint.mk: don't look for translatable strings in *.m4 or *.mk
63164         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
63165         when searching for translatable strings.
63167 2009-07-05  Jim Meyering  <meyering@redhat.com>
63169         remove superfluous parentheses in STREQ definition
63170         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
63171         * lib/getugroups.c (STREQ): Likewise.
63172         * lib/fnmatch.c (STREQ): Likewise.
63173         Spotted by Bruno Haible.
63175 2009-07-04  Jim Meyering  <meyering@redhat.com>
63177         argv-iter: new module
63178         * MODULES.html.sh: Add argv-iter.
63179         * lib/argv-iter.c, lib/argv-iter.h: New files.
63180         * modules/argv-iter: New file.
63181         * modules/argv-iter-tests: New file.
63182         * tests/test-argv-iter.c: Test it.
63184 2009-07-04  Bruno Haible  <bruno@clisp.org>
63186         Fix assertion.
63187         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
63188         contains more exact copies of a given entry than file2, leave the extra
63189         copies unpaired rather than aborting.
63190         Reported by Eric Blake.
63192 2009-07-02  Bruno Haible  <bruno@clisp.org>
63194         Speedup git-merge-changelog for git cherry-pick.
63195         * lib/git-merge-changelog.c (struct entries_mapping): New type.
63196         (entries_mapping_get): New function, extracted from compute_mapping.
63197         (entries_mapping_reverse_get): New function.
63198         (compute_mapping): Add a 'full' argument. Return the result in a
63199         'struct entries_mapping'.
63200         (main): Update. Access the mappings through entries_mapping_get.
63201         Reported by Eric Blake.
63203 2009-07-02  Bruno Haible  <bruno@clisp.org>
63205         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
63206         best_i.
63208 2009-07-02  Bruno Haible  <bruno@clisp.org>
63210         Speed up approximate search for matching ChangeLog entries.
63211         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
63212         argument. Call fstrcmp_bounded instead of fstrcmp.
63213         (compute_mapping, try_split_merged_entry, main): Update callers.
63215 2009-07-02  Bruno Haible  <bruno@clisp.org>
63217         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
63219 2009-06-30  Bruno Haible  <bruno@clisp.org>
63221         Reduce the number of uc_is_cased calls.
63222         * lib/unicase.h (casing_suffix_context_t): Add
63223         'first_char_except_ignorable' field.
63224         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
63225         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
63226         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
63227         Update initializer.
63228         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
63229         case-ignorable characters.
63230         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
63231         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
63232         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
63233         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
63234         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
63236 2009-06-30  Bruno Haible  <bruno@clisp.org>
63238         Tests for module 'unicase/ignorable'.
63239         * modules/unicase/ignorable-tests: New file.
63240         * tests/unicase/test-ignorable.c: New file, generated by
63241         gen-uni-tables.
63243         Tests for module 'unicase/cased'.
63244         * modules/unicase/cased-tests: New file.
63245         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
63246         * tests/unicase/test-predicate-part1.h: New file, derived from
63247         tests/unictype/test-predicate-part1.h.
63248         * tests/unicase/test-predicate-part2.h: New file, same as
63249         tests/unictype/test-predicate-part2.h.
63251         Fix evaluation of "Before C" condition of FINAL_SIGMA.
63252         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
63253         (output_casing_properties): New function.
63254         (main): Call it.
63255         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
63256         * lib/unicase/cased.c: Include unictype/bitmap.h.
63257         (uc_is_cased): Define through a bitmap lookup.
63258         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
63259         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
63260         (uc_is_case_ignorable): Define through a bitmap lookup.
63261         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
63262         lib/unictype/bitmap.h.
63263         (Depends-on): Add inline. Clean up.
63264         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
63265         lib/unictype/bitmap.h.
63266         (Depends-on): Add inline. Clean up.
63267         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
63268         recognition.
63269         * tests/unicase/test-u16-tolower.c (main): Likewise.
63270         * tests/unicase/test-u32-tolower.c (main): Likewise.
63272 2009-06-30  Bruno Haible  <bruno@clisp.org>
63274         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
63275         * lib/unicase/u16-casemap.c: Likewise.
63276         * lib/unicase/u32-casemap.c: Likewise.
63278 2009-06-29  Bruno Haible  <bruno@clisp.org>
63280         Define u32_casefold as a wrapper around u32_ct_casefold.
63281         * lib/unicase/u32-casefold.c: Update.
63282         * modules/unicase/u32-casefold (Depends-on): Add
63283         unicase/u32-ct-casefold, unicase/empty-prefix-context,
63284         unicase/empty-suffix-context. Clean up.
63286         Define u16_casefold as a wrapper around u16_ct_casefold.
63287         * lib/unicase/u16-casefold.c: Update.
63288         * modules/unicase/u16-casefold (Depends-on): Add
63289         unicase/u16-ct-casefold, unicase/empty-prefix-context,
63290         unicase/empty-suffix-context. Clean up.
63292         Define u8_casefold as a wrapper around u8_ct_casefold.
63293         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
63294         * lib/unicase/u8-casefold.c: Update.
63295         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
63296         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63298         Define u32_totitle as a wrapper around u32_ct_totitle.
63299         * lib/unicase/u32-totitle.c: Update.
63300         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
63301         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63303         Define u16_totitle as a wrapper around u16_ct_totitle.
63304         * lib/unicase/u16-totitle.c: Update.
63305         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
63306         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63308         Define u8_totitle as a wrapper around u8_ct_totitle.
63309         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
63310         functions.
63311         (FUNC): Delegate to U_CT_TOTITLE.
63312         * lib/unicase/u8-totitle.c: Update.
63313         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
63314         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63316         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
63317         invocation.
63318         * modules/unicase/u32-tolower (Depends-on): Add
63319         unicase/empty-prefix-context, unicase/empty-suffix-context.
63321         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
63322         invocation.
63323         * modules/unicase/u16-tolower (Depends-on): Add
63324         unicase/empty-prefix-context, unicase/empty-suffix-context.
63326         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
63327         * modules/unicase/u8-tolower (Depends-on): Add
63328         unicase/empty-prefix-context, unicase/empty-suffix-context.
63330         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
63331         invocation.
63332         * modules/unicase/u32-toupper (Depends-on): Add
63333         unicase/empty-prefix-context, unicase/empty-suffix-context.
63335         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
63336         invocation.
63337         * modules/unicase/u16-toupper (Depends-on): Add
63338         unicase/empty-prefix-context, unicase/empty-suffix-context.
63340         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
63341         * modules/unicase/u8-toupper (Depends-on): Add
63342         unicase/empty-prefix-context, unicase/empty-suffix-context.
63344         New module 'unicase/u32-ct-casefold'.
63345         * lib/unicase/u32-ct-casefold.c: New file.
63346         * modules/unicase/u32-ct-casefold: New file.
63348         New module 'unicase/u16-ct-casefold'.
63349         * lib/unicase/u16-ct-casefold.c: New file.
63350         * modules/unicase/u16-ct-casefold: New file.
63352         New module 'unicase/u8-ct-casefold'.
63353         * lib/unicase/u8-ct-casefold.c: New file.
63354         * lib/unicase/u-ct-casefold.h: New file, derived from
63355         lib/unicase/u-casefold.h.
63356         * modules/unicase/u8-ct-casefold: New file.
63358         New module 'unicase/u32-ct-totitle'.
63359         * lib/unicase/u32-ct-totitle.c: New file.
63360         * modules/unicase/u32-ct-totitle: New file.
63362         New module 'unicase/u16-ct-totitle'.
63363         * lib/unicase/u16-ct-totitle.c: New file.
63364         * modules/unicase/u16-ct-totitle: New file.
63366         New module 'unicase/u8-ct-totitle'.
63367         * lib/unicase/u8-ct-totitle.c: New file.
63368         * lib/unicase/u-ct-totitle.h: New file, derived from
63369         lib/unicase/u-totitle.h.
63370         * modules/unicase/u8-ct-totitle: New file.
63372         New module 'unicase/u32-ct-tolower'.
63373         * lib/unicase/u32-ct-tolower.c: New file.
63374         * modules/unicase/u32-ct-tolower: New file.
63376         New module 'unicase/u16-ct-tolower'.
63377         * lib/unicase/u16-ct-tolower.c: New file.
63378         * modules/unicase/u16-ct-tolower: New file.
63380         New module 'unicase/u8-ct-tolower'.
63381         * lib/unicase/u8-ct-tolower.c: New file.
63382         * modules/unicase/u8-ct-tolower: New file.
63384         New module 'unicase/u32-ct-toupper'.
63385         * lib/unicase/u32-ct-toupper.c: New file.
63386         * modules/unicase/u32-ct-toupper: New file.
63388         New module 'unicase/u16-ct-toupper'.
63389         * lib/unicase/u16-ct-toupper.c: New file.
63390         * modules/unicase/u16-ct-toupper: New file.
63392         New module 'unicase/u8-ct-toupper'.
63393         * lib/unicase/u8-ct-toupper.c: New file.
63394         * modules/unicase/u8-ct-toupper: New file.
63396         Add context arguments to u*_casemap functions.
63397         * lib/unicase/unicasemap.h: Include unicase.h.
63398         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
63399         suffix_context arguments.
63400         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
63401         functions.
63402         (FUNC): Add prefix_context and suffix_context arguments. Use
63403         uc_is_cased and uc_is_case_ignorable.
63404         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
63405         * lib/unicase/u16-casemap.c: Likewise.
63406         * lib/unicase/u32-casemap.c: Likewise.
63407         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
63408         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63409         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
63410         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63411         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
63412         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63414         New module 'unicase/u32-suffix-context'.
63415         * lib/unicase/u32-suffix-context.c: New file.
63416         * modules/unicase/u32-suffix-context: New file.
63418         New module 'unicase/u16-suffix-context'.
63419         * lib/unicase/u16-suffix-context.c: New file.
63420         * modules/unicase/u16-suffix-context: New file.
63422         New module 'unicase/u8-suffix-context'.
63423         * lib/unicase/u8-suffix-context.c: New file.
63424         * lib/unicase/u-suffix-context.h: New file.
63425         * modules/unicase/u8-suffix-context: New file.
63427         New module 'unicase/empty-suffix-context'.
63428         * lib/unicase/empty-suffix-context.c: New file.
63429         * modules/unicase/empty-suffix-context: New file.
63431         New module 'unicase/u32-prefix-context'.
63432         * lib/unicase/u32-prefix-context.c: New file.
63433         * modules/unicase/u32-prefix-context: New file.
63435         New module 'unicase/u16-prefix-context'.
63436         * lib/unicase/u16-prefix-context.c: New file.
63437         * modules/unicase/u16-prefix-context: New file.
63439         New module 'unicase/u8-prefix-context'.
63440         * lib/unicase/u8-prefix-context.c: New file.
63441         * lib/unicase/u-prefix-context.h: New file.
63442         * lib/unicase/context.h: New file.
63443         * modules/unicase/u8-prefix-context: New file.
63445         New module 'unicase/empty-prefix-context'.
63446         * lib/unicase/empty-prefix-context.c: New file.
63447         * modules/unicase/empty-prefix-context: New file.
63449         New module 'unicase/ignorable'.
63450         * lib/unicase/ignorable.c: New file.
63451         * modules/unicase/ignorable: New file.
63453         New module 'unicase/cased'.
63454         * lib/unicase/caseprop.h: New file.
63455         * lib/unicase/cased.c: New file.
63456         * modules/unicase/cased: New file.
63458         New functions for case mapping of substrings.
63459         * lib/unicase.h (casing_prefix_context_t): New type.
63460         (unicase_empty_prefix_context): New variable.
63461         (u8_casing_prefix_context, u16_casing_prefix_context,
63462         u32_casing_prefix_context, u8_casing_prefixes_context,
63463         u16_casing_prefixes_context, u32_casing_prefixes_context): New
63464         declarations.
63465         (casing_suffix_context_t): New type.
63466         (unicase_empty_suffix_context): New variable.
63467         (u8_casing_suffix_context, u16_casing_suffix_context,
63468         u32_casing_suffix_context, u8_casing_suffixes_context,
63469         u16_casing_suffixes_context, u32_casing_suffixes_context,
63470         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
63471         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
63472         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
63473         declarations.
63475 2009-06-28  Jim Meyering  <meyering@redhat.com>
63477         boostrap: indent only with spaces
63478         * build-aux/bootstrap: Indent only with spaces, never TABs.
63480         bootstrap: split long lines
63481         * build-aux/bootstrap: Keep line length < 80.
63483         bootstrap: sync from coreutils
63484         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
63485         just as autoreconf does.  Verify a list of prerequisite
63486         package-name,version-number pairs if defined in bootstrap.conf.
63487         Refer to README-prereq, if prerequisites are not satisfied.
63489 2009-06-27  Eric Blake  <ebb9@byu.net>
63491         tests: add test for bogus NULL definition
63492         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
63493         * tests/test-stdlib.c: Likewise.
63494         * tests/test-string.c: Likewise.
63495         * tests/test-locale.c: Likewise.
63496         * tests/test-unistd.c: Likewise.
63497         * modules/stdio-tests (Depends-on): Add verify.
63498         * modules/stdlib-tests (Depends-on): Likewise.
63499         * modules/string-tests (Depends-on): Likewise.
63500         * modules/locale-tests (Depends-on): Likewise.
63501         * modules/unistd-tests (Depends-on): Likewise.
63503 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
63505         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
63506         self-explaining comment.
63507         * m4/selinux-selinux-h: Update serial.
63508         (gl_LIBSELINUX): New macro, adding a warning for missing development
63509         packages to code extracted from...
63510         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
63511         Add warning for missing development packages here, too.
63513 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
63515         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
63517 2009-06-25  Eric Blake  <ebb9@byu.net>
63519         version-etc: fix regression
63520         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
63521         gcc.
63522         (version_etc): Use it, to catch bugs with trailing NULL.
63523         * lib/version-etc.c (version_etc_arn): Delete unused argument.
63524         (version_etc_va): Fix logic bug.
63525         * modules/version-etc-tests: Add test.
63526         * tests/test-version-etc.c: New file.
63527         * tests/test-version-etc.sh: Likewise.
63529 2009-06-25  Sam Steingold  <sds@gnu.org>
63531         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
63532         mbtowc declaration.
63534 2009-06-25  Eric Blake  <ebb9@byu.net>
63536         fpurge: migrate into <stdio.h>
63537         * lib/fpurge.h: Delete...
63538         * lib/stdio.in.h (fpurge): ...and declare here, instead.
63539         * lib/fpurge.c (fpurge): Change declaring header.
63540         * modules/fpurge (Files): Drop deleted file.
63541         (Depends-on): Add stdio.
63542         (configure.ac): Set witness.
63543         * modules/stdio (Makefile.am): Support fpurge macros.
63544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63545         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
63546         * lib/fflush.c: Update client.
63547         * tests/test-fpurge.c: Likewise.
63548         * NEWS: Mention the change.
63550 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63552         * lib/argp-version-etc.c (program_authors): Add const
63553         qualifier.
63554         * lib/version-etc.c: Fix typos in the comments.
63555         * modules/argp-version-etc: Depends on version-etc.
63557 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63559         argp-version-etc: new module.
63561         * lib/argp-version-etc.c: New file.
63562         * lib/argp-version-etc.h: New file.
63563         * modules/argp-version-etc: New file.
63564         * modules/argp-version-etc-tests: New file.
63565         * tests/test-argp-version-etc.c: New test.
63566         * tests/test-argp-version-etc-1.sh: New test.
63568 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63570         Provide additional interfaces and documentation for version-etc
63571         module.
63573         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
63574         interfaces.
63575         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
63576         prototypes.
63578 2009-06-24  Bruno Haible  <bruno@clisp.org>
63580         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
63581         HAVE_LIB${NAME} macro.
63582         Reported by Sam Steingold <sds@gnu.org>.
63584 2009-06-23  Simon Josefsson  <simon@josefsson.org>
63586         * modules/hash-tests (test_hash_LDADD): Link to libintl when
63587         needed.
63589 2009-06-21  Bruno Haible  <bruno@clisp.org>
63591         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
63592         work.
63593         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
63594         together with LIB${NAME}, LTLIB${NAME}.
63595         Reported by Sam Steingold <sds@gnu.org>.
63597 2009-06-20  Jim Meyering  <meyering@redhat.com>
63599         tests: make sc_require_test_exit_idiom more generic
63600         * top/maint.mk (Exit_witness_file): New overridable variable.
63601         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
63602         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
63604 2009-06-19  Jim Meyering  <meyering@redhat.com>
63606         hash: reverse order of src/dst parameters in an internal interface
63607         * lib/hash.c (transfer_entries): Reverse order of parameters to
63608         put DST before SRC.  Adjust callers.
63610         tests: test-hash: avoid wholesale duplication
63611         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
63612         Instead, use a loop and add a single conditional.
63614         tests: test-hash: allow seed selection via a command line argument
63615         * tests/test-hash.c (get_seed): New function.
63616         (main): Use it.
63618 2009-06-19  Eric Blake  <ebb9@byu.net>
63620         hash: avoid memory leak on allocation failure
63621         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
63622         failure.  Factor repeated algorithm...
63623         (transfer_entries): ...into new helper routine.
63624         (hash_delete): React to hash_rehash return value.
63626         hash: reduce memory pressure in hash_rehash no-op case
63627         * lib/hash.c (next_prime): Avoid overflow.
63628         (hash_initialize): Factor bucket size computation...
63629         (compute_bucket_size): ...into new helper function.
63630         (hash_rehash): Use new function and open coding to reduce memory
63631         pressure, and avoid a memory leak in USE_OBSTACK code.
63632         Reported by Jim Meyering.
63634 2009-06-18  Eric Blake  <ebb9@byu.net>
63636         hash: make rotation more obvious
63637         * modules/hash (Depends-on): Add bitrotate and stdint.
63638         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
63639         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
63640         (SIZE_MAX): Rely on headers for definition.
63641         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
63642         (raw_hasher): Use rotr_sz.
63643         Suggested by Jim Meyering.
63645         hash: fix memory leak in last patch
63646         * lib/hash.c (hash_rehash): Avoid memory leak.
63648         hash: avoid no-op rehashing
63649         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
63651         hash: provide default callback functions
63652         * lib/hash.c (raw_hasher, raw_comparator): New functions.
63653         (hash_initialize): Use them as defaults.
63654         * tests/test-hash.c (main): Test this.
63656         hash: minor optimization
63657         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
63658         when possible.
63659         (hash_initialize): Document this promise.
63660         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
63661         * tests/test-hash.c (hash_compare_strings): Test this.
63663 2009-06-18  Bruno Haible  <bruno@clisp.org>
63665         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
63666         going to be replaced anyway.
63668 2009-06-18  Bruno Haible  <bruno@clisp.org>
63670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
63671         in one place.
63672         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
63673         be replaced anyway.
63675 2009-06-18  Eric Blake  <ebb9@byu.net>
63677         hash: check for resize before insertion
63678         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
63679         threshold before insertion, so that a pathological hash_rehash
63680         that fills every bucket can still trigger another rehash.
63682 2009-06-18  Jim Meyering  <meyering@redhat.com>
63684         hash-tests: add a loop around the small tests
63685         * tests/test-hash.c (main): Repeat small tests with selected
63686         small initial table sizes.
63688 2009-06-17  Eric Blake  <ebb9@byu.net>
63690         hash: minor cleanups
63691         * lib/hash.h (hash_entry): Make opaque, by moving...
63692         * lib/hash.c (hash_entry): ...here.
63693         (hash_insert): Clarify restrictions on what can be inserted.
63694         (hash_get_next): Clarify when it is safe to remove an element
63695         during traversal.
63696         (check_tuning): Skip verification when tuning is known safe.
63697         (hash_initialize): Clarify restrictions on tuning.
63699 2009-06-17  Jim Meyering  <jim@meyering.net>
63700         and Eric Blake  <ebb9@byu.net>
63702         hash-tests: new module
63703         * modules/hash-tests: New file.
63704         * tests/test-hash.c: New file.
63706 2009-06-17  Eric Blake  <ebb9@byu.net>
63708         strstr-simple: document new module
63709         * MODULES.html.sh: Document new module.
63711         strstr, strcasestr: replace on platforms with broken memchr
63712         * modules/strstr: Split into...
63713         * modules/strstr-simple: ...new module that does not care about
63714         performance, but does care about glibc bug.
63715         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
63716         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
63717         if platform memchr is broken, per Debian bug 521737.
63718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
63719         memchr.
63720         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
63721         * doc/posix-functions/strstr.texi (strstr): Document the fix.
63722         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63723         * modules/mountlist (Depends-on): Add strstr-simple.
63724         * modules/gen-uni-tables (Depends-on): Likewise.
63725         * modules/argz (Depends-on): Add strstr.
63727 2009-06-17  Bruno Haible  <bruno@clisp.org>
63729         * modules/posix_spawn-internal (Depends-on): Add errno.
63731 2009-06-17  Bruno Haible  <bruno@clisp.org>
63733         Define missing ESTALE on Interix 3.5.
63734         * lib/errno.in.h (ESTALE): Assign a value if missing.
63735         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
63736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
63737         missing.
63738         * doc/posix-headers/errno.texi: Mention the Interix bug.
63739         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
63741 2009-06-15  Eric Blake  <ebb9@byu.net>
63743         memchr, memchr2: add valgrind exception
63744         * lib/memchr.valgrind: New file.
63745         * lib/memchr2.valgrind: New file.
63746         * modules/memchr (Files): Distribute valgrind file.
63747         * modules/memchr2 (Files): Likewise.
63749         docs: memchr is no longer obsolete
63750         * MODULES.html.sh: Move memchr from obsolete to string.h section.
63751         * lib/string.in.h (memchr): Simplify logic.
63753 2009-06-14  Jim Meyering  <meyering@redhat.com>
63755         link-follow: fix the "checking..." message to not mention trailing slash
63756         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
63757         never considered trailing slashes.
63759 2009-06-14  Bruno Haible  <bruno@clisp.org>
63761         * m4/memchr.m4: Mention also the bug on IA-64.
63762         * doc/posix-functions/memchr.texi: Likewise.
63764 2009-06-12  Eric Blake  <ebb9@byu.net>
63766         memchr: detect broken x86_64 and alpha implementations
63767         * modules/memchr-tests (Depends-on): Move mmap detection...
63768         * modules/memchr (Depends-on): ...here.
63769         (configure.ac): Set indicator.
63770         * lib/string.in.h (memchr): Declare replacement.
63771         * modules/string (Makefile.am): Trigger replacement.
63772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63773         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
63774         bugs.
63775         * doc/posix-functions/memchr.texi (memchr): Document the bug.
63776         * modules/getpagesize (License): Relax license.
63778 2009-06-11  Bruno Haible  <bruno@clisp.org>
63780         * lib/idpriv.h: Add more references.
63782 2009-06-08  Bruno Haible  <bruno@clisp.org>
63784         Tests for module 'idpriv-droptemp'.
63785         * modules/idpriv-droptemp-tests: New file.
63786         * tests/test-idpriv-droptemp.sh: New file.
63787         * tests/test-idpriv-droptemp.su.sh: New file.
63788         * tests/test-idpriv-droptemp.c: New file.
63790         New module 'idpriv-droptemp'.
63791         * lib/idpriv-droptemp.c: New file.
63792         * modules/idpriv-droptemp: New file.
63794 2009-06-08  Bruno Haible  <bruno@clisp.org>
63796         Tests for module 'idpriv-drop'.
63797         * modules/idpriv-drop-tests: New file.
63798         * tests/test-idpriv-drop.sh: New file.
63799         * tests/test-idpriv-drop.su.sh: New file.
63800         * tests/test-idpriv-drop.c: New file.
63802         New module 'idpriv-drop'.
63803         * lib/idpriv.h: New file.
63804         * lib-idpriv-drop.c: New file.
63805         * m4/idpriv.m4: New file.
63806         * modules/idpriv-drop: New file.
63808 2009-06-08  Bruno Haible  <bruno@clisp.org>
63810         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
63811         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63812         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63813         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63814         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63815         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63816         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63818 2009-06-08  Eric Blake  <ebb9@byu.net>
63820         test-strstr: use memory fence, when possible
63821         * tests/test-strstr.c (main): Use memory fence, in order to be
63822         more likely to trigger Debian bug 521737.
63823         * modules/strstr-tests (Files): Pull in additional files.
63825         memchr: no longer obsolete, for wider field testing
63826         * modules/memchr (Status, Notice): Delete, this module is no
63827         longer obsolete.
63828         * modules/vasnprintf (Depends-on): Add memchr.
63830 2009-06-07  Jim Meyering  <meyering@redhat.com>
63832         hash: declare some functions with the warn_unused_result attribute
63833         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
63835 2009-06-07  Bruno Haible  <bruno@clisp.org>
63837         * tests/test-alignof.c: Don't test int64_t if it does not exist.
63838         Reported by Eric Blake.
63840 2009-06-06  Eric Blake  <ebb9@byu.net>
63842         test-alignof: fix typo with long double
63843         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
63844         compiler error.
63846 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
63848         Escape non-texinfo { and }s.
63849         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
63850         markup error.
63852 2009-06-04  Jim Meyering  <meyering@redhat.com>
63854         gitlog-to-changelog: don't infloop on an empty commit log
63855         * build-aux/gitlog-to-changelog: Warn about an empty log message.
63856         Reported by Boris Petersen <transacid@centerim.org>.
63858 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
63860         version-etc: extend for packagers
63861         Add three new configure options, intended for packagers:
63862           --with-packager="packager name"
63863           --with-packager-version="packager-specific version"
63864           --with-packager-bug-reports="packager bug reporting"
63865         An example with coreutils:
63866           $ ./configure \
63867             --with-packager=Gentoo \
63868             --with-packager-bug-report=http://bugs.gentoo.org/ \
63869             --with-packager-version="patchset 1.6"
63870           $ ./src/ls --version | head -n2
63871           ls (GNU coreutils) 7.1-dirty
63872           Packaged by Gentoo (patchset 1.6)
63873         Note that the bug reporting info via --help doesn't show up because
63874         coreutils uses its own custom emit_bug_reporting_address() implementation
63875         in src/system.h.  If it didn't, it'd look like:
63876           $ ./src/ls --help | tail -n4
63877           Report bugs to <bug-coreutils@gnu.org>.
63878           Report Gentoo bugs to <http://bugs.gentoo.org/>.
63879           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
63880           General help using GNU software: <http://www.gnu.org/gethelp/>.
63881         * lib/version-etc.c: Print new information, if provided.
63882         * m4/version-etc.m4: New file.
63883         * modules/version-etc (Files): Add m4/version-etc.m4.
63884         (configure.ac): Add gl_VERSION_ETC.
63886 2009-05-31  Bruno Haible  <bruno@clisp.org>
63888         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
63889         and 'int64_t'.
63890         * modules/alignof-tests (Dependencies): Add stdint.
63891         Reported by Eric Blake.
63893 2009-05-31  Bruno Haible  <bruno@clisp.org>
63895         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
63896         restriction due to compiler bugs.
63897         Reported by Eric Blake.
63899 2009-05-31  Simon Josefsson  <simon@josefsson.org>
63900             Bruno Haible  <bruno@clisp.org>
63902         Fix test-alignof failure.
63903         * lib/alignof.h (alignof_slot): New macro.
63904         (alignof_type): New macro, with the same semantics as the previous
63905         'alignof'.
63906         (alignof): Alias to alignof_slot.
63907         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
63908         check that the results are usable as constant expressions.
63910 2009-05-31  Bruno Haible  <bruno@clisp.org>
63912         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
63913         * tests/test-memchr.c (main): Check that memchr does not read past the
63914         first occurrence of the byte.
63915         * tests/test-strstr.c (main): Update comment.
63916         Suggested by Eric Blake.
63918 2009-05-30  Bruno Haible  <bruno@clisp.org>
63920         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
63921         detail how to use dumpbin.
63922         Reported by David Byron <dbyron@dbyron.com>.
63924 2009-06-02  Simon Josefsson  <simon@josefsson.org>
63926         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
63928 2009-06-02  Simon Josefsson  <simon@josefsson.org>
63930         * m4/manywarnings.m4: Add GCC 4.4 warnings.
63932 2009-05-28  Bruno Haible  <bruno@clisp.org>
63934         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
63935         build-aux/ files.
63937 2009-05-28  Simon Josefsson  <simon@josefsson.org>
63939         * gnulib-tool (func_import): Transform license on build-aux/ files too.
63941 2009-05-27  Simon Josefsson  <simon@josefsson.org>
63943         * gnulib-tool (sed_transform_main_lib_file)
63944         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
63945         regexps.
63947 2009-05-26  Simon Josefsson  <simon@josefsson.org>
63949         * tests/test-strstr.c: Add another self-test.
63950         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
63951         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
63953 2009-05-23  Bruno Haible  <bruno@clisp.org>
63955         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
63956         change.
63958 2009-05-21  Bruno Haible  <bruno@clisp.org>
63960         Simplify use of mode_t varargs.
63961         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
63962         uses 'mode_t' or 'int'.
63963         * lib/openat.c (openat): Likewise.
63964         * lib/open-safer.c (open_safer): Likewise.
63965         * m4/mode_t.m4: New file.
63966         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
63967         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
63968         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
63969         * modules/open (Files): Add m4/mode_t.m4.
63970         * modules/openat (Files): Likewise.
63971         * modules/fcntl-safer (Files): Likewise.
63972         Suggested by Eric Blake.
63974 2009-05-21  Pádraig Brady  <P@draigbrady.com>
63976         * doc/glibc-functions/fallocate.texi: New file.
63977         * doc/gnulib.texi: Include it.
63979 2009-05-21  Eric Blake  <ebb9@byu.net>
63980             Bruno Haible  <bruno@clisp.org>
63982         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
63983         invocations.
63984         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
63986 2009-05-21  Eric Blake  <ebb9@byu.net>
63987             Bruno Haible  <bruno@clisp.org>
63989         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
63990         include_next. Fix of 2008-11-20 commit.
63991         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
63992         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
63993         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
63994         NEXT_MATH_H.
63995         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
63996         instead of NEXT_MATH_H.
63998 2009-05-21  Bruno Haible  <bruno@clisp.org>
64000         Avoid redefinition warnings for SIZE_MAX.
64001         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
64002         Reported by Simon Josefsson.
64004 2009-05-21  Bruno Haible  <bruno@clisp.org>
64006         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
64007         AC_CACHE_VAL.
64009 2009-05-20  Bruno Haible  <bruno@clisp.org>
64011         Make zeroptr.h work on mingw.
64012         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
64013         mprotect.
64014         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
64015         * modules/memchr2-tests (configure.ac): Likewise.
64016         * modules/memcmp-tests (configure.ac): Likewise.
64017         * modules/memmem-tests (configure.ac): Likewise.
64018         * modules/memrchr-tests (configure.ac): Likewise.
64019         Reported by Simon Josefsson.
64021 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64023         * tests/test-glob.c: Include string.h for strcmp prototype.
64025 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64027         * modules/getdelim (Depends-on): Add explicit stdint, although it
64028         was implicitly already pulled in via realloc-posix.
64029         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
64031 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64033         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
64034         G. Christensen" <tgc@jupiterrise.com>.
64035         * m4/sys_socket_h.m4: Check for sa_family_t.
64036         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
64037         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
64038         * tests/test-sys_socket.c: Check that sa_family_t works.
64040 2009-05-18  Eric Blake  <ebb9@byu.net>
64042         maint.mk: allow gnulib_dir in VPATH build
64043         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
64045 2009-05-15  Jim Meyering  <meyering@redhat.com>
64047         maint.mk: Give gnulib_dir a default definition.
64048         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
64049         Thus, most packages no longer need to specify this variable in cfg.mk
64051 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
64053         rename.m4: fix typos that would make non-mingw cross-configure fail
64054         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
64056 2009-05-13  Eric Blake  <ebb9@byu.net>
64058         mmap-anon: avoid out-of-order autoconf expansion
64059         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
64060         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
64061         * modules/memchr-tests (Depends-on): Add extensions.
64062         * modules/memchr2-tests (Depends-on): Add extensions.
64063         * modules/memcmp-tests (Depends-on): Add extensions.
64064         * modules/memmem-tests (Depends-on): Add extensions.
64065         * modules/memrchr-tests (Depends-on): Add extensions.
64067 2009-05-13  Bruno Haible  <bruno@clisp.org>
64069         Make some tests ISO C 99 compliant.
64070         * tests/zerosize-ptr.h: New file.
64071         * tests/test-memchr.c: Include zerosize-ptr.h.
64072         (main): Use a zero-size object pointer instead of NULL.
64073         * tests/test-memchr2.c: Include zerosize-ptr.h.
64074         (main): Use a zero-size object pointer instead of NULL.
64075         * tests/test-memcmp.c: Include zerosize-ptr.h.
64076         (main): Use a zero-size object pointer instead of NULL.
64077         * tests/test-memmem.c: Include zerosize-ptr.h.
64078         (main): Use a zero-size object pointer instead of NULL.
64079         * tests/test-memrchr.c: Include zerosize-ptr.h.
64080         (main): Use a zero-size object pointer instead of NULL.
64081         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
64082         m4/mmap-anon.m4.
64083         (Depends-on): Add getpagesize.
64084         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64085         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
64086         m4/mmap-anon.m4.
64087         (Depends-on): Add getpagesize.
64088         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64089         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
64090         m4/mmap-anon.m4.
64091         (Depends-on): Add getpagesize.
64092         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64093         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
64094         m4/mmap-anon.m4.
64095         (Depends-on): Add getpagesize.
64096         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64097         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
64098         m4/mmap-anon.m4.
64099         (Depends-on): Add getpagesize.
64100         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64102 2009-05-12  Bruno Haible  <bruno@clisp.org>
64104         Tests for module 'alignof'.
64105         * modules/alignof-tests: New file.
64106         * tests/test-alignof.c: New file.
64108 2009-05-12  Bruno Haible  <bruno@clisp.org>
64110         Fix alignof macro.
64111         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
64112         vendor compilers that are always correct.
64114 2009-05-12  Bruno Haible  <bruno@clisp.org>
64116         Make the MAP_ANONYMOUS detection work on HP-UX 11.
64117         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
64118         not whether its fully works.
64120 2009-05-12  Bruno Haible  <bruno@clisp.org>
64122         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
64124 2009-05-12  Jim Meyering  <meyering@redhat.com>
64126         * top/maint.mk: Adjust backslash alignment.
64128 2009-05-11  Simon Josefsson  <simon@josefsson.org>
64130         * top/maint.mk: Make $(srcdir)/build-aux configurable.
64132 2009-05-11  Eric Blake  <ebb9@byu.net>
64134         argp: avoid undefined behavior
64135         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
64136         macros.
64138 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64140         * tests/test-vc-list-files-git.sh: Do git config of user.email and
64141         user.name to prevent git commit from complaining.
64143 2009-05-10  Bruno Haible  <bruno@clisp.org>
64145         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
64146         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
64147         it rewrites every file name only once.
64148         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
64150 2009-05-08  Bruno Haible  <bruno@clisp.org>
64152         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
64153         instead of 'max'.
64155 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64157         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
64158         sockaddr_storage test.
64160 2009-05-07  Simon Josefsson  <simon@josefsson.org>
64162         * modules/sys_socket (Makefile.am): Substitute
64163         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
64164         * m4/sys_socket_h.m4: Check for sockaddr_storage.
64165         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
64166         * tests/test-sys_socket.c: Check sockaddr_storage.
64168 2009-05-08  Bruno Haible  <bruno@clisp.org>
64170         New module 'alignof'.
64171         * lib/alignof.h: New file.
64172         * modules/alignof: New file.
64174 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64175             Bruno Haible  <bruno@clisp.org>
64177         Fix test-file-has-acl on FreeBSD.
64178         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
64179         mask is implicitly added.
64180         * tests/test-file-has-acl.c: Include <signal.h>.
64181         (main): Terminate the test after 5 seconds.
64182         * modules/acl-tests (configure.ac): Check for alarm function.
64184 2009-05-04  Bruno Haible  <bruno@clisp.org>
64186         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
64187         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
64188         * modules/errno (configure.ac): Drop AC_REQUIRE.
64189         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
64190         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
64192 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64194         * modules/glob-tests: New module.
64195         * tests/test-glob.c: Add.
64197 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64199         * modules/fnmatch-tests: New module.
64200         * tests/test-fnmatch.c: Add.
64202 2009-05-04  Eric Blake  <ebb9@byu.net>
64204         maint: make the new no-submodule-changes rule VPATH-safe
64205         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
64207 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64208             Bruno Haible  <bruno@clisp.org>
64210         acl: Fix infinite loop on FreeBSD.
64211         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
64212         of return value from acl_get_entry.
64213         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
64214         Likewise.
64216 2009-05-03  Bruno Haible  <bruno@clisp.org>
64218         * lib/acl-internal.h (acl_entries): Clarify return value.
64219         * lib/acl_entries.c (acl_entries): Likewise.
64221 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64223         Bug fix in acl module.
64224         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
64226 2009-05-03  Bruno Haible  <bruno@clisp.org>
64228         Create gperf-generated file in the source dir, not in the build dir.
64229         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
64230         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
64231         * modules/unicase/locale-language (unicase/locale-languages.h):
64232         Likewise.
64233         * modules/unicase/special-casing (unicase/special-casing-table.h):
64234         Likewise.
64235         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
64236         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
64237         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
64238         Reported by Ralf Wildenhues.
64240 2009-05-03  Bruno Haible  <bruno@clisp.org>
64242         * modules/fnmatch (Description, configure.ac): Taken from
64243         fnmatch-posix.
64244         * modules/fnmatch-posix: Turn into a symbolic reference to the
64245         'fnmatch' module, and deprecate.
64246         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
64248 2009-05-03  Bruno Haible  <bruno@clisp.org>
64250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
64251         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
64252         Reported by Ralf Wildenhues.
64254 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64256         * m4/fnmatch.m4: Fix fnmatch re-define.
64258 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64260         priv-set: new module and tests; adapt write-any-file
64261         * lib/priv-set.c: New file.
64262         * lib/priv-set.h: New file.
64263         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
64264         * lib/write-any-file.c: Simplify by using priv-set module.
64265         * m4/priv-set.m4: New file.
64266         * modules/priv-set: New file.
64267         * modules/unlinkdir: Add dependency on priv-set module.
64268         * modules/write-any-file: Likewise.
64270         Tests for module 'priv-set'.
64271         * modules/priv-set-tests: New file.
64272         * tests/test-priv-set.c: New file.
64274 2009-05-03  Jim Meyering  <meyering@redhat.com>
64275             Bruno Haible  <bruno@clisp.org>
64277         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
64278         use the converted UTF-8 variant of the name instead.
64280 2009-05-03  Jim Meyering  <meyering@redhat.com>
64282         tests: tighten some getdate tests
64283         * tests/test-getdate.c (main): Tighten tests: require equality,
64284         not just greater than.  Set TZ envvar to UTC0.
64286 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64288         getdate: correctly interpret "next monday" when run on a Monday
64289         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
64290         that e.g., "next tues" (when run on a tuesday) results in a date
64291         that is one week in the future, and not today's date.
64292         I.e., add a week when the wday is the same as the current one.
64293         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
64294         and earlier by Martin Bernreuther and Jan Minář.
64295         * tests/test-getdate.c (main): Check that "next DAY" is always in
64296         the future and that "last DAY" is always in the past.
64298 2009-05-02  Jim Meyering  <meyering@redhat.com>
64300         build: ensure that a release build fails when a submodule is unclean
64301         * top/maint.mk (no-submodule-changes): New rule.
64302         (alpha beta major): Depend on it.
64304 2009-05-02  Bruno Haible  <bruno@clisp.org>
64306         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
64307         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
64308         shell variable gl_fnmatch_required to detect which variant is
64309         requested.
64310         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
64311         gl_FUNC_FNMATCH_POSIX.
64312         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
64313         exclude fnmatch-posix.
64315 2009-05-02  Bruno Haible  <bruno@clisp.org>
64317         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
64318         * modules/mbsrtowcs (License): Change to LGPLv2+.
64319         * modules/strnlen1 (License): Likewise.
64320         Reported by Simon Josefsson.
64322 2009-05-02  Bruno Haible  <bruno@clisp.org>
64324         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
64325         "cross".
64326         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
64327         gnulib-tool was called with option --source-base=lib.
64329 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64331         Use automake *-local hooks without commands, for extensibility.
64332         * modules/localcharset (Makefile.am): Rename install-exec-local
64333         rule to install-exec-localcharset, and make it a prerequisite of
64334         install-exec-local.  Likewise, rename the uninstall-local rule to
64335         uninstall-localcharset, and make it a prerequisite of the former.
64337 2009-05-01  Bruno Haible  <bruno@clisp.org>
64339         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
64340         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
64341         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
64342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
64343         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
64344         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
64345         m4/locale-zh.m4, m4/codeset.m4.
64347         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
64348         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
64349         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
64350         m4/locale-zh.m4.
64352         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
64353         REPLACE_WCRTOMB if mbstate_t must be replaced.
64354         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
64355         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
64357 2009-05-01  Bruno Haible  <bruno@clisp.org>
64359         Avoid compiler warnings when redefining macros defined by <libintl.h>.
64360         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
64361         dngettext, dcngettext, textdomain, bindtextdomain,
64362         bind_textdomain_codeset): Undefine before redefining.
64364 2009-04-30  Bruno Haible  <bruno@clisp.org>
64366         Fix bug introduced on 2009-04-25.
64367         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
64368         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
64369         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
64370         is defined.
64371         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
64372         is defined.
64373         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
64374         is defined.
64375         Reported by Elbert_Pol <elbert.pol@gmail.com>.
64377 2009-04-28  Bruno Haible  <bruno@clisp.org>
64379         Comment tweaks.
64380         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
64381         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
64382         * lib/unicase.h (u*_casexfrm): Likewise.
64383         Reported by Paolo Bonzini.
64385 2009-04-28  Bruno Haible  <bruno@clisp.org>
64387         Fix a compilation error.
64388         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
64389         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
64390         Reported by Jim Meyering.
64392 2009-04-27  Bruno Haible  <bruno@clisp.org>
64394         New module 'libunistring'.
64395         * modules/libunistring: New file.
64396         * m4/libunistring.m4: New file.
64397         * MODULES.html.sh (Unicode string functions): Add it.
64399 2009-04-27  Eric Blake  <ebb9@byu.net>
64401         maint.mk: allow package-specific header to provide <config.h>
64402         * top/maint.mk (sc_require_config_h): New variable.
64403         (sc_require_config_h, sc_require_config_h_first): Use it.
64405 2009-04-27  Simon Josefsson  <simon@josefsson.org>
64407         * top/maint.mk (sc_avoid_if_before_free): Except
64408         useless-if-before-free script.
64410 2009-04-27  Eric Blake  <ebb9@byu.net>
64412         maintainer-makefile: depend on all required helper scripts
64413         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
64414         useless-if-before-free.
64415         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
64416         version, rather than assuming gnulib checkout is available.
64417         Reported by Simen Josefsson.
64419 2009-04-26  Bruno Haible  <bruno@clisp.org>
64421         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
64422         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
64423         "../" or "..".
64425 2009-04-26  Bruno Haible  <bruno@clisp.org>
64427         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
64428         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
64429         AC_LIB_HAVE_LINKFLAGS.
64431 2009-04-26  Bruno Haible  <bruno@clisp.org>
64433         Simplify calling convention of u*_conv_from_encoding.
64434         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
64435         u32_conv_from_encoding): Expect a resultbuf argument and return the
64436         result directly as a pointer.
64437         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
64438         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
64439         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
64440         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
64441         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
64442         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64443         Update.
64444         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
64445         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
64446         * lib/vasnprintf.c (VASNPRINTF): Update.
64447         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
64448         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
64449         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
64450         * NEWS: Mention the change.
64452 2009-04-26  Bruno Haible  <bruno@clisp.org>
64454         Simplify calling convention of u*_conv_to_encoding.
64455         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64456         u32_conv_to_encoding): Expect a resultbuf argument and return the
64457         result directly as a pointer.
64458         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64459         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
64460         freeing scaled_offsets if mem_iconveha failed.
64461         * lib/unicase/u-casexfrm.h (FUNC): Update.
64462         * lib/uninorm/u-normxfrm.h (FUNC): Update.
64463         * lib/vasnprintf.c (VASNPRINTF): Update.
64464         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
64465         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
64466         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
64467         * NEWS: Mention the change.
64469 2009-04-26  Bruno Haible  <bruno@clisp.org>
64471         Avoid test failures on AIX and OSF/1.
64472         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
64473         malloc(0).
64474         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64475         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64476         Likewise.
64477         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
64478         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
64479         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
64480         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
64481         * doc/posix-functions/malloc.texi: Document the portability problem
64482         related to malloc(0).
64484 2009-04-26  Bruno Haible  <bruno@clisp.org>
64486         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
64487         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
64488         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
64490 2009-04-25  Bruno Haible  <bruno@clisp.org>
64492         Avoid link error when creating a namespace clean library.
64493         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
64494         as macro with arguments if already defined as an alias.
64495         * lib/signbitf.c (gl_signbitf): Don't undefine.
64496         * lib/signbitd.c (gl_signbitd): Don't undefine.
64497         * lib/signbitl.c (gl_signbitl): Don't undefine.
64499 2009-04-25  Jim Meyering  <meyering@redhat.com>
64501         vc-list-files: fix another quoting bug
64502         * build-aux/vc-list-files: Avoid sed backslash expansion
64503         of pathological directory names.
64505 2009-04-25  Eric Blake  <ebb9@byu.net>
64507         vc-list-files: fix shell quoting error
64508         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
64509         timestamp.
64511 2009-04-25  Jim Meyering  <meyering@redhat.com>
64513         vc-list-files: restore lost functionality with subdir argument
64514         * build-aux/vc-list-files: When given a non-"." sub-directory
64515         argument, substitute the $dir/ prefix back onto each resulting name.
64516         Otherwise, coreutils' root_tests check would fail.
64518 2009-04-24  Eric Blake  <ebb9@byu.net>
64520         vc-list-files: ignore git symlinks
64521         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
64522         than ls-files, to ignore git symlinks.
64524         maint.mk: import improvements from m4
64525         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
64526         (move_if_change): Delete unused macro.
64527         (news-date-check, vc-diff-check): Support VPATH builds.
64528         (announcement): Likewise.  Split --bootstrap-tools list...
64529         (boostrap-tools): ...into separate list, which can be overridden
64530         in cfg.mk.
64531         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
64532         requiring dependency on useless-if-before-free module.
64533         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
64534         Support VPATH builds.
64536 2009-04-24  Jim Meyering  <meyering@redhat.com>
64538         maint.mk: remove coreutils-specific rules and variables
64539         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
64540         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
64541         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
64543         maint.mk: remove obsolete rule
64544         * top/maint.mk (rel-check): Remove rule.
64545         (WGET, WGETFLAGS): Remove now-unused variables.
64547 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64549         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
64550         consistency.
64552         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
64553         '$(PATH_SEPARATOR)' instead of ':'.
64555 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64557         * lib/getopt1.c (main): Use 'const' for static array.
64559 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64561         * top/maint.mk: Sync with coreutils.
64562         * NEWS: Explain incompatibilities.
64564 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64565             Bruno Haible  <bruno@clisp.org>
64567         Fix cross-compilation results.
64568         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
64569         statement, as third argument of AC_TRY_RUN.
64570         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64571         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64572         Likewise.
64573         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64574         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
64575         Likewise.
64576         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64577         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
64578         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
64580 2009-04-20  Bruno Haible  <bruno@clisp.org>
64582         Avoid test failure on mingw.
64583         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
64585 2009-04-20  Bruno Haible  <bruno@clisp.org>
64587         Avoid compilation error on mingw.
64588         * modules/localename-tests (Depends-on): Add locale.
64590 2009-04-19  Bruno Haible  <bruno@clisp.org>
64592         Support for building a shared library on Windows platforms.
64593         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
64594         (main): Test the presence of UNINORM_NFC here.
64595         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
64596         (main): Test the presence of UNINORM_NFD here.
64597         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
64598         (main): Test the presence of UNINORM_NFKC here.
64599         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
64600         (main): Test the presence of UNINORM_NFKD here.
64602 2009-04-19  Bruno Haible  <bruno@clisp.org>
64604         Avoid a compiler warning.
64605         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
64606         Change type of variable 'sequence'.
64608 2009-04-19  Bruno Haible  <bruno@clisp.org>
64610         * modules/configmake (Makefile.am): When the contents of configmake.h
64611         does not change, arrange to preserve its modification time.
64613 2009-04-17  Simon Josefsson  <simon@josefsson.org>
64615         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
64616         gettext domain.
64618 2009-04-16  Jim Meyering  <meyering@redhat.com>
64620         useless-if-before-free: improve conversion code
64621         * build-aux/useless-if-before-free: Adjust code-in-comment to match
64622         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
64624 2009-04-14  Bruno Haible  <bruno@clisp.org>
64626         * modules/fcntl (Depends-on): Add extensions.
64627         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
64629 2009-04-12  Ben Pfaff  <blp@gnu.org>
64631         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
64632         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
64634 2009-03-20  Ben Pfaff  <blp@gnu.org>
64636         Make rename replace existing destinations on Windows.
64637         * m4/rename.m4: Add test for Mingw.
64638         * lib/rename.c: Add rename replacement that uses MoveFileEx with
64639         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
64640         * doc/posix-functions/rename.texi: Document.
64642 2009-04-10  Bruno Haible  <bruno@clisp.org>
64644         New include file "iconveh.h".
64645         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
64646         * lib/striconveh.h: Include it.
64647         (enum iconv_ilseq_handler): Remove definition.
64648         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
64649         striconveh.h.
64650         * lib/striconveha.c: Include striconveh.h.
64651         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
64652         * modules/striconveh (Files): Add lib/iconveh.h.
64653         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
64654         lib/striconveh.h.
64656 2009-04-10  Bruno Haible  <bruno@clisp.org>
64658         * lib/uniconv.h: Update comment.
64660 2009-04-10  Bruno Haible  <bruno@clisp.org>
64662         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
64663         always.
64664         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64665         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64666         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64667         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
64668         "unistring-notinline.h", so that the function gets defined always.
64669         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64670         * lib/unistr/u8-uctomb.c: Likewise.
64671         * lib/unistr/u16-mbtouc.c: Likewise.
64672         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64673         * lib/unistr/u16-uctomb.c: Likewise.
64674         * lib/unistr/u32-mbtouc.c: Likewise.
64675         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64676         * lib/unistr/u32-uctomb.c: Likewise.
64678 2009-04-10  Bruno Haible  <bruno@clisp.org>
64680         Mark 'utime' obsolete.
64681         * modules/utime (Status, Notice): New sections.
64682         Suggested by Jim Meyering.
64684         Fix cross-compile guess for utime test.
64685         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
64686         autoconf.
64687         * doc/posix-functions/utime.texi: Give more precisions.
64688         Reported by Jan <ipif@ymail.com>.
64690 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
64692         filevercmp: correct today's change
64693         * lib/filevercmp.c: Also handle coreutils' test inputs.
64694         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
64696         Fix regression in 'filevercmp' module. Thanks Sven Joachim
64697         for reporting it.
64698         * lib/filevercmp.c: Special handle for "", "." and "..".
64699         * tests/test-filevercmp.c: Enlarge the set suite.
64701 2009-04-07  Jim Meyering  <meyering@redhat.com>
64703         useless-if-before-free: show how to remove braced useless free, too
64704         * build-aux/useless-if-before-free: still only in a comment, though.
64706 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
64708         maint.mk: import changes to syntax-check macros from coreutils
64709         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
64710         Use them in the relevant macros.
64712 2009-04-06  Bruno Haible  <bruno@clisp.org>
64714         Fix unportable use of bit-fields.
64715         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
64716         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
64717         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
64719 2009-04-06  Bruno Haible  <bruno@clisp.org>
64721         Avoid test failures on AIX and OSF/1.
64722         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
64723         that malloc(0) = NULL.
64724         * tests/unicase/test-u8-tolower.c (check): Likewise.
64725         * tests/unicase/test-u8-totitle.c (check): Likewise.
64726         * tests/unicase/test-u8-toupper.c (check): Likewise.
64727         * tests/unicase/test-u16-casefold.c (check): Likewise.
64728         * tests/unicase/test-u16-tolower.c (check): Likewise.
64729         * tests/unicase/test-u16-totitle.c (check): Likewise.
64730         * tests/unicase/test-u16-toupper.c (check): Likewise.
64731         * tests/unicase/test-u32-casefold.c (check): Likewise.
64732         * tests/unicase/test-u32-tolower.c (check): Likewise.
64733         * tests/unicase/test-u32-totitle.c (check): Likewise.
64734         * tests/unicase/test-u32-toupper.c (check): Likewise.
64735         * tests/uninorm/test-u8-nfc.c (check): Likewise.
64736         * tests/uninorm/test-u8-nfd.c (check): Likewise.
64737         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
64738         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
64739         * tests/uninorm/test-u16-nfc.c (check): Likewise.
64740         * tests/uninorm/test-u16-nfd.c (check): Likewise.
64741         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
64742         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
64743         * tests/uninorm/test-u32-nfc.c (check): Likewise.
64744         * tests/uninorm/test-u32-nfd.c (check): Likewise.
64745         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
64746         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
64748 2009-04-05  Bruno Haible  <bruno@clisp.org>
64750         Work around an autoconf limitation.
64751         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
64752         comment line if it would be longer than 3 KB.
64754 2009-04-05  Bruno Haible  <bruno@clisp.org>
64756         Avoid test failure with libiconv-1.13.
64757         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
64758         of the expected test results.
64760 2009-04-05  Bruno Haible  <bruno@clisp.org>
64762         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
64763         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
64764         that it should be installed.
64766 2009-04-05  Bruno Haible  <bruno@clisp.org>
64768         * gnulib-tool: New option --copy-file.
64769         (func_usage): Document it.
64770         (func_dest_tmpfilename): Moved out of func_import.
64771         (func_add_file, func_update_file): New functions, extracted from
64772         func_import.
64773         (func_import): Update.
64775 2009-04-05  Karl Berry  <karl@gnu.org>
64777         * README: prominently mention gnulib-tool.
64778         Rearrange sections so getting the code is near the top.
64780 2009-04-05  Bruno Haible  <bruno@clisp.org>
64782         * lib/unicase.h: Mention u*_cmp2.
64783         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64784         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
64785         * lib/unicase/ulc-casecmp.c: Likewise.
64786         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
64787         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
64788         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
64789         unistr/u8-cmp.
64790         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
64791         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
64792         unistr/u16-cmp.
64793         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
64794         unistr/u32-cmp.
64796         * lib/uninorm.h: Mention u*_cmp2.
64797         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64798         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
64799         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
64800         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
64801         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
64802         unistr/u8-cmp.
64803         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
64804         unistr/u16-cmp.
64805         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
64806         unistr/u32-cmp.
64808         New module 'unistr/u32-cmp2'.
64809         * lib/unistr/u32-cmp2.c: New file.
64810         * modules/unistr/u32-cmp2: New file.
64812         New module 'unistr/u16-cmp2'.
64813         * lib/unistr/u16-cmp2.c: New file.
64814         * modules/unistr/u16-cmp2: New file.
64816         New module 'unistr/u8-cmp2'.
64817         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
64818         * lib/unistr/u8-cmp2.c: New file.
64819         * lib/unistr/u-cmp2.h: New file.
64820         * modules/unistr/u8-cmp2: New file.
64822 2009-04-05  Bruno Haible  <bruno@clisp.org>
64824         * lib/unictype.h (uc_property_is_valid): New macro.
64825         * tests/unictype/test-pr_byname.c (main): Use it.
64827         * lib/unistr.h: Doc fixes.
64828         * lib/uniconv.h: Doc fixes.
64829         * lib/unictype.h: Doc fixes.
64831 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
64833         Port coreutils 7.2 to Solaris 8.
64835         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
64836         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
64837         for Solaris 8.  This is a bit of a hack, as it means it's the
64838         caller's responsibility to add -lnsl if needed, but most likely it
64839         won't be needed since only getaddrinfo uses this and getaddrinfo
64840         isn't needed on Solaris 8.
64842         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
64843         problem to Solaris 8 encountered with coreutils 7.2, which
64844         resulted in a message "fnmatch.c:292: warning: passing argument 4
64845         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
64846         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
64848 2009-04-03  Simon Josefsson  <simon@josefsson.org>
64850         * m4/ld-version-script.m4: Add FIXME comment.
64852 2009-04-02  Simon Josefsson  <simon@josefsson.org>
64854         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
64855         SOVERSION variable.
64857 2009-04-02  Bruno Haible  <bruno@clisp.org>
64859         * Makefile (info, html, dvi, pdf): Combine the rules.
64860         Suggested by Jim Meyering.
64862 2009-04-01  Bruno Haible  <bruno@clisp.org>
64864         * Makefile (info, html, dvi, pdf): New targets.
64865         Reported by Reuben Thomas <rrt@sc3d.org>.
64867 2009-04-01  Bruno Haible  <bruno@clisp.org>
64869         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
64870         can be put into PATH.
64871         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
64873 2009-04-01  Bruno Haible  <bruno@clisp.org>
64875         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
64877 2009-04-01  Bruno Haible  <bruno@clisp.org>
64879         Rename module 'visibility'.
64880         * modules/lib-symbol-visibility: Renamed from modules/visibility.
64881         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
64882         * doc/gnulib.texi: Update.
64883         * MODULES.html.sh (Misc): Update.
64884         * NEWS: Mention the change.
64886 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64888         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
64889         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
64890         Eric Blake <ebb9@byu.net> for review.
64891         * MODULES.html.sh: Add lib-msvc-compat.
64892         * doc/gnulib.texi: Link to new section.
64893         * m4/ld-output-def.m4: New file.
64894         * doc/ld-output-def.texi: New file.
64896 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64898         Rename ld-version-script to lib-symbol-versions.  Suggested by
64899         Bruno Haible <bruno@clisp.org>.
64900         * modules/ld-version-script: Renamed to lib-symbol-versions.
64901         * doc/ld-version-script.texi: Fix module name.
64902         * MODULES.html.sh: Add lib-symbol-versions.
64904 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64906         * modules/u64-tests: New file.
64907         * tests/test-u64.c: New file.
64909 2009-03-04  Simon Josefsson  <simon@josefsson.org>
64911         * MODULES.html.sh: Mention u64.
64912         * modules/u64: New module.
64913         * modules/crypto/sha512: Depend on u64 module instead of providing
64914         u64.h.
64916 2009-03-27  Eric Blake  <ebb9@byu.net>
64918         test-strerror: make debugging EAI_SYSTEM easier
64919         * modules/getaddrinfo-tests (Depends-on): Add strerror.
64920         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
64921         failure was EAI_SYSTEM.
64923 2009-03-25  Bruno Haible  <bruno@clisp.org>
64925         Fix a problem with --enable-relocatable on Solaris 7.
64926         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
64927         since 2008-02-24.
64929 2009-03-25  Eric Blake  <ebb9@byu.net>
64931         test-sockets: avoid gcc warning
64932         * tests/test-sockets.c (main): Silence compiler warning.
64934 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64936         New modules nproc, pthread, contributed by Glen Lenker.
64938         * MODULES.html.sh: Add pthread, nproc.
64939         * lib/nproc.c: New file.
64940         * lib/nproc.h: New file.
64941         * lib/pthread.in.h: New file.
64942         * m4/pthread.m4: New file.
64943         * modules/nproc: New file.
64944         * modules/pthread: New file.
64946 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64948         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
64949         New variable.
64951 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
64953         filevercmp: handle simple~ and numbered.~3~ backup suffixes
64954         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
64955         * tests/test-filevercmp.c: Add tests for backup suffixes.
64957 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64959         * modules/stdlib (Depends-on): Add stdint, needed when defining
64960         struct random_data on, for example, HP-UX 10.20.  Reported by
64961         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64963 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64965         * lib/readline.c (readline): Call fflush on stdout after printing
64966         prompt.
64968 2009-03-20  Bruno Haible  <bruno@clisp.org>
64970         Remove dependency from 'close' module to -lws2_32 on native Windows.
64971         * lib/close-hook.h: New file.
64972         * lib/close-hook.c: New file.
64973         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
64974         w32sock.h.
64975         (_gl_close_fd_maybe_socket): Remove function.
64976         (rpl_close): Invoke execute_all_close_hooks instead of
64977         _gl_close_fd_maybe_socket.
64978         * lib/sockets.c: Include close-hook.h, w32sock.h.
64979         (close_fd_maybe_socket): New function, essentially from lib/close.c.
64980         (close_sockets_hook): New variable.
64981         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
64982         (gl_sockets_cleanup): Unregister it.
64983         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
64984         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
64985         * modules/close-hook: New file.
64986         * modules/close (Files): Remove lib/w32sock.h.
64987         (Depends-on): Add close-hook.
64988         (Link): Remove section.
64989         * modules/sockets (Files): Add lib/w32sock.h.
64990         (Depends-on): Add close-hook.
64991         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
64992         invocation.
64993         * NEWS: Mention that LIB_CLOSE is gone.
64995 2009-03-23  Eric Blake  <ebb9@byu.net>
64997         signal-tests: test previous patch
64998         * tests/test-signal.c: New file.
64999         * modules/signal-tests: Likewise.
65001         signal.h: always support 'volatile sig_atomic_t'
65002         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
65003         (gl_SIGNAL_H_DEFAULTS): Add a default.
65004         * modules/signal (Makefile.am): Substitute if needed.
65005         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
65006         users can blindly add volatile.
65007         * doc/posix-headers/signal.texi (signal.h): Document it.
65008         Reported by Matthew Woehlke.
65010 2009-03-23  Jim Meyering  <meyering@redhat.com>
65012         pathmax: PATH_MAX: use pathconf only when available
65013         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
65014         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
65015         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
65016         This avoids a link failure in a PSP cross-compilation environment
65017         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
65019         * lib/vasnprintf.c (divide): Fix typo in comment.
65021 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65023         * gnulib-tool (func_filter_filelist): Fix comment.
65025 2009-03-20  Bruno Haible  <bruno@clisp.org>
65027         Make sockets.h self-contained.
65028         * lib/sockets.c: Include sockets.h first.
65029         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
65031 2009-03-19  Eric Blake  <ebb9@byu.net>
65033         doc: mention more functions added in cygwin 1.7.0
65034         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
65035         addition.
65036         * doc/posix-functions/log2f.texi: Likewise.
65038 2009-03-19  Jim Meyering  <meyering@redhat.com>
65040         fsusage: avoid syntax error due to statement-before-declaration
65041         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
65042         after all declarations.  Reported by Matthew Woehlke in
65043         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
65045 2009-03-18  Eric Blake  <ebb9@byu.net>
65047         build-aux/compile: sync from automake
65048         * build-aux/compile: New file, from automake.
65049         * config/srclist.txt: Mention build-aux/compile.
65051 2009-03-17  Bruno Haible  <bruno@clisp.org>
65053         * lib/git-merge-changelog.c: Fix typo in comment.
65054         Reported by Reuben Thomas <rrt@sc3d.org>.
65056 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
65058         * m4/regex.m4: update and improve help for
65059         --without-included-regex.
65061 2009-03-17  Simon Josefsson  <simon@josefsson.org>
65063         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
65064         failure on missing include files.
65066 2009-03-17  Eric Blake  <ebb9@byu.net>
65068         doc: mention more functions added in cygwin 1.7.0
65069         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
65070         addition.
65071         * doc/posix-functions/fwscanf.texi: Likewise.
65072         * doc/posix-functions/swprintf.texi: Likewise.
65073         * doc/posix-functions/swscanf.texi: Likewise.
65074         * doc/posix-functions/vfwprintf.texi: Likewise.
65075         * doc/posix-functions/vfwscanf.texi: Likewise.
65076         * doc/posix-functions/vswprintf.texi: Likewise.
65077         * doc/posix-functions/vswscanf.texi: Likewise.
65078         * doc/posix-functions/vwprintf.texi: Likewise.
65079         * doc/posix-functions/vwscanf.texi: Likewise.
65080         * doc/posix-functions/wcscasecmp.texi: Likewise.
65081         * doc/posix-functions/wcsdup.texi: Likewise.
65082         * doc/posix-functions/wcsftime.texi: Likewise.
65083         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65084         * doc/posix-functions/wprintf.texi: Likewise.
65085         * doc/posix-functions/wscanf.texi: Likewise.
65086         * doc/glibc-functions/gethostbyname2.texi: Likewise.
65088 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65090         maint.mk: really add $(AM_MAKEFLAGS)
65091         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
65092         was inadvertently omitted in the last commit.
65093         Spotted by Bruno Haible.
65095         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
65096         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
65097         $(AM_MAKEFLAGS)' rather than plain `make'.
65099         gnulib-tool: execute $MAKE not make
65100         * gnulib-tool: Default $MAKE to 'make'.
65101         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
65102         than make.  Initialize $MAKE in the do-autobuild script.
65104         gnulib-tool: use $MAKE not make in generated files
65105         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
65106         make, in generated files.  Initialize $MAKE in the do-autobuild
65107         script.
65109         * top/GNUmakefile (_have-git-version-gen): Fix typo.
65111         GNUmakefile: disable parallelism only for multiple, recursive targets
65112         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
65113         additions in the Makefile.
65114         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
65115         by Automake.
65116         (.NOTPARALLEL): Only disable parallel builds if multiple targets
65117         are listed on the command line and at least one of them is
65118         listed in $(ALL_RECURSIVE_TARGETS).
65120 2009-03-14  Bruno Haible  <bruno@clisp.org>
65122         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
65123         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
65124         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
65125         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
65126         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
65127         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
65128         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
65129         unistr/u8-uctomb.
65130         * modules/unistr/u8-strchr (Depends-on): Likewise.
65131         * modules/unistr/u8-strrchr (Depends-on): Likewise.
65132         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
65133         unistr/u16-uctomb.
65134         * modules/unistr/u16-strchr (Depends-on): Likewise.
65135         * modules/unistr/u16-strrchr (Depends-on): Likewise.
65137 2009-03-12  Bruno Haible  <bruno@clisp.org>
65139         Work around select() bug on Interix 3.5.
65140         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
65141         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
65142         * m4/select.m4: New file.
65143         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
65144         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
65145         * modules/select (Files): Add m4/select.m4.
65146         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
65147         * modules/nanosleep (Depends-on): Add select.
65148         * modules/poll (Depends-on): Likewise.
65149         * doc/posix-functions/select.texi: Mention the Interix bug.
65150         Reported by Markus Duft <mduft@gentoo.org>.
65152         * lib/select.c: Renamed from lib/winsock-select.c.
65153         * modules/select (Files): Add lib/select.c, remove
65154         lib/winsock-select.c.
65155         (configure.ac): Update.
65157 2009-03-12  Jim Meyering  <meyering@redhat.com>
65159         avoid gcc warnings about unused macro definitions
65160         * lib/readtokens.c (STREQ): Remove unused definition.
65161         * lib/xmalloc.c (SIZE_MAX): Likewise.
65162         * lib/openat-die.c (N_): Likewise.
65163         * lib/mountlist.c (SIZE_MAX): Remove definition.
65164         Instead, include <stdint.h>.
65165         * lib/readutmp.c: Likewise.
65166         * modules/readutmp (Depends-on): Add stdint.
65167         * modules/mountlist (Depends-on): Add stdint.
65168         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
65170 2009-03-10  Bruno Haible  <bruno@clisp.org>
65172         Tests for module 'mbmemcasecoll'.
65173         * modules/mbmemcasecoll-tests: New file.
65174         * tests/test-mbmemcasecoll1.sh: New file.
65175         * tests/test-mbmemcasecoll2.sh: New file.
65176         * tests/test-mbmemcasecoll3.sh: New file.
65177         * tests/test-mbmemcasecoll.c: New file.
65179         New module 'mbmemcasecoll'.
65180         * lib/mbmemcasecoll.h: New file.
65181         * lib/mbmemcasecoll.c: New file.
65182         * modules/mbmemcasecoll: New file.
65184         * tests/test-mbmemcasecmp.h: New file, extracted from
65185         tests/test-mbmemcasecmp.c.
65186         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
65187         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
65188         (main): Update.
65189         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
65191 2009-03-09  Bruno Haible  <bruno@clisp.org>
65193         Tests for module 'mbmemcasecmp'.
65194         * modules/mbmemcasecmp-tests: New file.
65195         * tests/test-mbmemcasecmp1.sh: New file.
65196         * tests/test-mbmemcasecmp2.sh: New file.
65197         * tests/test-mbmemcasecmp3.sh: New file.
65198         * tests/test-mbmemcasecmp.c: New file.
65200         New module 'mbmemcasecmp'.
65201         * lib/mbmemcasecmp.h: New file.
65202         * lib/mbmemcasecmp.c: New file.
65203         * modules/mbmemcasecmp: New file.
65205 2009-03-09  Bruno Haible  <bruno@clisp.org>
65207         Tests for module 'unicase/ulc-casecoll'.
65208         * modules/unicase/ulc-casecoll-tests: New file.
65209         * tests/unicase/test-ulc-casecoll1.sh: New file.
65210         * tests/unicase/test-ulc-casecoll2.sh: New file.
65211         * tests/unicase/test-ulc-casecoll.c: New file.
65213         New module 'unicase/ulc-casecoll'.
65214         * lib/unicase.h (ulc_casecoll): New declaration.
65215         * lib/unicase/ulc-casecoll.c: New file.
65216         * modules/unicase/ulc-casecoll: New file.
65218         New module 'unicase/ulc-casexfrm'.
65219         * lib/unicase.h (ulc_casexfrm): New declaration.
65220         * lib/unicase/ulc-casexfrm.c: New file.
65221         * modules/unicase/ulc-casexfrm: New file.
65223 2009-03-09  Bruno Haible  <bruno@clisp.org>
65225         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
65226         invocations.
65228         * m4/mbscasecmp.m4: Remove file.
65229         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
65230         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
65232         * m4/mbscasestr.m4: Remove file.
65233         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
65234         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
65236         * m4/mbschr.m4: Remove file.
65237         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
65238         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
65240         * m4/mbscspn.m4: Remove file.
65241         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
65242         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
65244         * m4/mbslen.m4: Remove file.
65245         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
65246         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
65248         * m4/mbsncasecmp.m4: Remove file.
65249         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
65250         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
65252         * m4/mbsnlen.m4: Remove file.
65253         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
65254         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
65256         * m4/mbspbrk.m4: Remove file.
65257         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
65258         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
65260         * m4/mbspcasecmp.m4: Remove file.
65261         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
65262         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
65264         * m4/mbsrchr.m4: Remove file.
65265         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
65266         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
65268         * m4/mbssep.m4: Remove file.
65269         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
65270         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
65272         * m4/mbsspn.m4: Remove file.
65273         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
65274         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
65276         * m4/mbsstr.m4: Remove file.
65277         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
65278         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
65280         * m4/mbstok_r.m4: Remove file.
65281         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
65282         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
65284         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
65286         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
65287         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
65289         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
65291 2009-03-08  Bruno Haible  <bruno@clisp.org>
65293         Tests for module 'unicase/ulc-casecmp'.
65294         * modules/unicase/ulc-casecmp-tests: New file.
65295         * tests/unicase/test-ulc-casecmp1.sh: New file.
65296         * tests/unicase/test-ulc-casecmp2.sh: New file.
65297         * tests/unicase/test-ulc-casecmp.c: New file.
65299         New module 'unicase/ulc-casecmp'.
65300         * lib/unicase.h (ulc_casecmp): New declaration.
65301         * lib/unicase/ulc-casecmp.c: New file.
65302         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
65303         'const SRC_UNIT *'.
65304         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
65305         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
65306         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
65307         * modules/unicase/ulc-casecmp: New file.
65309         Tests for module 'unicase/u32-is-cased'.
65310         * modules/unicase/u32-is-cased-tests: New file.
65311         * tests/unicase/test-u32-is-cased.c: New file.
65313         Tests for module 'unicase/u16-is-cased'.
65314         * modules/unicase/u16-is-cased-tests: New file.
65315         * tests/unicase/test-u16-is-cased.c: New file.
65317         Tests for module 'unicase/u8-is-cased'.
65318         * modules/unicase/u8-is-cased-tests: New file.
65319         * tests/unicase/test-u8-is-cased.c: New file.
65320         * tests/unicase/test-is-cased.h: New file.
65322         New module 'unicase/u32-is-cased'.
65323         * lib/unicase/u32-is-cased.c: New file.
65324         * modules/unicase/u32-is-cased: New file.
65326         New module 'unicase/u16-is-cased'.
65327         * lib/unicase/u16-is-cased.c: New file.
65328         * modules/unicase/u16-is-cased: New file.
65330         New module 'unicase/u8-is-cased'.
65331         * lib/unicase/u8-is-cased.c: New file.
65332         * lib/unicase/u-is-cased.h: New file.
65333         * modules/unicase/u8-is-cased: New file.
65335         Tests for module 'unicase/u32-is-casefolded'.
65336         * modules/unicase/u32-is-casefolded-tests: New file.
65337         * tests/unicase/test-u32-is-casefolded.c: New file.
65339         Tests for module 'unicase/u16-is-casefolded'.
65340         * modules/unicase/u16-is-casefolded-tests: New file.
65341         * tests/unicase/test-u16-is-casefolded.c: New file.
65343         Tests for module 'unicase/u8-is-casefolded'.
65344         * modules/unicase/u8-is-casefolded-tests: New file.
65345         * tests/unicase/test-u8-is-casefolded.c: New file.
65346         * tests/unicase/test-is-casefolded.h: New file.
65348         New module 'unicase/u32-is-casefolded'.
65349         * lib/unicase/u32-is-casefolded.c: New file.
65350         * modules/unicase/u32-is-casefolded: New file.
65352         New module 'unicase/u16-is-casefolded'.
65353         * lib/unicase/u16-is-casefolded.c: New file.
65354         * modules/unicase/u16-is-casefolded: New file.
65356         New module 'unicase/u8-is-casefolded'.
65357         * lib/unicase/u8-is-casefolded.c: New file.
65358         * modules/unicase/u8-is-casefolded: New file.
65360         Tests for module 'unicase/u32-is-titlecase'.
65361         * modules/unicase/u32-is-titlecase-tests: New file.
65362         * tests/unicase/test-u32-is-titlecase.c: New file.
65364         Tests for module 'unicase/u16-is-titlecase'.
65365         * modules/unicase/u16-is-titlecase-tests: New file.
65366         * tests/unicase/test-u16-is-titlecase.c: New file.
65368         Tests for module 'unicase/u8-is-titlecase'.
65369         * modules/unicase/u8-is-titlecase-tests: New file.
65370         * tests/unicase/test-u8-is-titlecase.c: New file.
65371         * tests/unicase/test-is-titlecase.h: New file.
65373         New module 'unicase/u32-is-titlecase'.
65374         * lib/unicase/u32-is-titlecase.c: New file.
65375         * modules/unicase/u32-is-titlecase: New file.
65377         New module 'unicase/u16-is-titlecase'.
65378         * lib/unicase/u16-is-titlecase.c: New file.
65379         * modules/unicase/u16-is-titlecase: New file.
65381         New module 'unicase/u8-is-titlecase'.
65382         * lib/unicase/u8-is-titlecase.c: New file.
65383         * modules/unicase/u8-is-titlecase: New file.
65385         Tests for module 'unicase/u32-is-lowercase'.
65386         * modules/unicase/u32-is-lowercase-tests: New file.
65387         * tests/unicase/test-u32-is-lowercase.c: New file.
65389         Tests for module 'unicase/u16-is-lowercase'.
65390         * modules/unicase/u16-is-lowercase-tests: New file.
65391         * tests/unicase/test-u16-is-lowercase.c: New file.
65393         Tests for module 'unicase/u8-is-lowercase'.
65394         * modules/unicase/u8-is-lowercase-tests: New file.
65395         * tests/unicase/test-u8-is-lowercase.c: New file.
65396         * tests/unicase/test-is-lowercase.h: New file.
65398         New module 'unicase/u32-is-lowercase'.
65399         * lib/unicase/u32-is-lowercase.c: New file.
65400         * modules/unicase/u32-is-lowercase: New file.
65402         New module 'unicase/u16-is-lowercase'.
65403         * lib/unicase/u16-is-lowercase.c: New file.
65404         * modules/unicase/u16-is-lowercase: New file.
65406         New module 'unicase/u8-is-lowercase'.
65407         * lib/unicase/u8-is-lowercase.c: New file.
65408         * modules/unicase/u8-is-lowercase: New file.
65410         Tests for module 'unicase/u32-is-uppercase'.
65411         * modules/unicase/u32-is-uppercase-tests: New file.
65412         * tests/unicase/test-u32-is-uppercase.c: New file.
65414         Tests for module 'unicase/u16-is-uppercase'.
65415         * modules/unicase/u16-is-uppercase-tests: New file.
65416         * tests/unicase/test-u16-is-uppercase.c: New file.
65418         Tests for module 'unicase/u8-is-uppercase'.
65419         * modules/unicase/u8-is-uppercase-tests: New file.
65420         * tests/unicase/test-u8-is-uppercase.c: New file.
65421         * tests/unicase/test-is-uppercase.h: New file.
65423         New module 'unicase/u32-is-uppercase'.
65424         * lib/unicase/u32-is-uppercase.c: New file.
65425         * modules/unicase/u32-is-uppercase: New file.
65427         New module 'unicase/u16-is-uppercase'.
65428         * lib/unicase/u16-is-uppercase.c: New file.
65429         * modules/unicase/u16-is-uppercase: New file.
65431         New module 'unicase/u8-is-uppercase'.
65432         * lib/unicase/u8-is-uppercase.c: New file.
65433         * modules/unicase/u8-is-uppercase: New file.
65435         New module 'unicase/u32-is-invariant'.
65436         * lib/unicase/u32-is-invariant.c: New file.
65437         * modules/unicase/u32-is-invariant: New file.
65439         New module 'unicase/u16-is-invariant'.
65440         * lib/unicase/u16-is-invariant.c: New file.
65441         * modules/unicase/u16-is-invariant: New file.
65443         New module 'unicase/u8-is-invariant'.
65444         * lib/unicase/u8-is-invariant.c: New file.
65445         * lib/unicase/invariant.h: New file.
65446         * lib/unicase/u-is-invariant.h: New file.
65447         * modules/unicase/u8-is-invariant: New file.
65449         Tests for module 'unicase/u32-casecoll'.
65450         * modules/unicase/u32-casecoll-tests: New file.
65451         * tests/unicase/test-u32-casecoll.c: New file.
65453         Tests for module 'unicase/u16-casecoll'.
65454         * modules/unicase/u16-casecoll-tests: New file.
65455         * tests/unicase/test-u16-casecoll.c: New file.
65457         Tests for module 'unicase/u8-casecoll'.
65458         * modules/unicase/u8-casecoll-tests: New file.
65459         * tests/unicase/test-u8-casecoll.c: New file.
65461         New module 'unicase/u32-casecoll'.
65462         * lib/unicase/u32-casecoll.c: New file.
65463         * modules/unicase/u32-casecoll: New file.
65465         New module 'unicase/u16-casecoll'.
65466         * lib/unicase/u16-casecoll.c: New file.
65467         * modules/unicase/u16-casecoll: New file.
65469         New module 'unicase/u8-casecoll'.
65470         * lib/unicase/u8-casecoll.c: New file.
65471         * lib/unicase/u-casecoll.h: New file.
65472         * modules/unicase/u8-casecoll: New file.
65474         New module 'unicase/u32-casexfrm'.
65475         * lib/unicase/u32-casexfrm.c: New file.
65476         * modules/unicase/u32-casexfrm: New file.
65478         New module 'unicase/u16-casexfrm'.
65479         * lib/unicase/u16-casexfrm.c: New file.
65480         * modules/unicase/u16-casexfrm: New file.
65482         New module 'unicase/u8-casexfrm'.
65483         * lib/unicase/u8-casexfrm.c: New file.
65484         * lib/unicase/u-casexfrm.h: New file.
65485         * modules/unicase/u8-casexfrm: New file.
65487         Tests for module 'unicase/u32-casecmp'.
65488         * modules/unicase/u32-casecmp-tests: New file.
65489         * tests/unicase/test-u32-casecmp.c: New file.
65491         Tests for module 'unicase/u16-casecmp'.
65492         * modules/unicase/u16-casecmp-tests: New file.
65493         * tests/unicase/test-u16-casecmp.c: New file.
65495         Tests for module 'unicase/u8-casecmp'.
65496         * modules/unicase/u8-casecmp-tests: New file.
65497         * tests/unicase/test-u8-casecmp.c: New file.
65498         * tests/unicase/test-casecmp.h: New file.
65500         New module 'unicase/u32-casecmp'.
65501         * lib/unicase/u32-casecmp.c: New file.
65502         * modules/unicase/u32-casecmp: New file.
65504         New module 'unicase/u16-casecmp'.
65505         * lib/unicase/u16-casecmp.c: New file.
65506         * modules/unicase/u16-casecmp: New file.
65508         New module 'unicase/u8-casecmp'.
65509         * lib/unicase/u8-casecmp.c: New file.
65510         * lib/unicase/u-casecmp.h: New file.
65511         * modules/unicase/u8-casecmp: New file.
65513         Tests for module 'unicase/u32-casefold'.
65514         * modules/unicase/u32-casefold-tests: New file.
65515         * tests/unicase/test-u32-casefold.c: New file.
65517         Tests for module 'unicase/u16-casefold'.
65518         * modules/unicase/u16-casefold-tests: New file.
65519         * tests/unicase/test-u16-casefold.c: New file.
65521         Tests for module 'unicase/u8-casefold'.
65522         * modules/unicase/u8-casefold-tests: New file.
65523         * tests/unicase/test-u8-casefold.c: New file.
65525         New module 'unicase/u32-casefold'.
65526         * lib/unicase/u32-casefold.c: New file.
65527         * modules/unicase/u32-casefold: New file.
65529         New module 'unicase/u16-casefold'.
65530         * lib/unicase/u16-casefold.c: New file.
65531         * modules/unicase/u16-casefold: New file.
65533         New module 'unicase/u8-casefold'.
65534         * lib/unicase/u8-casefold.c: New file.
65535         * lib/unicase/u-casefold.h: New file.
65536         * modules/unicase/u8-casefold: New file.
65538         New module 'unicase/tocasefold'.
65539         * lib/unicase/casefold.h: New file.
65540         * lib/unicase/tocasefold.c: New file.
65541         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
65542         * modules/unicase/tocasefold: New file.
65544         Tests for module 'unicase/u32-totitle'.
65545         * modules/unicase/u32-totitle-tests: New file.
65546         * tests/unicase/test-u32-totitle.c: New file.
65548         Tests for module 'unicase/u16-totitle'.
65549         * modules/unicase/u16-totitle-tests: New file.
65550         * tests/unicase/test-u16-totitle.c: New file.
65552         Tests for module 'unicase/u8-totitle'.
65553         * modules/unicase/u8-totitle-tests: New file.
65554         * tests/unicase/test-u8-totitle.c: New file.
65556         New module 'unicase/u32-totitle'.
65557         * lib/unicase/u32-totitle.c: New file.
65558         * modules/unicase/u32-totitle: New file.
65560         New module 'unicase/u16-totitle'.
65561         * lib/unicase/u16-totitle.c: New file.
65562         * modules/unicase/u16-totitle: New file.
65564         New module 'unicase/u8-totitle'.
65565         * lib/unicase/u8-totitle.c: New file.
65566         * lib/unicase/u-totitle.h: New file.
65567         * modules/unicase/u8-totitle: New file.
65569         Tests for module 'unicase/u32-tolower'.
65570         * modules/unicase/u32-tolower-tests: New file.
65571         * tests/unicase/test-u32-tolower.c: New file.
65573         Tests for module 'unicase/u16-tolower'.
65574         * modules/unicase/u16-tolower-tests: New file.
65575         * tests/unicase/test-u16-tolower.c: New file.
65577         Tests for module 'unicase/u8-tolower'.
65578         * modules/unicase/u8-tolower-tests: New file.
65579         * tests/unicase/test-u8-tolower.c: New file.
65581         New module 'unicase/u32-tolower'.
65582         * lib/unicase/u32-tolower.c: New file.
65583         * modules/unicase/u32-tolower: New file.
65585         New module 'unicase/u16-tolower'.
65586         * lib/unicase/u16-tolower.c: New file.
65587         * modules/unicase/u16-tolower: New file.
65589         New module 'unicase/u8-tolower'.
65590         * lib/unicase/u8-tolower.c: New file.
65591         * modules/unicase/u8-tolower: New file.
65593         Tests for module 'unicase/u32-toupper'.
65594         * modules/unicase/u32-toupper-tests: New file.
65595         * tests/unicase/test-u32-toupper.c: New file.
65597         Tests for module 'unicase/u16-toupper'.
65598         * modules/unicase/u16-toupper-tests: New file.
65599         * tests/unicase/test-u16-toupper.c: New file.
65601         Tests for module 'unicase/u8-toupper'.
65602         * modules/unicase/u8-toupper-tests: New file.
65603         * tests/unicase/test-u8-toupper.c: New file.
65605         New module 'unicase/u32-toupper'.
65606         * lib/unicase/u32-toupper.c: New file.
65607         * modules/unicase/u32-toupper: New file.
65609         New module 'unicase/u16-toupper'.
65610         * lib/unicase/u16-toupper.c: New file.
65611         * modules/unicase/u16-toupper: New file.
65613         New module 'unicase/u8-toupper'.
65614         * lib/unicase/u8-toupper.c: New file.
65615         * modules/unicase/u8-toupper: New file.
65617         New module 'unicase/u32-casemap'.
65618         * lib/unicase/u32-casemap.c: New file.
65619         * modules/unicase/u32-casemap: New file.
65621         New module 'unicase/u16-casemap'.
65622         * lib/unicase/u16-casemap.c: New file.
65623         * modules/unicase/u16-casemap: New file.
65625         New module 'unicase/u8-casemap'.
65626         * lib/unicase/unicasemap.h: New file.
65627         * lib/unicase/u8-casemap.c: New file.
65628         * lib/unicase/u-casemap.h: New file.
65629         * modules/unicase/u8-casemap: New file.
65631         New module 'unicase/special-casing'.
65632         * lib/unicase/special-casing.h: New file.
65633         * lib/unicase/special-casing.c: New file.
65634         * lib/unicase/special-casing-table.gperf: New file, generated by
65635         gen-uni-tables.c.
65636         * modules/unicase/special-casing: New file.
65638         Tests for module 'unicase/locale-language'.
65639         * modules/unicase/locale-language-tests: New file.
65640         * tests/unicase/test-locale-language.sh: New file.
65641         * tests/unicase/test-locale-language.c: New file.
65643         New module 'unicase/locale-language'.
65644         * lib/unicase/locale-language.c: New file.
65645         * lib/unicase/locale-languages.gperf: New file.
65646         * modules/unicase/locale-language: New file.
65648         Generate more tables for case conversion and case folding.
65649         * lib/gen-uni-tables.c (SCC_*): New enum items.
65650         (struct special_casing_rule): New type.
65651         (casing_rules, num_casing_rules, allocated_casing_rules): New
65652         variables.
65653         (add_casing_rule, fill_casing_rules): New functions.
65654         (struct casefold_rule): New type.
65655         (casefolding_rules, num_casefolding_rules,
65656         allocated_casefolding_rules): New variables.
65657         (fill_casefolding_rules): New function.
65658         (unicode_casefold): New variable.
65659         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
65660         sort_casing_rules, output_casing_rules): New functions.
65661         (main): Accept to more arguments: SpecialCasing.txt and
65662         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
65663         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
65664         Output mapping for casefolding.
65666         * lib/unicase.h: Include stdbool.h, uninorm.h.
65667         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
65668         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
65669         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
65670         arguments.
65671         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
65672         resultp arguments.
65673         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
65674         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
65675         resultp arguments.
65676         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
65677         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
65678         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
65679         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
65680         declarations.
65681         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
65683 2009-03-08  Bruno Haible  <bruno@clisp.org>
65685         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65686         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
65687         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
65688         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65690 2009-03-07  Bruno Haible  <bruno@clisp.org>
65692         Adjust u*_normcmp, u*_normcoll API.
65693         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65694         u16_normcoll, u32_normcoll): Change failure conventions.
65695         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
65696         errno and return -1.
65697         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65699 2009-03-07  Bruno Haible  <bruno@clisp.org>
65701         Tests for module 'uninorm/u32-normcoll'.
65702         * modules/uninorm/u32-normcoll-tests: New file.
65703         * tests/uninorm/test-u32-normcoll.c: New file.
65705         Tests for module 'uninorm/u16-normcoll'.
65706         * modules/uninorm/u16-normcoll-tests: New file.
65707         * tests/uninorm/test-u16-normcoll.c: New file.
65709         Tests for module 'uninorm/u8-normcoll'.
65710         * modules/uninorm/u8-normcoll-tests: New file.
65711         * tests/uninorm/test-u8-normcoll.c: New file.
65713 2009-03-07  Bruno Haible  <bruno@clisp.org>
65715         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
65716         tests/uninorm/test-u32-normcmp.c.
65717         * tests/uninorm/test-u32-normcmp.c: Include it.
65718         (test_nonascii): New function, extracted from main. Add some more
65719         tests.
65720         (main): Invoke test_ascii and test_nonascii.
65721         * modules/uninorm/u32-normcmp-tests (Files): Add
65722         tests/uninorm/test-u32-normcmp.h.
65723         (Depends-on): Remove uninorm/u32-normcmp.
65725         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
65726         tests/uninorm/test-u16-normcmp.c.
65727         * tests/uninorm/test-u16-normcmp.c: Include it.
65728         (test_nonascii): New function, extracted from main. Add some more
65729         tests.
65730         (main): Invoke test_ascii and test_nonascii.
65731         * modules/uninorm/u16-normcmp-tests (Files): Add
65732         tests/uninorm/test-u16-normcmp.h.
65733         (Depends-on): Remove uninorm/u16-normcmp.
65735         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
65736         tests/uninorm/test-u8-normcmp.c.
65737         * tests/uninorm/test-u8-normcmp.c: Include it.
65738         (test_nonascii): New function, extracted from main. Add some more
65739         tests.
65740         (main): Invoke test_ascii and test_nonascii.
65741         * modules/uninorm/u8-normcmp-tests (Files): Add
65742         tests/uninorm/test-u8-normcmp.h.
65743         (Depends-on): Remove uninorm/u8-normcmp.
65745 2009-03-07  Bruno Haible  <bruno@clisp.org>
65747         New module 'uninorm/u32-normcoll'.
65748         * lib/uninorm/u32-normcoll.c: New file.
65749         * modules/uninorm/u32-normcoll: New file.
65751         New module 'uninorm/u16-normcoll'.
65752         * lib/uninorm/u16-normcoll.c: New file.
65753         * modules/uninorm/u16-normcoll: New file.
65755         New module 'uninorm/u8-normcoll'.
65756         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
65757         declarations.
65758         * lib/uninorm/u8-normcoll.c: New file.
65759         * lib/uninorm/u-normcoll.h: New file.
65760         * modules/uninorm/u8-normcoll: New file.
65762         New module 'uninorm/u32-normxfrm'.
65763         * lib/uninorm/u32-normxfrm.c: New file.
65764         * modules/uninorm/u32-normxfrm: New file.
65766         New module 'uninorm/u16-normxfrm'.
65767         * lib/uninorm/u16-normxfrm.c: New file.
65768         * modules/uninorm/u16-normxfrm: New file.
65770         New module 'uninorm/u8-normxfrm'.
65771         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
65772         declarations.
65773         * lib/uninorm/u8-normxfrm.c: New file.
65774         * lib/uninorm/u-normxfrm.h: New file.
65775         * modules/uninorm/u8-normxfrm: New file.
65777 2009-03-07  Bruno Haible  <bruno@clisp.org>
65779         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
65780         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
65781         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
65783 2009-03-07  Bruno Haible  <bruno@clisp.org>
65785         New module 'memxfrm'.
65786         * lib/memxfrm.h: New file.
65787         * lib/memxfrm.c: New file.
65788         * modules/memxfrm: New file.
65790 2009-03-07  Bruno Haible  <bruno@clisp.org>
65792         New module 'memcmp2'.
65793         * lib/memcmp2.h: New file.
65794         * lib/memcmp2.c: New file.
65795         * modules/memcmp2: New file.
65797 2009-03-07  Bruno Haible  <bruno@clisp.org>
65799         Tests for module 'uninorm/decomposing-form'.
65800         * modules/uninorm/decomposing-form-tests: New file.
65801         * tests/uninorm/test-decomposing-form.c: New file.
65803         New module 'uninorm/decomposing-form'.
65804         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
65805         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
65806         Add 'decomposing_variant' field.
65807         * lib/uninorm/decomposing-form.c: New file.
65808         * lib/uninorm/nfc.c (uninorm_nfc): Update.
65809         * lib/uninorm/nfd.c (uninorm_nfd): Update.
65810         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
65811         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
65812         * modules/uninorm/decomposing-form: New file.
65813         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
65814         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
65816 2009-03-07  Bruno Haible  <bruno@clisp.org>
65818         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
65819         strings.
65821 2009-03-06  Bruno Haible  <bruno@clisp.org>
65823         Tests for module 'uninorm/u32-normcmp'.
65824         * tests/uninorm/test-u32-normcmp.c: New file.
65825         * modules/uninorm/u32-normcmp-tests: New file.
65827         Tests for module 'uninorm/u16-normcmp'.
65828         * tests/uninorm/test-u16-normcmp.c: New file.
65829         * modules/uninorm/u16-normcmp-tests: New file.
65831         Tests for module 'uninorm/u8-normcmp'.
65832         * tests/uninorm/test-u8-normcmp.c: New file.
65833         * modules/uninorm/u8-normcmp-tests: New file.
65835         New module 'uninorm/u32-normcmp'.
65836         * lib/uninorm/u32-normcmp.c: New file.
65837         * modules/uninorm/u32-normcmp: New file.
65839         New module 'uninorm/u16-normcmp'.
65840         * lib/uninorm/u16-normcmp.c: New file.
65841         * modules/uninorm/u16-normcmp: New file.
65843         New module 'uninorm/u8-normcmp'.
65844         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
65845         declarations.
65846         * lib/uninorm/u8-normcmp.c: New file.
65847         * lib/uninorm/u-normcmp.h: New file.
65848         * modules/uninorm/u8-normcmp: New file.
65850 2009-03-06  Bruno Haible  <bruno@clisp.org>
65852         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
65853         Reported by Eric Blake.
65855 2009-03-06  Eric Blake  <ebb9@byu.net>
65856             Bruno Haible  <bruno@clisp.org>
65858         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
65859         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
65860         condition.
65861         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65862         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
65863         condition.
65864         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65866 2009-03-06  Eric Blake  <ebb9@byu.net>
65868         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
65869         to avoid compiler warnings.
65870         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
65872 2009-03-05  Bruno Haible  <bruno@clisp.org>
65874         * tests/test-ftell.c (main): Disable test beyond end of file on
65875         FreeMiNT.
65876         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65878 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
65880         * lib/filevercmp.c: Move hidden files up in ordering.
65881         * tests/test-filevercmp.c: Add tests for hidden files.
65883 2009-03-04  Bruno Haible  <bruno@clisp.org>
65885         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
65886         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
65887         AM_CFLAGS.
65888         Reported by Simon Josefsson.
65890 2009-03-03  Bruno Haible  <bruno@clisp.org>
65892         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
65893         Reported by Simon Josefsson.
65895         * doc/ld-version-script.texi: Update node reference.
65897 2009-03-03  Bruno Haible  <bruno@clisp.org>
65899         * modules/visibility (License): Change to 'unlimited'.
65900         Suggested by Simon Josefsson.
65902 2009-03-03  Jim Meyering  <meyering@redhat.com>
65904         unlinkdir: cannot_unlink_dir may modify process state
65905         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
65906         it's neither thread-safe nor appropriate for use in a library.
65908 2009-03-03  Eric Blake  <ebb9@byu.net>
65910         test-closein: silence test under Darwin
65911         * tests/test-closein.sh: Ignore stderr from cat, since we don't
65912         care if it dies from EPIPE or EBADF.
65914 2009-03-03  Bruno Haible  <bruno@clisp.org>
65916         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
65917         earlier.
65918         * doc/visibility.texi: Fix @node and @section.
65920 2009-03-03  Simon Josefsson  <simon@josefsson.org>
65922         * doc/gnulib.texi: Link to sections for ld version script and
65923         visibility.
65924         * doc/visibility.texi: Add @node and @section.
65925         * modules/ld-version-script: New module.
65926         * m4/ld-version-script.m4: New file.
65927         * doc/ld-version-script.texi: New file.
65929 2009-03-02  David Lutterkort  <lutter@redhat.com>
65931         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
65932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65934 2009-03-02  Bruno Haible  <bruno@clisp.org>
65936         * doc/visibility.texi: Mention libtool's -export-symbols option.
65938 2009-03-02  Jim Meyering  <meyering@redhat.com>
65940         announce-gen: new option: --no-print-checksums
65941         * build-aux/announce-gen (usage): Describe it.
65942         (print_checksums): Print a newline here, not in the [*] footnote.
65943         (main): Honor it.
65945 2009-03-01  Bruno Haible  <bruno@clisp.org>
65947         Use socklen_t in the native Windows replacements prototypes.
65948         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
65949         instead of 'int'.
65950         * lib/getsockopt.c (rpl_getsockopt): Likewise.
65951         * lib/setsockopt.c (rpl_setsockopt): Likewise.
65952         * modules/getsockopt (Depends-on): Add socklen.
65953         * modules/setsockopt (Depends-on): Add socklen.
65955 2009-03-01  Bruno Haible  <bruno@clisp.org>
65957         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
65958         least 4.2.
65960 2009-03-01  Eric Blake  <ebb9@byu.net>
65961             Bruno Haible  <bruno@clisp.org>
65963         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
65964         error messages.
65965         * lib/wait-process.c (wait_subprocess): Omit error message about
65966         deadly signal sent to the child of termsigp != NULL.
65968 2009-03-01  Eric Blake  <ebb9@byu.net>
65970         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
65972 2009-03-01  Bruno Haible  <bruno@clisp.org>
65974         Avoid a gcc warning.
65975         * tests/test-sched.c (b): Make global.
65976         Reported by Eric Blake.
65978 2009-01-19  Martin Lambers  <marlam@marlam.de>
65980         Provide POSIX semantics for socket timeout options on W32.
65981         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
65982         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
65983         * modules/setsockopt: Depend on sys_time module for struct timeval.
65984         * modules/getsockopt: Depend on sys_time module for struct timeval.
65986 2009-03-01  Simon Josefsson  <simon@josefsson.org>
65988         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
65989         __USE_GNU, for consistency with netdb.in.h.
65990         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65992 2009-03-01  Bruno Haible  <bruno@clisp.org>
65994         More support for FreeMiNT.
65995         * lib/fseeko.c (rpl_fseeko): Complete last commit.
65996         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65998 2009-03-01  Bruno Haible  <bruno@clisp.org>
66000         More support for FreeMiNT.
66001         * lib/fpurge.c (fpurge): Correct last commit.
66002         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66004 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66006         Fix unportable awk script in vc-list-files.
66007         * build-aux/vc-list-files: In the replacement awk script, use
66008         substr with a second argument of 1, not zero.
66009         Report by Simon Josefsson.
66011 2009-02-28  Bruno Haible  <bruno@clisp.org>
66013         More support for FreeMiNT.
66014         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
66015         to FreeMiNT today.
66016         * lib/fwriting.c (fwriting): Likewise.
66017         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
66019 2009-02-28  Bruno Haible  <bruno@clisp.org>
66021         * tests/test-freadseek.c (main): Disable test beyond end of file on
66022         FreeMiNT.
66023         * tests/test-ftello.c (main): Likewise.
66024         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66026 2009-02-28  Bruno Haible  <bruno@clisp.org>
66028         Add tentative support for FreeMiNT.
66029         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
66030         * lib/fpurge.c (fpurge): Likewise.
66031         * lib/freadable.c (freadable): Likewise.
66032         * lib/freading.c (freading): Likewise.
66033         * lib/freadptr.c (freadptr): Likewise.
66034         * lib/freadseek.c (freadptrinc): Likewise.
66035         * lib/fseeko.c (rpl_fseeko): Likewise.
66036         * lib/fseterr.c (fseterr): Likewise.
66037         * lib/fwritable.c (fwritable): Likewise.
66038         * lib/fwriting.c (fwriting): Likewise.
66039         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
66040         Hourihane.
66041         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66043 2009-02-28  Bruno Haible  <bruno@clisp.org>
66045         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
66046         SIGCHLD.
66047         Reported by Jim Meyering.
66049 2009-02-28  Bruno Haible  <bruno@clisp.org>
66051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
66052         Mention the results of these tests on various platforms.
66053         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
66054         order.
66055         * doc/posix-functions/printf.texi: Likewise.
66056         * doc/posix-functions/snprintf.texi: Likewise.
66057         * doc/posix-functions/sprintf.texi: Likewise.
66058         * doc/posix-functions/vfprintf.texi: Likewise.
66059         * doc/posix-functions/vprintf.texi: Likewise.
66060         * doc/posix-functions/vsnprintf.texi: Likewise.
66061         * doc/posix-functions/vsprintf.texi: Likewise.
66062         * doc/glibc-functions/obstack_printf.texi: Likewise.
66063         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
66065 2009-02-28  Bruno Haible  <bruno@clisp.org>
66067         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
66068         Reported by Loïc Minier <lool@dooz.org>.
66070 2009-02-27  Bruno Haible  <bruno@clisp.org>
66072         * gnulib-tool (func_import): Make the sed expression used to create the
66073         sed script for updating the .gitignore file POSIX compliant.
66074         Reported by Eric Blake.
66076 2009-02-27  Bruno Haible  <bruno@clisp.org>
66078         * gnulib-tool (sed): Don't alias as "sed --posix".
66079         Reported by Eric Blake.
66081 2009-02-27  Bruno Haible  <bruno@clisp.org>
66083         Avoid test link errors.
66084         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
66085         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
66086         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
66087         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
66088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66090 2009-02-27  Bruno Haible  <bruno@clisp.org>
66092         Avoid spurious "(cached)" in configure output.
66093         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
66094         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
66095         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66096         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66097         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66098         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66099         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66100         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66101         Reported by Eric Blake.
66103 2009-02-27  Eric Blake  <ebb9@byu.net>
66105         printf: fix regression in previous patch
66106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
66108 2009-02-27  Bruno Haible  <bruno@clisp.org>
66110         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
66111         value.
66112         * lib/stdint.in.h: Likewise.
66113         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
66115 2009-02-27  Eric Blake  <ebb9@byu.net>
66117         doc: mention more functions added in cygwin 1.7.0
66118         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
66119         addition.
66120         * doc/posix-functions/open_wmemstream.texi: Likewise.
66121         * doc/posix-functions/wcsnlen.texi: Likewise.
66122         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66123         * doc/posix-functions/wcstod.texi: Likewise.
66124         * doc/posix-functions/wcstof.texi: Likewise.
66125         * doc/posix-functions/wcstoimax.texi: Likewise.
66126         * doc/posix-functions/wcstok.texi: Likewise.
66127         * doc/posix-functions/wcstoumax.texi: Likewise.
66129         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
66130         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
66131         * doc/posix-functions/fprintf.texi: Update.
66132         * doc/posix-functions/printf.texi: Update.
66133         * doc/posix-functions/snprintf.texi: Update.
66134         * doc/posix-functions/sprintf.texi: Update.
66135         * doc/posix-functions/vfprintf.texi: Update.
66136         * doc/posix-functions/vprintf.texi: Update.
66137         * doc/posix-functions/vsnprintf.texi: Update.
66138         * doc/posix-functions/vsprintf.texi: Update.
66139         * doc/glibc-functions/obstack_printf.texi: Update.
66140         * doc/glibc-functions/obstack_vprintf.texi: Update.
66142 2009-02-26  Eric Blake  <ebb9@byu.net>
66144         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
66145         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
66146         compilation bug by using runtime conversion.
66147         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66148         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
66149         * modules/ceill-tests (Files): Use nan.h.
66150         * modules/floorl-tests (Files): Likewise.
66151         * modules/frexpl-tests (Files): Likewise.
66152         * modules/isnanl-tests (Files): Likewise.
66153         * modules/ldexpl-tests (Files): Likewise.
66154         * modules/roundl-tests (Files): Likewise.
66155         * modules/truncl-tests (Files): Likewise.
66156         * tests/test-ceill.c (main): Use a working NaN.
66157         * tests/test-floorl.c (main): Likewise.
66158         * tests/test-frexpl.c (main): Likewise.
66159         * tests/test-isnan.c (test_long_double): Likewise.
66160         * tests/test-isnanl.h (main): Likewise.
66161         * tests/test-ldexpl.h (main): Likewise.
66162         * tests/test-roundl.h (main): Likewise.
66163         * tests/test-truncl.h (main): Likewise.
66164         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
66166 2009-02-26  Eric Blake  <ebb9@byu.net>
66167             Bruno Haible  <bruno@clisp.org>
66169         Work around a *printf bug with %ls on Solaris.
66170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
66171         precision is specified, sprintf stops converting the wide string
66172         argument when the number of bytes that have been produced by this
66173         conversion equals or exceeds the precision.
66174         * doc/posix-functions/fprintf.texi: Update.
66175         * doc/posix-functions/printf.texi: Update.
66176         * doc/posix-functions/snprintf.texi: Update.
66177         * doc/posix-functions/sprintf.texi: Update.
66178         * doc/posix-functions/vfprintf.texi: Update.
66179         * doc/posix-functions/vprintf.texi: Update.
66180         * doc/posix-functions/vsnprintf.texi: Update.
66181         * doc/posix-functions/vsprintf.texi: Update.
66182         * doc/glibc-functions/obstack_printf.texi: Update.
66183         * doc/glibc-functions/obstack_vprintf.texi: Update.
66185 2009-02-26  Eric Blake  <ebb9@byu.net>
66187         stdlib: favor compiler check of random.h
66188         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
66189         to avoid an ObjC random.h installed by Swarm.
66191 2009-02-26  Bruno Haible  <bruno@clisp.org>
66193         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
66194         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
66195         Reported by Gary V. Vaughan <gary@gnu.org>.
66197 2009-02-26  Bruno Haible  <bruno@clisp.org>
66199         Fix *printf behaviour regarding the %ls directive.
66200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
66201         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
66202         NEED_PRINTF_DIRECTIVE_LS.
66203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
66204         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
66205         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66206         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
66207         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
66208         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
66209         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
66210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66214         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
66215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66218         * doc/posix-functions/fprintf.texi: Update.
66219         * doc/posix-functions/printf.texi: Update.
66220         * doc/posix-functions/snprintf.texi: Update.
66221         * doc/posix-functions/sprintf.texi: Update.
66222         * doc/posix-functions/vfprintf.texi: Update.
66223         * doc/posix-functions/vprintf.texi: Update.
66224         * doc/posix-functions/vsnprintf.texi: Update.
66225         * doc/posix-functions/vsprintf.texi: Update.
66226         * doc/glibc-functions/obstack_printf.texi: Update.
66227         * doc/glibc-functions/obstack_vprintf.texi: Update.
66228         Reported by Eric Blake.
66230 2009-02-25  Bruno Haible  <bruno@clisp.org>
66232         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
66233         with known value.
66234         Reported by Gary V. Vaughan <gary@gnu.org>.
66236 2009-02-25  Bruno Haible  <bruno@clisp.org>
66238         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
66239         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
66240         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
66241         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
66242         Reported by Gary V. Vaughan <gary@gnu.org>.
66244 2009-02-25  Bruno Haible  <bruno@clisp.org>
66246         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
66247         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
66248         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
66249         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
66250         Reported by Gary V. Vaughan <gary@gnu.org>.
66252 2009-02-25  Eric Blake  <ebb9@byu.net>
66254         tests: skip fseek/ftell tests if ungetc is broken
66255         * m4/ungetc.m4: New file.
66256         * modules/fseek-tests: Split test, so ungetc dependency is
66257         separate from rest of test.
66258         * modules/fseeko-tests: Likewise.
66259         * modules/ftell-tests: Likewise.
66260         * modules/ftello-tests: Likewise.
66261         * tests/test-fseek.c (main): Isolate ungetc dependency.
66262         * tests/test-fseeko.c (main): Likewise.
66263         * tests/test-ftell.c (main): Likewise.
66264         * tests/test-ftello.c (main): Likewise.
66265         * tests/test-fseek2.sh: New file.
66266         * tests/test-fseeko2.sh: Likewise.
66267         * tests/test-ftell2.sh: Likewise.
66268         * tests/test-ftello2.sh: Likewise.
66270 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
66272         test-getaddrinfo: fix usage of skip return code 77
66273         * tests/test-gettaddrinfo.c: Return skip code 77 only
66274         for first occurrence of skip (4x77 is not 77)
66276 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
66278         strtod: avoid C99 decl-after-statement
66279         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
66281 2009-02-24  Eric Blake  <ebb9@byu.net>
66283         strtod: detect HP-UX 11.31 bug
66284         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
66285         Reported by Gary V. Vaughan.
66287 2009-02-23  Bruno Haible  <bruno@clisp.org>
66289         Fix invalid read past end of memory block.
66290         * lib/vasnprintf.c (DCHAR_SET): Define.
66291         (local_wcslen): Define only when needed.
66292         (local_strnlen, local_wcsnlen): New functions.
66293         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
66294         directives that involve a conversion ourselves.
66295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
66296         wcsnlen, mbrtowc, wcrtomb.
66297         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
66298         * tests/test-vasprintf-posix.c (test_function): Likewise.
66299         * tests/test-snprintf-posix.h (test_function): Likewise.
66300         * tests/test-sprintf-posix.h (test_function): Likewise.
66301         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66303 2009-02-22  Bruno Haible  <bruno@clisp.org>
66305         Implement new clarified decomposition of Hangul syllables.
66306         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
66307         of type LTV, return only a pairwise decomposition.
66308         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
66309         Likewise.
66310         * tests/uninorm/test-decomposition.c (main): Updated expected result.
66311         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
66312         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
66314 2009-02-22  Bruno Haible  <bruno@clisp.org>
66316         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
66317         zero-length results and shrink excess allocated memory.
66318         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
66319         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
66320         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
66321         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
66322         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
66323         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
66324         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
66325         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
66326         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
66327         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
66328         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
66329         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
66331 2009-02-21  Bruno Haible  <bruno@clisp.org>
66333         * doc/gnulib.texi: Include safe-alloc.texi earlier.
66334         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
66335         spaces after a period. Put a space between a macro name and its
66336         argument list. Trivial rewordings.
66337         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
66338         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
66339         (main): Return 0 explicitly.
66341 2009-02-21  Bruno Haible  <bruno@clisp.org>
66343         Tests for module 'uninorm/filter'.
66344         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
66345         * modules/uninorm/filter-tests: New file.
66347         New module 'uninorm/filter'.
66348         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
66349         uninorm_filter_flush, uninorm_filter_free): New declarations.
66350         * lib/uninorm/uninorm-filter.c: New file.
66351         * modules/uninorm/filter: New file.
66353 2009-02-21  Bruno Haible  <bruno@clisp.org>
66355         Tests for module 'uninorm/nfkc'.
66356         * tests/uninorm/test-nfkc.c: New file.
66357         * tests/uninorm/test-u8-nfkc.c: New file.
66358         * tests/uninorm/test-u16-nfkc.c: New file.
66359         * tests/uninorm/test-u32-nfkc.c: New file.
66360         * tests/uninorm/test-u32-nfkc-big.sh: New file.
66361         * tests/uninorm/test-u32-nfkc-big.c: New file.
66362         * modules/uninorm/nfkc-tests: New file.
66364         New module 'uninorm/nfkc'.
66365         * lib/uninorm/nfkc.c: New file.
66366         * modules/uninorm/nfkc: New file.
66368         Tests for module 'uninorm/nfkd'.
66369         * tests/uninorm/test-nfkd.c: New file.
66370         * tests/uninorm/test-u8-nfkd.c: New file.
66371         * tests/uninorm/test-u16-nfkd.c: New file.
66372         * tests/uninorm/test-u32-nfkd.c: New file.
66373         * tests/uninorm/test-u32-nfkd-big.sh: New file.
66374         * tests/uninorm/test-u32-nfkd-big.c: New file.
66375         * modules/uninorm/nfkd-tests: New file.
66377         New module 'uninorm/nfkd'.
66378         * lib/uninorm/nfkd.c: New file.
66379         * modules/uninorm/nfkd: New file.
66381         Tests for module 'uninorm/nfc'.
66382         * tests/uninorm/test-nfc.c: New file.
66383         * tests/uninorm/test-u8-nfc.c: New file.
66384         * tests/uninorm/test-u16-nfc.c: New file.
66385         * tests/uninorm/test-u32-nfc.c: New file.
66386         * tests/uninorm/test-u32-nfc-big.sh: New file.
66387         * tests/uninorm/test-u32-nfc-big.c: New file.
66388         * modules/uninorm/nfc-tests: New file.
66390         New module 'uninorm/nfc'.
66391         * lib/uninorm/nfc.c: New file.
66392         * modules/uninorm/nfc: New file.
66394         Tests for module 'uninorm/nfd'.
66395         * tests/uninorm/test-nfd.c: New file.
66396         * tests/uninorm/test-u8-nfd.c: New file.
66397         * tests/uninorm/test-u16-nfd.c: New file.
66398         * tests/uninorm/test-u32-nfd.c: New file.
66399         * tests/uninorm/test-u32-nfd-big.sh: New file.
66400         * tests/uninorm/test-u32-nfd-big.c: New file.
66401         * tests/uninorm/test-u32-normalize-big.h: New file.
66402         * tests/uninorm/test-u32-normalize-big.c: New file.
66403         * tests/uninorm/NormalizationTest.txt: New file, created from
66404         Unicode 5.1.0 NormalizationTest.txt.
66405         * modules/uninorm/nfd-tests: New file.
66407         New module 'uninorm/nfd'.
66408         * lib/uninorm/nfd.c: New file.
66409         * modules/uninorm/nfd: New file.
66411         New module 'uninorm/u32-normalize'.
66412         * lib/uninorm/u32-normalize.c: New file.
66413         * modules/uninorm/u32-normalize: New file.
66415         New module 'uninorm/u16-normalize'.
66416         * lib/uninorm/u16-normalize.c: New file.
66417         * modules/uninorm/u16-normalize: New file.
66419         New module 'uninorm/u8-normalize'.
66420         * lib/uninorm/u8-normalize.c: New file.
66421         * lib/uninorm/normalize-internal.h: New file.
66422         * lib/uninorm/u-normalize-internal.h: New file.
66423         * modules/uninorm/u8-normalize: New file.
66425         New module 'uninorm/decompose-internal'.
66426         * lib/uninorm/decompose-internal.c: New file.
66427         * modules/uninorm/decompose-internal: New file.
66429         Tests for module 'uninorm/composition'.
66430         * tests/uninorm/test-composition.c: New file.
66431         * modules/uninorm/composition-tests: New file.
66433         New module 'uninorm/composition'.
66434         * lib/uninorm/composition.c: New file.
66435         * lib/uninorm/composition-table.gperf: New file, generated by
66436         gen-uni-tables.
66437         * modules/uninorm/composition: New file.
66439         Tests for module 'uninorm/compat-decomposition'.
66440         * tests/uninorm/test-compat-decomposition.c: New file.
66441         * modules/uninorm/compat-decomposition-tests: New file.
66443         New module 'uninorm/compat-decomposition'.
66444         * lib/uninorm/decompose-internal.h: New file.
66445         * lib/uninorm/compat-decomposition.c: New file.
66446         * modules/uninorm/compat-decomposition: New file.
66448         Tests for module 'uninorm/canonical-decomposition'.
66449         * tests/uninorm/test-canonical-decomposition.c: New file.
66450         * modules/uninorm/canonical-decomposition-tests: New file.
66452         New module 'uninorm/canonical-decomposition'.
66453         * lib/uninorm/canonical-decomposition.c: New file.
66454         * modules/uninorm/canonical-decomposition: New file.
66456         Tests for module 'uninorm/decomposition'.
66457         * tests/uninorm/test-decomposition.c: New file.
66458         * modules/uninorm/decomposition-tests: New file.
66460         New module 'uninorm/decomposition'.
66461         * lib/uninorm/decomposition.c: New file.
66462         * modules/uninorm/decomposition: New file.
66464         New module 'uninorm/decomposition-table'.
66465         * lib/uninorm/decomposition-table.h: New file.
66466         * lib/uninorm/decomposition-table.c: New file.
66467         * lib/uninorm/decomposition-table1.h: New file, generated by
66468         gen-uni-tables.
66469         * lib/uninorm/decomposition-table2.h: New file, generated by
66470         gen-uni-tables.
66471         * modules/uninorm/decomposition-table: New file.
66473         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
66474         (UC_DECOMP_*): New enumeration items.
66475         (get_decomposition): New function.
66476         (struct decomp_table): New type.
66477         (output_decomposition, output_decomposition_tables): New functions.
66478         (unicode_composition_exclusions): New variable.
66479         (fill_composition_exclusions, debug_output_composition_tables): New
66480         functions.
66481         (main): Accept one more argument. Invoke fill_composition_exclusions.
66482         Output decomposition and composition tables.
66484         New module 'uninorm/base'.
66485         * lib/uninorm.h: New file.
66486         * lib/unictype.h: Update comment.
66487         * modules/uninorm/base: New file.
66489 2009-02-21  David Lutterkort  <lutter@redhat.com>
66491         Tests for module 'safe-alloc'.
66492         * tests/test-safe-alloc.c: New file.
66493         * modules/safe-alloc-tests: New file.
66495         New module 'safe-alloc'.
66496         * lib/safe-alloc.h: New file.
66497         * lib/safe-alloc.c: New file.
66498         * m4/safe-alloc.m4: New file.
66499         * modules/safe-alloc: New file.
66500         * doc/safe-alloc.texi: New file.
66501         * doc/gnulib.texi: Include it.
66502         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66503         safe-alloc.
66505 2009-02-18  Bruno Haible  <bruno@clisp.org>
66507         Fix link error on non-glibc systems.
66508         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
66509         variable.
66510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66512 2009-02-18  Jim Meyering  <meyering@redhat.com>
66514         fts: avoid used-uninitialized error due to recent change
66515         * lib/fts.c (fts_read): Guard uses of the new member,
66516         parent->fts_n_dirs_remaining, since it's not relevant for
66517         the parent of a directory specified on the command-line.
66519 2009-02-17  James Youngman  <jay@gnu.org>
66520             Bruno Haible  <bruno@clisp.org>
66522         * m4/include_next.m4: Reformulate comment.
66524 2009-02-16  Jim Meyering  <meyering@redhat.com>
66526         fts: add #if guards so that the fts_lgpl module still builds
66527         * lib/fts.c: Guard just-added hash-table-using parts with
66528         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
66529         Reported by Simon Josefsson.
66531 2009-02-15  Bruno Haible  <bruno@clisp.org>
66533         * modules/array-mergesort-tests: New file.
66534         * tests/test-array-mergesort.c: New file.
66536         New module 'array-mergesort'.
66537         * modules/array-mergesort: New file.
66538         * lib/array-mergesort.h: New file.
66540 2009-02-15  Bruno Haible  <bruno@clisp.org>
66542         Fix 2009-02-07 commit.
66543         * lib/gen-uni-tables.c (output_predicate, output_category,
66544         output_combclass, output_bidi_category, output_decimal_digit,
66545         output_digit, output_numeric, output_mirror, output_scripts,
66546         output_ident_category, output_simple_mapping): Fix format directives.
66547         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
66549 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
66551         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
66552         fixes are available from IBM.
66554 2009-02-13  Jim Meyering  <meyering@redhat.com>
66556         fts: arrange not to stat non-directories in more cases
66557         This makes GNU find (when it doesn't need to stat each file)
66558         *much* more efficient at traversing reiserfs file systems.
66559         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
66560         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
66561         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
66562         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
66563         (leaf_optimization_applies): New function.
66564         (LCO_hash, LCO_compare): New helper functions.
66565         (link_count_optimize_ok): New function.
66566         (fts_stat): Initialize new member (if dir).
66567         (fts_read): Decrement parent's fts_n_dirs_remaining count if
66568         we've just stat'ed a directory.  Skip the stat call when possible.
66569         ---
66570         Note this AFS-related exchange:
66571         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
66572         and note find's pioctl call in find/fstype.c.
66573         But that is necessary only if you want to enable the
66574         optimization for AFS, and for now, I don't.
66576         fts: move a function definition "up" (no semantic change)
66577         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
66578         "up" to precede upcoming use of a related function.
66580 2009-02-11  Jim Meyering  <meyering@redhat.com>
66582         fts: correct internal computation of nlinks (optimization-related)
66583         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
66584         whether the current entry is a directory, so don't test it.
66586 2009-02-10  Bruno Haible  <bruno@clisp.org>
66588         Tests for module 'uniwbrk/ulc-wordbreaks'.
66589         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
66590         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
66591         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
66593         Tests for module 'uniwbrk/u32-wordbreaks'.
66594         * modules/uniwbrk/u32-wordbreaks-tests: New file.
66595         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
66597         Tests for module 'uniwbrk/u16-wordbreaks'.
66598         * modules/uniwbrk/u16-wordbreaks-tests: New file.
66599         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
66601         Tests for module 'uniwbrk/u8-wordbreaks'.
66602         * modules/uniwbrk/u8-wordbreaks-tests: New file.
66603         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
66605 2009-02-10  Bruno Haible  <bruno@clisp.org>
66607         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
66608         property.
66609         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
66610         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
66611         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
66613 2009-02-10  Simon Josefsson  <simon@josefsson.org>
66615         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
66616         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
66618 2009-02-10  Bruno Haible  <bruno@clisp.org>
66620         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
66621         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
66622         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
66623         * lib/unilbrk/u8-possible-linebreaks.c: Update.
66624         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
66625         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
66627 2009-02-09  Simon Josefsson  <simon@josefsson.org>
66629         * lib/sockets.h (gl_fd_to_handle): New function.
66631         * tests/test-sockets.c: Call gl_fd_to_handle.
66633 2009-02-09  Bruno Haible  <bruno@clisp.org>
66635         * doc/havelib.texi: Document the conventions on bi-arch systems.
66637 2009-02-08  Bruno Haible  <bruno@clisp.org>
66639         Document the AC_LIB_LINKFLAGS macro.
66640         * doc/havelib.texi: New file, mostly written on 2005-05-24.
66641         * doc/gnulib.texi: Include it.
66643 2009-02-08  Bruno Haible  <bruno@clisp.org>
66645         Fix wrong order of sections, compared to TOC.
66646         * doc/gnulib.texi: Include relocatable-maint.texi after the
66647         "Regular expressions" node, not before.
66649 2009-02-08  Bruno Haible  <bruno@clisp.org>
66651         Tests for module 'unicase/totitle'.
66652         * modules/unicase/totitle-tests: New file.
66654         Tests for module 'unicase/tolower'.
66655         * modules/unicase/tolower-tests: New file.
66657         Tests for module 'unicase/toupper'.
66658         * modules/unicase/toupper-tests: New file.
66659         * tests/unicase/test-mapping-part1.h: New file.
66660         * tests/unicase/test-mapping-part2.h: New file.
66662         New module 'unicase/totitle'.
66663         * modules/unicase/totitle: New file.
66664         * lib/unicase/totitle.c: New file.
66666         New module 'unicase/tolower'.
66667         * modules/unicase/tolower: New file.
66668         * lib/unicase/tolower.c: New file.
66670         New module 'unicase/toupper'.
66671         * modules/unicase/toupper: New file.
66672         * lib/unicase/toupper.c: New file.
66673         * lib/unicase/simple-mapping.h: New file.
66675         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
66676         (mapping_table): New structure.
66677         (output_simple_mapping): New function.
66678         (main): Invoke output_simple_mapping_test and output_simple_mapping.
66679         * modules/gen-uni-tables (Description): Update.
66680         * lib/unicase/toupper.h: New file, automatically generated by
66681         gen-uni-tables.
66682         * lib/unicase/tolower.h: New file, automatically generated by
66683         gen-uni-tables.
66684         * lib/unicase/totitle.h: New file, automatically generated by
66685         gen-uni-tables.
66686         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
66687         gen-uni-tables.
66688         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
66689         gen-uni-tables.
66690         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
66691         gen-uni-tables.
66693         New module 'unicase/base'.
66694         * modules/unicase/base: New file.
66695         * lib/unicase.h: New file.
66697 2009-02-08  Bruno Haible  <bruno@clisp.org>
66699         New module 'uniwbrk/ulc-wordbreaks'.
66700         * modules/uniwbrk/ulc-wordbreaks: New file.
66701         * lib/uniwbrk/ulc-wordbreaks.c: New file.
66703         New module 'uniwbrk/u32-wordbreaks'.
66704         * modules/uniwbrk/u32-wordbreaks: New file.
66705         * lib/uniwbrk/u32-wordbreaks.c: New file.
66707         New module 'uniwbrk/u16-wordbreaks'.
66708         * modules/uniwbrk/u16-wordbreaks: New file.
66709         * lib/uniwbrk/u16-wordbreaks.c: New file.
66711         New module 'uniwbrk/u8-wordbreaks'.
66712         * modules/uniwbrk/u8-wordbreaks: New file.
66713         * lib/uniwbrk/u8-wordbreaks.c: New file.
66714         * lib/uniwbrk/u-wordbreaks.h: New file.
66716         New module 'uniwbrk/table'.
66717         * modules/uniwbrk/table: New file.
66718         * lib/uniwbrk/wbrktable.h: New file.
66719         * lib/uniwbrk/wbrktable.c: New file.
66721         New module 'uniwbrk/wordbreak-property'.
66722         * modules/uniwbrk/wordbreak-property: New file.
66723         * lib/uniwbrk/wordbreak-property.c: New file.
66725         * lib/gen-uni-tables.c (WBP_*): New enum items.
66726         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
66727         (unicode_org_wbp): New variable.
66728         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
66729         New functions.
66730         (wbp_table): New structure.
66731         (output_wbp, output_wbrk_tables): New functions.
66732         (main): Accept additional argument. Invoke fill_org_wbp,
66733         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
66734         output_wbrk_tables.
66735         * modules/gen-uni-tables (Description): Update.
66736         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
66737         gen-uni-tables.
66739         New module 'uniwbrk/base'.
66740         * modules/uniwbrk/base: New file.
66741         * lib/uniwbrk.h: New file.
66743 2009-02-08  Bruno Haible  <bruno@clisp.org>
66745         Update to Unicode 5.1.0.
66746         * lib/gen-uni-tables.c (is_property_alphabetic): Include
66747         U+2185..U+2188.
66748         (is_property_default_ignorable_code_point): Don't include characters
66749         of category Cc or Cs and not-a-characters.
66750         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
66751         U+0D79, U+109E, U+109F, U+A60C.
66752         * lib/unictype/bidi_of.h: Regenerated.
66753         * lib/unictype/blocks.h: Regenerated.
66754         * lib/unictype/categ_C.h: Regenerated.
66755         * lib/unictype/categ_Cf.h: Regenerated.
66756         * lib/unictype/categ_Cn.h: Regenerated.
66757         * lib/unictype/categ_L.h: Regenerated.
66758         * lib/unictype/categ_Ll.h: Regenerated.
66759         * lib/unictype/categ_Lm.h: Regenerated.
66760         * lib/unictype/categ_Lo.h: Regenerated.
66761         * lib/unictype/categ_Lu.h: Regenerated.
66762         * lib/unictype/categ_M.h: Regenerated.
66763         * lib/unictype/categ_Mc.h: Regenerated.
66764         * lib/unictype/categ_Me.h: Regenerated.
66765         * lib/unictype/categ_Mn.h: Regenerated.
66766         * lib/unictype/categ_N.h: Regenerated.
66767         * lib/unictype/categ_Nd.h: Regenerated.
66768         * lib/unictype/categ_Nl.h: Regenerated.
66769         * lib/unictype/categ_No.h: Regenerated.
66770         * lib/unictype/categ_P.h: Regenerated.
66771         * lib/unictype/categ_Pd.h: Regenerated.
66772         * lib/unictype/categ_Pe.h: Regenerated.
66773         * lib/unictype/categ_Pf.h: Regenerated.
66774         * lib/unictype/categ_Pi.h: Regenerated.
66775         * lib/unictype/categ_Po.h: Regenerated.
66776         * lib/unictype/categ_Ps.h: Regenerated.
66777         * lib/unictype/categ_S.h: Regenerated.
66778         * lib/unictype/categ_Sk.h: Regenerated.
66779         * lib/unictype/categ_Sm.h: Regenerated.
66780         * lib/unictype/categ_So.h: Regenerated.
66781         * lib/unictype/categ_of.h: Regenerated.
66782         * lib/unictype/combining.h: Regenerated.
66783         * lib/unictype/ctype_alnum.h: Regenerated.
66784         * lib/unictype/ctype_alpha.h: Regenerated.
66785         * lib/unictype/ctype_graph.h: Regenerated.
66786         * lib/unictype/ctype_lower.h: Regenerated.
66787         * lib/unictype/ctype_print.h: Regenerated.
66788         * lib/unictype/ctype_punct.h: Regenerated.
66789         * lib/unictype/ctype_upper.h: Regenerated.
66790         * lib/unictype/decdigit.h: Regenerated.
66791         * lib/unictype/digit.h: Regenerated.
66792         * lib/unictype/mirror.h: Regenerated.
66793         * lib/unictype/numeric.h: Regenerated.
66794         * lib/unictype/pr_alphabetic.h: Regenerated.
66795         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
66796         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
66797         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
66798         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
66799         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
66800         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
66801         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
66802         * lib/unictype/pr_combining.h: Regenerated.
66803         * lib/unictype/pr_dash.h: Regenerated.
66804         * lib/unictype/pr_decimal_digit.h: Regenerated.
66805         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
66806         * lib/unictype/pr_deprecated.h: Regenerated.
66807         * lib/unictype/pr_diacritic.h: Regenerated.
66808         * lib/unictype/pr_extender.h: Regenerated.
66809         * lib/unictype/pr_format_control.h: Regenerated.
66810         * lib/unictype/pr_grapheme_base.h: Regenerated.
66811         * lib/unictype/pr_grapheme_extend.h: Regenerated.
66812         * lib/unictype/pr_grapheme_link.h: Regenerated.
66813         * lib/unictype/pr_id_continue.h: Regenerated.
66814         * lib/unictype/pr_id_start.h: Regenerated.
66815         * lib/unictype/pr_ideographic.h: Regenerated.
66816         * lib/unictype/pr_ignorable_control.h: Regenerated.
66817         * lib/unictype/pr_lowercase.h: Regenerated.
66818         * lib/unictype/pr_math.h: Regenerated.
66819         * lib/unictype/pr_numeric.h: Regenerated.
66820         * lib/unictype/pr_other_alphabetic.h: Regenerated.
66821         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
66822         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
66823         * lib/unictype/pr_other_id_continue.h: Regenerated.
66824         * lib/unictype/pr_other_lowercase.h: Regenerated.
66825         * lib/unictype/pr_other_math.h: Regenerated.
66826         * lib/unictype/pr_punctuation.h: Regenerated.
66827         * lib/unictype/pr_sentence_terminal.h: Regenerated.
66828         * lib/unictype/pr_soft_dotted.h: Regenerated.
66829         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
66830         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
66831         * lib/unictype/pr_unified_ideograph.h: Regenerated.
66832         * lib/unictype/pr_uppercase.h: Regenerated.
66833         * lib/unictype/pr_xid_continue.h: Regenerated.
66834         * lib/unictype/pr_xid_start.h: Regenerated.
66835         * lib/unictype/pr_zero_width.h: Regenerated.
66836         * lib/unictype/scripts.h: Regenerated.
66837         * lib/unictype/scripts_byname.gperf: Regenerated.
66838         * lib/unictype/sy_java_ident.h: Regenerated.
66839         * lib/unilbrk/lbrkprop1.h: Regenerated.
66840         * lib/unilbrk/lbrkprop2.h: Regenerated.
66841         * tests/unictype/test-categ_C.c: Regenerated.
66842         * tests/unictype/test-categ_Cf.c: Regenerated.
66843         * tests/unictype/test-categ_Cn.c: Regenerated.
66844         * tests/unictype/test-categ_L.c: Regenerated.
66845         * tests/unictype/test-categ_Ll.c: Regenerated.
66846         * tests/unictype/test-categ_Lm.c: Regenerated.
66847         * tests/unictype/test-categ_Lo.c: Regenerated.
66848         * tests/unictype/test-categ_Lu.c: Regenerated.
66849         * tests/unictype/test-categ_M.c: Regenerated.
66850         * tests/unictype/test-categ_Mc.c: Regenerated.
66851         * tests/unictype/test-categ_Me.c: Regenerated.
66852         * tests/unictype/test-categ_Mn.c: Regenerated.
66853         * tests/unictype/test-categ_N.c: Regenerated.
66854         * tests/unictype/test-categ_Nd.c: Regenerated.
66855         * tests/unictype/test-categ_Nl.c: Regenerated.
66856         * tests/unictype/test-categ_No.c: Regenerated.
66857         * tests/unictype/test-categ_P.c: Regenerated.
66858         * tests/unictype/test-categ_Pd.c: Regenerated.
66859         * tests/unictype/test-categ_Pe.c: Regenerated.
66860         * tests/unictype/test-categ_Pf.c: Regenerated.
66861         * tests/unictype/test-categ_Pi.c: Regenerated.
66862         * tests/unictype/test-categ_Po.c: Regenerated.
66863         * tests/unictype/test-categ_Ps.c: Regenerated.
66864         * tests/unictype/test-categ_S.c: Regenerated.
66865         * tests/unictype/test-categ_Sk.c: Regenerated.
66866         * tests/unictype/test-categ_Sm.c: Regenerated.
66867         * tests/unictype/test-categ_So.c: Regenerated.
66868         * tests/unictype/test-ctype_alnum.c: Regenerated.
66869         * tests/unictype/test-ctype_alpha.c: Regenerated.
66870         * tests/unictype/test-ctype_graph.c: Regenerated.
66871         * tests/unictype/test-ctype_lower.c: Regenerated.
66872         * tests/unictype/test-ctype_print.c: Regenerated.
66873         * tests/unictype/test-ctype_punct.c: Regenerated.
66874         * tests/unictype/test-ctype_upper.c: Regenerated.
66875         * tests/unictype/test-decdigit.h: Regenerated.
66876         * tests/unictype/test-digit.h: Regenerated.
66877         * tests/unictype/test-numeric.h: Regenerated.
66878         * tests/unictype/test-pr_alphabetic.c: Regenerated.
66879         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
66880         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
66881         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
66882         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
66883         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
66884         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
66885         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
66886         * tests/unictype/test-pr_combining.c: Regenerated.
66887         * tests/unictype/test-pr_dash.c: Regenerated.
66888         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
66889         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
66890         * tests/unictype/test-pr_deprecated.c: Regenerated.
66891         * tests/unictype/test-pr_diacritic.c: Regenerated.
66892         * tests/unictype/test-pr_extender.c: Regenerated.
66893         * tests/unictype/test-pr_format_control.c: Regenerated.
66894         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
66895         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
66896         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
66897         * tests/unictype/test-pr_id_continue.c: Regenerated.
66898         * tests/unictype/test-pr_id_start.c: Regenerated.
66899         * tests/unictype/test-pr_ideographic.c: Regenerated.
66900         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
66901         * tests/unictype/test-pr_lowercase.c: Regenerated.
66902         * tests/unictype/test-pr_math.c: Regenerated.
66903         * tests/unictype/test-pr_numeric.c: Regenerated.
66904         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
66905         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
66906         Regenerated.
66907         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
66908         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
66909         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
66910         * tests/unictype/test-pr_other_math.c: Regenerated.
66911         * tests/unictype/test-pr_punctuation.c: Regenerated.
66912         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
66913         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
66914         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
66915         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
66916         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
66917         * tests/unictype/test-pr_uppercase.c: Regenerated.
66918         * tests/unictype/test-pr_xid_continue.c: Regenerated.
66919         * tests/unictype/test-pr_xid_start.c: Regenerated.
66920         * tests/unictype/test-pr_zero_width.c: Regenerated.
66922         Update to Unicode 5.1.0.
66923         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
66924         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
66925         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
66926         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
66927         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
66928         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
66929         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
66930         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
66931         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
66932         (nonspacing_table_ind): Update.
66933         * tests/uniwidth/test-uc_width2.sh: Update expected result.
66935         Update to Unicode 5.1.0.
66936         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
66937         code transform.
66938         * lib/uniname/uniname.c (unicode_character_name,
66939         unicode_name_character): Add the range 0x1Fxxx to the code transform.
66940         * lib/uniname/uninames.h: Regenerated.
66941         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
66943 2009-02-07  Bruno Haible  <bruno@clisp.org>
66945         Merge gen-ctype and gen-lbrk into a single program.
66946         * lib/gen-uni-tables.c: New file, incorporating
66947         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
66948         Add directory prefixes to the names of the generated files.
66949         * lib/unictype/gen-ctype.c: Remove file.
66950         * lib/unilbrk/gen-lbrk.c: Remove file.
66951         * modules/gen-uni-tables: New file.
66952         * modules/unictype/gen-ctype: Remove file.
66953         * modules/unilbrk/gen-lbrk: Remove file.
66955 2009-02-07  Bruno Haible  <bruno@clisp.org>
66957         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
66959         New module 'unistr/u32-strcoll'.
66960         * modules/unistr/u32-strcoll: New file.
66961         * lib/unistr/u32-strcoll.c: New file.
66963         New module 'unistr/u16-strcoll'.
66964         * modules/unistr/u16-strcoll: New file.
66965         * lib/unistr/u16-strcoll.c: New file.
66967         New module 'unistr/u8-strcoll'.
66968         * modules/unistr/u8-strcoll: New file.
66969         * lib/unistr/u8-strcoll.c: New file.
66970         * lib/unistr/u-strcoll.h: New file.
66972 2009-02-07  Bruno Haible  <bruno@clisp.org>
66974         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
66975         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66976         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66977         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
66978         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
66979         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
66981 2009-02-07  Bruno Haible  <bruno@clisp.org>
66983         Make 64-bit clean.
66984         * lib/unictype/gen-ctype.c (output_predicate, output_category,
66985         output_combclass, output_bidi_category, output_decimal_digit,
66986         output_digit, output_numeric, output_mirror, output_scripts,
66987         output_ident_category): Use proper width specifier in format strings.
66989 2009-02-07  Bruno Haible  <bruno@clisp.org>
66991         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
66992         failure behaviour.
66994 2009-02-07  Jim Meyering  <meyering@redhat.com>
66996         regex: avoid compilation failure with upcoming gcc-4.4
66997         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
66998         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
66999         "... error: integer overflow in preprocessor expression".
67001 2009-02-05  Ben Pfaff  <blp@gnu.org>
67003         Fix link errors on Windows when close module is used.
67004         * modules/close: Add $(LIB_CLOSE) to Link section.
67005         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
67006         $(LIB_CLOSE) on Windows.
67008 2009-02-05  Jim Meyering  <meyering@redhat.com>
67010         still avoid unused-parameter warnings, but do it cleanly
67011         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
67012         (get_fs_usage): Cast to void instead.
67013         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
67014         (dev_from_mount_options, read_file_system_list): Cast to void.
67015         Prompted by Bruno Haible.
67017 2009-02-04  Jim Meyering  <meyering@redhat.com>
67019         fsusage.c: correct copyright year
67020         * lib/fsusage.c: Reflect year in which the change is pushed into
67022         avoid misc. warnings
67023         * lib/fsusage.c (UNUSED_PARAM): Define.
67024         (get_fs_usage): Mark parameter "disk" as unused.
67025         * lib/getugroups.c (getgrent): Use "void" in prototype.
67026         * lib/mountlist.c: Mark unused parameters.
67027         (read_file_system_list): Declare a local with "const".
67028         * lib/nanosleep.c (getnow): Declare static.
67029         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
67031         dirfd: set errno upon failure
67032         * lib/dirfd.c: Include <errno.h>.
67033         Set errno to ENOTSUP when returning -1.
67034         * modules/dirfd (Depends-on): Add errno.
67035         Suggested by John Kodis <kodis@comcast.net>.
67037 2009-02-01  Bruno Haible  <bruno@clisp.org>
67039         Don't assume sizeof (long) >= sizeof (void *).
67040         * lib/memcmp.c: Include stdint.h.
67041         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
67042         srcp2 to 'const byte *'.
67043         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
67044         types to uintptr_t.
67045         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
67046         * modules/memcmp (Depends-on): Add stdint.
67047         Reported by Ozkan Sezer <sezeroz@gmail.com>.
67049 2009-01-30  Eric Blake  <ebb9@byu.net>
67051         fix more require-before-expand issues
67052         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
67053         expand, AC_PROG_AWK.
67054         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
67056 2009-01-28  Eric Blake  <ebb9@byu.net>
67058         version-etc: use consistent URL formatting
67059         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
67060         Improve formatting.  Use fputs for string without %.
67062 2009-01-28  Jim Meyering  <meyering@redhat.com>
67064         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
67065         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
67066         "underquoted definition of NAME" from autoconf-2.59.
67068 2009-01-28  Bruno Haible  <bruno@clisp.org>
67070         * doc/gnulib.texi: Add "Obsolete modules" to index.
67072 2009-01-28  Jim Meyering  <meyering@redhat.com>
67074         useless-if-before-free: recognize more variants
67075         * build-aux/useless-if-before-free: Also recognize e.g.,
67076         if (NULL != p) free (p);
67078 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
67080         test-getaddrinfo: skip (don't fail) this test when there's no network
67081         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
67082         on the presumption that it means you lack network access.
67084 2009-01-26  Jim Meyering  <meyering@redhat.com>
67086         fflush: avoid warnings on modern systems
67087         * lib/fflush.c (rpl_fflush): Move declarations of locals,
67088         pos and result, into scopes where they're used.
67090 2009-01-26  Eric Blake  <ebb9@byu.net>
67092         Silence warning reintroduced by recent extensions patch.
67093         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
67094         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
67095         autoconf.
67097         Backport improved autoconf semantics of AC_DEFUN_ONCE.
67098         * m4/00gnulib.m4: New file.
67099         * gnulib-tool (func_get_filelist): Always use it.
67100         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
67101         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
67103 2009-01-25  Bruno Haible  <bruno@clisp.org>
67105         Make test-quotearg work on MacOS X and AIX.
67106         * tests/test-quotearg.sh: New file.
67107         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
67108         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
67109         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
67110         include <libintl.h>.
67111         (fake_locale): Remove variable.
67112         (gettext, dgettext, dcgettext): Remove functions.
67113         (main): Instead of setting a fake locale, set a real locale. Call
67114         textdomain and bindtextdomain.
67115         * modules/quotearg-tests (Files): Add the new files.
67116         (Depends-on): Add gettext, setenv, unsetenv.
67117         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67118         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
67119         Augment TESTS_ENVIRONMENT.
67121 2009-01-25  Bruno Haible  <bruno@clisp.org>
67123         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
67124         fr_FR.ISO8859-1 locale on MacOS X.
67125         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
67126         ja_JP.eucJP locale on MacOS X.
67127         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
67128         zh_CN.GB18030 locale on MacOS X.
67130 2009-01-25  Bruno Haible  <bruno@clisp.org>
67132         Avoid link errors on MacOS X 10.3.
67133         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
67134         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67136 2009-01-25  Bruno Haible  <bruno@clisp.org>
67138         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67139         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
67140         * modules/pipe (Files): Remove m4/posix_spawn.m4.
67141         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67142         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
67143         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67144         posix_spawnattr_init, posix_spawnattr_setsigmask,
67145         posix_spawnattr_setflags, posix_spawnattr_destroy.
67147         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67148         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
67149         * modules/execute (Files): Remove m4/posix_spawn.m4.
67150         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67151         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67152         posix_spawnattr_init, posix_spawnattr_setsigmask,
67153         posix_spawnattr_setflags, posix_spawnattr_destroy.
67155 2009-01-25  Bruno Haible  <bruno@clisp.org>
67157         * lib/glthread/threadlib.c: Include <stdlib.h>.
67159 2009-01-25  Bruno Haible  <bruno@clisp.org>
67161         * lib/glthread/threadlib.c (dummy): New declaration.
67163 2009-01-25  Bruno Haible  <bruno@clisp.org>
67165         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
67166         multibyte characters also for the GB18030 encoding. Don't crash when
67167         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
67169 2009-01-25  Bruno Haible  <bruno@clisp.org>
67171         Avoid redefining 'struct random_data' on OSF/1 5.1.
67172         * lib/stdlib.in.h: Include <random.h> if it exists.
67173         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
67174         HAVE_RANDOM_H. Include <random.h> when testing whether
67175         'struct random_data' exists.
67176         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
67178 2009-01-25  Bruno Haible  <bruno@clisp.org>
67180         Don't install charset.alias on MacOS X >= 10.3.
67181         * lib/localcharset.c (DARWIN7): New macro.
67182         (get_charset_aliases): Hardcode the result for Darwin7.
67183         * modules/localcharset (install-exec-local): Don't install
67184         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
67186 2009-01-25  Bruno Haible  <bruno@clisp.org>
67188         Don't install charset.alias on mingw and Cygwin.
67189         * modules/localcharset (install-exec-local): Don't install
67190         charset.alias on mingw and Cygwin, if the file does not yet exist.
67191         The result for these platforms is hardcoded in localcharset.c.
67193 2009-01-25  Bruno Haible  <bruno@clisp.org>
67195         Make it possible again to use AC_GNU_SOURCE together with gnulib.
67196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
67197         before requiring AC_USE_SYSTEM_EXTENSIONS.
67199 2009-01-25  Jim Meyering  <meyering@redhat.com>
67201         c-strtod: avoid warnings
67202         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
67203         "assignment discards qualifiers from pointer target type" warnings.
67205 2009-01-24  Bruno Haible  <bruno@clisp.org>
67207         Add support for non-UTF-8 locales on MacOS X.
67208         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
67209         canonical encodings. For Darwin 7 and newer, don't map traditional
67210         encodings to UTF-8.
67211         Reported by Vincent Lefevre <vincent@vinc17.org>
67212         at <http://savannah.gnu.org/bugs/?25235>.
67214 2009-01-24  Bruno Haible  <bruno@clisp.org>
67216         * doc/gnulib.texi (Obsolete modules): New section.
67217         Reported by Mike Frysinger <vapier@gentoo.org>.
67219 2009-01-24  Bruno Haible  <bruno@clisp.org>
67221         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
67222         (%.dvi): New rule.
67224 2009-01-24  Bruno Haible  <bruno@clisp.org>
67226         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
67227         Reported by Eric Blake.
67229 2009-01-24  Bruno Haible  <bruno@clisp.org>
67231         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
67232         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
67233         Reported by Gary V. Vaughan <gary@gnu.org>.
67235 2009-01-24  Bruno Haible  <bruno@clisp.org>
67237         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
67239 2009-01-23  Bruno Haible  <bruno@clisp.org>
67241         Make c-strtod, c-strtold usable in libraries.
67242         * lib/c-strtod.c: Include string.h instead of xalloc.h.
67243         (C_STRTOD): Call strdup instead of xstrdup.
67244         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
67245         * modules/c-strtold (Depends-on): Likewise.
67246         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
67247         * NEWS: Mention the change.
67248         Reported by Michael Gold <mgold@ncf.ca>.
67250 2009-01-23  Jim Meyering  <meyering@redhat.com>
67252         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
67253         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
67254         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
67256 2009-01-23  Simon Josefsson  <simon@josefsson.org>
67258         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
67259         GNU CoreUtils.
67260         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
67261         * modules/version-etc (Description): Update.
67263 2009-01-22  Bruno Haible  <bruno@clisp.org>
67265         Cache the C locale object.
67266         * lib/c-strtod.c (c_locale_cache): New variable.
67267         (c_locale): New function.
67268         (C_STRTOD): Use it, and don't call freelocale.
67269         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
67270         Suggested by Paolo Bonzini.
67272 2009-01-21  Bruno Haible  <bruno@clisp.org>
67274         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
67275         conditions other than overflow.
67277 2009-01-21  Bruno Haible  <bruno@clisp.org>
67279         * lib/c-strtod.c: Include errno.h.
67280         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
67281         value from STRTOD_L and STRTOD.
67283 2009-01-21  Bruno Haible  <bruno@clisp.org>
67284         and Jim Meyering  <meyering@redhat.com>
67286         nanosleep: skip configure test (fail it) for apple universal builds
67287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
67288         universal builds, assume that nanosleep does not work.
67289         * modules/nanosleep (Depends-on): Add multiarch.
67291         mktime: skip configure test (fail it) for apple universal builds
67292         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
67293         universal builds, assume that mktime does not work.
67294         * modules/mktime (Depends-on): Add multiarch.
67296 2009-01-21  Eric Blake  <ebb9@byu.net>
67298         multiarch: avoid expand-before-require warning
67299         * modules/multiarch (configure.ac): Require, rather than expand,
67300         gl_MULTIARCH.
67301         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
67302         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
67303         enforce that all clients require it.  Partial reversion of
67304         2008-12-29 patch.
67306         error: avoid expand-before-require warning
67307         * modules/errno (configure.ac): Require, rather than expand,
67308         gl_HEADER_ERRNO_H.
67309         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
67310         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
67311         enforce that all clients require it.
67313         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
67314         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
67315         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
67316         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
67318 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
67320         Revert:
67321         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
67323         regex: do not depend on obsolete modules.
67324         * modules/regex: Remove memcmp and memmove.
67326 2009-01-20  Bruno Haible  <bruno@clisp.org>
67328         Make the 'link' module link on Windows NT 4.
67329         * lib/link.c (_WIN32_WINNT): Don't define.
67330         (CreateHardLinkFuncType): New type.
67331         (CreateHardLinkFunc, initialized): New variables.
67332         (initialize): New function.
67333         (link): Invoke CreateHardLink indirectly through the function pointer.
67335 2009-01-20  Bruno Haible  <bruno@clisp.org>
67337         Fix compilation failure on mingw.
67338         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
67340 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
67342         * doc/c-strtod.texi: Mention a couple of restrictions.
67344 2009-01-20  Jim Meyering  <meyering@redhat.com>
67346         gettimeofday: move more declarations out of functions
67347         * lib/gettimeofday.c: Move extern declarations of tzset and
67348         gmtime out of containing functions.  Prompted by Bruno Haible.
67350 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
67352         regex: do not depend on obsolete modules.
67353         * modules/regex: Remove memcmp and memmove.
67355 2009-01-19  Bruno Haible  <bruno@clisp.org>
67357         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
67358         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
67359         gl_BIGENDIAN, not AC_C_BIGENDIAN.
67360         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
67361         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
67363 2009-01-19  Bruno Haible  <bruno@clisp.org>
67365         * tests/test-link.c: Include <errno.h>.
67366         (main): Exit with code 77 when a hard link cannot be created due to
67367         the file system.
67368         * tests/test-link.sh: Skip test when a hard link cannot be created due
67369         to the file system.
67370         Suggested by Eric Blake.
67372 2009-01-19  Martin Lambers  <marlam@marlam.de>
67374         * modules/link-tests: New file.
67375         * tests/test-link.sh: New file.
67376         * tests/test-link.c: New file.
67378 2009-01-19  Eric Blake  <ebb9@byu.net>
67380         doc: mention another function added in cygwin 1.7.0
67381         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
67382         Another new function in cygwin 1.7.
67384 2009-01-19  Bruno Haible  <bruno@clisp.org>
67386         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
67387         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
67388         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
67389         gl_BIGENDIAN, not AC_C_BIGENDIAN.
67390         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
67391         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
67392         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
67393         * m4/md4.m4 (gl_MD4): Likewise.
67394         * m4/md5.m4 (gl_MD5): Likewise.
67395         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
67396         * m4/sha1.m4 (gl_SHA1): Likewise.
67397         * m4/sha256.m4 (gl_SHA256): Likewise.
67398         * m4/sha512.m4 (gl_SHA512): Likewise.
67400 2009-01-19  Bruno Haible  <bruno@clisp.org>
67402         * modules/uniname/uniname-tests (Depends-on): Add progname.
67403         * tests/uniname/test-uninames.c: Include progname.h.
67404         (main): Call set_program_name.
67406         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
67407         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
67408         (main): Call set_program_name.
67410         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
67411         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
67412         (main): Call set_program_name.
67414         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
67415         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
67416         (main): Call set_program_name.
67418         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
67419         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
67420         (main): Call set_program_name.
67422         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
67423         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
67424         (main): Call set_program_name.
67426         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
67427         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
67428         (main): Call set_program_name.
67430         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
67431         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
67432         (main): Call set_program_name.
67434         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
67435         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
67436         (main): Call set_program_name.
67438 2009-01-19  Eric Blake  <ebb9@byu.net>
67440         test-unistd: test previous patch
67441         * tests/test-unistd.c: Test *_FILENO macros.
67443         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
67444         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67445         Guarantee a definition.
67446         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
67447         * modules/unistd-safer (Depends-on): Add dependency on unistd.
67448         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
67449         * lib/dup-safer.c (STDERR_FILENO): Likewise.
67450         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67451         Likewise.
67452         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
67453         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
67454         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67455         Likewise.
67456         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
67457         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
67458         (STDERR_FILENO): Likewise.
67459         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
67460         (STDERR_FILENO): Likewise.
67461         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
67462         (STDERR_FILENO): Likewise.
67463         Reported by Elbert Pol.
67465 2009-01-19  Eric Blake  <ebb9@byu.net>
67467         doc: mention more functions added in cygwin 1.7.0
67468         * doc/posix-functions/abort.texi (abort): Update wording related
67469         to cygwin.
67470         * doc/posix-functions/daylight.texi (daylight): Likewise.
67471         * doc/posix-functions/optarg.texi (optarg): Likewise.
67472         * doc/posix-functions/optarg.texi (opterr): Likewise.
67473         * doc/posix-functions/optarg.texi (optind): Likewise.
67474         * doc/posix-functions/optarg.texi (optopt): Likewise.
67475         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
67476         worked in 1.5.x, and was withdrawn in 1.7.
67477         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
67478         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
67479         cygwin versions.
67480         * doc/posix-functions/perror.texi (perror): Likewise.
67481         * doc/posix-functions/printf.texi (printf): Likewise.
67482         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
67483         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
67484         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
67485         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
67486         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
67487         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
67488         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
67489         Likewise.
67490         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
67491         Likewise.
67492         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
67493         this function.
67494         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
67495         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
67496         Likewise.
67497         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
67498         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
67499         * doc/posix-functions/confstr.texi (confstr): Likewise.
67500         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
67501         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
67502         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
67503         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
67504         * doc/posix-functions/fputws.texi (fputws): Likewise.
67505         * doc/posix-functions/fwide.texi (fwide): Likewise.
67506         * doc/posix-functions/getwc.texi (getwc): Likewise.
67507         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
67508         * doc/posix-functions/putwc.texi (putwc): Likewise.
67509         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
67510         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
67511         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
67512         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
67513         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
67514         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
67515         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
67516         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
67517         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
67518         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
67519         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
67521 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
67523         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
67524         * lib/ioctl.c: Include <sys/ioctl.h>.
67526 2009-01-19  Simon Josefsson  <simon@josefsson.org>
67528         * modules/getdate-tests (Depends-on): Add progname.
67529         * tests/test-getdate.c: Use progname module, to avoid link errors
67530         on non-glibc systems.
67532 2009-01-18  Simon Josefsson  <simon@josefsson.org>
67534         * modules/filenamecat-tests (Depends-on): Add progname.
67535         * modules/fstrcmp-tests (Depends-on): Likewise.
67537         * tests/test-filenamecat.c: Use progname module, to avoid link
67538         errors on non-glibc systems.
67539         * tests/test-fstrcmp.c: Likewise.
67541 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
67543         gettimeofday: avoid warning: nested extern declaration of 'localtime'
67544         * lib/gettimeofday.c: Move extern declaration out of function.
67546 2009-01-18  Bruno Haible  <bruno@clisp.org>
67548         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
67549         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
67550         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
67552 2009-01-18  Bruno Haible  <bruno@clisp.org>
67554         * lib/strftime.c (MEMPCPY): Remove unused macro.
67555         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
67557 2009-01-18  Martin Lambers  <marlam@marlam.de>
67559         New module 'link'.
67560         * lib/unistd.in.h (link): New declaration.
67561         * lib/link.c: New file.
67562         * m4/link.m4: New file.
67563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
67564         HAVE_LINK.
67565         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
67566         * modules/link: New file.
67567         * doc/posix-functions/link.texi: Mention the new module.
67569 2009-01-18  Bruno Haible  <bruno@clisp.org>
67571         * tests/test-avltree_list.c (main): Call set_program_name.
67572         * tests/test-avltree_oset.c (main): Likewise.
67573         * tests/test-obstack-printf.c: Include progname.h.
67574         (main): Call set_program_name.
67575         * tests/test-quotearg.c: Include progname.h.
67576         (main): Call set_program_name.
67577         * tests/test-xmemdup0.c: Include progname.h.
67578         (main): Call set_program_name.
67580 2009-01-18  Bruno Haible  <bruno@clisp.org>
67582         New module 'alphasort'.
67583         * lib/dirent.in.h (alphasort): New declaration.
67584         * lib/alphasort.c: New file, from glibc with modifications.
67585         * m4/alphasort.m4: New file.
67586         * modules/alphasort: New file.
67587         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
67588         HAVE_ALPHASORT.
67589         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
67590         HAVE_ALPHASORT.
67591         * doc/posix-functions/alphasort.texi: Mention the new module and the
67592         portability problems.
67594 2009-01-18  Bruno Haible  <bruno@clisp.org>
67596         New module 'scandir'.
67597         * lib/dirent.in.h (scandir): New declaration.
67598         * lib/scandir.c: New file, from glibc with modifications.
67599         * m4/scandir.m4: New file.
67600         * modules/scandir: New file.
67601         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
67602         HAVE_SCANDIR.
67603         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
67604         HAVE_SCANDIR.
67605         * doc/posix-functions/scandir.texi: Mention the new module and the
67606         portability problems.
67608 2009-01-17  Bruno Haible  <bruno@clisp.org>
67610         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
67611         Update documentation.
67612         (func_remove_suffix): Escape all dots in the suffix. Update
67613         documentation.
67614         (func_filter_filelist): Update documentation.
67615         Reported by Ralf Wildenhues.
67617 2009-01-17  Bruno Haible  <bruno@clisp.org>
67619         * modules/dprintf-posix-tests: New file.
67620         * tests/test-dprintf-posix.sh: New file.
67621         * tests/test-dprintf-posix.c: New file.
67623         New modules 'dprintf', 'dprintf-posix'.
67624         * lib/stdio.in.h (dprintf): New declaration.
67625         * lib/dprintf.c: New file.
67626         * m4/dprintf.m4: New file.
67627         * m4/dprintf-posix.m4: New file.
67628         * modules/dprintf: New file.
67629         * modules/dprintf-posix: New file.
67630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
67631         HAVE_DPRINTF, REPLACE_DPRINTF.
67632         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
67633         HAVE_DPRINTF, REPLACE_DPRINTF.
67634         * doc/posix-functions/dprintf.texi: Mention the new modules.
67636 2009-01-17  Bruno Haible  <bruno@clisp.org>
67638         * modules/vdprintf-posix-tests: New file.
67639         * tests/test-vdprintf-posix.sh: New file.
67640         * tests/test-vdprintf-posix.c: New file.
67642         New modules 'vdprintf', 'vdprintf-posix'.
67643         * lib/stdio.in.h (vdprintf): New declaration.
67644         * lib/vdprintf.c: New file.
67645         * m4/vdprintf.m4: New file.
67646         * m4/vdprintf-posix.m4: New file.
67647         * modules/vdprintf: New file.
67648         * modules/vdprintf-posix: New file.
67649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
67650         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67651         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
67652         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67653         * doc/posix-functions/vdprintf.texi: Mention the new modules.
67655 2009-01-17  Bruno Haible  <bruno@clisp.org>
67657         Fix replacement of fopen on mingw.
67658         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
67659         mingw.
67661 2009-01-17  Bruno Haible  <bruno@clisp.org>
67663         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
67664         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
67666 2009-01-17  Bruno Haible  <bruno@clisp.org>
67668         Avoid test-fflush2.sh failure on mingw.
67669         * tests/test-fflush2.c: Include binary-io.h.
67670         (main): Put standard input into binary mode.
67671         * modules/fflush-tests (Depends-on): Add binary-io.
67673 2009-01-17  Bruno Haible  <bruno@clisp.org>
67675         * lib/wchar.in.h: In another particular situation, include only the
67676         system's <wchar.h> file.
67677         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
67678         Reported by Albert Chin-A-Young <china@thewrittenword.com>
67679         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
67681 2009-01-17  Bruno Haible  <bruno@clisp.org>
67683         Support for stripping executables in --enable-relocatable.
67684         * build-aux/install-reloc: Expect one more argument, or an environment
67685         variable RELOC_STRIP_PROG. If set, strip the destination program and
67686         its wrapper.
67687         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
67688         RELOC_STRIP_PROG.
67689         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
67690         to set RELOCATABLE_STRIP.
67691         * NEWS: Mention the new Makefile requirement.
67693 2009-01-17  Bruno Haible  <bruno@clisp.org>
67695         * build-aux/install-reloc: Remove debugging information left over by
67696         C compiler on MacOS X.
67698 2009-01-17  Bruno Haible  <bruno@clisp.org>
67700         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
67701         * lib/progreloc.c (find_executable): Fix type of pointer passed to
67702         _NSGetExecutablePath.
67704 2009-01-16  Jim Meyering  <meyering@redhat.com>
67706         strerror: avoid warnings about discarding "const"
67707         * lib/strerror.c (rpl_strerror): Instead of returning a const
67708         string from each and every "case", use a variable, and add a single
67709         cast after the switch.
67711 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
67713         * lib/arpa_inet.in.h: Add extern "C" block for C++.
67715 2009-01-16  Bruno Haible  <bruno@clisp.org>
67717         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
67718         array initializer syntax that also works in C++ mode.
67719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67721 2009-01-16  Jim Meyering  <meyering@redhat.com>
67723         poll: suppress a warning
67724         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
67725         to ignore "...unsigned expression < 0 is always false" warnings.
67727 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
67729         poll: remove declarations of unused variables
67730         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
67731         sockbuf and optlen.
67733 2009-01-15  Bruno Haible  <bruno@clisp.org>
67735         Make fflush-after-ungetc POSIX compliant on BSD systems.
67736         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
67737         (clear_ungetc_buffer): Implement also for other systems.
67738         (rpl_fflush): On glibc systems, invoke
67739         clear_ungetc_buffer_preserving_position. Otherwise, invoke
67740         clear_ungetc_buffer after fetching the stream's position, not before.
67742 2009-01-15  Bruno Haible  <bruno@clisp.org>
67744         Make fflush-after-ungetc POSIX compliant on glibc systems.
67745         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
67746         after ungetc.
67747         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
67748         (rpl_fflush): On glibc systems, simply call the system's fflush
67749         function after clearing the ungetc buffer.
67750         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
67751         Instead, lseek only to the end of file, then use the system's fseeko
67752         for the rest. On glibc systems, reset the EOF indicator bit.
67754 2009-01-15  Jim Meyering  <meyering@redhat.com>
67756         openmp.m4: revert quote-adding change, for portability to older autoconf
67757         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
67758         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
67759         Simon Josefsson noticed the problem when using autoconf-2.61.
67761 2009-01-15  Bruno Haible  <bruno@clisp.org>
67763         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
67764         * tests/test-fflush2.c (ASSERT): Always fail.
67765         (main): Add two tests for fflush() after ungetc(), taking into account
67766         the Austin Group's clarification.
67767         Suggested by Eric Blake.
67769 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
67771         mktime.m4: remove K&R-style function prototypes
67772         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
67773         for the Sun C++ compiler.
67775 2009-01-14  Bruno Haible  <bruno@clisp.org>
67777         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
67778         while including <wchar.h>.
67779         * lib/wchar.in.h: In two particular situations on HP-UX, include only
67780         the system's <wchar.h> file.
67781         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67783 2009-01-14  Bruno Haible  <bruno@clisp.org>
67785         * m4/csharp.m4: Don't mention gettext on the serial number line.
67786         * m4/csharpexec.m4: Likewise.
67787         * m4/eaccess.m4: Likewise.
67788         * m4/javaexec.m4: Likewise.
67789         * m4/sig_atomic_t.m4: Likewise.
67790         * m4/tmpdir.m4: Likewise.
67791         * m4/intldir.m4: Bump gettext version.
67792         * m4/lib-ld.m4: Likewise.
67794 2009-01-14  Bruno Haible  <bruno@clisp.org>
67796         * lib/progname.c (set_program_name): Add more comments.
67797         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
67799 2009-01-14  Simon Josefsson  <simon@josefsson.org>
67801         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
67802         were sys/stat.h does not define it.
67804 2009-01-14  Jim Meyering  <meyering@redhat.com>
67806         many *.m4 files: improve m4 quoting
67807         99% of this change was performed by running the following commands:
67808         git ls-files | grep '\.m4$' | xargs perl -pi \
67809           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
67810           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67811           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67812           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
67813         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
67814         The remainder were to add Copyright dates, increment serial numbers,
67815         undo some changes in comments, exclude m4/intl.m4, and add quotes
67816         around the "1" in ",1" where the unusual spacing prohibited the
67817         above regexps from doing the job.  For more details, see
67818         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
67819         * m4/acl.m4: Modified.
67820         * m4/afs.m4: Likewise.
67821         * m4/alloca.m4: Likewise.
67822         * m4/argp.m4: Likewise.
67823         * m4/argz.m4: Likewise.
67824         * m4/atexit.m4: Likewise.
67825         * m4/bison-i18n.m4: Likewise.
67826         * m4/bison.m4: Likewise.
67827         * m4/byteswap.m4: Likewise.
67828         * m4/c-stack.m4: Likewise.
67829         * m4/c-strtod.m4: Likewise.
67830         * m4/calloc.m4: Likewise.
67831         * m4/canonicalize-lgpl.m4: Likewise.
67832         * m4/chown.m4: Likewise.
67833         * m4/clock_time.m4: Likewise.
67834         * m4/codeset.m4: Likewise.
67835         * m4/copy-file.m4: Likewise.
67836         * m4/csharp.m4: Likewise.
67837         * m4/csharpcomp.m4: Likewise.
67838         * m4/csharpexec.m4: Likewise.
67839         * m4/d-ino.m4: Likewise.
67840         * m4/d-type.m4: Likewise.
67841         * m4/dirfd.m4: Likewise.
67842         * m4/double-slash-root.m4: Likewise.
67843         * m4/eaccess.m4: Likewise.
67844         * m4/eealloc.m4: Likewise.
67845         * m4/environ.m4: Likewise.
67846         * m4/errno_h.m4: Likewise.
67847         * m4/euidaccess.m4: Likewise.
67848         * m4/execute.m4: Likewise.
67849         * m4/fatal-signal.m4: Likewise.
67850         * m4/fchdir.m4: Likewise.
67851         * m4/fcntl_h.m4: Likewise.
67852         * m4/fileblocks.m4: Likewise.
67853         * m4/filenamecat.m4: Likewise.
67854         * m4/findprog.m4: Likewise.
67855         * m4/flexmember.m4: Likewise.
67856         * m4/fnmatch.m4: Likewise.
67857         * m4/fopen.m4: Likewise.
67858         * m4/fpending.m4: Likewise.
67859         * m4/fprintf-posix.m4: Likewise.
67860         * m4/free.m4: Likewise.
67861         * m4/frexp.m4: Likewise.
67862         * m4/frexpl.m4: Likewise.
67863         * m4/fsusage.m4: Likewise.
67864         * m4/ftruncate.m4: Likewise.
67865         * m4/gc-camellia.m4: Likewise.
67866         * m4/gc-random.m4: Likewise.
67867         * m4/gc.m4: Likewise.
67868         * m4/getaddrinfo.m4: Likewise.
67869         * m4/getcwd-abort-bug.m4: Likewise.
67870         * m4/getcwd-path-max.m4: Likewise.
67871         * m4/getdate.m4: Likewise.
67872         * m4/getdomainname.m4: Likewise.
67873         * m4/getgroups.m4: Likewise.
67874         * m4/gethostname.m4: Likewise.
67875         * m4/gethrxtime.m4: Likewise.
67876         * m4/getline.m4: Likewise.
67877         * m4/getloadavg.m4: Likewise.
67878         * m4/getndelim2.m4: Likewise.
67879         * m4/getpass.m4: Likewise.
67880         * m4/gettext.m4: Likewise.
67881         * m4/gettime.m4: Likewise.
67882         * m4/gettimeofday.m4: Likewise.
67883         * m4/gnulib-common.m4: Likewise.
67884         * m4/group-member.m4: Likewise.
67885         * m4/host-os.m4: Likewise.
67886         * m4/iconv.m4: Likewise.
67887         * m4/iconv_open.m4: Likewise.
67888         * m4/inet_ntop.m4: Likewise.
67889         * m4/inet_pton.m4: Likewise.
67890         * m4/inline.m4: Likewise.
67891         * m4/intldir.m4: Likewise.
67892         * m4/intlmacosx.m4: Likewise.
67893         * m4/intmax.m4: Likewise.
67894         * m4/intmax_t.m4: Likewise.
67895         * m4/inttypes.m4: Likewise.
67896         * m4/inttypes_h.m4: Likewise.
67897         * m4/inttypes-pri.m4: Likewise.
67898         * m4/isapipe.m4: Likewise.
67899         * m4/isnand.m4: Likewise.
67900         * m4/isnanf.m4: Likewise.
67901         * m4/isnanl.m4: Likewise.
67902         * m4/javacomp.m4: Likewise.
67903         * m4/javaexec.m4: Likewise.
67904         * m4/jm-winsz1.m4: Likewise.
67905         * m4/jm-winsz2.m4: Likewise.
67906         * m4/lchown.m4: Likewise.
67907         * m4/lcmessage.m4: Likewise.
67908         * m4/ldexpl.m4: Likewise.
67909         * m4/lib-ld.m4: Likewise.
67910         * m4/lib-link.m4: Likewise.
67911         * m4/libsigsegv.m4: Likewise.
67912         * m4/link-follow.m4: Likewise.
67913         * m4/localcharset.m4: Likewise.
67914         * m4/locale-fr.m4: Likewise.
67915         * m4/locale-ja.m4: Likewise.
67916         * m4/locale-tr.m4: Likewise.
67917         * m4/locale-zh.m4: Likewise.
67918         * m4/lock.m4: Likewise.
67919         * m4/longlong.m4: Likewise.
67920         * m4/ls-mntd-fs.m4: Likewise.
67921         * m4/lstat.m4: Likewise.
67922         * m4/malloc.m4: Likewise.
67923         * m4/mathl.m4: Likewise.
67924         * m4/mbrtowc.m4: Likewise.
67925         * m4/mbstate_t.m4: Likewise.
67926         * m4/mbswidth.m4: Likewise.
67927         * m4/memchr.m4: Likewise.
67928         * m4/memcmp.m4: Likewise.
67929         * m4/memcpy.m4: Likewise.
67930         * m4/memmem.m4: Likewise.
67931         * m4/memmove.m4: Likewise.
67932         * m4/mempcpy.m4: Likewise.
67933         * m4/memrchr.m4: Likewise.
67934         * m4/memset.m4: Likewise.
67935         * m4/minmax.m4: Likewise.
67936         * m4/mkdir-slash.m4: Likewise.
67937         * m4/mkdtemp.m4: Likewise.
67938         * m4/mktime.m4: Likewise.
67939         * m4/mmap-anon.m4: Likewise.
67940         * m4/mountlist.m4: Likewise.
67941         * m4/nanosleep.m4: Likewise.
67942         * m4/nls.m4: Likewise.
67943         * m4/nocrash.m4: Likewise.
67944         * m4/open.m4: Likewise.
67945         * m4/openat.m4: Likewise.
67946         * m4/openmp.m4: Likewise.
67947         * m4/pathmax.m4: Likewise.
67948         * m4/perl.m4: Likewise.
67949         * m4/physmem.m4: Likewise.
67950         * m4/pipe.m4: Likewise.
67951         * m4/po.m4: Likewise.
67952         * m4/poll.m4: Likewise.
67953         * m4/posixtm.m4: Likewise.
67954         * m4/posixver.m4: Likewise.
67955         * m4/printf-frexp.m4: Likewise.
67956         * m4/printf-frexpl.m4: Likewise.
67957         * m4/printf-posix.m4: Likewise.
67958         * m4/printf-posix-rpl.m4: Likewise.
67959         * m4/printf.m4: Likewise.
67960         * m4/progtest.m4: Likewise.
67961         * m4/putenv.m4: Likewise.
67962         * m4/readline.m4: Likewise.
67963         * m4/readlink.m4: Likewise.
67964         * m4/readutmp.m4: Likewise.
67965         * m4/realloc.m4: Likewise.
67966         * m4/regex.m4: Likewise.
67967         * m4/relocatable.m4: Likewise.
67968         * m4/relocatable-lib.m4: Likewise.
67969         * m4/rename-dest-slash.m4: Likewise.
67970         * m4/rename.m4: Likewise.
67971         * m4/rmdir-errno.m4: Likewise.
67972         * m4/rmdir.m4: Likewise.
67973         * m4/roundf.m4: Likewise.
67974         * m4/roundl.m4: Likewise.
67975         * m4/rpmatch.m4: Likewise.
67976         * m4/save-cwd.m4: Likewise.
67977         * m4/selinux-selinux-h.m4: Likewise.
67978         * m4/setenv.m4: Likewise.
67979         * m4/settime.m4: Likewise.
67980         * m4/sig2str.m4: Likewise.
67981         * m4/sig_atomic_t.m4: Likewise.
67982         * m4/signalblocking.m4: Likewise.
67983         * m4/signbit.m4: Likewise.
67984         * m4/sigpipe.m4: Likewise.
67985         * m4/sockets.m4: Likewise.
67986         * m4/sockpfaf.m4: Likewise.
67987         * m4/st_dm_mode.m4: Likewise.
67988         * m4/stat-time.m4: Likewise.
67989         * m4/stdbool.m4: Likewise.
67990         * m4/stdint.m4: Likewise.
67991         * m4/stdint_h.m4: Likewise.
67992         * m4/stpcpy.m4: Likewise.
67993         * m4/stpncpy.m4: Likewise.
67994         * m4/strcase.m4: Likewise.
67995         * m4/strchrnul.m4: Likewise.
67996         * m4/strcspn.m4: Likewise.
67997         * m4/strdup.m4: Likewise.
67998         * m4/strftime.m4: Likewise.
67999         * m4/strndup.m4: Likewise.
68000         * m4/strnlen.m4: Likewise.
68001         * m4/strpbrk.m4: Likewise.
68002         * m4/strptime.m4: Likewise.
68003         * m4/strsep.m4: Likewise.
68004         * m4/strtod.m4: Likewise.
68005         * m4/strtoimax.m4: Likewise.
68006         * m4/strtok_r.m4: Likewise.
68007         * m4/strtol.m4: Likewise.
68008         * m4/strtoll.m4: Likewise.
68009         * m4/strtoul.m4: Likewise.
68010         * m4/strtoull.m4: Likewise.
68011         * m4/strtoumax.m4: Likewise.
68012         * m4/strverscmp.m4: Likewise.
68013         * m4/threadlib.m4: Likewise.
68014         * m4/timegm.m4: Likewise.
68015         * m4/tm_gmtoff.m4: Likewise.
68016         * m4/tmpdir.m4: Likewise.
68017         * m4/tmpfile.m4: Likewise.
68018         * m4/tzset.m4: Likewise.
68019         * m4/uintmax_t.m4: Likewise.
68020         * m4/unlinkdir.m4: Likewise.
68021         * m4/unlocked-io.m4: Likewise.
68022         * m4/uptime.m4: Likewise.
68023         * m4/userspec.m4: Likewise.
68024         * m4/utimbuf.m4: Likewise.
68025         * m4/utime.m4: Likewise.
68026         * m4/utimes-null.m4: Likewise.
68027         * m4/utimes.m4: Likewise.
68028         * m4/vararrays.m4: Likewise.
68029         * m4/vasnprintf.m4: Likewise.
68030         * m4/vfprintf-posix.m4: Likewise.
68031         * m4/vprintf-posix.m4: Likewise.
68032         * m4/wait-process.m4: Likewise.
68033         * m4/wchar_t.m4: Likewise.
68034         * m4/wint_t.m4: Likewise.
68035         * m4/write-any-file.m4: Likewise.
68036         * m4/yield.m4: Likewise.
68038 2009-01-13  Bruno Haible  <bruno@clisp.org>
68040         Avoid test-copy-file.sh failures when ACL support insufficient.
68041         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
68042         TESTS_ENVIRONMENT.
68043         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
68044         Reported by Jim Meyering.
68046 2009-01-13  Bruno Haible  <bruno@clisp.org>
68048         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
68049         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
68050         * modules/unistdio/u8-printf-parse (Files): Likewise.
68051         * modules/unistdio/u32-printf-parse (Files): Likewise.
68052         * modules/unistdio/ulc-printf-parse (Files): Likewise.
68054 2009-01-13  Simon Josefsson  <simon@josefsson.org>
68056         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
68057         and m4/inttypes_h.m4 too.
68059 2009-01-12  Eric Blake  <ebb9@byu.net>
68061         tests: IRIX 6.2 cc can't compile -0.0 into .data
68062         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
68063         rather than at compile-time.
68064         * tests/test-floorl.c (minus_zero): Likewise.
68065         * tests/test-frexpl.c (minus_zero): Likewise.
68066         * tests/test-isnan.c (minus_zerol): Likewise.
68067         * tests/test-isnanl.h (minus_zero): Likewise.
68068         * tests/test-ldexpl.c (minus_zero): Likewise.
68069         * tests/test-roundl.c (minus_zero): Likewise.
68070         * tests/test-signbit.c (minus_zerol): Likewise.
68071         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68072         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68073         * tests/test-truncl.c (minus_zero): Likewise.
68074         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68075         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68076         Reported by Tom G. Christensen and Nelson H. F. Beebe.
68078 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68080         regex: fix glibc bug 9697
68081         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
68082         handling.
68084 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68086         regex: fix glibc bug 697
68087         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
68088         being NULL also if there are no backreferences.
68090 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68092         regex: merge glibc changes
68093         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
68094         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
68095         re_string_skip_chars, re_string_reconstruct): Likewise.
68096         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
68098 2009-01-07  Jim Meyering  <meyering@redhat.com>
68100         poll: filter through cppi
68101         * lib/poll.c: Indent cpp directives to reflect nesting.
68103 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
68105         poll: don't return uninitialized
68106         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
68108 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
68110         avoid compile failure on AIX 6.1
68111         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
68112         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
68114 2009-01-04  Jim Meyering  <meyering@redhat.com>
68116         remove duplicate inclusion of <stdio.h>
68117         * tests/test-fprintf-posix.c: Likewise.
68118         * tests/test-printf-posix.c: Likewise.
68119         * tests/test-snprintf-posix.c: Likewise.
68120         * tests/test-sprintf-posix.c: Likewise.
68121         * tests/test-vasprintf-posix.c: Likewise.
68122         * tests/test-vfprintf-posix.c: Likewise.
68123         * tests/test-vprintf-posix.c: Likewise.
68124         * tests/test-vsnprintf-posix.c: Likewise.
68125         * tests/test-vsprintf-posix.c: Likewise.
68127 2009-01-03  Jim Meyering  <meyering@redhat.com>
68129         gnulib-tool: fix sed-based filtering
68130         * gnulib-tool (func_filter_filelist): Remove extra backslash
68131         in sed_fff_filter definition.
68133 2009-01-02  Jim Meyering  <meyering@redhat.com>
68135         strftime: avoid compilation failure on Solaris 2.6
68136         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
68137         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
68138         Don't #define mbrlen or mbsinit, since now they're guaranteed to
68139         be available.  Reported by Tom G. Christensen.  Details in
68140         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
68142 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68143             Bruno Haible  <bruno@clisp.org>
68145         Speed up gnulib-tool by doing more string processing through shell
68146         built-ins.
68147         * gnulib-tool (fast_func_append): New variable.
68148         (func_remove_prefix, func_remove_suffix): New functions.
68149         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
68150         (func_filter_filelist): New function.
68151         (func_get_dependencies): Use func_remove_suffix instead of sed.
68152         (func_get_automake_snippet): Use func_filter_filelist instead of a
68153         subshell and sed invocation.
68155 2009-01-01  Bruno Haible  <bruno@clisp.org>
68157         Fix a security bug.
68158         * gnulib-tool (func_import, import, update): Don't allow the characters
68159         '"', '$', '`', '\' in macro arguments that become part of commands that
68160         are evaluated.
68162 2009-01-01  Bruno Haible  <bruno@clisp.org>
68164         * gnulib-tool (func_reset_sigpipe): Add more comments.
68166 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68168         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
68169         func_emit_tests_Makefile_am, func_import): Abort loops early if we
68170         already know the answer.
68172 2009-01-01  Jim Meyering  <meyering@redhat.com>
68174         * lib/version-etc.c (version_etc_va): Update copyright year.
68176 2008-12-30  Bruno Haible  <bruno@clisp.org>
68178         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
68179         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
68180         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
68182 2008-12-29  Eric Blake  <ebb9@byu.net>
68184         multiarch: avoid autoconf AC_REQUIRE bug
68185         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
68186         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
68187         2.63 and older.
68188         Reported by Bruno Haible, and analyzed in
68189         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
68191 2008-12-29  Bruno Haible  <bruno@clisp.org>
68193         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
68194         files in subdirectories correctly.
68195         Reported by Ralf Wildenhues.
68197 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68199         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
68200         rather than 'join FILE -', for Solaris join.
68202 2008-12-29  Bruno Haible  <bruno@clisp.org>
68204         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
68205         quoting.
68206         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68207         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
68208         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
68209         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
68210         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
68211         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
68212         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
68213         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
68214         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68215         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
68216         * m4/nls.m4 (AM_NLS): Likewise.
68217         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
68218         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
68219         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68220         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
68221         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
68222         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
68223         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
68224         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
68225         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
68226         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68227         * m4/xsize.m4 (gl_XSIZE): Likewise.
68228         Suggested by Jim Meyering.
68230 2008-11-17  Bruce Korb  <bkorb@gnu.org>
68232         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
68233         * lib/parse-duration.c: use a switch instead of cascading if's.
68235 2008-12-29  Eric Blake  <ebb9@byu.net>
68237         wchar.h: supply WEOF on Irix 5.3
68238         * lib/wchar.in.h (wint_t): Also supply WEOF.
68239         * lib/wctype.in.h (wint_t): Likewise.
68240         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
68241         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
68242         Reported by Tom G. Christensen.
68244 2008-12-26  Bruno Haible  <bruno@clisp.org>
68246         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
68247         i486, i586, i686.
68249 2008-12-26  Bruno Haible  <bruno@clisp.org>
68251         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
68253 2008-12-26  Bruno Haible  <bruno@clisp.org>
68255         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
68256         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
68257         not __STDC_CONSTANT_MACROS.
68258         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
68260 2008-12-25  Bruno Haible  <bruno@clisp.org>
68262         Add support for universal builds to vasnprintf.
68263         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
68264         universal builds, guess no.
68265         * modules/vasnprintf-posix (Depends-on): Add multiarch.
68266         * modules/vasprintf-posix (Depends-on): Likewise.
68267         * modules/fprintf-posix (Depends-on): Likewise.
68268         * modules/vfprintf-posix (Depends-on): Likewise.
68269         * modules/snprintf-posix (Depends-on): Likewise.
68270         * modules/vsnprintf-posix (Depends-on): Likewise.
68271         * modules/sprintf-posix (Depends-on): Likewise.
68272         * modules/vsprintf-posix (Depends-on): Likewise.
68273         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
68274         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
68275         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
68276         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
68277         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
68278         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
68279         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
68281         Add support for universal builds to <inttypes.h>.
68282         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
68283         _SCNu64_PREFIX): In Apple
68284         universal builds, define directly, using _LP64.
68285         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
68286         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
68287         * modules/inttypes (Depends-on): Add multiarch.
68288         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
68290         Add support for universal builds to <stdint.h>.
68291         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
68292         universal builds, define directly, using _LP64.
68293         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
68294         Apple universal builds, don't test for the size and suffix of ptrdiff_t
68295         and size_t.
68296         * modules/stdint (Depends-on): Add multiarch.
68297         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
68299         New module 'multiarch'.
68300         * modules/multiarch: New file.
68301         * m4/multiarch.m4: New file.
68303 2008-12-25  Bruno Haible  <bruno@clisp.org>
68305         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
68307 2008-12-25  Bruno Haible  <bruno@clisp.org>
68309         * modules/btowc (License): Relicense under LGPLv2+.
68310         * modules/mbsinit (License): Likewise.
68311         * modules/mbrtowc (License): Likewise.
68312         * modules/wcrtomb (License): Likewise.
68313         * modules/streq (License): Likewise.
68314         Reported by David Lutterkort <lutter@redhat.com>.
68316 2008-12-23  Bruno Haible  <bruno@clisp.org>
68318         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
68320 2008-12-23  Bruno Haible  <bruno@clisp.org>
68322         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
68323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
68324         GETADDRINFO_LIB, not in LIBS.
68325         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
68326         * modules/canon-host (Link): Likewise.
68327         * NEWS: Mention the change.
68328         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
68329         GETADDRINFO_LIB.
68331 2008-12-22  Bruno Haible  <bruno@clisp.org>
68333         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
68334         * doc/posix-functions/iswalpha_l.texi: Likewise.
68335         * doc/posix-functions/iswblank_l.texi: Likewise.
68336         * doc/posix-functions/iswcntrl_l.texi: Likewise.
68337         * doc/posix-functions/iswctype_l.texi: Likewise.
68338         * doc/posix-functions/iswdigit_l.texi: Likewise.
68339         * doc/posix-functions/iswgraph_l.texi: Likewise.
68340         * doc/posix-functions/iswlower_l.texi: Likewise.
68341         * doc/posix-functions/iswprint_l.texi: Likewise.
68342         * doc/posix-functions/iswpunct_l.texi: Likewise.
68343         * doc/posix-functions/iswspace_l.texi: Likewise.
68344         * doc/posix-functions/iswupper_l.texi: Likewise.
68345         * doc/posix-functions/iswxdigit_l.texi: Likewise.
68346         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
68347         * doc/posix-functions/open_wmemstream.texi: Likewise.
68348         * doc/posix-functions/swscanf.texi: Likewise.
68349         * doc/posix-functions/towctrans_l.texi: Likewise.
68350         * doc/posix-functions/towlower.texi: Likewise.
68351         * doc/posix-functions/towlower_l.texi: Likewise.
68352         * doc/posix-functions/towupper.texi: Likewise.
68353         * doc/posix-functions/towupper_l.texi: Likewise.
68354         * doc/posix-functions/vfwprintf.texi: Likewise.
68355         * doc/posix-functions/vfwscanf.texi: Likewise.
68356         * doc/posix-functions/vswscanf.texi: Likewise.
68357         * doc/posix-functions/vwprintf.texi: Likewise.
68358         * doc/posix-functions/vwscanf.texi: Likewise.
68359         * doc/posix-functions/wcpcpy.texi: Likewise.
68360         * doc/posix-functions/wcpncpy.texi: Likewise.
68361         * doc/posix-functions/wcscasecmp.texi: Likewise.
68362         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
68363         * doc/posix-functions/wcscoll_l.texi: Likewise.
68364         * doc/posix-functions/wcsdup.texi: Likewise.
68365         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68366         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
68367         * doc/posix-functions/wcsnlen.texi: Likewise.
68368         * doc/posix-functions/wcsnrtombs.texi: Likewise.
68369         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
68370         * doc/posix-functions/wctrans_l.texi: Likewise.
68371         * doc/posix-functions/wctype_l.texi: Likewise.
68372         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
68373         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
68374         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
68375         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
68376         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
68377         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
68378         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
68379         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
68380         * doc/glibc-functions/wcschrnul.texi: Likewise.
68381         * doc/glibc-functions/wcsftime_l.texi: Likewise.
68382         * doc/glibc-functions/wcstod_l.texi: Likewise.
68383         * doc/glibc-functions/wcstof_l.texi: Likewise.
68384         * doc/glibc-functions/wcstol_l.texi: Likewise.
68385         * doc/glibc-functions/wcstold_l.texi: Likewise.
68386         * doc/glibc-functions/wcstoll_l.texi: Likewise.
68387         * doc/glibc-functions/wcstoq.texi: Likewise.
68388         * doc/glibc-functions/wcstoul_l.texi: Likewise.
68389         * doc/glibc-functions/wcstoull_l.texi: Likewise.
68390         * doc/glibc-functions/wcstouq.texi: Likewise.
68391         * doc/glibc-functions/wmempcpy.texi: Likewise.
68393 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
68394             Eric Blake  <ebb9@byu.net>
68395             Paolo Bonzini  <bonzini@gnu.org>
68396             Bruno Haible  <bruno@clisp.org>
68398         Make c-stack work on Haiku.
68399         * lib/c-stack.c (SA_ONSTACK): Define fallback.
68400         (c_stack_action): Use SA_ONSTACK flag.
68402 2008-12-22  Bruno Haible  <bruno@clisp.org>
68404         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
68406 2008-12-22  Bruno Haible  <bruno@clisp.org>
68408         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
68409         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
68410         being overridden.
68411         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
68412         New macros.
68413         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
68414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
68415         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
68416         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
68418 2008-12-22  Bruno Haible  <bruno@clisp.org>
68420         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
68421         from test code.
68423 2008-12-22  Eric Blake  <ebb9@byu.net>
68425         Avoid gcc warnings on cygwin.
68426         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
68427         Avoid unused variable.
68428         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
68429         Likewise.
68431 2008-12-22  Bruno Haible  <bruno@clisp.org>
68433         Remove HAVE_MBRTOWC conditionals.
68434         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
68435         (mbscasecmp): Assume mbrtowc function.
68436         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
68437         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
68438         * lib/mbschr.c: Include mbuiter.h unconditionally.
68439         (mbschr): Assume mbrtowc function.
68440         * lib/mbscspn.c: Include mbuiter.h unconditionally.
68441         (mbscspn): Assume mbrtowc function.
68442         * lib/mbslen.c: Include mbuiter.h unconditionally.
68443         (mbslen): Assume mbrtowc function.
68444         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
68445         (mbsncasecmp): Assume mbrtowc function.
68446         * lib/mbsnlen.c: Include mbiter.h unconditionally.
68447         (mbsnlen): Assume mbrtowc function.
68448         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
68449         (mbspbrk): Assume mbrtowc function.
68450         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
68451         (mbspcasecmp): Assume mbrtowc function.
68452         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
68453         (mbsrchr): Assume mbrtowc function.
68454         * lib/mbssep.c: Include mbuiter.h unconditionally.
68455         (mbssep): Assume mbrtowc function.
68456         * lib/mbsspn.c: Include mbuiter.h unconditionally.
68457         (mbsspn): Assume mbrtowc function.
68458         * lib/mbsstr.c: Include mbuiter.h unconditionally.
68459         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
68460         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
68461         (mbstok_r): Assume mbrtowc function.
68462         * lib/propername.c: Include mbuiter.h unconditionally.
68463         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
68464         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
68465         (trim2): Assume mbrtowc function.
68466         * lib/mbswidth.c (mbsinit): Remove fallback definition.
68467         (mbsnwidth): Assume mbrtowc function.
68468         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
68469         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
68470         fallback definitions.
68471         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
68473 2008-12-22  Bruno Haible  <bruno@clisp.org>
68475         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
68477 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
68479         * modules/regex: Request emulations for the mb*/wc* functions we need.
68480         * m4/regex.m4: Don't look for those functions here.
68481         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
68483 2008-12-22  Bruno Haible  <bruno@clisp.org>
68485         * modules/fnmatch (Depends-on): Remove duplicated dependency.
68487 2008-12-21  Bruno Haible  <bruno@clisp.org>
68489         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
68490         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
68491         (Include): Remove conditionalization.
68492         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
68493         (Include): Remove conditionalization.
68494         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
68495         (Include): Remove conditionalization.
68496         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
68497         * m4/mbfile.m4 (gl_MBFILE): Likewise.
68498         * NEWS: Mention the change.
68499         Reported by Alan Hourihane <alanh@fairlite.co.uk>
68500         via Sergey Poznyakoff <gray@gnu.org.ua>.
68502 2008-12-21  Bruno Haible  <bruno@clisp.org>
68504         * MODULES.html.sh (Extended multibyte and wide character utilities
68505         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
68506         wcrtomb, wcsrtombs.
68507         (Support for systems lacking POSIX:2008): Add accept, bind, close,
68508         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
68509         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
68510         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
68512 2008-12-21  Bruno Haible  <bruno@clisp.org>
68514         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
68516 2008-12-21  Bruno Haible  <bruno@clisp.org>
68518         * modules/wcsnrtombs-tests: New file.
68519         * tests/test-wcsnrtombs1.sh: New file.
68520         * tests/test-wcsnrtombs2.sh: New file.
68521         * tests/test-wcsnrtombs3.sh: New file.
68522         * tests/test-wcsnrtombs4.sh: New file.
68523         * tests/test-wcsnrtombs.c: New file.
68525         New module 'wcsnrtombs'.
68526         * lib/wchar.in.h (wcsnrtombs): New declaration.
68527         * lib/wcsnrtombs.c: New file.
68528         * lib/wcsrtombs-state.c: New file.
68529         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
68530         (internal_state): Remove variable.
68531         * m4/wcsnrtombs.m4: New file.
68532         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
68533         compilation units.
68534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
68535         HAVE_WCSNRTOMBS.
68536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
68537         HAVE_WCSNRTOMBS.
68538         * modules/wcsnrtombs: New file.
68539         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
68540         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
68542 2008-12-21  Bruno Haible  <bruno@clisp.org>
68544         * modules/wcsrtombs-tests: New file.
68545         * tests/test-wcsrtombs1.sh: New file.
68546         * tests/test-wcsrtombs2.sh: New file.
68547         * tests/test-wcsrtombs3.sh: New file.
68548         * tests/test-wcsrtombs4.sh: New file.
68549         * tests/test-wcsrtombs.c: New file.
68551         New module 'wcsrtombs'.
68552         * lib/wchar.in.h (wcsrtombs): New declaration.
68553         * lib/wcsrtombs.c: New file.
68554         * m4/wcsrtombs.m4: New file.
68555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
68556         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
68557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
68558         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
68559         * modules/wcsrtombs: New file.
68560         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
68561         bugs.
68563 2008-12-21  Bruno Haible  <bruno@clisp.org>
68565         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
68566         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
68567         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
68568         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
68569         if not correct.
68570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
68571         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
68572         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68573         m4/locale-zh.m4, m4/codeset.m4.
68574         * doc/posix-functions/wcrtomb.texi: Document the bug.
68576 2008-12-21  Bruno Haible  <bruno@clisp.org>
68578         Work around a btowc() bug on IRIX 6.5.
68579         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
68580         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
68581         REPLACE_WTOBC if not.
68582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
68583         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
68584         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
68586 2008-12-21  Bruno Haible  <bruno@clisp.org>
68588         * modules/wcrtomb-tests: New file.
68589         * tests/test-wcrtomb.sh: New file.
68590         * tests/test-wcrtomb.c: New file.
68592         New module 'wcrtomb'.
68593         * lib/wchar.in.h (wcrtomb): New declaration.
68594         * lib/wcrtomb.c: New file.
68595         * m4/wcrtomb.m4: New file.
68596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
68597         HAVE_WCRTOMB.
68598         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
68599         HAVE_WCRTOMB.
68600         * modules/wcrtomb: New file.
68601         * doc/posix-functions/wcrtomb.texi: Mention the new module.
68603 2008-12-21  Bruno Haible  <bruno@clisp.org>
68605         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
68606         * modules/mbsrtowcs (Files): Likewise.
68607         * modules/wctob (Files): Likewise.
68608         * modules/c-strcase-tests (Files): Likewise.
68609         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
68610         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
68611         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
68612         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
68613         * modules/vasnprintf-posix-tests (Files): Likewise.
68615 2008-12-21  William Pursell  <bill.pursell@gmail.com>
68617         gitlog-to-changelog: pass all command-line arguments to git-log
68618         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
68619         it is sometimes convenient to filter the commits in various ways.
68620         gitlog-to-changelog only allows --since to specify a start date,
68621         but git-log itself supports many other filtering mechanisms.
68622         At the moment, I want to filter by branch name.  Rather than
68623         adding a --branch option to gitlog-to-changelog, it seems more
68624         flexible to simply pass all options directly to git-log and let
68625         git do the work.  Notice that this effectively makes --since a
68626         redundant option for gitlog-to-changelog, but removing it would
68627         require current usage to change since calls would then require
68628         an additional '--'.
68630 2008-12-21  Bruno Haible  <bruno@clisp.org>
68632         * modules/mbsnrtowcs-tests: New file.
68633         * tests/test-mbsnrtowcs1.sh: New file.
68634         * tests/test-mbsnrtowcs2.sh: New file.
68635         * tests/test-mbsnrtowcs3.sh: New file.
68636         * tests/test-mbsnrtowcs4.sh: New file.
68637         * tests/test-mbsnrtowcs.c: New file.
68639         New module 'mbsnrtowcs'.
68640         * lib/wchar.in.h (mbsnrtowcs): New declaration.
68641         * lib/mbsnrtowcs.c: New file.
68642         * lib/mbsrtowcs-state.c: New file.
68643         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
68644         (internal_state): Remove variable.
68645         * m4/mbsnrtowcs.m4: New file.
68646         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
68647         compilation units.
68648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
68649         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68650         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
68651         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68652         * modules/mbsnrtowcs: New file.
68653         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
68654         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
68655         portability problem.
68657 2008-12-21  Bruno Haible  <bruno@clisp.org>
68659         Work around mbsrtowcs bug.
68660         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
68661         (gl_FUNC_MBSRTOWCS): Invoke it.
68662         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68663         m4/locale-zh.m4.
68664         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
68666 2008-12-21  Bruno Haible  <bruno@clisp.org>
68668         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
68670 2008-12-21  Bruno Haible  <bruno@clisp.org>
68672         Update doc for AIX.
68673         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
68674         16-bit wchar_t type.
68675         * doc/posix-functions/btowc.texi: Likewise.
68676         * doc/posix-functions/fgetwc.texi: Likewise.
68677         * doc/posix-functions/fgetws.texi: Likewise.
68678         * doc/posix-functions/fputwc.texi: Likewise.
68679         * doc/posix-functions/fputws.texi: Likewise.
68680         * doc/posix-functions/fwide.texi: Likewise.
68681         * doc/posix-functions/fwprintf.texi: Likewise.
68682         * doc/posix-functions/fwscanf.texi: Likewise.
68683         * doc/posix-functions/getwchar.texi: Likewise.
68684         * doc/posix-functions/getwc.texi: Likewise.
68685         * doc/posix-functions/iswalnum.texi: Likewise.
68686         * doc/posix-functions/iswalpha.texi: Likewise.
68687         * doc/posix-functions/iswblank.texi: Likewise.
68688         * doc/posix-functions/iswcntrl.texi: Likewise.
68689         * doc/posix-functions/iswctype.texi: Likewise.
68690         * doc/posix-functions/iswdigit.texi: Likewise.
68691         * doc/posix-functions/iswgraph.texi: Likewise.
68692         * doc/posix-functions/iswlower.texi: Likewise.
68693         * doc/posix-functions/iswprint.texi: Likewise.
68694         * doc/posix-functions/iswpunct.texi: Likewise.
68695         * doc/posix-functions/iswspace.texi: Likewise.
68696         * doc/posix-functions/iswupper.texi: Likewise.
68697         * doc/posix-functions/iswxdigit.texi: Likewise.
68698         * doc/posix-functions/mbrtowc.texi: Likewise.
68699         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68700         * doc/posix-functions/mbstowcs.texi: Likewise.
68701         * doc/posix-functions/mbtowc.texi: Likewise.
68702         * doc/posix-functions/putwchar.texi: Likewise.
68703         * doc/posix-functions/putwc.texi: Likewise.
68704         * doc/posix-functions/swprintf.texi: Likewise.
68705         * doc/posix-functions/tolower.texi: Likewise.
68706         * doc/posix-functions/toupper.texi: Likewise.
68707         * doc/posix-functions/towctrans.texi: Likewise.
68708         * doc/posix-functions/ungetwc.texi: Likewise.
68709         * doc/posix-functions/vswprintf.texi: Likewise.
68710         * doc/posix-functions/wcrtomb.texi: Likewise.
68711         * doc/posix-functions/wcscat.texi: Likewise.
68712         * doc/posix-functions/wcschr.texi: Likewise.
68713         * doc/posix-functions/wcscmp.texi: Likewise.
68714         * doc/posix-functions/wcscoll.texi: Likewise.
68715         * doc/posix-functions/wcscpy.texi: Likewise.
68716         * doc/posix-functions/wcscspn.texi: Likewise.
68717         * doc/posix-functions/wcsftime.texi: Likewise.
68718         * doc/posix-functions/wcslen.texi: Likewise.
68719         * doc/posix-functions/wcsncat.texi: Likewise.
68720         * doc/posix-functions/wcsncmp.texi: Likewise.
68721         * doc/posix-functions/wcsncpy.texi: Likewise.
68722         * doc/posix-functions/wcspbrk.texi: Likewise.
68723         * doc/posix-functions/wcsrchr.texi: Likewise.
68724         * doc/posix-functions/wcsrtombs.texi: Likewise.
68725         * doc/posix-functions/wcsspn.texi: Likewise.
68726         * doc/posix-functions/wcsstr.texi: Likewise.
68727         * doc/posix-functions/wcstod.texi: Likewise.
68728         * doc/posix-functions/wcstof.texi: Likewise.
68729         * doc/posix-functions/wcstoimax.texi: Likewise.
68730         * doc/posix-functions/wcstok.texi: Likewise.
68731         * doc/posix-functions/wcstold.texi: Likewise.
68732         * doc/posix-functions/wcstoll.texi: Likewise.
68733         * doc/posix-functions/wcstol.texi: Likewise.
68734         * doc/posix-functions/wcstombs.texi: Likewise.
68735         * doc/posix-functions/wcstoull.texi: Likewise.
68736         * doc/posix-functions/wcstoul.texi: Likewise.
68737         * doc/posix-functions/wcstoumax.texi: Likewise.
68738         * doc/posix-functions/wcswidth.texi: Likewise.
68739         * doc/posix-functions/wcsxfrm.texi: Likewise.
68740         * doc/posix-functions/wctob.texi: Likewise.
68741         * doc/posix-functions/wctomb.texi: Likewise.
68742         * doc/posix-functions/wctrans.texi: Likewise.
68743         * doc/posix-functions/wctype.texi: Likewise.
68744         * doc/posix-functions/wcwidth.texi: Likewise.
68745         * doc/posix-functions/wmemchr.texi: Likewise.
68746         * doc/posix-functions/wmemcmp.texi: Likewise.
68747         * doc/posix-functions/wmemcpy.texi: Likewise.
68748         * doc/posix-functions/wmemmove.texi: Likewise.
68749         * doc/posix-functions/wmemset.texi: Likewise.
68750         * doc/posix-functions/wprintf.texi: Likewise.
68751         * doc/posix-functions/wscanf.texi: Likewise.
68753 2008-12-21  Bruno Haible  <bruno@clisp.org>
68755         Update doc for HP-UX 11.11.
68756         * doc/posix-functions/btowc.texi: Clarify that the function is missing
68757         in HP-UX version 11.00, not in all versions of HP-UX 11.
68758         * doc/posix-functions/fwide.texi: Likewise.
68759         * doc/posix-functions/fwprintf.texi: Likewise.
68760         * doc/posix-functions/fwscanf.texi: Likewise.
68761         * doc/posix-functions/inet_ntop.texi: Likewise.
68762         * doc/posix-functions/inet_pton.texi: Likewise.
68763         * doc/posix-functions/mbrlen.texi: Likewise.
68764         * doc/posix-functions/mbrtowc.texi: Likewise.
68765         * doc/posix-functions/mbsinit.texi: Likewise.
68766         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68767         * doc/posix-functions/swprintf.texi: Likewise.
68768         * doc/posix-functions/swscanf.texi: Likewise.
68769         * doc/posix-functions/towctrans.texi: Likewise.
68770         * doc/posix-functions/vfwprintf.texi: Likewise.
68771         * doc/posix-functions/vswprintf.texi: Likewise.
68772         * doc/posix-functions/vwprintf.texi: Likewise.
68773         * doc/posix-functions/wcrtomb.texi: Likewise.
68774         * doc/posix-functions/wcsrtombs.texi: Likewise.
68775         * doc/posix-functions/wcsstr.texi: Likewise.
68776         * doc/posix-functions/wctob.texi: Likewise.
68777         * doc/posix-functions/wctrans.texi: Likewise.
68778         * doc/posix-functions/wmemchr.texi: Likewise.
68779         * doc/posix-functions/wmemcmp.texi: Likewise.
68780         * doc/posix-functions/wmemcpy.texi: Likewise.
68781         * doc/posix-functions/wmemmove.texi: Likewise.
68782         * doc/posix-functions/wmemset.texi: Likewise.
68783         * doc/posix-functions/wprintf.texi: Likewise.
68784         * doc/posix-functions/wscanf.texi: Likewise.
68786 2008-12-21  Bruno Haible  <bruno@clisp.org>
68788         Work around a portability problem.
68789         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
68790         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
68792 2008-12-20  Bruno Haible  <bruno@clisp.org>
68794         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
68795         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
68796         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
68797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
68798         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
68800         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
68801         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
68802         set.
68803         (GNULIB_defined_mbstate_t): New macro.
68804         (mbsinit): Redefine if REPLACE_MBSINIT is set.
68805         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
68806         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
68807         reuses the system's mbrtowc function but works around the bugs.
68808         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
68809         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
68810         macros.
68811         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
68812         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
68813         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
68814         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
68815         REPLACE_MBSINIT if mbsinit needs to be overridden.
68816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
68817         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68818         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
68819         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68820         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68821         m4/locale-zh.m4.
68822         (Depends): Add mbsinit.
68823         * modules/mbsinit (Depends): Add mbrtowc.
68824         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
68826 2008-12-20  Bruno Haible  <bruno@clisp.org>
68828         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
68829         so that there are no conversion errors on AIX.
68830         * tests/test-mbsrtowcs.c (main): LIkewise.
68832 2008-12-20  Bruno Haible  <bruno@clisp.org>
68834         Work around wctob bug on Solaris <= 9.
68835         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
68836         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
68837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
68838         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
68839         * modules/wctob (Files): Add m4/locale-fr.m4.
68840         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
68842 2008-12-20  Bruno Haible  <bruno@clisp.org>
68844         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
68845         /dev/null.
68846         * tests/test-select-in.sh: Likewise.
68847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68849 2008-12-20  Bruno Haible  <bruno@clisp.org>
68851         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
68852         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
68853         Cygwin 1.5.x.
68855 2008-12-20  Bruno Haible  <bruno@clisp.org>
68857         Ensure mbstate_t is defined on HP-UX 11.11.
68858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
68859         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
68860         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
68861         AC_USE_SYSTEM_EXTENSIONS.
68862         * modules/fnmatch (Depends-on): Add extensions.
68863         * modules/mbrlen (Depends-on): Likewise.
68864         * modules/mbrtowc (Depends-on): Likewise.
68865         * modules/mbsinit (Depends-on): Likewise.
68866         * modules/mbsrtowcs (Depends-on): Likewise.
68867         * modules/mbswidth (Depends-on): Likewise.
68868         * modules/quotearg (Depends-on): Likewise.
68869         * modules/strftime (Depends-on): Likewise.
68871 2008-12-20  Bruno Haible  <bruno@clisp.org>
68873         Ensure wctob is declared on IRIX 6.5.
68874         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
68875         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
68876         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
68877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
68878         of HAVE_WCTOB.
68879         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
68880         HAVE_WCTOB.
68881         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
68883 2008-12-19  Bruno Haible  <bruno@clisp.org>
68885         * modules/mbsrtowcs-tests: New file.
68886         * tests/test-mbsrtowcs1.sh: New file.
68887         * tests/test-mbsrtowcs2.sh: New file.
68888         * tests/test-mbsrtowcs3.sh: New file.
68889         * tests/test-mbsrtowcs4.sh: New file.
68890         * tests/test-mbsrtowcs.c: New file.
68892         New module 'mbsrtowcs'.
68893         * lib/wchar.in.h (mbsrtowcs): New declaration.
68894         * lib/mbsrtowcs.c: New file.
68895         * m4/mbsrtowcs.m4: New file.
68896         * modules/mbsrtowcs: New file.
68897         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
68898         HAVE_MBSRTOWCS.
68899         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
68900         HAVE_MBSRTOWCS.
68901         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
68903 2008-12-19  Bruno Haible  <bruno@clisp.org>
68905         New module 'mbrlen'.
68906         * lib/wchar.in.h (mbrlen): New declaration.
68907         * lib/mbrlen.c: New file.
68908         * m4/mbrlen.m4: New file.
68909         * modules/mbrlen: New file.
68910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
68911         HAVE_MBRLEN.
68912         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
68913         HAVE_MBRLEN.
68914         * doc/posix-functions/mbrlen.texi: Document the new module.
68916 2008-12-19  Bruno Haible  <bruno@clisp.org>
68918         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
68919         * modules/mbrtowc (Depends-on): Add verify.
68920         Suggested by Paul Eggert.
68922 2008-12-18  Bruno Haible  <bruno@clisp.org>
68924         * modules/mbsinit-tests: New file.
68925         * tests/test-mbsinit.sh: New file.
68926         * tests/test-mbsinit.c: New file.
68928 2008-12-18  Bruno Haible  <bruno@clisp.org>
68930         * modules/mbrtowc-tests: New file.
68931         * tests/test-mbrtowc1.sh: New file.
68932         * tests/test-mbrtowc2.sh: New file.
68933         * tests/test-mbrtowc3.sh: New file.
68934         * tests/test-mbrtowc4.sh: New file.
68935         * tests/test-mbrtowc.c: New file.
68937         New module 'mbrtowc'.
68938         * lib/wchar.in.h (mbstate_t): Override when the system does not have
68939         mbsinit and mbrtowc.
68940         (mbrtowc): New declaration.
68941         * lib/mbrtowc.c: New file.
68942         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
68943         * modules/mbrtowc: New file.
68944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
68945         HAVE_MBRTOWC.
68946         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
68947         HAVE_MBRTOWC.
68948         * doc/posix-functions/mbrtowc.texi: Document the new module.
68950 2008-12-18  Bruno Haible  <bruno@clisp.org>
68952         New module 'wctob'.
68953         * lib/wchar.in.h (wctob): New declaration.
68954         * lib/wctob.c: New file.
68955         * m4/wctob.m4: New file.
68956         * modules/wctob: New file.
68957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
68958         HAVE_WCTOB.
68959         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
68960         * doc/posix-functions/wctob.texi: Document the new module.
68962 2008-12-18  Bruno Haible  <bruno@clisp.org>
68964         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
68965         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
68967 2008-12-18  Simon Josefsson  <simon@josefsson.org>
68969         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
68970         G. Christensen" <tgc@jupiterrise.com>.
68972         * lib/flock.c: Need to include errno.h.  Reported by "Tom
68973         G. Christensen" <tgc@jupiterrise.com>.
68975         * lib/flock.c: Need to include string.h.  Reported by "Tom
68976         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
68977         <ebb9@byu.net>.
68979 2008-12-18  Bruno Haible  <bruno@clisp.org>
68981         * m4/locale-ja.m4: New file, from GNU gettext.
68983 2008-12-17  Bruno Haible  <bruno@clisp.org>
68985         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
68986         Suggested by Eric Blake.
68988 2008-12-17  Bruno Haible  <bruno@clisp.org>
68990         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
68992 2008-12-17  Bruno Haible  <bruno@clisp.org>
68994         * lib/mbsinit.c: Include verify.h. Verify an assumption.
68995         * modules/mbsinit (Depends-on): Add verify.
68996         Suggested by Paul Eggert.
68998 2008-12-17  Bruno Haible  <bruno@clisp.org>
69000         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
69001         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
69002         gl_FUNC_MBRTOWC.
69003         * m4/mbiter.m4 (gl_MBITER): LIkewise.
69004         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
69005         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
69006         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
69007         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
69008         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
69009         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
69010         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
69011         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
69012         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
69013         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
69014         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
69015         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
69016         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
69017         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
69018         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69019         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
69020         * modules/trim (configure.ac): Likewise.
69022 2008-12-17  Bruno Haible  <bruno@clisp.org>
69024         * modules/btowc-tests: New file.
69025         * tests/test-btowc1.sh: New file.
69026         * tests/test-btowc2.sh: New file.
69027         * tests/test-btowc.c: New file.
69029         New module 'btowc'.
69030         * lib/wchar.in.h (btowc): New declaration.
69031         * lib/btowc.c: New file.
69032         * m4/btowc.m4: New file.
69033         * modules/btowc: New file.
69034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
69035         HAVE_BTOWC.
69036         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
69037         * doc/posix-functions/btowc.texi: Document the new module.
69039 2008-12-17  Bruno Haible  <bruno@clisp.org>
69041         New module 'mbsinit'.
69042         * lib/wchar.in.h (mbsinit): New declaration.
69043         * lib/mbsinit.c: New file.
69044         * m4/mbsinit.m4: New file.
69045         * modules/mbsinit: New file.
69046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
69047         HAVE_MBSINIT.
69048         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
69049         HAVE_MBSINIT.
69050         * doc/posix-functions/mbsinit.texi: Document the new module.
69052 2008-12-16  Bruno Haible  <bruno@clisp.org>
69054         * lib/unistd.in.h: Add comment.
69055         * tests/test-environ.c: Don't include <stdlib.h>.
69057 2008-12-16  Bruno Haible  <bruno@clisp.org>
69059         * lib/parse-duration.h (parse_duration): Document return value
69060         convention.
69061         * lib/parse-duration.c: Include specification header first. Add
69062         comments.
69063         (_): Remove macro.
69064         (parse_year_month_day, parse_hour_minute_second): Move side effects
69065         outside of strchr call.
69066         (parse_non_iso8601): Move side effects outside of isspace call.
69067         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
69068         call.
69070 2008-12-16  Bruno Haible  <bruno@clisp.org>
69072         * tests/test-parse-duration.sh: Produce no output when the test
69073         succeeds.
69075 2008-12-16  Bruno Haible  <bruno@clisp.org>
69077         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
69078         expressions.
69080 2008-12-15  Bruno Haible  <bruno@clisp.org>
69082         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
69083         * doc/glibc-functions/flistxattr.texi: Likewise.
69084         * doc/glibc-functions/fopencookie.texi: Likewise.
69085         * doc/glibc-functions/fremovexattr.texi: Likewise.
69086         * doc/glibc-functions/fsetxattr.texi: Likewise.
69087         * doc/glibc-functions/getxattr.texi: Likewise.
69088         * doc/glibc-functions/lgetxattr.texi: Likewise.
69089         * doc/glibc-functions/listxattr.texi: Likewise.
69090         * doc/glibc-functions/llistxattr.texi: Likewise.
69091         * doc/glibc-functions/lremovexattr.texi: Likewise.
69092         * doc/glibc-functions/lsetxattr.texi: Likewise.
69093         * doc/glibc-functions/removexattr.texi: Likewise.
69094         * doc/glibc-functions/setxattr.texi: Likewise.
69095         * doc/posix-functions/open_memstream.texi: Likewise.
69097 2008-12-15  Eric Blake  <ebb9@byu.net>
69099         Update doc for cygwin 1.7.
69100         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
69101         functions.
69102         * doc/posix-functions/fchmodat.texi: Likewise.
69103         * doc/posix-functions/fchownat.texi: Likewise.
69104         * doc/posix-functions/fdopendir.texi: Likewise.
69105         * doc/posix-functions/fmemopen.texi: Likewise.
69106         * doc/posix-functions/freeaddrinfo.texi: Likewise.
69107         * doc/posix-functions/fstatat.texi: Likewise.
69108         * doc/posix-functions/futimens.texi: Likewise.
69109         * doc/posix-functions/gai_strerror.texi: Likewise.
69110         * doc/posix-functions/getaddrinfo.texi: Likewise.
69111         * doc/posix-functions/getnameinfo.texi: Likewise.
69112         * doc/posix-functions/if_freenameindex.texi: Likewise.
69113         * doc/posix-functions/if_indextoname.texi: Likewise.
69114         * doc/posix-functions/if_nameindex.texi: Likewise.
69115         * doc/posix-functions/if_nametoindex.texi: Likewise.
69116         * doc/posix-functions/insque.texi: Likewise.
69117         * doc/posix-functions/linkat.texi: Likewise.
69118         * doc/posix-functions/llrint.texi: Likewise.
69119         * doc/posix-functions/llrintf.texi: Likewise.
69120         * doc/posix-functions/llrintl.texi: Likewise.
69121         * doc/posix-functions/lockf.texi: Likewise.
69122         * doc/posix-functions/lrintl.texi: Likewise.
69123         * doc/posix-functions/mkdirat.texi: Likewise.
69124         * doc/posix-functions/mkfifoat.texi: Likewise.
69125         * doc/posix-functions/mknodat.texi: Likewise.
69126         * doc/posix-functions/mq_close.texi: Likewise.
69127         * doc/posix-functions/mq_getattr.texi: Likewise.
69128         * doc/posix-functions/mq_notify.texi: Likewise.
69129         * doc/posix-functions/mq_open.texi: Likewise.
69130         * doc/posix-functions/mq_receive.texi: Likewise.
69131         * doc/posix-functions/mq_send.texi: Likewise.
69132         * doc/posix-functions/mq_setattr.texi: Likewise.
69133         * doc/posix-functions/mq_timedreceive.texi: Likewise.
69134         * doc/posix-functions/mq_timedsend.texi: Likewise.
69135         * doc/posix-functions/mq_unlink.texi: Likewise.
69136         * doc/posix-functions/open_memstream.texi: Likewise.
69137         * doc/posix-functions/openat.texi: Likewise.
69138         * doc/posix-functions/posix_fadvise.texi: Likewise.
69139         * doc/posix-functions/posix_fallocate.texi: Likewise.
69140         * doc/posix-functions/posix_madvise.texi: Likewise.
69141         * doc/posix-functions/posix_memalign.texi: Likewise.
69142         * doc/posix-functions/posix_openpt.texi: Likewise.
69143         * doc/posix-functions/readlinkat.texi: Likewise.
69144         * doc/posix-functions/remque.texi: Likewise.
69145         * doc/posix-functions/renameat.texi: Likewise.
69146         * doc/posix-functions/rintl.texi: Likewise.
69147         * doc/posix-functions/sem_unlink.texi: Likewise.
69148         * doc/posix-functions/shm_open.texi: Likewise.
69149         * doc/posix-functions/shm_unlink.texi: Likewise.
69150         * doc/posix-functions/signgam.texi: Likewise.
69151         * doc/posix-functions/sigset.texi: Likewise.
69152         * doc/posix-functions/stpcpy.texi: Likewise.
69153         * doc/posix-functions/stpncpy.texi: Likewise.
69154         * doc/posix-functions/strerror.texi: Likewise.
69155         * doc/posix-functions/strtod.texi: Likewise.
69156         * doc/posix-functions/symlinkat.texi: Likewise.
69157         * doc/posix-functions/unlinkat.texi: Likewise.
69158         * doc/posix-functions/utimensat.texi: Likewise.
69159         * doc/glibc-functions/bindresvport.texi: Likewise.
69160         * doc/glibc-functions/dn_expand.texi: Likewise.
69161         * doc/glibc-functions/exp10.texi: Likewise.
69162         * doc/glibc-functions/exp10f.texi: Likewise.
69163         * doc/glibc-functions/fgetxattr.texi: Likewise.
69164         * doc/glibc-functions/flistxattr.texi: Likewise.
69165         * doc/glibc-functions/fopencookie.texi: Likewise.
69166         * doc/glibc-functions/freeifaddrs.texi: Likewise.
69167         * doc/glibc-functions/fremovexattr.texi: Likewise.
69168         * doc/glibc-functions/fsetxattr.texi: Likewise.
69169         * doc/glibc-functions/getifaddrs.texi: Likewise.
69170         * doc/glibc-functions/getxattr.texi: Likewise.
69171         * doc/glibc-functions/lgetxattr.texi: Likewise.
69172         * doc/glibc-functions/listxattr.texi: Likewise.
69173         * doc/glibc-functions/llistxattr.texi: Likewise.
69174         * doc/glibc-functions/lremovexattr.texi: Likewise.
69175         * doc/glibc-functions/lsetxattr.texi: Likewise.
69176         * doc/glibc-functions/pow10.texi: Likewise.
69177         * doc/glibc-functions/pow10f.texi: Likewise.
69178         * doc/glibc-functions/rcmd_af.texi: Likewise.
69179         * doc/glibc-functions/removexattr.texi: Likewise.
69180         * doc/glibc-functions/res_init.texi: Likewise.
69181         * doc/glibc-functions/res_mkquery.texi: Likewise.
69182         * doc/glibc-functions/res_query.texi: Likewise.
69183         * doc/glibc-functions/res_querydomain.texi: Likewise.
69184         * doc/glibc-functions/res_send.texi: Likewise.
69185         * doc/glibc-functions/rresvport_af.texi: Likewise.
69186         * doc/glibc-functions/setxattr.texi: Likewise.
69187         * doc/glibc-functions/strcasestr.texi: Likewise.
69189 2008-12-15  Bruno Haible  <bruno@clisp.org>
69191         Fix compilation error on OSF/1 4.0.
69192         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
69193         <sys/time.h>, simply delegate to the system header.
69194         Reported by Daniel Richard G. <oss@teragram.com>.
69196 2008-12-15  Bruno Haible  <bruno@clisp.org>
69198         * doc/posix-functions/openat.texi: Mention the 'openat' module.
69199         * doc/posix-functions/fchmodat.texi: Likewise.
69200         * doc/posix-functions/fchownat.texi: Likewise.
69201         * doc/posix-functions/fdopendir.texi: Likewise.
69202         * doc/posix-functions/fstatat.texi: Likewise.
69203         * doc/posix-functions/mkdirat.texi: Likewise.
69204         * doc/posix-functions/unlinkat.texi: Likewise.
69206 2008-12-14  Bruno Haible  <bruno@clisp.org>
69208         Update doc for POSIX:2008.
69209         * doc/posix-functions/faccessat.texi: New file.
69210         * doc/posix-functions/fchmodat.texi: New file.
69211         * doc/posix-functions/fchownat.texi: New file.
69212         * doc/posix-functions/fdopendir.texi: New file.
69213         * doc/posix-functions/fstatat.texi: New file.
69214         * doc/posix-functions/futimens.texi: New file.
69215         * doc/posix-functions/linkat.texi: New file.
69216         * doc/posix-functions/mkdirat.texi: New file.
69217         * doc/posix-functions/mkfifoat.texi: New file.
69218         * doc/posix-functions/mknodat.texi: New file.
69219         * doc/posix-functions/open_wmemstream.texi: New file.
69220         * doc/posix-functions/openat.texi: New file.
69221         * doc/posix-functions/psiginfo.texi: New file.
69222         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
69223         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
69224         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
69225         * doc/posix-functions/readlinkat.texi: New file.
69226         * doc/posix-functions/renameat.texi: New file.
69227         * doc/posix-functions/strerror_l.texi: New file.
69228         * doc/posix-functions/symlinkat.texi: New file.
69229         * doc/posix-functions/unlinkat.texi: New file.
69230         * doc/posix-functions/utimensat.texi: New file.
69231         * doc/gnulib.texi (Function Substitutes): Add these subsections.
69233 2008-12-14  Bruno Haible  <bruno@clisp.org>
69235         Update doc for POSIX:2008.
69236         * doc/posix-functions/alphasort.texi: Renamed from
69237         doc/glibc-functions/alphasort.texi.
69238         * doc/posix-functions/dirfd.texi: Renamed from
69239         doc/glibc-functions/dirfd.texi.
69240         * doc/posix-functions/dprintf.texi: Renamed from
69241         doc/glibc-functions/dprintf.texi.
69242         * doc/posix-functions/duplocale.texi: Renamed from
69243         doc/glibc-functions/duplocale.texi.
69244         * doc/posix-functions/fexecve.texi: Renamed from
69245         doc/glibc-functions/fexecve.texi.
69246         * doc/posix-functions/fmemopen.texi: Renamed from
69247         doc/glibc-functions/fmemopen.texi.
69248         * doc/posix-functions/freelocale.texi: Renamed from
69249         doc/glibc-functions/freelocale.texi.
69250         * doc/posix-functions/getdate_err.texi: Renamed from
69251         doc/glibc-functions/getdate_err.texi.
69252         * doc/posix-functions/isalnum_l.texi: Renamed from
69253         doc/glibc-functions/isalnum_l.texi.
69254         * doc/posix-functions/isalpha_l.texi: Renamed from
69255         doc/glibc-functions/isalpha_l.texi.
69256         * doc/posix-functions/isblank_l.texi: Renamed from
69257         doc/glibc-functions/isblank_l.texi.
69258         * doc/posix-functions/iscntrl_l.texi: Renamed from
69259         doc/glibc-functions/iscntrl_l.texi.
69260         * doc/posix-functions/isdigit_l.texi: Renamed from
69261         doc/glibc-functions/isdigit_l.texi.
69262         * doc/posix-functions/isgraph_l.texi: Renamed from
69263         doc/glibc-functions/isgraph_l.texi.
69264         * doc/posix-functions/islower_l.texi: Renamed from
69265         doc/glibc-functions/islower_l.texi.
69266         * doc/posix-functions/isprint_l.texi: Renamed from
69267         doc/glibc-functions/isprint_l.texi.
69268         * doc/posix-functions/ispunct_l.texi: Renamed from
69269         doc/glibc-functions/ispunct_l.texi.
69270         * doc/posix-functions/isspace_l.texi: Renamed from
69271         doc/glibc-functions/isspace_l.texi.
69272         * doc/posix-functions/isupper_l.texi: Renamed from
69273         doc/glibc-functions/isupper_l.texi.
69274         * doc/posix-functions/iswalnum_l.texi: Renamed from
69275         doc/glibc-functions/iswalnum_l.texi.
69276         * doc/posix-functions/iswalpha_l.texi: Renamed from
69277         doc/glibc-functions/iswalpha_l.texi.
69278         * doc/posix-functions/iswblank_l.texi: Renamed from
69279         doc/glibc-functions/iswblank_l.texi.
69280         * doc/posix-functions/iswcntrl_l.texi: Renamed from
69281         doc/glibc-functions/iswcntrl_l.texi.
69282         * doc/posix-functions/iswctype_l.texi: Renamed from
69283         doc/glibc-functions/iswctype_l.texi.
69284         * doc/posix-functions/iswdigit_l.texi: Renamed from
69285         doc/glibc-functions/iswdigit_l.texi.
69286         * doc/posix-functions/iswgraph_l.texi: Renamed from
69287         doc/glibc-functions/iswgraph_l.texi.
69288         * doc/posix-functions/iswlower_l.texi: Renamed from
69289         doc/glibc-functions/iswlower_l.texi.
69290         * doc/posix-functions/iswprint_l.texi: Renamed from
69291         doc/glibc-functions/iswprint_l.texi.
69292         * doc/posix-functions/iswpunct_l.texi: Renamed from
69293         doc/glibc-functions/iswpunct_l.texi.
69294         * doc/posix-functions/iswspace_l.texi: Renamed from
69295         doc/glibc-functions/iswspace_l.texi.
69296         * doc/posix-functions/iswupper_l.texi: Renamed from
69297         doc/glibc-functions/iswupper_l.texi.
69298         * doc/posix-functions/iswxdigit_l.texi: Renamed from
69299         doc/glibc-functions/iswxdigit_l.texi.
69300         * doc/posix-functions/isxdigit_l.texi: Renamed from
69301         doc/glibc-functions/isxdigit_l.texi.
69302         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
69303         doc/glibc-functions/mbsnrtowcs.texi.
69304         * doc/posix-functions/mkdtemp.texi: Renamed from
69305         doc/glibc-functions/mkdtemp.texi.
69306         * doc/posix-functions/newlocale.texi: Renamed from
69307         doc/glibc-functions/newlocale.texi.
69308         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
69309         doc/glibc-functions/nl_langinfo_l.texi.
69310         * doc/posix-functions/open_memstream.texi: Renamed from
69311         doc/glibc-functions/open_memstream.texi.
69312         * doc/posix-functions/opterr.texi: Renamed from
69313         doc/glibc-functions/opterr.texi.
69314         * doc/posix-functions/optind.texi: Renamed from
69315         doc/glibc-functions/optind.texi.
69316         * doc/posix-functions/optopt.texi: Renamed from
69317         doc/glibc-functions/optopt.texi.
69318         * doc/posix-functions/psignal.texi: Renamed from
69319         doc/glibc-functions/psignal.texi.
69320         * doc/posix-functions/scandir.texi: Renamed from
69321         doc/glibc-functions/scandir.texi.
69322         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
69323         doc/glibc-functions/sched_get_priority_min.texi.
69324         * doc/posix-functions/signgam.texi: Renamed from
69325         doc/glibc-functions/signgam.texi.
69326         * doc/posix-functions/stpcpy.texi: Renamed from
69327         doc/glibc-functions/stpcpy.texi.
69328         * doc/posix-functions/stpncpy.texi: Renamed from
69329         doc/glibc-functions/stpncpy.texi.
69330         * doc/posix-functions/strcasecmp_l.texi: Renamed from
69331         doc/glibc-functions/strcasecmp_l.texi.
69332         * doc/posix-functions/strcoll_l.texi: Renamed from
69333         doc/glibc-functions/strcoll_l.texi.
69334         * doc/posix-functions/strfmon_l.texi: Renamed from
69335         doc/glibc-functions/strfmon_l.texi.
69336         * doc/posix-functions/strftime_l.texi: Renamed from
69337         doc/glibc-functions/strftime_l.texi.
69338         * doc/posix-functions/strncasecmp_l.texi: Renamed from
69339         doc/glibc-functions/strncasecmp_l.texi.
69340         * doc/posix-functions/strndup.texi: Renamed from
69341         doc/glibc-functions/strndup.texi.
69342         * doc/posix-functions/strnlen.texi: Renamed from
69343         doc/glibc-functions/strnlen.texi.
69344         * doc/posix-functions/strsignal.texi: Renamed from
69345         doc/glibc-functions/strsignal.texi.
69346         * doc/posix-functions/strxfrm_l.texi: Renamed from
69347         doc/glibc-functions/strxfrm_l.texi.
69348         * doc/posix-functions/timer_gettime.texi: Renamed from
69349         doc/glibc-functions/timer_gettime.texi.
69350         * doc/posix-functions/tolower_l.texi: Renamed from
69351         doc/glibc-functions/tolower_l.texi.
69352         * doc/posix-functions/toupper_l.texi: Renamed from
69353         doc/glibc-functions/toupper_l.texi.
69354         * doc/posix-functions/towctrans_l.texi: Renamed from
69355         doc/glibc-functions/towctrans_l.texi.
69356         * doc/posix-functions/towlower_l.texi: Renamed from
69357         doc/glibc-functions/towlower_l.texi.
69358         * doc/posix-functions/towupper_l.texi: Renamed from
69359         doc/glibc-functions/towupper_l.texi.
69360         * doc/posix-functions/uselocale.texi: Renamed from
69361         doc/glibc-functions/uselocale.texi.
69362         * doc/posix-functions/vdprintf.texi: Renamed from
69363         doc/glibc-functions/vdprintf.texi.
69364         * doc/posix-functions/wcpcpy.texi:
69365         Renamed from doc/glibc-functions/wcpcpy.texi.
69366         * doc/posix-functions/wcpncpy.texi: Renamed from
69367         doc/glibc-functions/wcpncpy.texi.
69368         * doc/posix-functions/wcscasecmp.texi: Renamed from
69369         doc/glibc-functions/wcscasecmp.texi.
69370         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
69371         doc/glibc-functions/wcscasecmp_l.texi.
69372         * doc/posix-functions/wcscoll_l.texi: Renamed from
69373         doc/glibc-functions/wcscoll_l.texi.
69374         * doc/posix-functions/wcsdup.texi: Renamed from
69375         doc/glibc-functions/wcsdup.texi.
69376         * doc/posix-functions/wcsncasecmp.texi: Renamed from
69377         doc/glibc-functions/wcsncasecmp.texi.
69378         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
69379         doc/glibc-functions/wcsncasecmp_l.texi.
69380         * doc/posix-functions/wcsnlen.texi: Renamed from
69381         doc/glibc-functions/wcsnlen.texi.
69382         * doc/posix-functions/wcsnrtombs.texi: Renamed from
69383         doc/glibc-functions/wcsnrtombs.texi.
69384         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
69385         doc/glibc-functions/wcsxfrm_l.texi.
69386         * doc/posix-functions/wctrans_l.texi: Renamed from
69387         doc/glibc-functions/wctrans_l.texi.
69388         * doc/posix-functions/wctype_l.texi: Renamed from
69389         doc/glibc-functions/wctype_l.texi.
69390         * doc/gnulib.texi (Function Substitutes): Add these subsections.
69391         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
69392         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
69393         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
69394         these subsections.
69395         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
69396         Remove sections.
69398 2008-12-14  Bruno Haible  <bruno@clisp.org>
69400         Update doc for POSIX:2008.
69401         * doc/posix-functions/*.texi: Update URL of POSIX specification.
69403 2008-12-14  Bruno Haible  <bruno@clisp.org>
69405         Update doc for POSIX:2008.
69406         * doc/pastposix-functions/bcmp.texi: Renamed from
69407         doc/posix-functions/bcmp.texi.
69408         * doc/pastposix-functions/bcopy.texi: Renamed from
69409         doc/posix-functions/bcopy.texi.
69410         * doc/pastposix-functions/bsd_signal.texi: Renamed from
69411         doc/posix-functions/bsd_signal.texi.
69412         * doc/pastposix-functions/bzero.texi: Renamed from
69413         doc/posix-functions/bzero.texi.
69414         * doc/pastposix-functions/ecvt.texi: Renamed from
69415         doc/posix-functions/ecvt.texi.
69416         * doc/pastposix-functions/fcvt.texi: Renamed from
69417         doc/posix-functions/fcvt.texi.
69418         * doc/pastposix-functions/ftime.texi: Renamed from
69419         doc/posix-functions/ftime.texi.
69420         * doc/pastposix-functions/gcvt.texi: Renamed from
69421         doc/posix-functions/gcvt.texi.
69422         * doc/pastposix-functions/getcontext.texi: Renamed from
69423         doc/posix-functions/getcontext.texi.
69424         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
69425         doc/posix-functions/gethostbyaddr.texi.
69426         * doc/pastposix-functions/gethostbyname.texi: Renamed from
69427         doc/posix-functions/gethostbyname.texi.
69428         * doc/pastposix-functions/getwd.texi: Renamed from
69429         doc/posix-functions/getwd.texi.
69430         * doc/pastposix-functions/h_errno.texi: Renamed from
69431         doc/posix-functions/h_errno.texi.
69432         * doc/pastposix-functions/index.texi: Renamed from
69433         doc/posix-functions/index.texi.
69434         * doc/pastposix-functions/makecontext.texi: Renamed from
69435         doc/posix-functions/makecontext.texi.
69436         * doc/pastposix-functions/mktemp.texi: Renamed from
69437         doc/posix-functions/mktemp.texi.
69438         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
69439         doc/posix-functions/pthread_attr_getstackaddr.texi.
69440         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
69441         doc/posix-functions/pthread_attr_setstackaddr.texi.
69442         * doc/pastposix-functions/rindex.texi: Renamed from
69443         doc/posix-functions/rindex.texi.
69444         * doc/pastposix-functions/scalb.texi: Renamed from
69445         doc/posix-functions/scalb.texi.
69446         * doc/pastposix-functions/setcontext.texi: Renamed from
69447         doc/posix-functions/setcontext.texi.
69448         * doc/pastposix-functions/swapcontext.texi: Renamed from
69449         doc/posix-functions/swapcontext.texi.
69450         * doc/pastposix-functions/ualarm.texi: Renamed from
69451         doc/posix-functions/ualarm.texi.
69452         * doc/pastposix-functions/usleep.texi: Renamed from
69453         doc/posix-functions/usleep.texi.
69454         * doc/pastposix-functions/vfork.texi: Renamed from
69455         doc/posix-functions/vfork.texi.
69456         * doc/pastposix-functions/wcswcs.texi: Renamed from
69457         doc/posix-functions/wcswcs.texi.
69458         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
69459         (Function Substitutes): Update.
69461 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69463         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
69464         m4/strerror.m4.
69466 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69467             Bruno Haible  <bruno@clisp.org>
69469         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
69471 2008-12-13  Bruno Haible  <bruno@clisp.org>
69473         * modules/strtoull (Depends-on): Remove unistd.
69475 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69477         * modules/strtoull (Depends-on): Add stdlib.
69479 2008-12-11  Simon Josefsson  <simon@josefsson.org>
69481         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
69483 2008-12-10  Jim Meyering  <meyering@redhat.com>
69485         gl_ASSERT: don't say assertions are disabled when they're not
69486         * m4/assert.m4 (gl_ASSERT): Do not make configure report
69487         "checking whether to enable assertions... no", when they are in
69488         fact enabled.  This is solely a bug in the output of configure.
69489         In spite of saying "no", NDEBUG was not defined in that case.
69490         Also, as noted by Eric Blake, leave assertions enabled upon
69491         --enable-assert=INVALID.
69493 2008-12-10  Bruno Haible  <bruno@clisp.org>
69495         Change MODULES.html to refer to POSIX:2008 where possible.
69496         * MODULES.html.sh (POSIX2008_URL): New variable.
69497         (posix_headers): Remove sys/timeb, ucontext.
69498         (posix2001_headers): New variable.
69499         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
69500         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
69501         index, makecontext, mktemp, pthread_attr_getstackaddr,
69502         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
69503         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
69504         (posix2001_functions): New variable.
69505         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
69506         otherwise.
69508 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69510         add missing include to parse-duration.c
69511         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
69512         * modules/parse-duration (Depends-on): Add xalloc.
69514         fix sed script reading maint.mk
69515         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
69516         (syntax-check-rules): Use it.
69518 2008-12-09  Bruno Haible  <bruno@clisp.org>
69520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
69521         MacOS X 10.4/PowerPC.
69522         Reported by Simon Josefsson.
69524 2008-12-08  Jim Meyering  <meyering@redhat.com>
69526         work around mingw's lack of some S_IF definitions
69527         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
69528         Reported by Simon Josefsson.
69530 2008-12-08  Bruno Haible  <bruno@clisp.org>
69532         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
69533         applied to variables. Needed on MacOS X 10.4/PowerPC.
69534         Reported by Simon Josefsson.
69536 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
69537         and Eric Blake  <ebb9@byu.net>
69539         assert: honor --enable-assert
69540         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
69541         order to honor --enable-assert, rather than treating it as a
69542         synonym for --disable-assert.
69544 2008-12-08  Jim Meyering  <meyering@redhat.com>
69546         * lib/posixtm.c: Remove now-useless declaration of mktime.
69548         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
69550 2008-12-07  Bruno Haible  <bruno@clisp.org>
69552         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
69553         test_once): Mark functions as static.
69554         * tests/test-tls.c (test_tls): Likewise.
69556 2008-12-07  Bruno Haible  <bruno@clisp.org>
69558         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
69559         iconv_register_autodetect.
69561 2008-12-07  Jim Meyering  <meyering@redhat.com>
69563         posixtm.c: avoid a warning
69564         * lib/posixtm.c (posixtime): Don't initialize tm0.
69565         It's no longer needed to placate gcc4's -Wuninitialized,
69566         and the attempt to placate would elicit a new warning.
69568         unicodeio.c: mark unused parameters
69569         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69570         (fallback_failure_callback): Likewise.
69572 2008-12-07  Bruno Haible  <bruno@clisp.org>
69574         * gnulib-tool (func_create_testdir): When building the tests
69575         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
69576         Reported by Simon Josefsson.
69578 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69580         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
69582 2008-12-06  Bruno Haible  <bruno@clisp.org>
69584         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
69585         Suggested by Eric Blake.
69587 2008-12-06  Bruno Haible  <bruno@clisp.org>
69589         Fix a c-stack test failure on MacOS X.
69590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
69591         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
69592         handler for SIGBUS as well.
69593         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
69594         install a signal handler for SIGBUS as well.
69595         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
69597 2008-12-06  Bruno Haible  <bruno@clisp.org>
69599         Advocacy documentation.
69600         * doc/gnulib-intro.texi (Benefits): New section.
69601         * doc/gnulib.texi: Update.
69603 2008-12-06  Bruno Haible  <bruno@clisp.org>
69605         Document the 'manywarnings' module.
69606         * doc/manywarnings.texi: New file.
69607         * doc/gnulib.texi: Include it.
69609 2008-12-05  Eric Blake  <ebb9@byu.net>
69611         tests: silence some gcc warnings
69612         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
69613         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
69614         type mismatches.
69616 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69617             Bruno Haible  <bruno@clisp.org>
69619         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
69621 2008-11-29  Jim Meyering  <meyering@redhat.com>
69623         unicodeio.c: mark unused parameters
69624         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69625         (fallback_failure_callback): Likewise.
69627         fts: fix a thinko
69628         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
69629         (set_stat_type): Return S_IF*-valued "type" directly.
69630         Prompted by James Youngman's spotting a related bug.
69631         Confirmed by further testing through find.
69633         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
69634         * lib/fts.c (D_TYPE): Define.
69635         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
69636         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
69637         (s_ifmt_shift_bits): New function.
69638         (set_stat_type): New function.
69639         (fts_build): When not calling fts_stat, call set_stat_type
69640         to propagate dirent.d_type info to fts_read caller.
69641         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
69642         fts_statp->st_mode type information may be valid.
69644 2008-11-28  Simon Josefsson  <simon@josefsson.org>
69646         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
69647         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
69648         <sds@gnu.org>.
69650 2008-11-20  Bruno Haible  <bruno@clisp.org>
69652         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
69653         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
69654         INCLUDE_NEXT.
69655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
69656         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
69657         * modules/math (Makefile.am): Substitute
69658         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
69659         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69661 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
69662             Bruno Haible  <bruno@clisp.org>
69664         * lib/stdint.in.h: Define all type macros so that their expansion is
69665         a single typedef'ed token. Fixes a compilation failure in Boost which
69666         does "using ::int8_t;".
69668 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69670         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
69671         gl_MANYWARN_ALL_GCC.
69672         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
69673         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
69674         * modules/manywarnings: New file.
69675         * MODULES.html.sh: Mention manywarnings module.
69677 2008-11-18  Bruno Haible  <bruno@clisp.org>
69679         * doc/gnulib-tool.texi (Unit tests): New section.
69681 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69683         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
69684         paths like 'lib/po/foo.po'.
69686 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69688         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
69689         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
69691 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69693         * m4/warnings.m4: Use CPPFLAGS to really check whether the
69694         parameter works.
69696 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69698         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
69700 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69702         * modules/parse-duration-tests: New file.
69703         * tests/test-parse-duration.sh: New file.
69704         * tests/test-parse-duration.c: New file.
69706         New module 'parse-duration'.
69707         * lib/parse-duration.h: New file.
69708         * lib/parse-duration.c: New file.
69709         * modules/parse-duration: New file.
69711 2008-11-17  Bruno Haible  <bruno@clisp.org>
69713         * tests/test-select-out.sh: Comment out the first pipe test.
69714         Reported by Simon Josefsson.
69716 2008-11-17  Bruno Haible  <bruno@clisp.org>
69718         * modules/getaddrinfo (Depends-on): Add servent, hostent.
69719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
69720         gl_HOSTENT.
69722 2008-11-17  Bruno Haible  <bruno@clisp.org>
69724         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
69725         -lnetwork and -lnet. Needed for Haiku and BeOS.
69727 2008-11-16  Bruno Haible  <bruno@clisp.org>
69729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
69731 2008-11-16  Bruno Haible  <bruno@clisp.org>
69733         Avoid test failure on Haiku.
69734         * tests/test-fsync.c: Include <errno.h>.
69735         (main): Don't require that fsync (0) fails.
69737 2008-11-15  Bruno Haible  <bruno@clisp.org>
69739         New module 'hostent'.
69740         * modules/hostent: New file.
69741         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
69743 2008-11-15  Bruno Haible  <bruno@clisp.org>
69745         New module 'servent'.
69746         * modules/servent: New file.
69747         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
69749 2008-11-15  Bruno Haible  <bruno@clisp.org>
69751         Avoid generating same test program with two different rules.
69752         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
69753         test-frexp to test-frexp-nolibm.
69754         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
69755         test-frexpl to test-frexpl-nolibm.
69757 2008-11-15  Bruno Haible  <bruno@clisp.org>
69759         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
69760         $(FREXPL_LIBM).
69762 2008-11-15  Bruno Haible  <bruno@clisp.org>
69764         * lib/netdb.in.h: Activate the definitions also when the system's
69765         <netdb.h> has 'struct addrinfo'.
69766         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
69767         EAI_OVERFLOW or AI_NUMERICSERV.
69768         * doc/posix-headers/netdb.texi: Document the problem.
69770 2008-11-15  Bruno Haible  <bruno@clisp.org>
69772         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
69774         Make the 'sched' module work on platforms where <sched.h> exists but
69775         is incomplete (such as Haiku).
69776         * lib/sched.in.h; Include the system's <sched.h> if it exists.
69777         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
69778         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
69779         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
69780         HAVE_STRUCT_SCHED_PARAM.
69781         * modules/sched (Depends-on): Add include_next.
69782         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
69783         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
69784         * doc/posix-headers/sched.texi: Document the issue.
69786 2008-11-13  Jim Meyering  <meyering@redhat.com>
69788         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
69789         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
69790         test would fail due to the difference in the Report bugs to ...
69791         line.  The expected address is empty, "<>", while the actual
69792         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
69794 2008-11-12  Bruno Haible  <bruno@clisp.org>
69796         lstat: don't compile lstat.c on systems lacking lstat
69797         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
69798         which don't have lstat; this is handled by lib/sys_stat.in.h already.
69799         Reported by Daniel P. Berrange via Jim Meyering.
69801 2008-11-12  Jim Meyering  <meyering@redhat.com>
69803         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
69805 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69807         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
69808         instead.
69810 2008-11-12  Bruno Haible  <bruno@clisp.org>
69812         * lib/unicodeio.c: Include unistr.h.
69813         (utf8_wctomb): Remove function.
69814         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
69816 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69818         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
69819         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
69820         <bruno@clisp.org>.
69821         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
69823 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69825         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
69826         * doc/gnulib.texi: Add section for warnings.
69828 2008-11-11  Bruno Haible  <bruno@clisp.org>
69830         * lib/sockets.h: Add a comment.
69832 2008-11-11  Karl Berry  <karl@gnu.org>
69834         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
69836 2008-11-11  Eric Blake  <ebb9@byu.net>
69838         fdl.texi: avoid git symlinks
69839         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
69841 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69843         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
69845 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69847         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
69848         (gl_WARN_ADD): Substitute $2 if literal.
69850 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69852         * m4/warning.m4: Remove.
69854 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69856         * m4/warnings.m4: Almost complete rewrite. :-)
69858 2008-11-10  Simon Josefsson  <simon@josefsson.org>
69860         * modules/warnings: New module.
69861         * m4/warnings.m4: New file.
69862         * MODULES.html.sh: Mention warnings module.
69863         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
69864         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69866 2008-11-10  Eric Blake  <ebb9@byu.net>
69868         fdl.texi: make a symlink to the latest version
69869         * doc/standards.texi: Revert today's earlier change.
69870         * doc/fdl-1.2.texi: Rename from old fdl.texi...
69871         * doc/fdl.texi: ...and replace this with a symlink to the newer
69872         fdl-1.3.texi.
69874 2008-11-10  Bruno Haible  <bruno@clisp.org>
69876         * tests/test-select-fd.c (main): Accept the result file name as fourth
69877         argument.
69878         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
69879         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
69881 2008-11-10  Bruno Haible  <bruno@clisp.org>
69883         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
69884         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
69885         as autoconf-substituted macros.
69886         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
69887         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
69888         gl_NETDB_H_DEFAULTS. Set these variables.
69889         * modules/netdb (Makefile.am): Substitute these variables.
69891 2008-11-10  Eric Blake  <ebb9@byu.net>
69893         standards.texi: include correct file for FDL 1.3
69894         * doc/standards.texi (GNU Free Documentation License): Change
69895         include file to pull in FDL 1.3, not 1.2.
69897         fdl.texi: revert accidental change to license
69898         * doc/fdl.texi: This is FDL 1.2, not 1.3.
69900 2008-11-10  Bruno Haible  <bruno@clisp.org>
69902         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
69903         cross-compiling guesses also when the native compile gives no result.
69905 2008-11-10  Bruno Haible  <bruno@clisp.org>
69907         * lib/spawni.c (__spawni): Force variable into the stack.
69909 2008-11-10  Bruno Haible  <bruno@clisp.org>
69911         Add support for Haiku.
69912         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
69913         glibc and BeOS, but also on Haiku.
69914         * lib/fpurge.c (fpurge): Likewise.
69915         * lib/freadable.c (freadable): Likewise.
69916         * lib/freadahead.c (freadahead): Likewise.
69917         * lib/freading.c (freading): Likewise.
69918         * lib/freadptr.c (freadptr): Likewise.
69919         * lib/freadseek.c (freadptrinc): Likewise.
69920         * lib/fseeko.c (rpl_fseeko): Likewise.
69921         * lib/fseterr.c (fseterr): Likewise.
69922         * lib/fwritable.c (fwritable): Likewise.
69923         * lib/fwriting.c (fwriting): Likewise.
69924         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
69926 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
69928         * lib/config.charset: Treat Haiku like BeOS.
69930 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
69932         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
69933         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
69935 2008-11-08  Bruno Haible  <bruno@clisp.org>
69937         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
69938         AC_CACHE_CHECK.
69940 2008-11-08  Bruno Haible  <bruno@clisp.org>
69942         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
69944 2008-11-08  Bruno Haible  <bruno@clisp.org>
69946         * tests/test-select-fd.c: New file.
69947         * tests/test-select-in.sh: New file.
69948         * tests/test-select-out.sh: New file.
69949         * tests/test-select-stdin.c: New file.
69950         * modules/select-tests (Files): Add the new files.
69951         (Depends-on): Add gettimeofday.
69952         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
69953         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
69954         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
69956 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
69957             Bruno Haible  <bruno@clisp.org>
69959         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
69961 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
69963         * build-aux/pmccabe2html: Added support for C++ source files.
69965 2008-11-05  Ben Pfaff  <blp@gnu.org>
69967         Fix lib/close.c build on Windows.
69968         * modules/close (Files): Add lib/w32sock.h.
69970 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
69972         Accept Bison's NEWS format.
69973         * build-aux/announce-gen (print_news_deltas): Tweak
69974         $re_prefix.
69976 2008-11-04  Bruno Haible  <bruno@clisp.org>
69978         * modules/random_r (Maintainer): Add glibc.
69980 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69982         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
69983         by karl@freefriends.org (Karl Berry).
69984         * doc/alloca.texi: Likewise.
69985         * doc/c-ctype.texi: Likewise.
69986         * doc/c-strcase.texi: Likewise.
69987         * doc/c-strcaseeq.texi: Likewise.
69988         * doc/c-strcasestr.texi: Likewise.
69989         * doc/c-strstr.texi: Likewise.
69990         * doc/c-strtod.texi: Likewise.
69991         * doc/c-strtold.texi: Likewise.
69992         * doc/ctime.texi: Likewise.
69993         * doc/error.texi: Likewise.
69994         * doc/fdl.texi: Likewise.
69995         * doc/gcd.texi: Likewise.
69996         * doc/getdate.texi: Likewise.
69997         * doc/gnulib-intro.texi: Likewise.
69998         * doc/gnulib-tool.texi: Likewise.
69999         * doc/gnulib.texi: Likewise.
70000         * doc/inet_ntoa.texi: Likewise.
70001         * doc/maintain.texi: Likewise.
70002         * doc/make-stds.texi: Likewise.
70003         * doc/quote.texi: Likewise.
70004         * doc/regexprops-generic.texi: Likewise.
70005         * doc/standards.texi: Likewise.
70006         * doc/verify.texi: Likewise.
70007         * doc/visibility.texi: Likewise.
70008         * doc/gnulib.texi (GNU Free Documentation License): Include
70009         fdl-1.3.texi instead of fdl.texi.
70011 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70013         * doc/fdl-1.3.texi: New file, from
70014         <http://www.gnu.org/licenses/fdl-1.3.texi>.
70015         * modules/fdl-1.3: Add.
70016         * MODULES.html.sh: Add fdl-1.3.
70018 2008-11-03  Bruno Haible  <bruno@clisp.org>
70020         Make determination of absolute name of header file work with AIX xlc.
70021         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
70022         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
70023         preprocessing.
70024         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70025         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
70027 2008-11-03  Simon Josefsson  <simon@josefsson.org>
70029         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
70030         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
70031         <ludo@gnu.org>.
70033 2008-11-02  Bruno Haible  <bruno@clisp.org>
70035         Mark 'strpbrk' obsolete.
70036         * modules/strpbrk (Status, Notice): New sections.
70037         * modules/strtok_r (Depends-on): Add strpbrk.
70039 2008-11-02  Bruno Haible  <bruno@clisp.org>
70041         Mark 'strdup' obsolete.
70042         * modules/strdup (Status, Notice): New sections.
70043         * modules/findprog (Depends-on): Add strdup.
70044         * modules/getaddrinfo (Depends-on): Likewise.
70045         * modules/localename (Depends-on): Likewise.
70046         * modules/relocatable-lib (Depends-on): Likewise.
70047         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
70048         * modules/relocatable-prog (Depends-on): Likewise.
70049         * modules/trim (Depends-on): Likewise.
70050         * modules/unictype/gen-ctype (Depends-on): Likewise.
70051         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70053 2008-11-02  Bruno Haible  <bruno@clisp.org>
70055         Mark 'strcspn' obsolete.
70056         * modules/strcspn (Status, Notice): New sections.
70058 2008-11-02  Bruno Haible  <bruno@clisp.org>
70060         Mark 'rmdir' obsolete.
70061         * modules/rmdir (Status, Notice): New sections.
70062         * modules/clean-temp (Depends-on): Add rmdir.
70063         * modules/openat (Depends-on): Likewise.
70065 2008-11-02  Bruno Haible  <bruno@clisp.org>
70067         Mark 'raise' obsolete.
70068         * modules/raise (Status, Notice): New sections.
70069         (Include): Specify <signal.h>.
70070         * modules/stdio (Depends-on): Add raise.
70071         * modules/write (Depends-on): Likewise.
70073 2008-11-02  Bruno Haible  <bruno@clisp.org>
70075         Mark 'memset' obsolete.
70076         * modules/memset (Status, Notice): New sections.
70078 2008-11-02  Bruno Haible  <bruno@clisp.org>
70080         Mark 'memmove' obsolete.
70081         * modules/memmove (Status, Notice): New sections.
70082         * modules/argp (Depends-on): Add memmove.
70083         * modules/argz (Depends-on): Likewise.
70084         * modules/canonicalize (Depends-on): Likewise.
70085         * modules/canonicalize-lgpl (Depends-on): Likewise.
70086         * modules/fts (Depends-on): Likewise.
70087         * modules/getcwd (Depends-on): Likewise.
70088         * modules/human (Depends-on): Likewise.
70089         * modules/regex (Depends-on): Likewise.
70090         * modules/striconveh (Depends-on): Likewise.
70091         * modules/trim (Depends-on): Likewise.
70092         * modules/unistr/u8-move (Depends-on): Likewise.
70093         * modules/unistr/u16-move (Depends-on): Likewise.
70094         * modules/unistr/u32-move (Depends-on): Likewise.
70096 2008-11-02  Bruno Haible  <bruno@clisp.org>
70098         Mark 'memcpy' obsolete.
70099         * modules/memcpy (Status, Notice): New sections.
70101 2008-11-02  Bruno Haible  <bruno@clisp.org>
70103         Mark 'memcmp' obsolete.
70104         * modules/memcmp (Status, Notice): New sections.
70105         * modules/argmatch (Depends-on): Add memchr.
70106         * modules/backupfile (Depends-on): Likewise.
70107         * modules/c-strcasestr (Depends-on): Likewise.
70108         * modules/crypto/des (Depends-on): Likewise.
70109         * modules/csharpcomp (Depends-on): Likewise.
70110         * modules/fnmatch (Depends-on): Likewise.
70111         * modules/git-merge-changelog (Depends-on): Likewise.
70112         * modules/isnand (Depends-on): Likewise.
70113         * modules/isnand-nolibm (Depends-on): Likewise.
70114         * modules/isnanf (Depends-on): Likewise.
70115         * modules/isnanf-nolibm (Depends-on): Likewise.
70116         * modules/isnanl (Depends-on): Likewise.
70117         * modules/isnanl-nolibm (Depends-on): Likewise.
70118         * modules/mbchar (Depends-on): Likewise.
70119         * modules/memcoll (Depends-on): Likewise.
70120         * modules/quotearg (Depends-on): Likewise.
70121         * modules/regex (Depends-on): Likewise.
70122         * modules/relocatable-prog (Depends-on): Likewise.
70123         * modules/same (Depends-on): Likewise.
70124         * modules/signbit (Depends-on): Likewise.
70125         * modules/strcasestr-simple (Depends-on): Likewise.
70126         * modules/unictype/gen-ctype (Depends-on): Likewise.
70127         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70128         * modules/uniname/uniname (Depends-on): Likewise.
70129         * modules/unistr/u8-cmp (Depends-on): Likewise.
70131 2008-11-02  Bruno Haible  <bruno@clisp.org>
70133         Mark 'memchr' obsolete.
70134         * modules/memchr (Status, Notice): New sections.
70135         * modules/argp (Depends-on): Add memchr.
70136         * modules/base64 (Depends-on): Likewise.
70137         * modules/c-strcasestr (Depends-on): Likewise.
70138         * modules/chdir-long (Depends-on): Likewise.
70139         * modules/fnmatch (Depends-on): Likewise.
70140         * modules/getsubopt (Depends-on): Likewise.
70141         * modules/git-merge-changelog (Depends-on): Likewise.
70142         * modules/glob (Depends-on): Likewise.
70143         * modules/strcasestr-simple (Depends-on): Likewise.
70144         * modules/strnlen (Depends-on): Likewise.
70146 2008-11-02  Bruno Haible  <bruno@clisp.org>
70148         Mark 'atexit' obsolete.
70149         * modules/atexit (Status, Notice): New sections.
70150         * modules/chdir-long (Depends-on): Add atexit.
70151         * modules/wait-process (Depends-on): Likewise.
70153 2008-11-02  Bruno Haible  <bruno@clisp.org>
70155         * gnulib-tool: New option --with-obsolete.
70156         (func_usage): Document it.
70157         (func_modules_transitive_closure): Drop obsolete dependencies if
70158         incobsolete is not true.
70159         (func_import): Read and save the incobsolete variable to the cache.
70161 2008-11-02  Bruno Haible  <bruno@clisp.org>
70163         * modules/TEMPLATE-EXTENDED: New field 'Status'.
70164         * gnulib-tool: New option --extract-status.
70165         (func_usage): Document it.
70166         (sed_extract_prog): Recognize it.
70167         (func_get_status): New function.
70169 2008-10-30  Simon Josefsson  <simon@josefsson.org>
70171         * modules/sockets (License): Change from LGPL to LGPLv2+.
70173 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70175         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
70177 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70179         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70180         Mention times and sys_times.
70181         * modules/sys_times, modules/sys_times-tests: New modules.
70182         * modules/times, modules/times-tests: Likewise
70183         * m4/sys_times_h.m4: New file.
70184         * lib/sys_times.in.h: Likewise
70185         * lib/times.c: Likewise.
70186         * tests/test-sys_times.c: Likewise.
70187         * tests/test-times.c: Likewise.
70188         * doc/posix-headers/sys_times.texi: Update.
70189         * doc/posix-functions/times.texi: Update.
70191 2008-10-28  Jim Meyering  <meyering@redhat.com>
70193         * modules/tempname (Depends-on): Add lstat.
70195         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
70197 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70199         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
70200         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
70201         using idiom used elsewhere in gnulib.
70203 2008-10-27  Jim Meyering  <meyering@redhat.com>
70205         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
70207 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70209         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
70210         TESTS_ENVIRONMENT, for shell scripts that needs to call built
70211         programs.
70212         * tests/test-argp-2.sh: Use $EXEEXT when needed.
70214 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70216         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
70218 2008-10-27  Bruno Haible  <bruno@clisp.org>
70220         * tests/test-lstat.c: Include <stdio.h>.
70222 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70224         * modules/lstat-tests: New module.
70225         * tests/test-lstat.c: New file.
70227 2008-10-26  Jim Meyering  <meyering@redhat.com>
70229         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
70231 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70232             Bruno Haible  <bruno@clisp.org>
70234         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
70235         * modules/configmake (Include): Add a note that the include must come
70236         after all system headers.
70237         * lib/javaversion.c: Include configmake.h after all other includes.
70239 2008-10-26  Bruno Haible  <bruno@clisp.org>
70241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
70242         HAVE_STRUCT_RANDOM_DATA to 1.
70243         (gl_STDLIB_H): Simplify.
70245 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70247         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
70248         substitute HAVE_STRUCT_RANDOM_DATA.
70249         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
70250         random_data.
70251         * modules/stdlib (Makefile.am): Substitute
70252         HAVE_STRUCT_RANDOM_DATA.
70254 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70256         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
70257         * doc/gnulib-intro.texi (Copyright): Likewise.
70259 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70261         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
70262         findings.
70264 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
70265             Bruno Haible  <bruno@clisp.org>
70267         * lib/unistd.in.h: Include <winsock2.h>.
70268         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
70269         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
70270         Provide dummy declarations.
70271         (gethostname): Override.
70272         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
70273         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
70274         gl_PREREQ_SYS_H_WINSOCK2.
70275         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
70276         * doc/posix-functions/gethostname.texi: More details.
70278 2008-10-25  Bruno Haible  <bruno@clisp.org>
70280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
70281         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
70282         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
70284         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
70285         here ...
70286         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
70287         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
70288         gl_UNISTD_H_DEFAULTS.
70290 2008-10-25  Eric Blake  <ebb9@byu.net>
70292         signbit: avoid spurious compiler failure
70293         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
70294         declarations inside function.
70296 2008-10-24  Simon Josefsson  <simon@josefsson.org>
70297             Bruno Haible  <bruno@clisp.org>
70299         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
70300         * modules/random_r (Depends-on): Add stdint.
70302 2008-10-24  Bruno Haible  <bruno@clisp.org>
70304         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
70305         Eggert.
70306         * modules/strerror (License): Likewise.
70308 2008-10-24  Jim Meyering  <meyering@redhat.com>
70310         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
70311         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
70313 2008-10-24  Eric Blake  <ebb9@byu.net>
70315         getgroups: fix compilation when getgroups is available
70316         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
70317         but with <config.h> override of getgroups disabled.
70319 2008-10-24  Simon Josefsson  <simon@josefsson.org>
70321         * doc/gnulib.texi (Header files): Add note about C++ problems.
70322         Explained by Bruno Haible <bruno@clisp.org>.
70324 2008-10-23  Bruno Haible  <bruno@clisp.org>
70326         Define a dummy SA_NODEFER macro on Interix.
70327         * lib/signal.in.h (SA_NODEFER): Define fallback.
70328         Reported by Aleksey Cheusov <cheusov@tut.by> via
70329         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
70331 2008-10-23  Bruno Haible  <bruno@clisp.org>
70333         * modules/freadahead (License): Change to LGPLv2+.
70334         Suggested by Simon Josefsson.
70336 2008-10-23  Jim Meyering  <meyering@redhat.com>
70338         random_r: new module
70339         * modules/random_r: New file.
70340         * m4/random_r.m4: New file.
70341         * lib/random_r.c: New file, from glibc.
70342         * modules/random_r-tests: New file.
70343         * tests/test-random_r.c: New file.
70344         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
70345          Declare.
70346         (RAND_MAX): Define.
70347         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
70348         * modules/stdlib: Substitute them, too.
70349         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
70350         * doc/glibc-functions/initstate_r.texi: Mention the new module.
70351         * doc/glibc-functions/random_r.texi: Likewise.
70352         * doc/glibc-functions/setstate_r.texi: Likewise.
70353         * doc/glibc-functions/srandom_r.texi: Likewise.
70354         * config/srclist.txt: Mention it.
70356 2008-10-23  David Lutterkort  <lutter@redhat.com>
70358         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
70359         link requirement
70361 2008-10-23  Jim Meyering  <meyering@redhat.com>
70363         selinux-h: mark parameters of stub functions as intentionally unused
70364         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
70365         * lib/se-context.in.h: Likewise.
70367 2008-10-22  Simon Josefsson  <simon@josefsson.org>
70369         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
70371 2008-10-22  Simon Josefsson  <simon@josefsson.org>
70373         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
70375 2008-10-22  Eric Blake  <ebb9@byu.net>
70377         glthread/thread: avoid compiler warning
70378         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
70379         Add unreachable abort to silence compiler.
70381 2008-10-22  Eric Blake  <ebb9@byu.net>
70383         netdb: also supply struct addrinfo for cygwin 1.5.x
70384         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
70385         older cygwin.
70386         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
70387         cygwin.
70388         * doc/posix-headers/netdb.texi (netdb.h): Document this.
70390 2008-10-22  Bruno Haible  <bruno@clisp.org>
70392         * users.txt: Update entry about pspp.
70394 2008-10-21  Bruno Haible  <bruno@clisp.org>
70396         Simplification.
70397         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
70398         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
70400         Simplification.
70401         * lib/ioctl.c (ioctl): Don't undefine.
70402         * lib/socket.c (socket): Don't undefine.
70404         Remove unused module indicator macros.
70405         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
70406         GNULIB_$1 as a C macro.
70408         * doc/posix-functions/close.texi: Undo last change.
70409         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
70410         Windows platforms.
70412 2008-10-21  Bruno Haible  <bruno@clisp.org>
70414         Add gethostname() declaration to <unistd.h>.
70415         * lib/unistd.in.h (gethostname): New declaration.
70416         * lib/gethostname.c: Include <unistd.h>.
70417         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
70418         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
70419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
70420         and HAVE_GETHOSTNAME.
70421         * modules/gethostname (Depends-on): Add unistd.
70422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70423         (Include): Specify <unistd.h>.
70424         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
70425         HAVE_GETHOSTNAME.
70426         * tests/test-gethostname.c: Include <unistd.h> first.
70428 2008-10-21  Bruno Haible  <bruno@clisp.org>
70430         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
70431         * modules/select-tests (Depends-on): Likewise.
70432         Reported by Simon Josefsson.
70434 2008-10-21  Simon Josefsson  <simon@josefsson.org>
70436         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
70437         * lib/accept.c: New file, based on winsock.c.
70438         * lib/bind.c: New file, based on winsock.c.
70439         * lib/connect.c: New file, based on winsock.c.
70440         * lib/getpeername.c: New file, based on winsock.c.
70441         * lib/getsockname.c: New file, based on winsock.c.
70442         * lib/getsockopt.c: New file, based on winsock.c.
70443         * lib/ioctl.c: New file, based on winsock.c.
70444         * lib/listen.c: New file, based on winsock.c.
70445         * lib/recv.c: New file, based on winsock.c.
70446         * lib/recvfrom.c: New file, based on winsock.c.
70447         * lib/send.c: New file, based on winsock.c.
70448         * lib/sendto.c: New file, based on winsock.c.
70449         * lib/setsockopt.c: New file, based on winsock.c.
70450         * lib/shutdown.c: New file, based on winsock.c.
70451         * lib/socket.c: New file, based on winsock.c.
70452         * lib/w32sock.h: New file, based on winsock.c.
70453         * lib/winsock.c: Remove file.
70454         * modules/accept: Likewise.
70455         * modules/bind: Likewise.
70456         * modules/connect: Likewise.
70457         * modules/getpeername: Likewise.
70458         * modules/getsockname: Likewise.
70459         * modules/getsockopt: Likewise.
70460         * modules/ioctl: Likewise.
70461         * modules/listen: Likewise.
70462         * modules/recv: Likewise.
70463         * modules/recvfrom: Likewise.
70464         * modules/send: Likewise.
70465         * modules/sendto: Likewise.
70466         * modules/setsockopt: Likewise.
70467         * modules/shutdown: Likewise.
70468         * modules/socket: Use socket.c instead of winsock.c.
70469         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
70470         * doc/posix-functions/accept.texi: Doc fix.
70471         * doc/posix-functions/bind.texi: Doc fix.
70472         * doc/posix-functions/close.texi: Doc fix.
70473         * doc/posix-functions/connect.texi: Doc fix.
70474         * doc/posix-functions/getpeername.texi: Doc fix.
70475         * doc/posix-functions/getsockname.texi: Doc fix.
70476         * doc/posix-functions/getsockopt.texi: Doc fix.
70477         * doc/posix-functions/ioctl.texi: Doc fix.
70478         * doc/posix-functions/listen.texi: Doc fix.
70479         * doc/posix-functions/recv.texi: Doc fix.
70480         * doc/posix-functions/recvfrom.texi: Doc fix.
70481         * doc/posix-functions/send.texi: Doc fix.
70482         * doc/posix-functions/sendto.texi: Doc fix.
70483         * doc/posix-functions/setsockopt.texi: Doc fix.
70484         * doc/posix-functions/shutdown.texi: Doc fix.
70485         * doc/posix-functions/socket.texi: Doc fix.
70487 2008-10-20  Bruno Haible  <bruno@clisp.org>
70489         Take into account the role of SIGABRT_COMPAT on Windows 2008.
70490         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
70491         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
70492         as an alias for SIGABRT.
70493         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
70494         (sigaction): Map it to SIGABRT.
70495         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
70497 2008-10-20  Bruno Haible  <bruno@clisp.org>
70499         * lib/fts.c: Don't include lstat.h.
70500         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
70502         Move the lstat() declaration to <sys/stat.h>.
70503         * lib/lstat.h: Remove file.
70504         * lib/sys_stat.in.h: Add special invocation convention.
70505         (lstat): New declaration.
70506         * lib/lstat.c (orig_lstat): New function.
70507         (rpl_lstat): Use orig_lstat instead of lstat.
70508         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
70509         AC_C_INLINE. Set REPLACE_LSTAT.
70510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
70511         and REPLACE_LSTAT.
70512         * modules/lstat (Files): Remove lib/lstat.h.
70513         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70514         (Include): Specify <sys/stat.h> instead of lstat.h.
70515         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
70516         REPLACE_LSTAT.
70517         * NEWS: Mention the change.
70519 2008-10-20  Bruno Haible  <bruno@clisp.org>
70521         * modules/posix_spawn-tests: New file.
70522         * tests/test-posix_spawn3.c: New file.
70524 2008-10-20  Bruno Haible  <bruno@clisp.org>
70526         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
70527         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
70528         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
70529         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
70530         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
70532 2008-10-20  Bruno Haible  <bruno@clisp.org>
70534         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
70535         of posix_spawn on AIX 5.3.
70537 2008-10-20  Bruno Haible  <bruno@clisp.org>
70539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
70541 2008-10-20  Bruno Haible  <bruno@clisp.org>
70543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
70544         of AC_LANG_PROGRAM.
70546 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70548         * lib/netdb.in.h: Don't define GNU specific constants until they
70549         are supported or needed.  Reported by Bruno Haible
70550         <bruno@clisp.org>.
70552 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70554         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
70556 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70558         * lib/getaddrinfo.h: Remove file.
70559         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
70560         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
70561         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
70562         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
70563         * modules/netdb: Substitute GNULIB_GETADDRINFO.
70564         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
70565         * tests/test-getaddrinfo.c: Likewise.
70566         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
70567         * NEWS: Mention change.
70569 2008-10-19  Bruno Haible  <bruno@clisp.org>
70571         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
70573 2008-10-19  Bruno Haible  <bruno@clisp.org>
70575         * lib/wait-process.c: Include simply <sys/wait.h>.
70576         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
70577         WIFSTOPPED): Remove fallback definitions.
70578         * modules/wait-process (Depends-on): Add sys_wait.
70580         New module 'sys_wait'.
70581         * modules/sys_wait: New file.
70582         * lib/sys_wait.in.h: New file, partially copied from
70583         lib/wait-process.c.
70584         * m4/sys_wait_h.m4: New file.
70585         * doc/posix-headers/sys_wait.texi: Mention the new module.
70587 2008-10-19  Bruno Haible  <bruno@clisp.org>
70589         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
70591 2008-10-19  Bruno Haible  <bruno@clisp.org>
70593         Assume that waitpid() fills an 'int' status, not a 'union wait'.
70594         * lib/wait-process.c (WAIT_T): Remove type.
70595         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
70596         (wait_subprocess): Update.
70598 2008-10-19  Bruno Haible  <bruno@clisp.org>
70600         New module 'atoll'.
70601         * modules/atoll: New file.
70602         * lib/stdlib.in.h (atoll): New declaration.
70603         * lib/atoll.c: New file, from glibc with modifications.
70604         * m4/atoll.m4: New file.
70605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
70606         HAVE_ATOLL.
70607         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
70608         * doc/posix-functions/atoll.texi: Mention the new module.
70610 2008-10-19  Bruno Haible  <bruno@clisp.org>
70612         Add strtoull() declaration to <stdlib.h>.
70613         * lib/stdlib.in.h (strtoull): New declaration.
70614         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70615         Set HAVE_STRTOULL.
70616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
70617         HAVE_STRTOULL.
70618         * modules/strtoull (Depends-on): Add stdlib.
70619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70620         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
70621         HAVE_STRTOULL.
70623 2008-10-19  Bruno Haible  <bruno@clisp.org>
70625         Add strtoll() declaration to <stdlib.h>.
70626         * lib/stdlib.in.h (strtoll): New declaration.
70627         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70628         Set HAVE_STRTOLL.
70629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
70630         HAVE_STRTOLL.
70631         * modules/strtoll (Depends-on): Add stdlib.
70632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70633         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
70635 2008-10-19  Bruno Haible  <bruno@clisp.org>
70637         * modules/bcopy (Depends-on): Add strings.
70638         (Include): Specify <strings.h>.
70640 2008-10-19  Bruno Haible  <bruno@clisp.org>
70642         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
70644 2008-10-19  Bruno Haible  <bruno@clisp.org>
70646         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
70647         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
70648         mingw.
70650 2008-10-19  Bruno Haible  <bruno@clisp.org>
70652         * lib/atanl.c: Don't include isnanl.h.
70653         * lib/cosl.c: Likewise.
70654         * lib/ldexpl.c: Likewise.
70655         * lib/logl.c: Likewise.
70656         * lib/sinl.c: Likewise.
70657         * lib/sqrtl.c: Likewise.
70658         * lib/tanl.c: Likewise.
70660         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
70661         * lib/isnanf.h: Remove file.
70662         * lib/isnand.h: Remove file.
70663         * lib/isnanl.h: Remove file.
70664         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
70665         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
70666         macros.
70667         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
70668         HAVE_ISNANF, don't define it as a C macro.
70669         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
70670         HAVE_ISNAND, don't define it as a C macro.
70671         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
70672         HAVE_ISNANL, don't define it as a C macro.
70673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
70674         HAVE_ISNAN[FDL].
70675         * modules/isnanf (Files): Remove lib/isnanf.h.
70676         (Depends-on): Add math.
70677         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70678         (Include): Specify <math.h> instead of isnanf.h.
70679         * modules/isnand (Files): Remove lib/isnand.h.
70680         (Depends-on): Add math.
70681         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70682         (Include): Specify <math.h> instead of isnand.h.
70683         * modules/isnanl (Files): Remove lib/isnanl.h.
70684         (Depends-on): Add math.
70685         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70686         (Include): Specify <math.h> instead of isnanl.h.
70687         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
70688         HAVE_ISNAN[FDL].
70689         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
70690         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
70691         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
70692         * NEWS: Mention the change.
70694 2008-10-18  Bruno Haible  <bruno@clisp.org>
70696         Add getusershell(), setusershell(), endusershell() declarations to
70697         <unistd.h>.
70698         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
70699         declarations.
70700         * lib/getusershell.c: Include unistd.h.
70701         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
70702         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70703         HAVE_GETUSERSHELL.
70704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
70705         and HAVE_GETUSERSHELL.
70706         * modules/getusershell (Depends-on): Add unistd, extensions.
70707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70708         (Include): Specify <unistd.h>.
70709         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
70710         HAVE_GETUSERSHELL.
70712 2008-10-18  Bruno Haible  <bruno@clisp.org>
70714         Add a getloadavg() declaration to <stdlib.h>.
70715         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
70716         getloadavg declaration.
70717         (getloadavg): New declaration.
70718         * lib/getloadavg.c: Include <stdlib.h> first.
70719         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
70720         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
70721         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
70722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
70723         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70724         * modules/getloadavg (Depends-on): Add stdlib, extensions.
70725         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70726         (Include): Specify <stdlib.h>.
70727         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
70728         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70730 2008-10-18  Bruno Haible  <bruno@clisp.org>
70732         * lib/dirchownmod.c: Don't include lchmod.h.
70734         Move the lchmod() declaration to <sys/stat.h>.
70735         * lib/lchmod.h: Remove file.
70736         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
70737         (lchmod): New declaration, moved here from lib/lchown.h.
70738         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
70739         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
70740         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
70741         and HAVE_LCHMOD.
70742         * modules/lchmod (Files): Remove lib/lchmod.h.
70743         (Depends-on): Add sys_stat, extensions.
70744         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70745         (Include): Specify <sys/stat.h> instead of lchmod.h.
70746         * modules/sys_stat (Depends-on): Add link-warning.
70747         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
70748         definition of GL_LINK_WARNING.
70749         * NEWS: Mention the change.
70751 2008-10-18  Bruno Haible  <bruno@clisp.org>
70753         * lib/fchdir.c: Don't include dirfd.h.
70754         * lib/fts.c: Likewise.
70755         * lib/getcwd.c: Likewise.
70756         * lib/glob.c: Likewise.
70758         Move the dirfd() declaration to <dirent.h>.
70759         * lib/dirfd.h: Remove file.
70760         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
70761         (dirfd): New declaration.
70762         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
70763         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
70764         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
70765         HAVE_DECL_DIRFD.
70766         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
70767         HAVE_DECL_DIRFD.
70768         * modules/dirfd (Files): Remove lib/dirfd.h.
70769         (Depends-on): Add dirent, extensions.
70770         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
70771         (Include): Specify <dirent.h> instead of dirfd.h.
70772         * modules/dirent (Depends-on): Add link-warning.
70773         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
70774         definition of GL_LINK_WARNING.
70775         * NEWS: Mention the change.
70777 2008-10-18  Bruno Haible  <bruno@clisp.org>
70779         Move the euidaccess() declaration to <unistd.h>.
70780         * lib/euidaccess.h: Remove file.
70781         * lib/unistd.in.h (euidaccess): New declaration.
70782         * lib/euidaccess.c: Don't include euidaccess.h.
70783         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
70784         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
70785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
70786         and HAVE_EUIDACCESS.
70787         * modules/euidaccess (Files): Remove lib/euidaccess.h.
70788         (Depends-on): Add unistd.
70789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70790         (Include): Specify <unistd.h> instead of euidaccess.h.
70791         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
70792         HAVE_EUIDACCESS.
70793         * NEWS: Mention the change.
70795 2008-10-18  Bruno Haible  <bruno@clisp.org>
70797         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
70799         Move the getdomainname() declaration to <unistd.h>.
70800         * lib/getdomainname.h: Remove file.
70801         * lib/unistd.in.h (getdomainname): New declaration.
70802         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
70803         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
70804         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70805         HAVE_GETDOMAINNAME.
70806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70807         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
70808         * modules/getdomainname (Files): Remove lib/getdomainname.h.
70809         (Depends-on): Add unistd, extensions.
70810         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70811         (Includes): Specify <unistd.h> instead of getdomainname.h.
70812         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
70813         HAVE_GETDOMAINNAME.
70814         * NEWS: Mention the change.
70816 2008-10-18  Bruno Haible  <bruno@clisp.org>
70818         * modules/dirent: New file.
70819         * m4/dirent_h.m4: New file.
70820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
70821         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
70822         * modules/fchdir (Files): Remove lib/dirent.in.h.
70823         (Depends-on): Add dirent.
70824         (Makefile.am): Move rules to modules/dirent.
70825         * doc/posix-headers/dirent.texi: Mention the new module.
70827 2008-10-18  Bruno Haible  <bruno@clisp.org>
70829         Avoid -Wunused-parameter warnings in public gnulib header files.
70830         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
70831         macro.
70832         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
70834 2008-10-18  Bruno Haible  <bruno@clisp.org>
70836         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
70837         * doc/glibc-functions/error.texi: Mention the module 'error'.
70838         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
70839         * doc/glibc-functions/getdomainname.texi: Mention the module
70840         'getdomainname'.
70841         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
70842         * doc/glibc-functions/getpagesize.texi: Mention the module
70843         'getpagesize'.
70844         * doc/glibc-functions/getusershell.texi: Mention the module
70845         'getusershell'.
70846         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
70847         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
70848         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
70849         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
70850         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
70851         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
70852         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
70853         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
70854         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
70855         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
70856         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
70857         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
70858         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
70859         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
70861 2008-10-17  Bruno Haible  <bruno@clisp.org>
70863         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
70864         HP-UX and IRIX, use -0.0L.
70865         * tests/test-ceill.c (minus_zero): Likewise.
70866         * tests/test-floorl.c (minus_zero): Likewise.
70867         * tests/test-frexpl.c (minus_zero): Likewise.
70868         * tests/test-isnan.c (minus_zerol): Likewise.
70869         * tests/test-isnanl.h (minus_zero): Likewise.
70870         * tests/test-ldexpl.c (minus_zero): Likewise.
70871         * tests/test-roundl.c (minus_zero): Likewise.
70872         * tests/test-signbit.c (minus_zerol): Likewise.
70873         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
70874         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
70875         * tests/test-truncl.c (minus_zero): Likewise.
70876         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
70877         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
70878         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
70879         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
70881 2008-10-17  Bruno Haible  <bruno@clisp.org>
70883         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
70884         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
70885         that it gets activated only for gcc >= 3.0.
70886         * lib/dirent.in.h: Likewise.
70887         * lib/errno.in.h: Likewise.
70888         * lib/fcntl.in.h: Likewise.
70889         * lib/float.in.h: Likewise.
70890         * lib/iconv.in.h: Likewise.
70891         * lib/inttypes.in.h: Likewise.
70892         * lib/locale.in.h: Likewise.
70893         * lib/math.in.h: Likewise.
70894         * lib/netdb.in.h: Likewise.
70895         * lib/netinet_in.in.h: Likewise.
70896         * lib/search.in.h: Likewise.
70897         * lib/signal.in.h: Likewise.
70898         * lib/spawn.in.h: Likewise.
70899         * lib/stdarg.in.h: Likewise.
70900         * lib/stdint.in.h: Likewise.
70901         * lib/stdio.in.h: Likewise.
70902         * lib/stdlib.in.h: Likewise.
70903         * lib/string.in.h: Likewise.
70904         * lib/strings.in.h: Likewise.
70905         * lib/sys_file.in.h: Likewise.
70906         * lib/sys_ioctl.in.h: Likewise.
70907         * lib/sys_select.in.h: Likewise.
70908         * lib/sys_socket.in.h: Likewise.
70909         * lib/sys_stat.in.h: Likewise.
70910         * lib/sys_time.in.h: Likewise.
70911         * lib/sysexits.in.h: Likewise.
70912         * lib/time.in.h: Likewise.
70913         * lib/unistd.in.h: Likewise.
70914         * lib/wchar.in.h: Likewise.
70915         * lib/wctype.in.h: Likewise.
70916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70918 2008-10-17  Jim Meyering  <meyering@redhat.com>
70920         ignore-value: don't depend on inline module
70921         * modules/ignore-value (Depends-on): Remove 'inline'.
70922         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
70923         Suggestion from Bruno Haible.
70925 2008-10-17  Bruno Haible  <bruno@clisp.org>
70927         New implementation of condition variables for Win32.
70928         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
70929         (gl_linked_waitqueue_t): New type.
70930         (gl_cond_t): Use it.
70931         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
70932         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
70933         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
70934         (glthread_cond_init_func, glthread_cond_wait_func,
70935         glthread_cond_timedwait_func, glthread_cond_signal_func,
70936         glthread_cond_broadcast_func, glthread_cond_destroy_func):
70937         Reimplemented on the basis of gl_linked_waitqueue_t.
70938         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
70939         gl_waitqueue_t.
70940         (gl_rwlock_t): Update.
70941         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
70943 2008-10-17  Simon Josefsson  <simon@josefsson.org>
70945         * modules/recvfrom (Depends-on): Add dependency on getpeername.
70946         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70948 2008-10-17  Jim Meyering  <meyering@redhat.com>
70950         ignore-value: new module
70951         * modules/ignore-value: New file.
70952         * lib/ignore-value.h: New file.
70953         * MODULES.html.sh (Compiler warning management): New section,
70954         just for this module.  More to come.
70956 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70958         open-safer.c: avoid 'signed and unsigned in conditional...' warning
70959         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
70960         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
70962 2008-10-16  Jim Meyering  <meyering@redhat.com>
70964         openat-die.c: avoid 'no previous prototype' warning
70965         * lib/openat-die.c: Include "openat.h".
70966         Reported by Reuben Thomas <rrt@sc3d.org>.
70968 2008-10-16  Simon Josefsson  <simon@josefsson.org>
70970         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
70971         * lib/netdb.in.h: Fix typo.
70972         Reported by Bruno Haible  <bruno@clisp.org>
70974         * lib/netdb.in.h: Include sys/socket.h for platforms without
70975         netdb.h, to get structures like hostent on MinGW.
70976         * modules/netdb (Depends-on): Add sys_socket.
70978 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70980         * modules/netdb, modules/netdb-tests: New file.
70981         * m4/netdb_h.m4: New file.
70982         * lib/netdb.in.h: Add, currently just an empty file pending
70983         definitions.
70984         * tests/test-netdb.c: New file.
70985         * doc/posix-headers/netdb.texi: Mention that we replace it if
70986         needed.
70987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70988         netdb.
70990 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70992         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
70993         with code.
70995 2008-10-13  Bruno Haible  <bruno@clisp.org>
70997         * lib/glthread/cond.c (glthread_cond_wait_func,
70998         glthread_cond_timedwait_func): Add a comment.
71000 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71002         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
71003         * tests/test-select.c: Likewise,
71005 2008-10-13  Bruno Haible  <bruno@clisp.org>
71007         * lib/glthread/cond.c (glthread_cond_wait_func,
71008         glthread_cond_timedwait_func): Fix variable name.
71009         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71011 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
71013         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
71014         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
71015         struct sockaddr.sa_len.
71016         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
71018 2008-10-13  Simon Josefsson  <simon@josefsson.org>
71020         * build-aux/pmccabe2html: Add css and css_url parameters.
71022 2008-10-12  Bruno Haible  <bruno@clisp.org>
71024         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
71025         calling aclx_get.
71026         Reported by Rainer Tammer <tammer@tammer.net>.
71028 2008-10-12  Bruno Haible  <bruno@clisp.org>
71030         Use msvcrt aware primitives for creation/termination of Win32 threads.
71031         * lib/glthread/thread.c: Include <process.h>.
71032         (glthread_create_func): Use _beginthreadex instead of CreateThread.
71033         (wrapper_func): Update signature.
71034         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
71036 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71037             Bruno Haible  <bruno@clisp.org>
71039         Provide a Win32 implementation of the 'cond' module.
71040         * lib/glthread/cond.h [USE_WIN32]: New implementation.
71041         * lib/glthread/cond.c (glthread_cond_init_func,
71042         glthread_cond_wait_func, glthread_cond_timedwait_func,
71043         glthread_cond_signal_func, glthread_cond_broadcast_func,
71044         glthread_cond_destroy_func) [USE_WIN32]: New functions.
71045         * modules/cond (Dependencies): Add gettimeofday.
71047 2008-10-11  Bruno Haible  <bruno@clisp.org>
71049         Make sleep work on older versions of mingw.
71050         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
71051         only whether it exists.
71052         * doc/posix-functions/sleep.texi: Mention the problem with older
71053         versions of mingw.
71055 2008-10-11  Bruno Haible  <bruno@clisp.org>
71057         New module 'shutdown'.
71058         * modules/shutdown: New file.
71059         * lib/sys_socket.in.h (shutdown): New declaration.
71060         * lib/winsock.c (shutdown): New function.
71061         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71062         GNULIB_SHUTDOWN.
71063         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
71064         * doc/posix-functions/shutdown.texi: Document the new module.
71066 2008-10-11  Jim Meyering  <meyering@redhat.com>
71068         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
71070 2008-10-11  Bruno Haible  <bruno@clisp.org>
71072         New module 'fclose'.
71073         * modules/fclose: New file.
71074         * lib/stdio.in.h (fclose): New declaration.
71075         * lib/fclose.c: New file.
71076         * m4/fclose.m4: New file.
71077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
71078         REPLACE_FCLOSE.
71079         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
71080         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
71081         REPLACE_FCLOSE.
71082         * modules/close (Depends-on): fclose.
71083         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
71085 2008-10-11  Bruno Haible  <bruno@clisp.org>
71087         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
71088         set errno and don't call _close.
71090 2008-10-10  Bruno Haible  <bruno@clisp.org>
71092         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
71093         ACL, not afterwards. Fixes test failure on Cygwin.
71095 2008-10-09  Ben Pfaff  <blp@gnu.org>
71097         * build-aux/announce-gen: Fix gnulib version related part of usage
71098         message.  Die with a useful error message if no tarballs are
71099         found.
71101 2008-10-10  Jim Meyering  <meyering@redhat.com>
71103         bootstrap: use git's --depth=N option only if it's supported
71104         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
71105         recognize the --depth option.  Reported by Pádraig Brady.
71107 2008-10-09  Bruno Haible  <bruno@clisp.org>
71109         New module 'ioctl'.
71110         * modules/ioctl: New file.
71111         * lib/sys_socket.in.h (ioctl): Remove declaration.
71112         * lib/winsock.c: Include <sys/ioctl.h>.
71113         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
71114         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71115         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
71116         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
71117         * doc/posix-functions/ioctl.texi: Mention the new module.
71119 2008-10-09  Bruno Haible  <bruno@clisp.org>
71121         New module 'sys_ioctl'.
71122         * lib/sys_ioctl.in.h: New file.
71123         * m4/sys_ioctl_h.m4: New file.
71124         * modules/sys_ioctl: New file.
71125         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
71127 2008-10-09  Bruno Haible  <bruno@clisp.org>
71129         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
71130         * lib/winsock.c: Include <stdarg.h>.
71131         (rpl_ioctl): Change to second argument 'int' and then varargs.
71133 2008-10-09  Bruno Haible  <bruno@clisp.org>
71135         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
71136         when the sys_socket module is present and the system has <winsock2.h>.
71138 2008-10-09  Bruno Haible  <bruno@clisp.org>
71140         * doc/posix-functions/close.texi: Mention module 'close' instead of
71141         module 'sys_socket'.
71143 2008-10-09  Bruno Haible  <bruno@clisp.org>
71145         * doc/glibc-headers/sys_ioctl.texi: New file.
71146         * doc/gnulib.texi: Include it.
71148 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71149             Bruno Haible  <bruno@clisp.org>
71151         Combine the two replacements of 'close'.
71152         * lib/sys_socket.in.h (close): Define to a reminder to include
71153         <unistd.h>.
71154         (_gl_close_fd_maybe_socket): New declaration.
71155         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
71156         * lib/winsock.c (close): Remove undefinition.
71157         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
71158         needed for the gnulib module 'close'.
71159         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
71160         define to an error symbol or to a warning, if suitable.
71161         * lib/close.c: Include <sys/socket.h>.
71162         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
71163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
71164         UNISTD_H_HAVE_WINSOCK2_H.
71165         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
71166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71167         UNISTD_H_HAVE_WINSOCK2_H.
71168         * modules/sys_socket (Files): Add m4/unistd_h.m4.
71169         (configure.ac): Set a module indicator.
71170         (Makefile.am): Substitute GNULIB_CLOSE.
71171         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
71172         * modules/poll-tests (Depends-on): Add close.
71173         * modules/select-tests (Depends-on): Likewise.
71175 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71176             Bruno Haible  <bruno@clisp.org>
71178         New module 'close'.
71179         * modules/close: New file.
71180         * lib/unistd.in.h (close): Move declaration out of the
71181         FCHDIR_REPLACEMENT scope.
71182         (_gl_unregister_fd): New declaration.
71183         * lib/close.c: New file.
71184         * lib/fchdir.c (rpl_close): Remove function.
71185         * m4/close.m4: New file.
71186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71187         close.
71188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
71189         REPLACE_CLOSE.
71190         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
71191         REPLACE_CLOSE.
71192         * modules/fchdir (Depends-on): Add close.
71194 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71195             Bruno Haible  <bruno@clisp.org>
71197         * lib/fcntl.in.h (open): Simplify conditionals.
71198         (_gl_register_fd): New declaration.
71199         * lib/fchdir.c (rpl_open): Remove function.
71200         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
71201         also.
71202         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
71203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71204         open.
71206 2008-10-09  Jim Meyering  <meyering@redhat.com>
71208         GNUmakefile: use the more name-space-friendly "_version"
71209         * top/GNUmakefile (_dummy): Update.
71210         (_version): Rename from "version".
71212 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71213             Bruno Haible  <bruno@clisp.org>
71215         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
71216         rpl_close.
71217         (_gl_register_fd): New function, extracted from rpl_open.
71218         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
71219         (rpl_open, rpl_opendir): Use _gl_register_fd.
71221 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71223         Fix organization of 'open' replacement.
71224         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
71225         (gl_FUNC_OPEN): Use it.
71226         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
71228 2008-10-08  Bruno Haible  <bruno@clisp.org>
71230         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
71232 2008-10-08  Simon Josefsson  <simon@josefsson.org>
71234         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
71235         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
71236         listen).
71238 2008-10-08  Eric Blake  <ebb9@byu.net>
71240         GNUmakefile: add 'make version' target
71241         * top/GNUmakefile (_curr-ver): Split version update rules...
71242         (version): ...into a target.
71244 2008-10-07  Bruno Haible  <bruno@clisp.org>
71246         Use a more portable replacement expression for -0.0L.
71247         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
71248         instead of -0.0L. Fix m4 quotation.
71250         * tests/test-signbit.c: Include <float.h>.
71251         (minus_zero): New variable.
71252         (test_signbitl): Use minus_zero instead of -zero.
71253         * modules/signbit-tests (Depends-on): Add float.
71255         * tests/test-ceill.c: Include <float.h>.
71256         (zero): Remove variable.
71257         (minus_zero): New variable.
71258         (main): Use minus_zero instead of -zero.
71259         * modules/ceill-tests (Depends-on): Add float.
71261         * tests/test-floorl.c: Include <float.h>.
71262         (zero): Remove variable.
71263         (minus_zero): New variable.
71264         (main): Use minus_zero instead of -zero.
71265         * modules/floorl-tests (Depends-on): Add float.
71267         * tests/test-roundl.c: Include <float.h>.
71268         (zero): Remove variable.
71269         (minus_zero): New variable.
71270         (main): Use minus_zero instead of -zero.
71271         * modules/roundl-tests (Depends-on): Add float.
71273         * tests/test-truncl.c: Include <float.h>.
71274         (zero): Remove variable.
71275         (minus_zero): New variable.
71276         (main): Use minus_zero instead of -zero.
71277         * modules/truncl-tests (Depends-on): Add float.
71279         * tests/test-frexpl.c (zero): Remove variable.
71280         (minus_zero): New variable.
71281         (main): Use minus_zero instead of -zero.
71282         * modules/frexpl-tests (Depends-on): Add float.
71284         * tests/test-isnan.c (zerol): Remove variable.
71285         (minus_zerol): New variable.
71286         (test_long_double): Use minus_zerol instead of -zerol.
71287         * modules/isnan-tests (Depends-on): Add float.
71289         * tests/test-isnanl.h (zero): Remove variable.
71290         (minus_zero): New variable.
71291         (main): Use minus_zero instead of -zero.
71292         * modules/isnanl-nolibm-tests (Depends-on): Add float.
71293         * modules/isnanl-tests (Depends-on): Add float.
71295         * tests/test-ldexpl.c (zero): Remove variable.
71296         (minus_zero): New variable.
71297         (main): Use minus_zero instead of -zero.
71298         * modules/ldexpl-tests (Depends-on): Add float.
71300         * tests/test-snprintf-posix.h (zerol): Remove variable.
71301         (minus_zerol): New variable.
71302         (test_function): Use minus_zerol instead of -zerol.
71303         * modules/snprintf-posix-tests (Depends-on): Add float.
71304         * modules/vsnprintf-posix-tests (Depends-on): Add float.
71306         * tests/test-sprintf-posix.h (zerol): Remove variable.
71307         (minus_zerol): New variable.
71308         (test_function): Use minus_zerol instead of -zerol.
71309         * modules/sprintf-posix-tests (Depends-on): Add float.
71310         * modules/vsprintf-posix-tests (Depends-on): Add float.
71312         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
71313         (minus_zerol): New variable.
71314         (test_function): Use minus_zerol instead of -zerol.
71315         * modules/vasnprintf-posix-tests (Depends-on): Add float.
71317         * tests/test-vasprintf-posix.c (zerol): Remove variable.
71318         (minus_zerol): New variable.
71319         (test_function): Use minus_zerol instead of -zerol.
71320         * modules/vasprintf-posix-tests (Depends-on): Add float.
71322 2008-10-07  Simon Josefsson  <simon@josefsson.org>
71324         * MODULES.html.sh (Support for building documentation): Mention
71325         pmccabe2html.  Sort entries.
71327         Add pmccabe2html module, from gnupdf.
71328         * build-aux/pmccabe.css: New file.
71329         * build-aux/pmccabe2html: New file.
71330         * m4/pmccabe2html.m4: New file.
71331         * modules/pmccabe2html: New file.
71333 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
71335         flock: new module
71336         * MODULES.html.sh: Add to list of modules.
71337         * lib/flock.c: flock implementation for Windows and Unix systems
71338         which have fcntl.
71339         * doc/glibc-functions/flock.texi: Update documentation.
71340         * lib/sys_file.in.h: <sys/file.h> header file.
71341         * m4/flock.m4: M4 macros.
71342         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
71343         * modules/flock: flock module.
71344         * modules/flock-tests: flock tests module.
71345         * modules/sys_file: sys/file.h module.
71346         * tests/test-flock.c: test suite for flock.
71348 2008-10-06  Jim Meyering  <meyering@redhat.com>
71350         bootstrap: check for LT_INIT more portably still ;-)
71351         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
71352         Spotted by Bruno Haible.
71354 2008-10-06  Eric Blake  <ebb9@byu.net>
71356         test-signbit: avoid tripping Irix cc bug on -0.0L
71357         * tests/test-signbit.c (minus_zerol): Delete, and replace with
71358         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
71359         entire testsuite consistent and avoids an Irix 6.2 bug.
71361 2008-10-05  Bruno Haible  <bruno@clisp.org>
71362             Jim Meyering  <jim@meyering.net>
71364         Add an option for ignoring EPIPE during close_stdout.
71365         * lib/closeout.h: Include <stdbool.h>.
71366         (close_stdout_set_ignore_EPIPE): New declaration.
71367         * lib/closeout.c: Include <stdbool.h>.
71368         (ignore_EPIPE): New variable.
71369         (close_stdout_set_ignore_EPIPE): New function.
71370         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
71371         * lib/close-stream.c (close_stream): Mention the possible EPIPE
71372         failure.
71373         * modules/closeout (Depends-on): Add stdbool.
71375 2008-10-05  Bruno Haible  <bruno@clisp.org>
71377         * modules/accept: New file.
71378         * modules/bind: New file.
71379         * modules/connect: New file.
71380         * modules/getpeername: New file.
71381         * modules/getsockname: New file.
71382         * modules/getsockopt: New file.
71383         * modules/listen: New file.
71384         * modules/recv: New file.
71385         * modules/recvfrom: New file.
71386         * modules/send: New file.
71387         * modules/sendto: New file.
71388         * modules/setsockopt: New file.
71389         * modules/socket: New file.
71390         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
71391         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71392         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
71393         the particular module is requested. Add a link warning when the
71394         particular module is not requested.
71395         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
71396         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
71397         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
71398         the particular module is requested.
71399         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
71400         gl_SYS_SOCKET_H_DEFAULTS): New macros.
71401         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
71402         * modules/sys_socket (Depends-on): Add link-warning.
71403         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
71404         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
71405         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
71406         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
71407         GL_LINK_WARNING.
71408         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
71409         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
71410         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
71411         * doc/posix-functions/getpeername.texi: Mention the new module
71412         'getpeername'.
71413         * doc/posix-functions/getsockname.texi: Mention the new module
71414         'getsockname'.
71415         * doc/posix-functions/getsockopt.texi: Mention the new module
71416         'getsockopt'.
71417         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
71418         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
71419         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
71420         * doc/posix-functions/send.texi: Mention the new module 'send'.
71421         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
71422         * doc/posix-functions/setsockopt.texi: Mention the new module
71423         'setsockopt'.
71424         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
71425         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
71426         listen, connect, accept.
71427         * modules/select-tests (Depends-on): Likewise.
71429 2008-10-05  Bruno Haible  <bruno@clisp.org>
71431         * lib/winsock.c (strerror): Remove unused #undef.
71432         (rpl_close): Remove unused local variable.
71434         * modules/sys_socket (Depends-on); Add errno.
71436 2008-10-05  Bruno Haible  <bruno@clisp.org>
71438         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
71439         (select): Add a link warning when the 'select' module is not used.
71440         * modules/sys_select (Depends-on): Add link-warning.
71441         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
71442         Suggested by Paolo Bonzini.
71444 2008-10-05  Jim Meyering  <meyering@redhat.com>
71446         bootstrap: check for LT_INIT more portably
71447         * build-aux/bootstrap: Avoid using grep -E, since it's not
71448         portable enough.  Suggestion from Bruno Haible.
71450 2008-10-05  Bruno Haible  <bruno@clisp.org>
71452         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
71453         as being fixed by gnulib.
71455 2008-10-05  Bruno Haible  <bruno@clisp.org>
71457         * modules/select-tests: New file, mostly copied from
71458         modules/sys_select-tests.
71459         * tests/test-select.c: New file, mostly copied from
71460         tests/test-sys_select.c.
71461         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
71462         * modules/sys_select-tests (Depends-on): Remove all dependencies.
71463         (Makefile.am): Remove test_sys_select_LDADD.
71465         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
71466         to an undefined symbol, for an error message.
71467         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
71468         (gl_SYS_SELECT_H_DEFAULTS): New macro.
71469         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
71470         winsock-select.c here.
71471         * modules/sys_select (Files): Remove lib/winsock-select.c.
71472         (Depends-on): Remove alloca.
71473         (Makefile.am): Substitute GNULIB_SELECT.
71474         * modules/select: New file.
71475         * doc/posix-functions/select.texi: Update.
71477 2008-10-05  Bruno Haible  <bruno@clisp.org>
71479         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
71480         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
71481         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
71482         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
71483         getdtablesize.
71484         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
71485         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
71487 2008-10-05  Bruno Haible  <bruno@clisp.org>
71489         * modules/getdtablesize-tests: New file.
71490         * tests/test-getdtablesize.c: New file.
71492         New module 'getdtablesize'.
71493         * lib/unistd.in.h (getdtablesize): New declaration.
71494         * lib/getdtablesize.c: New file.
71495         * m4/getdtablesize.m4: New file.
71496         * modules/getdtablesize: New file.
71497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71498         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
71499         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
71500         HAVE_GETDTABLESIZE.
71501         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
71503 2008-10-05  Bruno Haible  <bruno@clisp.org>
71505         * modules/sched (Makefile.am): Fix typo.
71506         Reported by Simon Josefsson.
71508 2008-10-05  Jim Meyering  <meyering@redhat.com>
71510         bootstrap: check for LT_INIT, too
71511         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
71512         are deprecated.  Suggestion from Ralf Wildenhues.
71514 2008-10-05  Bruno Haible  <bruno@clisp.org>
71516         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
71517         overriding them by ours.
71518         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
71520 2008-10-05  Jim Meyering  <meyering@redhat.com>
71522         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
71523         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
71524         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
71526 2008-10-04  Bruno Haible  <bruno@clisp.org>
71528         * modules/dup2 (License): Change to LGPLv2+.
71529         * modules/sleep (License): Likewise.
71530         * modules/perror (License): Likewise.
71531         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
71532         Blake.
71533         * modules/signal (License): Likewise.
71534         * modules/sigprocmask (License): Likewise.
71535         * modules/raise (License): Change to LGPLv2+, with approval by Jim
71536         Meyering.
71538 2008-10-04  Bruno Haible  <bruno@clisp.org>
71540         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
71541         Reported by Rainer Tammer <tammer@tammer.net>.
71543 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
71544             Bruno Haible  <bruno@clisp.org>
71546         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
71547         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
71548         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
71550 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
71552         filevercmp: new module
71553         * lib/filevercmp.h: New function filevercmp comparing version strings.
71554         * lib/filevercmp.c: Implementation of filevercmp function.
71555         * modules/filevercmp: Module metadata.
71556         * tests/test-filevercmp.c: Unit test for new module.
71557         * modules/filevercmp-tests: Unit test metadata.
71558         * MODULES.html.sh: Add filevercmp module.
71560 2008-10-03  Bruno Haible  <bruno@clisp.org>
71562         * lib/c-ctype.h: Add comment.
71563         Reported by Jim Meyering.
71565 2008-10-02  Bruno Haible  <bruno@clisp.org>
71567         * modules/posix_spawn-internal (Depends-on): Add 'open'.
71569 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71571         * build-aux/bootstrap: Allow renaming bootstrap, and change the
71572         name of bootstrap.conf accordingly.
71574 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71576         * build-aux/bootstrap: Install git-merge-changelog configuration
71577         items into .gitconfig if needed.
71579 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71581         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
71582         git repository, and initialize/update it accordingly.
71584 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
71586         * modules/fsync-tests: New file.
71587         * tests/test-fsync.c: New file.
71589         New module 'fsync'.
71590         * lib/fsync.c: New file.
71591         * m4/fsync.m4: New file.
71592         * modules/fsync: New file.
71593         * lib/unistd.in.h (fsync): New declaration.
71594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
71595         GNULIB_FSYNC and HAVE_FSYNC.
71596         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
71597         * MODULES.html.sh (posix_functions): Add fsync.
71598         * doc/posix-functions/fsync.texi: Mention the new module.
71600 2008-10-02  Jim Meyering  <meyering@redhat.com>
71602         fts.c: sync with similar code from coreutils' remove.c
71603         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
71604         Guard also with "#if defined __linux__", since for now at least,
71605         this code is Linux-kernel-specific.
71607 2008-10-02  Jim Meyering  <meyering@redhat.com>
71609         fts: bug fixes
71610         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
71611         Include <sys/vfs.h>, not <sys/statfs.h>.
71613         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
71614         Include <sys/vfs.h>, not <sys/statfs.h>.
71616 2008-10-01  Bruno Haible  <bruno@clisp.org>
71618         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
71619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
71620         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
71621         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
71622         * doc/posix-functions/posix_spawnp.texi: Likewise.
71623         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
71624         whether posix_spawn actually works.
71625         * m4/pipe.m4 (gl_PIPE): Likewise.
71626         * modules/execute (Files): Add m4/posix_spawn.m4.
71627         * modules/pipe (Files): Add m4/posix_spawn.m4.
71628         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
71630 2008-10-01  Jim Meyering  <meyering@redhat.com>
71632         remove trailing spaces
71633         * NEWS: Likewise.
71634         * lib/poll.c (poll): Likewise.
71635         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
71636         * lib/winsock.c (rpl_close): Likewise.
71637         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
71638         * modules/yield: Likewise.
71639         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
71640         * tests/test-sys_select.c (connect_to_socket): Likewise.
71642         fts.c: adjust a new interface to be more generally useful
71643         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
71644         (fts_build): Adjust caller.
71646 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71648         * modules/cond-tests: New file.
71649         * tests/test-cond.c: New file.
71651 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71652             Bruno Haible  <bruno@clisp.org>
71654         * modules/cond (Dependencies): Add errno, time.
71655         * lib/glthread/cond.h: Include <time.h>.
71656         (gl_cond_define, gl_cond_define_initialized): Use the same definition
71657         across platforms.
71659 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71660             Bruno Haible  <bruno@clisp.org>
71662         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
71664 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71665             Bruno Haible  <bruno@clisp.org>
71667         * modules/tls-tests (Depends-on): Add thread, yield.
71668         (configure.ac): Remove all checks.
71669         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
71670         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71671         gl_thread_self): Remove definitions. Include glthread/thread.h and
71672         glthread/yield.h instead.
71673         (test_tls): Pass an additional NULL argument to gl_thread_join.
71675 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71676             Bruno Haible  <bruno@clisp.org>
71678         * modules/lock-tests (Depends-on): Add thread, yield.
71679         (configure.ac): Remove all checks.
71680         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
71681         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71682         gl_thread_self): Remove definitions. Include glthread/thread.h and
71683         glthread/yield.h instead.
71684         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
71685         additional NULL argument to gl_thread_join.
71687 2008-09-30  Bruno Haible  <bruno@clisp.org>
71689         Fix the Win32 implementation of the 'thread' module.
71690         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
71691         pointer type.
71692         (gl_thread_self): Invoke gl_thread_self_func.
71693         (gl_thread_self_func): New declaration.
71694         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
71695         (do_init_self_key, init_self_key): New functions.
71696         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
71697         Remove some fields.
71698         (running_threads, running_lock): Remove variables.
71699         (get_current_thread_handle): New function.
71700         (gl_thread_self_func, wrapper_func, glthread_create_func,
71701         glthread_join_func, gl_thread_exit_func): Largely rewritten and
71702         simplified.
71704 2008-09-30  Bruno Haible  <bruno@clisp.org>
71706         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
71707         files.
71709 2008-09-30  Jim Meyering  <meyering@redhat.com>
71711         fts.m4: correct the test for statfs.f_type
71712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
71713         when checking for statfs.f_type.
71715 2008-09-15  Simon Josefsson  <simon@josefsson.org>
71717         tests: avoid some compiler warnings
71718         * tests/test-memchr.c (main): Pass NULL indirectly.
71719         * tests/test-getdate.c (main): Remove unused variable 'ret'.
71721 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
71723         getdate.y: disallow countable dayshifts like "4 yesterday ago"
71724         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
71725         exactly specified dayshifts.
71726         (dayshift): New rule.
71727         (rel): Add dayshift.
71728         (relative_time_table) [tomorrow, yesterday, today, now]:
71729         Use tDAY_SHIFT in place of tDAY_UNIT.
71730         * tests/test-getdate.c: Add tests for now-disallowed countable
71731         dayshifts, e.g., "4 yesterday ago".
71733 2008-09-29  Bruno Haible  <bruno@clisp.org>
71735         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
71736         * tests/test-posix_spawn1.in.sh: Renamed from
71737         tests/test-posix_spawn.in.sh.
71738         * tests/test-posix_spawn2.c: New file.
71739         * tests/test-posix_spawn2.in.sh: New file.
71740         * modules/posix_spawnp-tests (Files): Update.
71741         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
71743 2008-09-29  Bruno Haible  <bruno@clisp.org>
71745         Propagate effects of putenv/setenv/unsetenv to child processes.
71746         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
71747         * lib/pipe.c (create_pipe): Likewise.
71749 2008-09-29  Bruno Haible  <bruno@clisp.org>
71751         Enable use of shell scripts as executables in mingw.
71752         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
71753         run the program as a shell script.
71754         * lib/pipe.c (create_pipe): Likewise.
71755         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
71756         resulting array.
71758 2008-09-29  Eric Blake  <ebb9@byu.net>
71760         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
71762 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
71764         * doc/posix-functions/accept.texi: Update mingw problems.
71765         * doc/posix-functions/bind.texi: Update mingw problems.
71766         * doc/posix-functions/close.texi: Update mingw problems.
71767         * doc/posix-functions/connect.texi: Update mingw problems.
71768         * doc/posix-functions/getpeername.texi: Update mingw problems.
71769         * doc/posix-functions/getsockname.texi: Update mingw problems.
71770         * doc/posix-functions/getsockopt.texi: Update mingw problems.
71771         * doc/posix-functions/ioctl.texi: Update mingw problems.
71772         * doc/posix-functions/listen.texi: Update mingw problems.
71773         * doc/posix-functions/recv.texi: Update mingw problems.
71774         * doc/posix-functions/recvfrom.texi: Update mingw problems.
71775         * doc/posix-functions/select.texi: Update mingw problems.
71776         * doc/posix-functions/send.texi: Update mingw problems.
71777         * doc/posix-functions/sendto.texi: Update mingw problems.
71778         * doc/posix-functions/setsockopt.texi: Update mingw problems.
71779         * doc/posix-functions/socket.texi: Update mingw problems.
71781 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
71782             Bruno Haible  <bruno@clisp.org>
71784         * lib/sys_select.in.h: Include sys/time.h.
71785         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
71786         * modules/sys_select: Depend on sys_time.
71787         * tests/test-sys_select.c: Test that sys/select.h defines struct
71788         timeval fully.
71790 2008-09-29  Bruno Haible  <bruno@clisp.org>
71792         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
71793         * lib/sys_select.in.h: Likewise.
71795 2008-09-29  Bruno Haible  <bruno@clisp.org>
71797         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
71799 2008-09-29  Bruno Haible  <bruno@clisp.org>
71801         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
71802         Set LIBSOCKET instead of augmenting LIBS.
71803         * modules/sockets (Link): New section.
71804         * modules/sockets-tests (test_sockets_LDADD): New variable.
71805         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
71806         * modules/poll-tests (test_poll_LDADD): New variable.
71807         * NEWS: Document the change.
71809 2008-09-29  Bruno Haible  <bruno@clisp.org>
71811         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
71812         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
71813         ARPA_INET_H directly.
71814         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71816 2008-09-28  Bruno Haible  <bruno@clisp.org>
71818         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
71819         from gl_HEADER_SYS_SOCKET.
71820         (gl_HEADER_SYS_SOCKET): Invoke it.
71821         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71823 2008-09-28  Bruno Haible  <bruno@clisp.org>
71825         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
71826         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
71827         Needed on OSF/1 4.0.
71829 2008-09-28  Bruno Haible  <bruno@clisp.org>
71831         Override open more carefully.
71832         * lib/open.c (orig_open): New function.
71833         (rpl_open): Use orig_open instead of open.
71834         * lib/fcntl.in.h: Add special invocation convention.
71835         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
71836         (gl_FUNC_OPEN): Invoke it.
71838         Override freopen more carefully.
71839         * lib/freopen.c (orig_freopen): New function.
71840         (rpl_freopen): Use orig_freopen instead of freopen.
71841         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
71842         (gl_FUNC_FREOPEN): Invoke it.
71844         Override fopen more carefully.
71845         * lib/fopen.c (orig_fopen): New function.
71846         (rpl_fopen): Use orig_fopen instead of fopen.
71847         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
71848         (gl_FUNC_FOPEN): Invoke it.
71849         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
71851 2008-09-28  Bruno Haible  <bruno@clisp.org>
71853         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
71854         SIGPIPE.
71856 2008-09-28  Bruno Haible  <bruno@clisp.org>
71858         * tests/test-sigaction.c (handler, main): Disable the check whether
71859         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
71860         glibc systems with LinuxThreads.
71862 2008-09-28  Bruno Haible  <bruno@clisp.org>
71864         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
71866         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
71867         with AIX xlc.
71868         * lib/fcntl.in.h (open): Likewise.
71869         Reported by Rainer Tammer <tammer@tammer.net>.
71871 2008-09-28  Bruno Haible  <bruno@clisp.org>
71873         * modules/posix_spawnp-tests: New file.
71874         * tests/test-posix_spawn.c: New file.
71875         * tests/test-posix_spawn.in.sh: New file.
71877         New module 'posix_spawnp'.
71878         * modules/posix_spawnp: New file.
71879         * lib/spawnp.c: New file, from GNU libc with modifications.
71880         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
71882         New module 'posix_spawn'.
71883         * modules/posix_spawn: New file.
71884         * lib/spawn.c: New file, from GNU libc with modifications.
71885         * doc/posix-functions/posix_spawn.texi: Mention the new module.
71887         New module 'posix_spawnattr_destroy'.
71888         * modules/posix_spawnattr_destroy: New file.
71889         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
71890         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
71891         module.
71893         New module 'posix_spawnattr_setsigmask'.
71894         * modules/posix_spawnattr_setsigmask: New file.
71895         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
71896         modifications.
71897         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
71898         new module.
71900         New module 'posix_spawnattr_getsigmask'.
71901         * modules/posix_spawnattr_getsigmask: New file.
71902         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
71903         modifications.
71904         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
71905         new module.
71907         New module 'posix_spawnattr_setsigdefault'.
71908         * modules/posix_spawnattr_setsigdefault: New file.
71909         * lib/spawnattr_setdefault.c: New file, from GNU libc with
71910         modifications.
71911         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
71912         new module.
71914         New module 'posix_spawnattr_getsigdefault'.
71915         * modules/posix_spawnattr_getsigdefault: New file.
71916         * lib/spawnattr_getdefault.c: New file, from GNU libc with
71917         modifications.
71918         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
71919         new module.
71921         New module 'posix_spawnattr_setschedpolicy'.
71922         * modules/posix_spawnattr_setschedpolicy: New file.
71923         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
71924         modifications.
71925         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
71926         new module.
71928         New module 'posix_spawnattr_getschedpolicy'.
71929         * modules/posix_spawnattr_getschedpolicy: New file.
71930         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
71931         modifications.
71932         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
71933         new module.
71935         New module 'posix_spawnattr_setschedparam'.
71936         * modules/posix_spawnattr_setschedparam: New file.
71937         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
71938         modifications.
71939         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
71940         new module.
71942         New module 'posix_spawnattr_getschedparam'.
71943         * modules/posix_spawnattr_getschedparam: New file.
71944         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
71945         modifications.
71946         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
71947         new module.
71949         New module 'posix_spawnattr_setpgroup'.
71950         * modules/posix_spawnattr_setpgroup: New file.
71951         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
71952         modifications.
71953         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
71954         module.
71956         New module 'posix_spawnattr_getpgroup'.
71957         * modules/posix_spawnattr_getpgroup: New file.
71958         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
71959         modifications.
71960         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
71961         module.
71963         New module 'posix_spawnattr_setflags'.
71964         * modules/posix_spawnattr_setflags: New file.
71965         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
71966         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
71967         module.
71969         New module 'posix_spawnattr_getflags'.
71970         * modules/posix_spawnattr_getflags: New file.
71971         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
71972         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
71973         module.
71975         New module 'posix_spawnattr_init'.
71976         * modules/posix_spawnattr_init: New file.
71977         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
71978         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
71979         module.
71981         New module 'posix_spawn_file_actions_destroy'.
71982         * modules/posix_spawn_file_actions_destroy: New file.
71983         * lib/spawn_faction_destroy.c: New file, from GNU libc with
71984         modifications.
71985         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
71986         the new module.
71988         New module 'posix_spawn_file_actions_addopen'.
71989         * modules/posix_spawn_file_actions_addopen: New file.
71990         * lib/spawn_faction_addopen.c: New file, from GNU libc with
71991         modifications.
71992         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
71993         the new module.
71995         New module 'posix_spawn_file_actions_adddup2'.
71996         * modules/posix_spawn_file_actions_adddup2: New file.
71997         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
71998         modifications.
71999         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
72000         the new module.
72002         New module 'posix_spawn_file_actions_addclose'.
72003         * modules/posix_spawn_file_actions_addclose: New file.
72004         * lib/spawn_faction_addclose.c: New file, from GNU libc with
72005         modifications.
72006         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
72007         the new module.
72009         New module 'posix_spawn_file_actions_init'.
72010         * modules/posix_spawn_file_actions_init: New file.
72011         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
72012         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
72013         new module.
72015         New module 'posix_spawn-internal'.
72016         * modules/posix_spawn-internal: New file.
72017         * lib/spawn_int.h: New file, from GNU libc with modifications.
72018         * lib/spawni.c: New file, from GNU libc with modifications.
72019         * m4/posix_spawn.m4: New file.
72021         New module 'spawn'.
72022         * modules/spawn: New file.
72023         * lib/spawn.in.h: New file, from GNU libc with modifications.
72024         * m4/spawn_h.m4: New file.
72025         * doc/posix-headers/spawn.texi: Mention the new module.
72027 2008-09-28  Bruno Haible  <bruno@clisp.org>
72029         * modules/sched-tests: New file.
72030         * tests/test-sched.c: New file.
72032         New module 'sched'.
72033         * modules/sched: New file.
72034         * lib/sched.in.h: New file.
72035         * m4/sched_h.m4: New file.
72036         * doc/posix-headers/sched.texi: Mention the new module.
72038 2008-09-27  Eric Blake  <ebb9@byu.net>
72040         Fix previous patch, and tweak references to $0.
72041         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
72042         (func_version, func_gnulib_dir): Don't call this program
72043         gnulib-tool.
72044         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
72045         with using $0 in function.
72046         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
72047         (func_fatal_error): Reuse the name the user invoked us with.
72049 2008-09-27  Bruno Haible  <bruno@clisp.org>
72051         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
72052         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
72053         (gl_ICONV_H): Not here.
72054         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72055         instead of assigning ICONV_H directly.
72057         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
72058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
72059         WCHAR_H directly.
72061 2008-09-27  Bruno Haible  <bruno@clisp.org>
72063         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
72064         * modules/arpa_inet (Depends-on): Add link-warning.
72065         (Makefile.am): Insert the definition of GL_LINK-WARNING.
72066         * modules/unistd (Makefile.am): Likewise.
72068 2008-09-26  Bruno Haible  <bruno@clisp.org>
72070         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
72071         variables.
72072         (func_version): Essentially copied from gnulib-tool.
72073         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
72074         func_readlink): Copied from gnulib-tool.
72076 2008-09-26  Bruno Haible  <bruno@clisp.org>
72078         * gnulib-tool (func_version): Change directory to $gnulib_dir before
72079         invoking git-version-gen.
72081 2008-09-26  Bruno Haible  <bruno@clisp.org>
72083         * posix-modules: Update to directory names changed on 2008-01-19.
72084         Remove commas in output before splitting into words. No more need to
72085         avoid 'ftruncate' since 2007-02-19.
72087 2008-09-26  Bruno Haible  <bruno@clisp.org>
72089         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
72091 2008-09-26  Bruno Haible  <bruno@clisp.org>
72093         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
72094         * modules/fwriteerror (Depends-on): Add errno.
72096 2008-09-26  Bruno Haible  <bruno@clisp.org>
72098         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
72099         * tests/test-vc-list-files-cvs.sh: Likewise.
72101 2008-09-26  Bruno Haible  <bruno@clisp.org>
72103         * doc/posix-headers/sys_resource.texi: Reorder items.
72105 2008-09-26  Jim Meyering  <meyering@redhat.com>
72107         fts: tweak inode comparison function
72108         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
72109         inode numbers, as documented.
72111         fts: sort dirent entries on inode number before traversing
72112         This avoids a quadratic, seek-related performance penalty when
72113         operating on a directory containing many entries (measurable at 10k;
72114         3.5 hours at 2 million entries with a cold cache) on certain types
72115         of file systems, including ext3 and ext4, but not tmpfs.
72116         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
72117         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
72118         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
72119         (fs_handles_readdir_ordered_dirents_efficiently): New function.
72120         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
72121         (fts_build): Set the stat.st_ino member from D_INO.
72122         If it is likely to be useful, sort dirent entries on inode number.
72124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
72125         and the struct statfs.f_type member.
72126         * modules/fts (Depends-on): Add d-ino.
72128 2008-09-26  Bruno Haible  <bruno@clisp.org>
72130         * modules/sigpipe-die (Depends-on): Add sigpipe.
72132         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
72133         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
72134         and GNULIB_STDIO_H_SIGPIPE are set.
72135         * lib/stdio-write.c: New file.
72136         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
72137         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72138         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72139         REPLACE_STDIO_WRITE_FUNCS.
72140         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
72141         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72142         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72143         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72144         * modules/stdio (Files): Add lib/stdio-write.c.
72145         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
72146         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72147         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72148         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72149         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
72150         REPLACE_FPRINTF_POSIX.
72151         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
72152         REPLACE_PRINTF_POSIX.
72153         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
72154         REPLACE_VFPRINTF_POSIX.
72155         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
72156         REPLACE_VPRINTF_POSIX.
72157         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
72158         SIGPIPE issue.
72159         * doc/posix-functions/fputc.texi: Likewise.
72160         * doc/posix-functions/fputs.texi: Likewise.
72161         * doc/posix-functions/fwrite.texi: Likewise.
72162         * doc/posix-functions/printf.texi: Likewise.
72163         * doc/posix-functions/putc.texi: Likewise.
72164         * doc/posix-functions/putchar.texi: Likewise.
72165         * doc/posix-functions/puts.texi: Likewise.
72166         * doc/posix-functions/vfprintf.texi: Likewise.
72167         * doc/posix-functions/vprintf.texi: Likewise.
72169         * modules/safe-write (Depends-on): Add write.
72171         * modules/sigpipe-tests: New file.
72172         * tests/test-sigpipe.c: New file.
72173         * tests/test-sigpipe.sh: New file.
72175         * modules/write: New file.
72176         * lib/unistd.in.h: Include <sys/types.h>.
72177         (write): New declaration.
72178         * lib/write.c: New file.
72179         * m4/write.m4: New file.
72180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72181         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
72182         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
72183         GNULIB_WRITE, REPLACE_WRITE.
72184         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
72185         and the SIGPIPE issue.
72187         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
72188         (raise): New declaration.
72189         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
72190         (ext_signal): New function.
72191         (rpl_raise): New function.
72192         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
72193         GNULIB_SIGNAL_H_SIGPIPE.
72194         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
72195         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
72197         * modules/sigpipe: New file.
72198         * m4/sigpipe.m4: New file.
72200 2008-09-25  Derek Price  <derek@ximbiot.com>
72201             Bruno Haible  <bruno@clisp.org>
72203         * gnulib-tool (func_import): Report all license incompatibilities, not
72204         just the first one.
72206 2008-09-25  Bruno Haible  <bruno@clisp.org>
72208         * gnulib-tool (func_import): When computing the edits, consider not
72209         only the Makefile.ams that exist but also those that will be generated.
72211 2008-09-25  Simon Josefsson  <simon@josefsson.org>
72213         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
72214         fixes gnulib-tool --test warning about duplicate dependency.
72216 2008-09-25  Bruno Haible  <bruno@clisp.org>
72218         * gnulib-tool: Don't ask the user to perform edits in the generated
72219         Makefile.ams.
72220         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
72221         apply to the Makefile.am being generated.
72222         (func_emit_tests_Makefile_am): Execute edits that apply to the
72223         Makefile.am being generated.
72224         (func_import): Setup list of Makefile.am edits before emitting the
72225         Makefile.ams, not at the end.
72226         (func_create_testdir): Update.
72227         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72229 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72231         * gnulib-tool (func_import): Store the --tests-base option in the
72232         comment in gnulib-cache.m4.
72234 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
72236         * NEWS: Document increased portability that sys_select now provides.
72238         * lib/sys_select.in.h: Install select wrapper.
72239         * lib/sys_socket.in.h: Use more descriptive name when there is no
72240         select wrapper.
72241         * lib/winsock-select.c: New.
72242         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
72243         Require gl_HEADER_SYS_SOCKET.
72244         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
72245         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
72246         * tests/test-sys_select.c: Add functional tests.
72248 2008-09-24  Eric Blake  <ebb9@byu.net>
72250         open, fopen: close fd leak in last patch
72251         * lib/open.c (rpl_open): Close fd before returning error.
72252         * lib/fopen.c (rpl_fopen): Close fd before returning error.
72253         * doc/posix-functions/open.texi (open): Document that Irix also
72254         has the bug.
72255         * doc/posix-functions/fopen.texi (fopen): Likewise.
72256         Reported by Paolo Bonzini.
72258 2008-09-24  Bruno Haible  <bruno@clisp.org>
72260         Ensure that a filename ending in a slash cannot be used to access a
72261         non-directory.
72262         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
72263         to check whether it's really a directory.
72264         * lib/fopen.c: Include fcntl.h, unistd.h.
72265         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
72266         and fdopen().
72267         * modules/fopen (Depends-on): Add unistd.
72268         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
72269         * tests/test-fopen.c (main): Likewise.
72270         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
72271         * doc/posix-functions/fopen.texi: Likewise.
72272         Reported by Eric Blake.
72274 2008-09-23  Eric Blake  <ebb9@byu.net>
72276         c-stack: avoid compiler optimizations when provoking overflow
72277         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
72278         recursion harder to optimize, to ensure a stack overflow occurs.
72279         * tests/test-c-stack.c (recurse): Likewise.
72280         Borrowed from libsigsegv.
72282         c-stack: work around Irix sigaltstack bug
72283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
72284         whether sigaltstack uses wrong end of stack_t (copied in part from
72285         libsigsegv).
72286         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
72287         Irix bug, without requiring an over-allocation.
72288         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
72289         bug.
72291         fopen: document mingw bug on directories
72292         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
72293         not allowing a stream visiting a directory, even though reading
72294         from such a stream is not portable.
72296 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72298         * lib/poll.c: Rewrite.
72299         * modules/poll: Depend on alloca.
72301 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72303         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
72304         instead define prototypes for a full set of wrappers.  Ensure
72305         that Cygwin does not use the compatibility code, which is only
72306         for MinGW.
72307         * lib/winsock.c: New.
72308         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
72309         * modules/sys_socket: Add lib/winsock.c.
72311         * modules/poll-tests: Add errno and perror.
72312         * tests/test-poll.c: Use ioctl, not ioctlsocket.
72314 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72316         * tests/test-poll.c: Downgrade minimum needed Winsock version.
72318 2008-09-23  Bruno Haible  <bruno@clisp.org>
72320         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
72321         * doc/glibc-functions/*: Likewise.
72323 2008-09-23  Simon Josefsson  <simon@josefsson.org>
72325         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
72326         success.
72328 2008-09-22  Eric Blake  <ebb9@byu.net>
72329             Bruno Haible  <bruno@clisp.org>
72331         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
72332         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
72333         supply %A but mishandle pseudo-NaN.
72334         Reported by Simon Josefsson.
72336 2008-09-21  Bruno Haible  <bruno@clisp.org>
72338         * tests/test-lock.c (main): Tweak skip message.
72339         * tests/test-tls.c (main): Likewise.
72341 2008-09-21  Bruno Haible  <bruno@clisp.org>
72343         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
72344         whether 'struct sigaction' has sa_sigaction here...
72345         (gl_PREREQ_SIG_HANDLER_H): ... not here.
72346         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
72348 2008-09-21  Bruno Haible  <bruno@clisp.org>
72350         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
72351         section.
72352         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
72353         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
72354         the new section.
72355         (Support for obsolete systems lacking POSIX:2001): New section.
72356         (String handling <string.h>): Move strdup to the new section.
72357         Suggested by Simon Josefsson and Paolo Bonzini.
72359 2008-09-21  Bruno Haible  <bruno@clisp.org>
72361         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
72362         exponents in %e and %g results on 'long double'. Needed for mingw's
72363         improved *printf functions.
72364         * tests/test-vasprintf-posix.c (test_function): Likewise.
72365         * tests/test-snprintf-posix.h (test_function): Likewise.
72366         * tests/test-sprintf-posix.h (test_function): Likewise.
72367         Reported by Eric Blake.
72369 2008-09-21  Bruno Haible  <bruno@clisp.org>
72371         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
72372         * tests/test-sprintf-posix.h (test_function): Likewise.
72374 2008-09-21  Bruno Haible  <bruno@clisp.org>
72376         * modules/getpass (Depends-on): Add strdup-posix.
72378         New module 'strdup-posix'.
72379         * modules/strdup-posix: New file.
72380         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
72381         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
72382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72383         REPLACE_STRDUP.
72384         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
72385         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
72386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72387         strdup-posix.
72389         * modules/strdup (Depends-on): Remove malloc-posix.
72391 2008-09-20  Bruno Haible  <bruno@clisp.org>
72393         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
72394         Wildenhues.
72396 2008-09-20  Bruno Haible  <bruno@clisp.org>
72398         Ensure that wint_t gets defined on IRIX 5.3.
72399         * lib/wchar.in.h (wint_t): Define if not defined by the system.
72400         * lib/wctype.in.h (wint_t): Likewise.
72401         (__wctype_wint_t): Remove type.
72402         (isw*): Use wint_t instead of __wctype_wint_t.
72403         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
72404         * modules/wchar (Files): Add m4/wint_t.m4.
72405         (Makefile.am): Substitute HAVE_WINT_T.
72406         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
72407         * tests/test-wctype.c: Check that wint_t is defined.
72408         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
72409         * doc/posix-headers/wctype.texi: Likewise.
72410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72412 2008-09-18  Bruno Haible  <bruno@clisp.org>
72414         * gnulib-tool (func_exit): Update comment.
72416 2008-09-18  Simon Josefsson  <simon@josefsson.org>
72418         * modules/getaddrinfo (Depends-on): Remove strdup, this module
72419         assumes strdup exists and does not depend on strdup to return
72420         ENOMEM on out of memory conditions.
72422 2008-09-18  Bruno Haible  <bruno@clisp.org>
72424         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
72425         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
72426         digits for the exponent.
72428 2008-09-18  Jim Meyering  <meyering@redhat.com>
72429             Bruno Haible  <bruno@clisp.org>
72431         * lib/vasnprintf.c (decimal_point_char): Define also if
72432         NEED_PRINTF_INFINITE_LONG_DOUBLE.
72434 2008-09-16  Bruno Haible  <bruno@clisp.org>
72435         and Eric Blake  <ebb9@byu.net>
72437         vasnprintf: support Irix 5.3
72438         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
72439         that mishandle long double infinity.
72440         Reported by Tom G. Christensen.
72442 2008-09-16  Bruno Haible  <bruno@clisp.org>
72444         * doc/glibc-functions/scandir.texi: Mention the function is missing on
72445         Solaris 9.
72446         * doc/glibc-functions/alphasort.texi: Likewise.
72447         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
72449 2008-09-16  Jim Meyering  <meyering@redhat.com>
72451         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
72452         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
72453         a umask modification leak out of a subshell.  Otherwise, the
72454         opensolaris /bin/sh would be accepted and thus cause unwarranted
72455         failures in the coreutils test suite.
72457 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
72459         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
72460         to succeed.
72462 2008-09-16  Jim Meyering  <meyering@redhat.com>
72464         avoid spurious test failure when library is built without ACL support
72465         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
72466         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
72467         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
72468         * tests/test-copy-acl.sh: Likewise.
72470 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72472         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
72473         based on character occurrence counts.
72475 2008-09-15  Eric Blake  <ebb9@byu.net>
72477         tests: avoid some compiler warnings
72478         * tests/test-memchr.c (main): Pass NULL indirectly.
72479         * tests/test-closein.c (main): Avoid unused variable.
72481 2008-09-15  Bruno Haible  <bruno@clisp.org>
72483         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
72484         are missing on OpenBSD 4.0 individually.
72485         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72487 2008-09-15  Bruno Haible  <bruno@clisp.org>
72489         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
72490         * doc/posix-functions/strerror.texi: Mention also Cygwin.
72491         * doc/posix-functions/perror.texi: Likewise.
72492         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
72493         is missing.
72494         Reported by Eric Blake.
72496         * lib/errno.in.h: Use replacement values >= 2000.
72497         Reported by Eric Blake.
72499 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72501         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
72502         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
72503         limit.
72504         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
72505         compareseq was aborted.
72507 2008-09-14  Bruno Haible  <bruno@clisp.org>
72509         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
72510         yvec_edit_count.
72511         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
72512         (fstrcmp_bounded): Simplify result computation accordingly.
72514 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72516         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
72517         (fstrcmp): Define in terms of fstrcmp_bounded.
72518         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
72519         lower_bound argument.
72520         Return quickly if the result is certainly < lower_bound.
72521         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
72523 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72525         * lib/diffseq.h (EARLY_ABORT): New macro.
72526         (compareseq): Change return type to bool. Return true when EARLY_ABORT
72527         evaluates to true.
72529 2008-09-14  Bruno Haible  <bruno@clisp.org>
72531         * modules/perror-tests: New file.
72532         * tests/test-perror.sh: New file.
72533         * tests/test-perror.c: New file.
72535         New module 'perror'.
72536         * lib/stdio.in.h (perror): New declaration.
72537         * lib/perror.c: New file.
72538         * m4/perror.m4: New file.
72539         * modules/perror: New file.
72540         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
72541         * doc/posix-functions/perror.texi: Mention the perror module.
72542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
72543         REPLACE_PERROR.
72544         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
72545         REPLACE_PERROR.
72547 2008-09-14  Bruno Haible  <bruno@clisp.org>
72549         * modules/stdio (Makefile.am): Reorder to match the order in
72550         lib/stdio.in.h.
72551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72553 2008-09-13  Bruno Haible  <bruno@clisp.org>
72555         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
72557 2008-09-13  Bruno Haible  <bruno@clisp.org>
72559         Extend strerror to cover the added errno values.
72560         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
72561         (rpl_strerror): Provide error messages for the added errno values and
72562         for the WSA* values.
72563         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
72564         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
72565         strerror.
72566         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
72567         * modules/strerror (Depends-on): Add errno.
72568         * doc/posix-functions/strerror.texi: Document the change.
72569         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
72570         and EOVERFLOW.
72572 2008-09-13  Bruno Haible  <bruno@clisp.org>
72574         * modules/EOVERFLOW: Remove file.
72575         * m4/eoverflow.m4: Remove file.
72576         * modules/EOVERFLOW-tests: Remove file.
72577         * tests/test-EOVERFLOW.c: Remove file.
72578         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
72579         * modules/ftell (Depends-on): Likewise.
72580         * modules/getdelim (Depends-on): Likewise.
72581         * modules/getugroups (Depends-on): Likewise.
72582         * modules/poll (Depends-on): Likewise.
72583         * modules/snprintf (Depends-on): Likewise.
72584         * modules/sprintf-posix (Depends-on): Likewise.
72585         * modules/vasnprintf (Depends-on): Likewise.
72586         * modules/vasprintf (Depends-on): Likewise.
72587         * modules/vfprintf-posix (Depends-on): Likewise.
72588         * modules/vsnprintf (Depends-on): Likewise.
72589         * modules/vsprintf-posix (Depends-on): Likewise.
72590         * modules/xvasprintf (Depends-on): Likewise.
72591         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
72592         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
72593         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
72594         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
72595         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72596         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
72597         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
72598         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
72599         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72600         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
72601         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
72602         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
72603         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72604         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
72605         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
72606         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
72607         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72608         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
72609         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
72610         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
72611         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72612         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
72613         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
72614         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
72615         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
72616         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72617         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
72618         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
72619         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
72620         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
72621         * MODULES.html.sh: Remove EOVERFLOW.
72622         * NEWS: Mention the change.
72624 2008-09-13  Bruno Haible  <bruno@clisp.org>
72626         * modules/errno-tests: New file.
72627         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
72629         * lib/errno.in.h: New file.
72630         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
72631         * modules/errno: New file.
72632         * doc/posix-headers/errno.texi: Update documentation.
72633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
72635 2008-09-13  Bruno Haible  <bruno@clisp.org>
72637         * tests/test-poll.c: Use #if for native Windows, rather than testing
72638         __MSVCRT__.
72640 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72641             Bruno Haible  <bruno@clisp.org>
72643         * lib/glob.c: Don't include <pwd.h> on native Windows.
72644         (WINDOWS32): New macro.
72645         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
72647 2008-09-13  Bruno Haible  <bruno@clisp.org>
72649         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
72650         (ETIMEDOUT): Remove macro.
72651         (glthread_cond_timedwait_multithreaded): New declaration.
72652         (glthread_cond_timedwait): Use it.
72653         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
72654         (glthread_cond_timedwait_multithreaded): New function.
72656 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72658         * modules/poll-tests: Do not check for io.h.
72659         * tests/test-poll.c: Check for __MSVCRT__ instead.
72661 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72663         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
72664         * modules/poll-tests: Add inet_pton, stdbool, sockets.
72665         * tests/test-poll.c: Use them.  Use _pipe on Windows.
72667 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72669         * modules/poll-tests: New.
72670         * tests/test-poll.c: New.
72672 2008-09-12  Eric Blake  <ebb9@byu.net>
72674         frexp: test for NetBSD failure on -0.0
72675         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
72676         not all, bugs from NetBSD 3.0 have been fixed.
72677         * doc/posix-functions/frexp.texi (frexp): Document bug.
72678         Reported by Thomas Klausner.
72680         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
72681         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
72682         literal -0.0.
72683         Reported by Jonathan C. Patschke <jp@centtech.com>.
72685 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72687         * lib/glthread/cond.h: Use dummy implementation also if
72688         USE_WIN32_THREADS.
72690 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72692         * modules/fnmatch-posix (License): Change to LGPLv2+.
72693         * modules/fnmatch-gnu (License): Likewise.
72695 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72697         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
72699 2008-09-11  Jim Meyering  <meyering@redhat.com>
72701         * users.txt: Add gtk-vnc.
72703 2008-09-08  Simon Josefsson  <simon@josefsson.org>
72705         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
72706         rotate amounts.
72708         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
72709         required for 16-bit and 8-bit rotates.
72710         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
72711         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
72712         UINT8_MAX instead of hard-coded constants.
72713         Suggested by Paul Eggert.
72715 2008-09-07  Bruno Haible  <bruno@clisp.org>
72717         * tests/test-striconveh.c (main): Check behaviour when converting from
72718         UTF-7.
72720         Make striconveh work better with stateful encodings.
72721         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
72722         that iconv does not increment the inptr when returning -1/EINVAL.
72724 2008-09-07  Bruno Haible  <bruno@clisp.org>
72726         * build-aux/config.rpath: Update according to libtool-2.2.6.
72727         * build-aux/config.libpath: Likewise.
72729 2008-09-06  Bruno Haible  <bruno@clisp.org>
72731         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
72732         * lib/freadptr.c (freadptr): Likewise.
72733         * lib/freadseek.c (freadptrinc): Likewise.
72734         Reported by Simon Josefsson.
72736 2008-09-06  Bruno Haible  <bruno@clisp.org>
72738         * modules/freadptr (License): Change to LGPLv2+.
72739         * modules/freadseek (License): Likewise.
72740         Suggested by Eric Blake.
72742         * modules/memchr2 (License): Change to LGPLv2+.
72743         Approved by Eric Blake.
72745 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72746             Bruno Haible  <bruno@clisp.org>
72748         Make gnulib-tool work with native 'sed' on AIX.
72749         * gnulib-tool (sed_noop): New variable.
72750         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
72751         func_add_or_update, func_create_testdir): Use it to initialize sed
72752         script variables.
72753         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72755 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
72756             Bruno Haible  <bruno@clisp.org>
72758         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
72759         also works after #include directives.
72761 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
72763         getdate.y: reject an out-of-range timezone value
72764         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
72765         the range [-24...+24].  When specified with only one or two digits,
72766         * tests/test-getdate.c: Tests for the fix.
72767         * doc/getdate.texi: Document this change.
72769 2008-09-03  Bruno Haible  <bruno@clisp.org>
72771         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
72773 2008-09-02  Simon Josefsson  <simon@josefsson.org>
72775         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
72776         <bruce.korb@gmail.com> with ideas from Ben Pfaff
72777         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
72778         Blake <ebb9@byu.net>.
72780         * tests/test-bitrotate.c: Add more test vectors.
72782 2008-09-02  Eric Blake  <ebb9@byu.net>
72784         vasnprintf-posix: handle large precision via %.*d
72785         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
72786         when handling it ourselves.
72787         * tests/test-vasnprintf-posix.c (test_function): Add test.
72788         * tests/test-snprintf-posix.h (test_function): Likewise.
72789         * tests/test-sprintf-posix.h (test_function): Likewise.
72790         * tests/test-vasprintf-posix.c (test_function): Likewise.
72791         Reported by Alain Guibert.
72793 2008-09-01  Eric Blake  <ebb9@byu.net>
72795         c-stack: make configure-time check more robust
72796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
72797         successful sigaction call.
72798         Reported by Tom G. Christensen.
72800 2008-09-01  Bruno Haible  <bruno@clisp.org>
72802         New module 'findprog-lgpl'.
72803         * modules/findprog-lgpl: New file.
72804         * lib/findprog-lgpl.c: New file.
72805         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
72806         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
72807         to decide whether to use strdup or xstrdup, concatenated_filename or
72808         xconcatenated_filename.
72810 2008-09-01  Bruno Haible  <bruno@clisp.org>
72812         Split module 'concat-filename' into 'concat-filename' (LGPL) and
72813         'xconcat-filename' (GPL).
72814         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
72815         (License): Change to LGPLv2+.
72816         * modules/xconcat-filename: New file.
72817         * lib/concat-filename.h (concatenated_filename): Change specification.
72818         (xconcatenated_filename): New declaration.
72819         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
72820         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
72821         memory situations.
72822         * lib/xconcat-filename.c: New file.
72823         * NEWS: Mention the change.
72824         * lib/findprog.c: Include concat-filename.h, not filename.h.
72825         (find_in_path): Use xconcatenated_filename instead of
72826         concatenated_filename.
72827         * lib/javacomp.c: Include concat-filename.h, not filename.h.
72828         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72829         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72830         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72831         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
72832         instead of concatenated_filename.
72833         * lib/javaexec.c: Include concat-filename.h, not filename.h.
72834         (execute_java_class): Use xconcatenated_filename instead of
72835         concatenated_filename.
72836         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
72837         * modules/javacomp (Depends-on): Likewise.
72838         * modules/javaexec (Depends-on): Likewise.
72840 2008-09-01  Bruno Haible  <bruno@clisp.org>
72842         Split module 'filename' into 'filename' and 'concat-filename'.
72843         * modules/filename: Keep only lib/filename.h.
72844         (License): Change to LGPLv2+.
72845         * modules/concat-filename: New file, extracted from modules/filename.
72846         * lib/filename.h (concatenated_filename): Remove declaration.
72847         * lib/concat-filename.h: New file, extracted from lib/filename.h.
72848         * lib/concat-filename.c: Include concat-filename.h.
72849         * NEWS: Mention the change.
72851 2008-09-01  Simon Josefsson  <simon@josefsson.org>
72853         * lib/bitrotate.h (rotl8, rotr8): Add.
72855         * modules/bitrotate (configure.ac): Need
72856         AC_REQUIRE([AC_C_INLINE]).
72857         (Description): Mention stdint.h.  Reported by Bruno Haible
72858         <bruno@clisp.org>.
72860         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
72861         Paolo Bonzini <bonzini@gnu.org>.
72863 2008-08-31  Bruno Haible  <bruno@clisp.org>
72865         Assume Solaris specific bi-arch conventions on Solaris systems.
72866         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
72867         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
72868         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
72869         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
72870         like acl_libdirstem.
72871         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
72872         acl_libdirstem.
72873         * NEWS: Mention the change.
72874         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
72876 2008-08-31  Jim Meyering  <meyering@redhat.com>
72878         * lib/strftime.h: Add comments describing the two added arguments.
72880         remove duplicate #include directives
72881         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
72882         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
72884 2008-08-31  Bruno Haible  <bruno@clisp.org>
72886         New module 'sigpipe-die'.
72887         * modules/sigpipe-die: New file.
72888         * lib/sigpipe-die.h: New file.
72889         * lib/sigpipe-die.c: New file.
72890         * MODULES.html.sh (Signal handling): Add sigpipe-die.
72892 2008-08-31  Bruno Haible  <bruno@clisp.org>
72894         Don't override previously installed signal handlers.
72895         * lib/fatal-signal.c (saved_sigactions): New variable.
72896         (uninstall_handlers): Reset the signal to the saved handler, not
72897         to SIG_DFL (except when ignored).
72898         (install_handlers): Save the previous handlers.
72900 2008-08-30  Bruno Haible  <bruno@clisp.org>
72902         * gnulib-tool (func_reset_sigpipe): New function.
72903         (func_get_automake_snippet, func_modules_transitive_closure,
72904         func_import): Invoke it before a join command that reads from stdin,
72905         to avoid "echo: write error: Broken pipe" error messages on stderr.
72906         Reported by Sam Steingold <sds@gnu.org>.
72908 2008-08-30  Bruno Haible  <bruno@clisp.org>
72910         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
72911         Code copied from m4/open.m4.
72912         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
72913         access and the filename ends in a slash. Code copied from lib/open.c.
72914         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
72915         * tests/test-fopen.c (main): Check against bug with trailing slash.
72917 2008-08-29  Bruno Haible  <bruno@clisp.org>
72919         Avoid some "gcc -pedantic" warnings.
72920         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
72921         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
72922         * lib/dirent.in.h: Likewise.
72923         * lib/fcntl.in.h: Likewise.
72924         * lib/float.in.h: Likewise.
72925         * lib/iconv.in.h: Likewise.
72926         * lib/inttypes.in.h: Likewise.
72927         * lib/locale.in.h: Likewise.
72928         * lib/math.in.h: Likewise.
72929         * lib/netinet_in.in.h: Likewise.
72930         * lib/search.in.h: Likewise.
72931         * lib/signal.in.h: Likewise.
72932         * lib/stdarg.in.h: Likewise.
72933         * lib/stdint.in.h: Likewise.
72934         * lib/stdio.in.h: Likewise.
72935         * lib/stdlib.in.h: Likewise.
72936         * lib/string.in.h: Likewise.
72937         * lib/strings.in.h: Likewise.
72938         * lib/sys_select.in.h: Likewise.
72939         * lib/sys_socket.in.h: Likewise.
72940         * lib/sys_stat.in.h: Likewise.
72941         * lib/sys_time.in.h: Likewise.
72942         * lib/sysexits.in.h: Likewise.
72943         * lib/time.in.h: Likewise.
72944         * lib/unistd.in.h: Likewise.
72945         * lib/wchar.in.h: Likewise.
72946         * lib/wctype.in.h: Likewise.
72947         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
72948         * modules/fchdir (Makefile.am): Likewise.
72949         * modules/fcntl (Makefile.am): Likewise.
72950         * modules/float (Makefile.am): Likewise.
72951         * modules/iconv_open (Makefile.am): Likewise.
72952         * modules/inttypes (Makefile.am): Likewise.
72953         * modules/locale (Makefile.am): Likewise.
72954         * modules/math (Makefile.am): Likewise.
72955         * modules/netinet_in (Makefile.am): Likewise.
72956         * modules/search (Makefile.am): Likewise.
72957         * modules/signal (Makefile.am): Likewise.
72958         * modules/stdarg (Makefile.am): Likewise.
72959         * modules/stdint (Makefile.am): Likewise.
72960         * modules/stdio (Makefile.am): Likewise.
72961         * modules/stdlib (Makefile.am): Likewise.
72962         * modules/string (Makefile.am): Likewise.
72963         * modules/strings (Makefile.am): Likewise.
72964         * modules/sys_select (Makefile.am): Likewise.
72965         * modules/sys_socket (Makefile.am): Likewise.
72966         * modules/sys_stat (Makefile.am): Likewise.
72967         * modules/sys_time (Makefile.am): Likewise.
72968         * modules/sysexits (Makefile.am): Likewise.
72969         * modules/time (Makefile.am): Likewise.
72970         * modules/unistd (Makefile.am): Likewise.
72971         * modules/wchar (Makefile.am): Likewise.
72972         * modules/wctype (Makefile.am): Likewise.
72973         Reported by Reuben Thomas <rrt@sc3d.org>.
72975 2008-08-29  Bruno Haible  <bruno@clisp.org>
72977         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
72978         any more.
72980 2008-08-29  Simon Josefsson  <simon@josefsson.org>
72982         * MODULES.html.sh (Misc): Add bitrotate.
72984         * modules/bitrotate: New file.
72986         * lib/bitrotate.h: New file.
72988         * modules/bitrotate-tests: New file.
72990         * tests/test-bitrotate.c: New file.
72992         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
72993         on the bitrotate module.
72995         * lib/arctwo.c: Use new bitrotate module.
72997 2008-08-29  Jim Meyering  <meyering@redhat.com>
72999         bootstrap: merge changes from coreutils
73000         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
73001         of copied files.  Remove a kludge, now that this is fixed.
73002         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
73003         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
73004         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
73006 2008-08-29  Bruno Haible  <bruno@clisp.org>
73008         * MODULES.html.sh: Remove --cvs-urls option.
73010 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
73012         maint.mk: adjust to file name change
73013         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
73015 2008-08-28  Jim Meyering  <meyering@redhat.com>
73017         * modules/getndelim2 (License): Relicense to LGPLv2+.
73018         Approved by Richard Stallman for the version of 1995, and by
73019         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
73021 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
73023         * lib/getdelim.c (flockfile, funlockfile): Make all of them
73024         dummy if one is not available.  Do not touch them if
73025         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
73026         (getc_maybe_unlocked): New.
73027         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
73029 2008-08-26  Eric Blake  <ebb9@byu.net>
73031         doc/INSTALL: resync from autoconf
73032         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
73033         (INSTALL_PRELUDE): Delete; this is done more efficiently by
73034         moving...
73035         * install.texi [!autoconf]: ...here.  Resync from autoconf.
73036         * INSTALL: Regenerate.
73037         * INSTALL.ISO: New file.
73038         * INSTALL.UTF-8: Likewise.
73040 2008-08-26  Jim Meyering  <meyering@redhat.com>
73042         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
73043         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
73044         these definitions conditional, so that they may be overridden, too.
73046 2008-08-26  Bruno Haible  <bruno@clisp.org>
73048         Generate INSTALL file variants with prettier quotes.
73049         * doc/Makefile (INSTALL_PRELUDE): New macro.
73050         (INSTALL): Use it.
73051         (INSTALL.ISO, INSTALL.UTF-8): New rules.
73053 2008-08-26  Bruno Haible  <bruno@clisp.org>
73055         Run makeinfo in an English locale.
73056         * doc/Makefile (MAKEINFO): New variable.
73058 2008-08-26  Bruno Haible  <bruno@clisp.org>
73060         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
73061         Suggested by Eric Blake.
73063 2008-08-25  Bruno Haible  <bruno@clisp.org>
73065         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
73067 2008-08-25  Eric Blake  <ebb9@byu.net>
73069         c-stack: test that stack overflow can be caught
73070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
73071         that platform allows handling stack overflow; at least OS/2 EMX
73072         has sigaltstack, but crashes before transferring control to
73073         handler on stack overflow.
73074         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
73075         check for HAVE_STACK_OVERFLOW_HANDLING.
73076         Reported by Elbert Pol.
73078 2008-08-25  Bruno Haible  <bruno@clisp.org>
73080         * doc/posix-functions/strftime.texi: Fix description of strftime
73081         module.
73083 2008-08-24  Bruno Haible  <bruno@clisp.org>
73085         * tests/uniwidth/test-uc_width2.c: New file.
73086         * tests/uniwidth/test-uc_width2.sh: New file.
73087         * modules/uniwidth/width-tests (Files): Add the new files.
73088         (TESTS): Add uniwidth/test-uc_width2.sh.
73089         (TESTS_ENVIRONMENT): New variable.
73090         (check_PROGRAMS): Add test-uc_width2.
73091         (test_uc_width2_SOURCES): New variable.
73093         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
73094         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
73095         not 0x00AB.
73096         Reported by Alexander V. Lukyanov <lav@netis.ru>.
73098 2008-08-22  Eric Blake  <ebb9@byu.net>
73100         test-lock, test-tls: mention why a test is skipped
73101         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
73102         skipped.
73103         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
73105         count-one-bits: relax license
73106         * modules/count-one-bits (License): Relicense to LGPLv2+.
73107         Suggested by Ludovic Courtès, approved by Ben Pfaff.
73109 2008-08-22  Andreas Schwab  <schwab@suse.de>
73111         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
73112         Remove spurious space in assignment.
73114 2008-08-21  Simon Josefsson  <simon@josefsson.org>
73116         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
73117         Paul Eggert <eggert@CS.UCLA.EDU>.
73119 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
73121         * modules/gettext: Add m4/threadlib.m4.
73123 2008-08-19  Eric Blake  <ebb9@byu.net>
73125         test-c-stack: fix compilation failure on FreeBSD 5.0
73126         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
73127         headers before <sys/resource.h>.
73128         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
73129         the bug.
73130         Reported by Nelson H. F. Beebe.
73132         strverscmp: migrate from "strverscmp.h" to <string.h>
73133         * modules/string (Makefile.am): Add new hooks.
73134         * modules/strverscmp (Files): Remove strverscmp.h.
73135         (Depends-on): Add string.
73136         (configure.ac): Add indicator.
73137         (Include): Mention new header.
73138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
73139         defaults.
73140         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
73141         results.
73142         * lib/strverscmp.h: Delete.
73143         * lib/string.in.h (strverscmp): Provide declaration, when needed.
73144         * tests/test-strverscmp.c (includes): Adjust client.
73145         * lib/check-version.c (includes): Likewise.
73146         * NEWS: Document the change.
73148         strverscmp: add unit test
73149         * modules/strverscmp-tests: New file.
73150         * tests/test-strverscmp.c: Likewise.
73152 2008-08-19  Simon Josefsson  <simon@josefsson.org>
73154         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
73155         regarding Windows crypto stuff, from Mono.
73157 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
73159         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
73160         if present, for intel RND.  Return error on failures.
73162 2008-08-18  Ben Pfaff  <blp@gnu.org>
73164         gitlog-to-changelog: give better diagnostic for failed pipe-open
73165         * build-aux/gitlog-to-changelog: Improve error message: suggest
73166         that the version of Git may be too old.
73168 2008-08-18  Simon Josefsson  <simon@josefsson.org>
73170         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
73171         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
73173 2008-08-18  Bruno Haible  <bruno@clisp.org>
73175         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
73176         pthread_in_use().
73178 2008-08-18  Bruno Haible  <bruno@clisp.org>
73180         * lib/glthread/threadlib.c: Include <pthread.h>.
73182 2008-08-18  Bruno Haible  <bruno@clisp.org>
73184         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
73185         glthread_recursive_lock_* macros.
73186         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
73187         Fix syntax error.
73189 2008-08-18  Bruno Haible  <bruno@clisp.org>
73191         * lib/glthread/thread.c: Avoid forcing a context switch right after
73192         thread creation.
73194 2008-08-17  Bruno Haible  <bruno@clisp.org>
73196         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
73197         * lib/glthread/thread.h: Provide Win32 specific implementation.
73198         * modules/thread (Files): Add lib/glthread/thread.c.
73199         (Depends-on): Add lock.
73200         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
73202 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73204         New module 'yield'.
73205         * modules/yield: New file.
73206         * lib/glthread/yield.h: New file.
73207         * m4/yield.m4: New file.
73208         * MODULES.html.sh (Multithreading): Add yield.
73210 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73212         New module 'thread'.
73213         * modules/thread: New file.
73214         * lib/glthread/thread.h: New file.
73215         * m4/thread.m4: New file.
73216         * MODULES.html.sh (Multithreading): Add thread.
73218 2008-08-17  Bruno Haible  <bruno@clisp.org>
73220         * lib/glthread/lock.h: Include <stdlib.h> always.
73221         * lib/glthread/tls.h: Likewise.
73222         * lib/glthread/cond.h: Likewise.
73224 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73226         New module 'cond'.
73227         * modules/cond: New file.
73228         * lib/glthread/cond.h: New file.
73229         * lib/glthread/cond.c: New file.
73230         * m4/cond.m4: New file.
73231         * MODULES.html.sh (Multithreading): Add cond.
73233 2008-08-16  Eric Blake  <ebb9@byu.net>
73235         c-stack: fix regression on Irix 5.3 from 2008-06-21
73236         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
73237         sa_sigaction...
73238         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
73239         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
73240         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
73241         * modules/signal (Makefile.am): Use the value.
73242         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
73243         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
73244         * doc/posix-headers/signal.texi (signal.h): Document this
73245         portability issue.
73246         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
73247         Reported by Tom G. Christensen.
73249 2008-08-17  Bruno Haible  <bruno@clisp.org>
73251         New module 'threadlib'.
73252         * modules/threadlib: New file.
73253         * lib/glthread/threadlib.c: New file, extracted from
73254         lib/glthread/lock.c.
73255         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
73256         functions.
73257         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
73258         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
73259         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
73260         macros.
73261         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
73262         (gl_DISABLE_THREADS): Remove macro.
73263         * modules/lock (Files): Remove build-aux/config.rpath.
73264         (Depends-on): Remove havelib. Add threadlib.
73265         (configure.ac-early): Remove section.
73266         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
73267         * modules/tls (Depends-on): Remove lock. Add threadlib.
73268         (Link): New section, copied from threadlib.
73269         * MODULES.html.sh (Multithreading): Add threadlib.
73271 2008-08-14  Bruno Haible  <bruno@clisp.org>
73273         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
73274         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
73275         glthread_rwlock_unlock, glthread_rwlock_destroy,
73276         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
73277         glthread_recursive_lock_destroy): Define as macros always.
73278         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
73279         glthread_lock_lock.
73280         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
73281         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
73282         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
73283         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
73284         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
73285         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
73286         (glthread_recursive_lock_lock_func): Renamed from
73287         glthread_recursive_lock_lock.
73288         (glthread_recursive_lock_unlock_func): Renamed from
73289         glthread_recursive_lock_unlock.
73290         (glthread_recursive_lock_destroy_func): Renamed from
73291         glthread_recursive_lock_destroy.
73293 2008-08-14  Bruno Haible  <bruno@clisp.org>
73295         * lib/glthread/lock.h: Renamed from lib/lock.h.
73296         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
73297         * lib/glthread/tls.h: Renamed from lib/tls.h.
73298         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
73299         * lib/fstrcmp.c: Update includes.
73300         * lib/strsignal.c: Update includes.
73301         * modules/lock (Files, Makefile.am): Update.
73302         (Include): Change to "glthread/lock.h".
73303         * modules/tls (Files, Makefile.am): Update.
73304         (Include): Change to "glthread/tls.h".
73305         * tests/test-lock.c: Update includes.
73306         * tests/test-tls.c: Update includes.
73307         * NEWS: Mention the renamed header files.
73309 2008-08-11  Jim Meyering  <meyering@redhat.com>
73311         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
73313 2008-08-11  Eric Blake  <ebb9@byu.net>
73315         test-c-stack: avoid C99-ism
73316         * tests/test-c-stack.c (main): Fix whitespace, move declaration
73317         before statement.
73318         Reported by Alain Guibert.
73320 2008-08-10  Jim Meyering  <meyering@redhat.com>
73322         ensure that return value of uinttostr et al are not ignored
73323         * lib/inttostr.h (__GNUC_PREREQ): Define.
73324         (__attribute_warn_unused_result__): Define.
73325         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
73327 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
73329         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
73330         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
73332 2008-08-07  Jim Meyering  <meyering@redhat.com>
73334         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
73336         * modules/mkstemp (License): Relicense under LGPLv2+.
73337         * modules/tempname (License): Likewise.
73339 2008-08-06  Bruno Haible  <bruno@clisp.org>
73341         * lib/poll.c (poll): Further micro-optimization.
73343 2008-08-06  Jim Meyering  <meyering@redhat.com>
73345         inet_pton.c: use locale-independent tolower
73346         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
73347         (inet_pton6): Use c_tolower rather than tolower.
73348         * modules/inet_pton (Depends-on): Add c-ctype.
73350 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
73352         * lib/poll.c (poll): Avoid division when timeout is 0, cache
73353         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
73355 2008-08-06  Jim Meyering  <meyering@redhat.com>
73357         * modules/inet_pton (License): Relicense under LGPLv2+.
73359 2008-08-03  Bruno Haible  <bruno@clisp.org>
73361         Additional non-aborting API for lock and tls.
73362         * lib/lock.h: Include <errno.h>.
73363         (glthread_lock_init): New macro/function.
73364         (gl_lock_init): Define as wrapper around glthread_lock_init.
73365         (glthread_lock_lock): New macro/function.
73366         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
73367         (glthread_lock_unlock): New macro/function.
73368         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
73369         (glthread_lock_destroy): New macro/function.
73370         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
73371         (glthread_rwlock_init): New macro/function.
73372         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
73373         (glthread_rwlock_rdlock): New macro/function.
73374         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
73375         (glthread_rwlock_wrlock): New macro/function.
73376         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
73377         (glthread_rwlock_unlock): New macro/function.
73378         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
73379         (glthread_rwlock_destroy): New macro/function.
73380         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
73381         (glthread_recursive_lock_init): New macro/function.
73382         (gl_recursive_lock_init): Define as wrapper around
73383         glthread_recursive_lock_init.
73384         (glthread_recursive_lock_lock): New macro/function.
73385         (gl_recursive_lock_lock): Define as wrapper around
73386         glthread_recursive_lock_lock.
73387         (glthread_recursive_lock_unlock): New macro/function.
73388         (gl_recursive_lock_unlock): Define as wrapper around
73389         glthread_recursive_lock_unlock.
73390         (glthread_recursive_lock_destroy): New macro/function.
73391         (gl_recursive_lock_destroy): Define as wrapper around
73392         glthread_recursive_lock_destroy.
73393         (glthread_once): New macro/function.
73394         (gl_once): Define as wrapper around glthread_once.
73395         Update function declarations.
73396         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
73397         glthread_rwlock_init. Return error code.
73398         (glthread_rwlock_rdlock_multithreaded): Renamed from
73399         glthread_rwlock_rdlock. Return error code.
73400         (glthread_rwlock_wrlock_multithreaded): Renamed from
73401         glthread_rwlock_wrlock. Return error code.
73402         (glthread_rwlock_unlock_multithreaded): Renamed from
73403         glthread_rwlock_unlock. Return error code.
73404         (glthread_rwlock_destroy_multithreaded): Renamed from
73405         glthread_rwlock_destroy. Return error code.
73406         (glthread_recursive_lock_init_multithreaded): Renamed from
73407         glthread_recursive_lock_init. Return error code.
73408         (glthread_recursive_lock_lock_multithreaded): Renamed from
73409         glthread_recursive_lock_lock. Return error code.
73410         (glthread_recursive_lock_unlock_multithreaded): Renamed from
73411         glthread_recursive_lock_unlock. Return error code.
73412         (glthread_recursive_lock_destroy_multithreaded): Renamed from
73413         glthread_recursive_lock_destroy. Return error code.
73414         (glthread_once_call): Make static.
73415         (glthread_once_multithreaded): Renamed from glthread_once.
73416         * lib/tls.h: Include <errno.h>.
73417         (glthread_tls_key_init): New macro/function.
73418         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
73419         (glthread_tls_set): New macro/function.
73420         (gl_tls_set): Define as wrapper around glthread_tls_set.
73421         (glthread_tls_key_destroy): New macro/function.
73422         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
73423         Update function declarations.
73424         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
73425         glthread_tls_get.
73426         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73428 2008-08-04  Eric Blake  <ebb9@byu.net>
73430         gnumakefile: use space, not TAB, outside of targets
73431         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
73433 2008-08-02  Jim Meyering  <meyering@redhat.com>
73435         getdate.y: avoid locale-dependent date parsing failure
73436         In Turkish locales, getdate would fail to recognize keywords
73437         containing a lowercase "i".  The solution is not to rely on
73438         locale-sensitive case-conversion.
73439         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
73440         (lookup_word): Use c_toupper in place of toupper.
73441         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
73442         Reported by Vefa Bicakci <bicave@superonline.com> in
73443         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
73444         * modules/getdate (Depends-on): Add c-ctype.
73446 2008-08-02  Bruno Haible  <bruno@clisp.org>
73448         * gnulib-tool (func_import): When updating or creating a .gitignore
73449         file, prepend each added line with a slash, and ignore leading slashes
73450         from the existing lines.
73451         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73453 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73455         Portability fix for GNU make 3.79.1.
73456         * top/GNUmakefile: Avoid 'else COND', which older GNU make
73457         versions do not understand.
73459 2008-08-01  Bruno Haible  <bruno@clisp.org>
73461         Work around bug of HP-UX 10.20 cc with -0.0 literal.
73462         * tests/test-isnanf.h (zero): New variable.
73463         (main): Avoid literal -0.0f.
73464         * tests/test-isnand.h (zero): New variable.
73465         (main): Avoid literal -0.0.
73466         * tests/test-isnanl.h (zero): New variable.
73467         (main): Avoid literal -0.0L.
73468         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
73469         (test_float, test_double, test_long_double): Avoid literals -0.0f,
73470         -0.0, -0.0L.
73471         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
73472         (test_signbitd): Avoid literal -0.0.
73473         (test_signbitl): Avoid literal -0.0L.
73474         * tests/test-ceilf1.c (zero): New variable.
73475         (main): Avoid literal -0.0f.
73476         * tests/test-ceill.c (zero): New variable.
73477         (main): Avoid literal -0.0L.
73478         * tests/test-floorf1.c (zero): New variable.
73479         (main): Avoid literal -0.0f.
73480         * tests/test-floorl.c (zero): New variable.
73481         (main): Avoid literal -0.0L.
73482         * tests/test-roundf1.c (zero): New variable.
73483         (main): Avoid literal -0.0f.
73484         * tests/test-round1.c (zero): New variable.
73485         (main): Avoid literal -0.0.
73486         * tests/test-roundl.c (zero): New variable.
73487         (main): Avoid literal -0.0L.
73488         * tests/test-truncf1.c (zero): New variable.
73489         (main): Avoid literal -0.0f.
73490         * tests/test-trunc1.c (zero): New variable.
73491         (main): Avoid literal -0.0.
73492         * tests/test-truncl.c (zero): New variable.
73493         (main): Avoid literal -0.0L.
73494         * tests/test-frexp.c (zero): New variable.
73495         (main): Avoid literal -0.0.
73496         * tests/test-frexpl.c (zero): New variable.
73497         (main): Avoid literal -0.0L.
73498         * tests/test-ldexpl.c (zero): New variable.
73499         (main): Avoid literal -0.0L.
73500         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
73501         (zerod, zerol): New variables.
73502         (test_function): Avoid literals -0.0, -0.0L.
73503         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
73504         (zerod, zerol): New variables.
73505         (test_function): Avoid literals -0.0, -0.0L.
73506         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
73507         (zerod, zerol): New variables.
73508         (test_function): Avoid literals -0.0, -0.0L.
73509         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
73510         (zerod, zerol): New variables.
73511         (test_function): Avoid literals -0.0, -0.0L.
73512         * tests/test-strtod.c (zero): New variable.
73513         (main): Avoid literal -0.0.
73514         Reported by Jonathan C. Patschke <jp@centtech.com>.
73516 2008-07-31  Jim Meyering  <meyering@redhat.com>
73518         sha256.h: correct definition of SHA224_DIGEST_SIZE
73519         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
73520         Reported by Paulie Pena IV <paulie4@gmail.com>.
73521         Define as 224 / 8, rather than as a literal.
73522         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
73523         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
73524         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
73526 2008-07-31  Bruno Haible  <bruno@clisp.org>
73528         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
73529         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
73530         Reported by Jonathan Patschke <jp@centtech.com>.
73532 2008-07-31  Bruno Haible  <bruno@clisp.org>
73534         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
73535         Reported by Paolo Bonzini <bonzini@gnu.org>.
73537 2008-07-30  Eric Blake  <ebb9@byu.net>
73539         test-strtod: allow compilation without -lm
73540         * tests/test-strtod.c (main): Avoid link dependence on fabs.
73541         Reported by Dennis Clarke <blastwave@gmail.com>.
73543 2008-07-28  Jim Meyering  <meyering@redhat.com>
73545         bootstrap: work also when there are no .po files in po/
73546         * build-aux/bootstrap (update_po_files): Complete the change
73547         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
73549 2008-07-27  Jim Meyering  <meyering@redhat.com>
73551         * users.txt: Add zile.
73553 2008-07-26  Ben Pfaff  <blp@gnu.org>
73555         Add missing dependencies on new m4/exponent[fdl].m4 files.
73556         * modules/isnanf-nolibm: Add m4/exponentf.m4.
73557         * modules/isnand-nolibm: Add m4/exponentd.m4.
73558         * modules/isnanl-nolibm: Add m4/exponentl.m4.
73559         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
73560         m4/isnan[fdl].m4, because the macros actually used moved.
73561         Reported by Jim Meyering.
73563 2008-07-14  Ben Pfaff  <blp@gnu.org>
73565         Add isinf module.
73566         * lib/isinf.c: New file.
73567         * lib/math.in.h: Define isinf macro if we have decided to replace
73568         it.
73569         * m4/isinf.m4: New file.
73570         * m4/math_h.m4: Initialize and substitute variables for isinf
73571         module.
73572         * modules/isinf: New file.
73573         * modules/isinf-tests: New file.
73574         * modules/math: Add substitutions for new module.
73575         * tests/test-isinf.c: New file.
73576         * doc/posix-functions/isinf.texi: Mention new module.
73577         * MODULES.html.sh: Mention new module.
73579 2008-07-14  Ben Pfaff  <blp@gnu.org>
73581         Factor out some macros for use by additional modules.
73582         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
73583         exponentf.m4.
73584         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
73585         exponentd.m4.
73586         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
73587         file exponentl.m4.
73588         * m4/exponentf.m4: New file.
73589         * m4/exponentd.m4: New file.
73590         * m4/exponentl.m4: New file.
73591         * modules/isnanf: Use new file m4/exponentf.m4.
73592         * modules/isnand: Use new file m4/exponentd.m4.
73593         * modules/isnanl: Use new file m4/exponentl.m4.
73595 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
73597         mktime.c: normalize tp->tm_isdst value to -1/0/1.
73598         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
73599         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
73600         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
73602         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
73603         readlink on platforms without PATH_MAX.
73605 2008-07-21  Eric Blake  <ebb9@byu.net>
73607         Warn, not fail, on stale version.
73608         * top/GNUmakefile (_curr-ver): Tone down previous patch.
73610         Don't allow installation with stale devel version number.
73611         * top/GNUmakefile (_is-install-target): New macro.
73612         (_curr-ver): Forbid installation with stale version number.
73614 2008-07-20  Bruno Haible  <bruno@clisp.org>
73616         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
73617         TESTS_ENVIRONMENT.
73618         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
73620 2008-07-20  Bruno Haible  <bruno@clisp.org>
73622         * lib/c-stack.h (c_stack_action): Add documentation.
73623         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
73625 2008-07-20  Bruno Haible  <bruno@clisp.org>
73627         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
73628         * modules/readlink (License): Likewise.
73630 2008-07-17  Eric Blake  <ebb9@byu.net>
73632         * modules/c-stack (Link): Fix typo.
73634         Make c-stack use libsigsegv, when available.
73635         * modules/c-stack (Depends-on): Add libsigsegv.
73636         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
73637         needed.
73638         * lib/c-stack.c (SIGSTKSZ): Define fallback.
73639         (segv_handler, overflow_handler, c_stack_action)
73640         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
73641         implementation when libsigsegv is available, but only when using
73642         the library is necessary.
73643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
73644         comment, explaining why XSI check fails on Linux.
73645         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
73646         * tests/test-c-stack2.sh: Tweak skip message.
73647         * NEWS: Document new link-time requirements.
73649 2008-07-16  Eric Blake  <ebb9@byu.net>
73651         c-stack: Expose false positives when not using libsigsegv.
73652         * modules/c-stack-tests (Files): Expand test.
73653         * tests/test-c-stack.c (main): Add means to conditionally trigger
73654         non-overflow SIGSEGV.
73655         * tests/test-c-stack2.sh: New file.
73657 2008-07-14  Bruno Haible  <bruno@clisp.org>
73659         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
73660         Reported by Eric Blake.
73662 2008-07-14  Sam Steingold  <sds@gnu.org>
73663             Bruno Haible  <bruno@clisp.org>
73665         New module libsigsegv.
73666         * modules/libsigsegv: New file.
73667         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
73668         modifications.
73669         * MODULES.html.sh (Signal handling): New section.
73671 2008-07-14  Bruno Haible  <bruno@clisp.org>
73673         * modules/unictype/ctype-* (Description): Add the word "function".
73674         Improves the resulting doc in MODULES.html.
73676 2008-07-12  Ben Pfaff  <blp@gnu.org>
73678         Add longlong module.
73679         * modules/longlong: New file.
73681 2008-07-12  Bruno Haible  <bruno@clisp.org>
73683         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
73684         to empty.
73686 2008-07-10  Ben Pfaff  <blp@gnu.org>
73688         Add isnan module.
73689         * doc/posix-functions/isnan.texi: Mention new module.
73690         * lib/math.in.h: Define isnan macro if we have decided to replace
73691         it.
73692         * m4/isnan.m4: New file.
73693         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
73694         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
73695         also.
73696         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
73697         redundancy.
73698         * m4/math_h.m4: Initialize and substitute variables for isnan
73699         module.
73700         * modules/isnan: New file.
73701         * modules/isnan-tests: New file.
73702         * modules/math: Add substitutions for new module.
73703         * tests/test-isnan.c: New file.
73704         * MODULES.html.sh: Mention new module.
73706 2008-07-10  Ben Pfaff  <blp@gnu.org>
73708         Add isnanf module.
73709         * lib/isnanf.m4: New file.
73710         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
73711         (gl_HAVE_ISNANF_IN_LIBM): New macro.
73712         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
73713         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
73714         * modules/isnanf: New file.
73715         * modules/isnanf-tests: New file.
73716         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
73717         files.
73718         * tests/test-isnanf-nolibm.c: factored most of its contents into
73719         new file tests/test-isnanf.h.
73720         * tests/test-isnanf.h: New file.
73721         * tests/test-isnanf.c: New file.
73722         * MODULES.html.sh: Mention new module.
73723         * doc/glibc-functions/isnanf.texi: Mention new module.
73725 2008-07-10  Ben Pfaff  <blp@gnu.org>
73727         Add isnand module.
73728         * lib/isnand.h: New file.
73729         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
73730         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
73731         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
73732         functionality also.
73733         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
73734         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
73735         (gl_HAVE_ISNAND_IN_LIBM): New macro.
73736         * modules/isnand: New file.
73737         * modules/isnand-tests: New file.
73738         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
73739         files.
73740         * tests/test-isnand-nolibm.c: factored most of its contents into
73741         new file tests/test-isnand.h.
73742         * tests/test-isnand.h: New file.
73743         * tests/test-isnand.c: New file.
73744         * MODULES.html.sh: Mention new module.
73746 2008-07-10  Ben Pfaff  <blp@gnu.org>
73748         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
73749         * lib/isnand.h: Rename lib/isnand-nolibm.h.
73750         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
73751         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
73752         * modules/isnanf-nolibm: Update references to renamed files.
73753         * modules/isnand-nolibm: Likewise.
73754         * modules/isnanf-nolibm-tests: Likewise.
73755         * modules/isnand-nolibm-tests: Likewise.
73756         * lib/frexp.c: Likewise.
73757         * lib/isfinite.c: Likewise.
73758         * lib/signbitd.c: Likewise.
73759         * lib/signbitf.c: Likewise.
73760         * lib/vasnprintf.c: Likewise.
73761         * tests/test-ceilf1.c: Likewise.
73762         * tests/test-ceilf2.c: Likewise.
73763         * tests/test-floorf1.c: Likewise.
73764         * tests/test-floorf2.c: Likewise.
73765         * tests/test-frexp.c: Likewise.
73766         * tests/test-round1.c: Likewise.
73767         * tests/test-round2.c: Likewise.
73768         * tests/test-roundf1.c: Likewise.
73769         * tests/test-strtod.c: Likewise.
73770         * tests/test-trunc1.c: Likewise.
73771         * tests/test-trunc2.c: Likewise.
73772         * tests/test-truncf1.c: Likewise.
73773         * tests/test-truncf2.c: Likewise.
73774         * NEWS: Mention the renamed header files.
73776 2008-07-11  Jim Meyering  <meyering@redhat.com>
73778         vc-list-files: make the last-resort awk code more portable
73779         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
73780         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
73781         does not support it.
73783 2008-07-10  Eric Blake  <ebb9@byu.net>
73785         Work with tar's bootstrap.
73786         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
73787         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
73788         an m4 comment.
73790 2008-07-09  Jim Meyering  <meyering@redhat.com>
73792         posix-shell.m4: fix typo that made this test malfunction
73793         * m4/posix-shell.m4: Remove capitalization in variable name.
73795 2008-07-08  Bruno Haible  <bruno@clisp.org>
73797         * m4/onceonly.m4: Update comments.
73798         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73800 2008-07-04  Jim Meyering  <meyering@redhat.com>
73802         * users.txt: Add vc-dwim.
73803         (bison, coreutils): Use the gitweb URL.
73805 2008-07-03  Jim Meyering  <meyering@redhat.com>
73807         * users.txt: Add libffcall.  From Sam Steingold.
73809 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
73811         getdate.y: do not ignore TZ with relative day, month or year offset
73812         * lib/getdate.y (get_date): Move the tz-handling block to follow the
73813         relative-date-handling, since otherwise, the latter would clobber the
73814         sole output (an updated Start value) of the tz-handling block.
73815         * tests/test-getdate.c: Tests for the fix
73817 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73819         Recognize 'foo_LIBRARIES += libgnu.a'.
73820         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
73821         makefile snippet has already specified an installation location,
73822         also using '+='.
73824 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
73826         getdate.y: factor out common actions
73827         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
73828         Use them in place of open-coded actions.
73830 2008-07-01  Simon Josefsson  <simon@josefsson.org>
73832         Add self-test for getdate module.
73833         * modules/getdate-tests: New file.
73834         * tests/test-getdate.c: New file.
73836 2008-06-29  Bruno Haible  <bruno@clisp.org>
73838         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
73839         .gitignore.
73840         Reported by Sylvain Beucler <beuc@beuc.net>.
73842 2008-06-29  Bruno Haible  <bruno@clisp.org>
73844         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
73845         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
73847 2008-06-29  Bruno Haible  <bruno@clisp.org>
73849         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
73850         EXTRA_DIST.
73851         Reported by Sylvain Beucler <beuc@beuc.net>.
73853 2008-06-26  Jim Meyering  <meyering@redhat.com>
73855         make several modules depend on the "open" module
73856         This provides slightly increased consistency when opening-for-write
73857         the name of a non-directory spelled with a trailing slash.
73858         * modules/chdir-safer: Likewise.
73859         * modules/chown: Likewise.
73860         * modules/clean-temp: Likewise.
73861         * modules/copy-file: Likewise.
73862         * modules/fchdir: Likewise.
73863         * modules/fcntl-safer: Likewise.
73864         * modules/pipe: Likewise.
73865         * modules/utime: Likewise.
73866         Prompted by Eric Blake and Bruno Haible.
73868 2008-06-24  Andreas Schwab  <schwab@suse.de>
73870         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
73871         literals can be used as initializers for global variables.
73873 2008-06-23  Eric Blake  <ebb9@byu.net>
73875         Make gnulib-cache.m4 easier to diff.
73876         * gnulib-tool (func_import): Allow newlines when reading cached
73877         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
73879 2008-06-23  Bruno Haible  <bruno@clisp.org>
73881         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
73882         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
73883         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
73884         m4/signalblocking.m4.
73885         (gl_PREREQ_SIGACTION): Don't invoke it.
73886         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
73887         gl_PREREQ_SIG_HANDLER_H.
73888         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73889         Don't check for sigaction here.
73891 2008-06-23  Bruno Haible  <bruno@clisp.org>
73893         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
73894         (install_handlers): Don't set the SA_RESETHAND flag.
73896 2008-06-23  Bruno Haible  <bruno@clisp.org>
73898         * m4/sigaction.m4: Comment fixes.
73899         * lib/signal.in.h: Likewise.
73901 2008-06-23  Eric Blake  <ebb9@byu.net>
73903         Fix typo.
73904         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
73906         Avoid SA_ namespace.
73907         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
73908         Reported by Ralf Wildenhues.
73910         Avoid test failure due to SA_RESTORER.
73911         * tests/test-sigaction.c (SA_MASK): New macro.
73912         (main): Avoid failing due to extension flags being set.
73913         Reported by Jim Meyering.
73915         Revert use of sig-handler.h in sigprocmask.c.
73916         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
73917         it requires the existence of struct sigaction.
73918         * lib/sigprocmask.c (handler_t): Restore typedef.
73919         (rpl_signal, old_handlers): Use local type.
73921 2008-06-22  Bruno Haible  <bruno@clisp.org>
73923         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
73924         conditionally.
73925         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73927 2008-06-22  Bruno Haible  <bruno@clisp.org>
73929         * doc/posix-functions/siginterrupt.texi: Move note.
73931         * lib/signal.in.h (SA_RESTART): New macro.
73932         * lib/sigaction.c: Update comment.
73934         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
73936         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
73937         (gl_PREREQ_SIGPROCMASK): Invoke it.
73938         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
73940         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
73942         * lib/sigprocmask.c: Update a comment.
73944 2008-06-21  Eric Blake  <ebb9@byu.net>
73946         Use sigaction module rather than signal().
73947         * modules/c-stack (Depends-on): Add sigaction.
73948         * modules/fatal-signal (Depends-on): Likewise.
73949         * modules/nanosleep (Depends-on): Likewise.
73950         * modules/sigprocmask (Files): Add sig-handler.h.
73951         * modules/sigaction (Files): Likewise.
73952         * lib/sig-handler.h (get_handler): New file, suggested by Paul
73953         Eggert.
73954         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
73955         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
73956         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
73957         (init_fatal_signals): Likewise.
73958         * lib/nanosleep.c (rpl_nanosleep): Likewise.
73959         (siginterrupt): Delete fallback.
73960         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
73961         instead.
73962         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
73963         siginterrupt.
73965         New module sigaction, for mingw.
73966         * modules/sigaction: New module...
73967         * modules/sigaction-tests: ...and its test.
73968         * m4/sigaction.m4: New file.
73969         * lib/sigaction.c: Likewise.
73970         * tests/test-sigaction.c: Likewise.
73971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
73972         * modules/signal (Makefile.am): Likewise.
73973         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
73974         needed.
73975         * doc/posix-headers/signal.texi (signal.h): Mention provided
73976         types.
73977         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
73978         that sigaction is preferable.
73979         * doc/posix-functions/sigaction.texi (sigaction): Mention new
73980         module.
73981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73982         sigaction.
73984         Improve robustness of sigprocmask by overriding signal.
73985         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
73986         is in use.
73987         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
73988         (SIGKILL, SIGSTOP): Provide fallbacks.
73989         (rpl_signal): Implement.
73990         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
73991         signal can be called inside handlers.
73993         Fix nanosleep module on mingw.
73994         * modules/nanosleep (Depends-on): Add sys_select.
73995         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
73997         Fix licensing of sigprocmask.
73998         * modules/raise (License): Relicense as LGPL.
74000 2008-06-21  Bruno Haible  <bruno@clisp.org>
74002         * lib/propername.c (proper_name_utf8): Don't use the transliterated
74003         result if it contains question marks.
74004         Reported by Michael Geng <linux@michaelgeng.de>.
74006 2008-06-19  Bruno Haible  <bruno@clisp.org>
74008         Fix CVS-ism.
74009         * doc/gnulib.texi: Include updated-stamp.texi.
74010         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
74011         (updated-stamp.texi): New rule.
74012         (gnulib.info): Depend on it.
74013         * doc/.gitignore: Add updated-stamp.texi.
74014         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
74016 2008-06-19  Bruno Haible  <bruno@clisp.org>
74018         * doc/Makefile (gnulib.info): Update and simplify dependencies.
74019         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74021 2008-06-19  Eric Blake  <ebb9@byu.net>
74023         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
74024         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
74025         Reported by Stepan Kasal.
74027 2008-06-18  Bruno Haible  <bruno@clisp.org>
74029         * lib/fatal-signal.c (init_fatal_signals): Add comment.
74030         Reported by Eric Blake.
74032 2008-06-18  Eric Blake  <ebb9@byu.net>
74034         Work around cygwin 1.5.25 strsignal bug.
74035         * tests/test-strsignal.c: Allow for const char *.
74036         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
74038 2008-06-18  Simon Josefsson  <simon@josefsson.org>
74040         * users.txt: Update URL to article and add author/date
74041         information.
74043 2008-06-17  Bruno Haible  <bruno@clisp.org>
74045         New macro gl_DISABLE_THREADS.
74046         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
74047         if the user did not pass --enable-threads or --disable-threads option.
74048         (gl_DISABLE_THREADS): New macro.
74049         Reported by Eric Blake <ebb9@byu.net>.
74051 2008-06-17  Bruno Haible  <bruno@clisp.org>
74053         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
74054         when the macro ignores it.
74055         Based on a patch by Eric Blake <ebb9@byu.net>.
74057 2008-06-17  Bruno Haible  <bruno@clisp.org>
74059         * modules/tls (License): Change to LGPLv2+.
74060         Reported by Eric Blake.
74062 2008-06-17  Eric Blake  <ebb9@byu.net>
74064         Simplify c-stack prerequisites.
74065         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
74066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
74067         no longer requires <ucontext.h> to exist.  Optimize setrlimit
74068         check.
74069         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
74070         <sys/resource.h>.
74072         Move c-stack test into testsuite.
74073         * modules/c-stack-tests: New file.
74074         * lib/c-stack.c [DEBUG]: Move test program...
74075         * tests/test-c-stack.c: ...into this new file.  Skip rather than
74076         fail test if sigaltstack is lacking.
74077         * tests/test-c-stack.sh: New driver file.
74079 2008-06-16  Eric Blake  <ebb9@byu.net>
74081         Use raise module consistently.
74082         * modules/fatal-signal (Depends-on): Add raise.
74083         * modules/sigprocmask (Depends-on): Likewise.
74084         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
74085         * lib/sigprocmask.c (sigprocmask): Likewise.
74086         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74087         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
74089         Fix compliance bug in sigpending.
74090         * lib/sigprocmask.c (sigpending): Return pending array via
74091         parameter, not return value.
74093 2008-06-14  Eric Blake  <ebb9@byu.net>
74095         Improve obstack-printf test code.
74096         * tests/test-obstack-printf.c (test_function): Fix comment, and
74097         simplify usage of obstack_* in macros.  Add a test for coverage.
74098         Reported by Bruno Haible.
74100 2008-06-14  Bruno Haible  <bruno@clisp.org>
74102         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
74103         array size as a constant, not as a const variable.
74104         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
74105         AC_USE_SYSTEM_EXTENSIONS.
74106         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74107         Test whether the obstack_printf function actually exists.
74108         * modules/obstack-printf (Depends-on): Add extensions.
74109         (Include): Remove obstack.h.
74110         * modules/obstack-printf-posix (Depends-on): Add extensions.
74111         (Include): Remove obstack.h.
74113 2008-06-13  Eric Blake  <ebb9@byu.net>
74115         Add obstack-printf and obstack-printf-posix modules.
74116         * modules/obstack-printf: New file.
74117         * modules/obstack-printf-posix: Likewise.
74118         * MODULES.html.sh (Misc): Mention them.
74119         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
74120         Likewise.
74121         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
74122         Likewise.
74123         * modules/stdio (Makefile.am): Accomodate new modules.
74124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74125         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
74126         Declare.
74127         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
74128         functions.
74129         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
74130         (gl_REPLACE_OBSTACK_PRINTF): New macros
74131         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
74132         * tests/test-obstack-printf.c: New file.
74133         * modules/obstack-printf-tests: Likewise.
74134         * modules/obstack-printf-posix-tests: Likewise.
74136 2008-06-11  Bruno Haible  <bruno@clisp.org>
74138         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
74139         * lib/open.c: Include errno.h.
74140         (open): Fail when attempting to write to a file that has a trailing
74141         slash.
74142         * tests/test-open.c (main): Test against trailing slash bug.
74143         * doc/posix-functions/open.texi: Mention the trailing slash bug.
74145 2008-06-10  Bruno Haible  <bruno@clisp.org>
74147         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
74148         for $? to work inside the trap command, with various /bin/sh-s.
74149         * tests/test-vc-list-files-cvs.sh: Likewise.
74151 2008-06-10  Bruno Haible  <bruno@clisp.org>
74153         * lib/acl-internal.h: Don't include gettext.h here.
74154         * lib/set-mode-acl.c: Include gettext.h here.
74155         * lib/copy-acl.c: Likewise.
74157 2008-06-10  Bruno Haible  <bruno@clisp.org>
74159         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
74160         * lib/wait-process.c (wait_subprocess): Likewise.
74161         * lib/execute.h (execute): Add termsigp argument.
74162         * lib/execute.c (execute): Likewise.
74163         * lib/csharpcomp.c (compile_csharp_using_pnet,
74164         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
74165         * lib/csharpexec.c (execute_csharp_using_pnet,
74166         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
74167         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
74168         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
74169         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
74170         is_jikes_present): Update.
74171         * lib/javaexec.c (execute_java_class): Update.
74172         * lib/javaversion.c (execute_and_read_line): Update.
74173         * NEWS: Document the changes.
74174         Reported by Eric Blake.
74176 2008-06-10  Eric Blake  <ebb9@byu.net>
74178         Add missing include.
74179         * tests/test-strstr.c (includes): Add <signal.h>.
74180         * tests/test-strcasestr.c (includes): Likewise.
74181         * tests/test-memmem.c (includes): Likewise.
74183 2008-06-10  Bruno Haible  <bruno@clisp.org>
74185         * lib/wait-process.c (wait_subprocess): Add an assertion.
74187 2008-06-10  Bruno Haible  <bruno@clisp.org>
74189         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
74191 2008-06-10  Bruno Haible  <bruno@clisp.org>
74193         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
74194         using alarm().
74195         * tests/test-strcasestr.c (main): Likewise.
74196         * tests/test-strstr.c (main): Likewise.
74198 2008-06-09  Bruno Haible  <bruno@clisp.org>
74200         Work around the Solaris 10 ACE ACLs ABI change.
74201         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
74202         declare if ACL_NO_TRIVIAL is present.
74203         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
74204         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
74205         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
74206         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
74207         define if ACL_NO_TRIVIAL is present.
74208         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
74209         and use the current ABI.
74210         (file_has_acl): Use same #if condition as elsewhere.
74211         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
74212         in use, and use the current ABI.
74213         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
74214         Reported by Jim Meyering.
74216 2008-06-09  Eric Blake  <ebb9@byu.net>
74218         Work around environments that (stupidly) ignore SIGALRM.
74219         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
74220         before using alarm().
74221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74222         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
74223         Reported by Ian Beckwith <ianb@erislabs.net>.
74225         Produce autobuild blurb earlier in log.
74226         * modules/autobuild (configure.ac-early): Move AB_INIT here.
74228 2008-06-09  Jim Meyering  <meyering@redhat.com>
74229         and Ondřej Vašík  <ovasik@redhat.com>
74231         utimens.c: correct kernel bug work-around
74232         Ondřej Vašík found that the invalid return value of 280 indicates
74233         failure, not success, and the kernel bug we're trying to work
74234         around affects not just the utimensat call, but also the fallback
74235         futimens call.
74236         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
74237         not success.
74238         [HAVE_FUTIMENS]: Use the same work-around, here.
74240 2008-06-09  Jim Meyering  <meyering@redhat.com>
74242         add more guards around definition of ACE_-related code
74243         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
74244         ALLOW and ACE_OWNER are also defined.
74246 2008-06-08  Bruno Haible  <bruno@clisp.org>
74248         * lib/acl-internal.h: Add me as co-author.
74249         * lib/file-has-acl.c: Likewise.
74250         * lib/set-mode-acl.c: Likewise.
74251         * lib/copy-acl.c: Likewise.
74253 2008-06-08  Bruno Haible  <bruno@clisp.org>
74255         Add support for AIX ACLs.
74256         * lib/acl-internal.h (acl_nontrivial): New declaration.
74257         * lib/file-has-acl.c (acl_nontrivial): New function.
74258         (file_has_acl): Add implementation using AIX 4 ACL API.
74259         * lib/set-mode-acl.c (qset_acl): Likewise.
74260         * lib/copy-acl.c (qcopy_acl): Likewise.
74262 2008-06-08  Bruno Haible  <bruno@clisp.org>
74264         Add support for HP-UX ACLs.
74265         * lib/acl-internal.h (acl_nontrivial): New declaration.
74266         * lib/file-has-acl.c (acl_nontrivial): New function.
74267         (file_has_acl): Add implementation using HP-UX 11 ACL API.
74268         * lib/set-mode-acl.c (qset_acl): Likewise.
74269         * lib/copy-acl.c (qcopy_acl): Likewise.
74271 2008-06-08  Bruno Haible  <bruno@clisp.org>
74273         Add support for Cygwin ACLs.
74274         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
74275         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
74276         the chmod_or_fchmod call.
74277         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
74279 2008-06-08  Bruno Haible  <bruno@clisp.org>
74281         Fix bug with setuid modes in Solaris 10+ code.
74282         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
74283         succeeded, when the mode contains some special bits.
74285 2008-06-08  Bruno Haible  <bruno@clisp.org>
74287         Add support for Solaris 7..10 ACLs.
74288         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
74289         declarations.
74290         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
74291         functions.
74292         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
74293         * lib/set-mode-acl.c (qset_acl): Likewise.
74294         * lib/copy-acl.c (qcopy_acl): Likewise.
74296 2008-06-08  Bruno Haible  <bruno@clisp.org>
74298         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
74299         declaration.
74300         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
74301         (acl_access_nontrivial): Remove MacOS X case.
74302         (file_has_acl): Use acl_extended_nontrivial.
74303         * lib/copy-acl.c (qcopy_acl): Likewise.
74305 2008-06-08  Bruno Haible  <bruno@clisp.org>
74307         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
74309 2008-06-08  Jim Meyering  <meyering@redhat.com>
74311         * modules/acl (Maintainer): Add Bruno Haible.
74313 2008-06-07  Bruno Haible  <bruno@clisp.org>
74315         Improve support for Tru64 ACLs.
74316         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
74317         ACL on OSF/1.
74319 2008-06-07  Bruno Haible  <bruno@clisp.org>
74321         Add support for MacOS X ACLs.
74322         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
74323         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
74324         * lib/set-mode-acl.c (qset_acl): Likewise.
74325         * lib/copy-acl.c (qcopy_acl): Likewise.
74327 2008-06-07  Bruno Haible  <bruno@clisp.org>
74329         Fix memory leak introduced on 2008-05-22.
74330         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
74331         use.
74333 2008-06-07  Bruno Haible  <bruno@clisp.org>
74335         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
74336         to construct an empty ACL.
74338 2008-06-07  Bruno Haible  <bruno@clisp.org>
74340         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
74341         precisely.
74342         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
74344 2008-06-07  Bruno Haible  <bruno@clisp.org>
74346         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
74347         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
74349 2008-06-07  Bruno Haible  <bruno@clisp.org>
74351         * doc/posix-functions/_setjmp.texi: Explain the use of this function
74352         regardless of POSIX.
74353         * doc/posix-functions/_longjmp.texi: Likewise.
74354         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
74355         SystemV platform in this case.
74357 2008-06-06  Eric Blake  <ebb9@byu.net>
74359         Document abort() bugs.
74360         * doc/posix-functions/abort.texi (abort): Mention anomalies.
74362         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
74363         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
74364         sigsetjmp.
74365         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
74366         siglongjmp, but only as a macro.
74367         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
74368         is obsolete.
74369         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
74371         Tweak documentation to cover cygwin argz bugs.
74372         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
74373         argz bug fix; no code change needed since no cygwin releases
74374         occurred between the last fix and the bug being tested.
74375         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
74376         module and recently fixed cygwin bugs.
74377         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
74378         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
74379         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
74380         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
74381         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
74382         Likewise.
74383         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
74384         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
74385         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
74386         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
74387         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
74388         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
74389         Likewise.
74391         Avoid gcc warning on cygwin.
74392         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
74393         !ACL_NO_TRIVIAL]: Avoid unused variable.
74395 2008-06-05  Eric Blake  <ebb9@byu.net>
74397         Be tolerant of UNKNOWN version in gnulib-tool test dir.
74398         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
74399         git-version-gen fails to come up with a version.
74400         Reported by Simon Josefsson.
74402 2008-06-05  Jim Meyering  <meyering@redhat.com>
74403             Paul Eggert  <eggert@cs.ucla.edu>
74405         utimens.c: work around a probable Linux kernel bug
74406         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
74407         appears to be a kernel bug that causes utimensat to return 280
74408         instead of 0, indicating success.
74410 2008-06-04  Bruno Haible  <bruno@clisp.org>
74412         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
74413         2008-06-01 commit.
74415 2008-06-04  Bruno Haible  <bruno@clisp.org>
74417         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
74418         * lib/file-has-acl.c (acl_access_nontrivial): New function.
74419         (file_has_acl): Use it. Save errno afterwards.
74420         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
74422 2008-06-03  Bruno Haible  <bruno@clisp.org>
74424         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
74425         draft code. Simplify #ifs.
74426         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
74427         Put Solaris code after POSIX-draft code. Fix comments regarding
74428         Solaris 10, HP-UX. Mention Cygwin.
74429         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
74431 2008-06-03  Eric Blake  <ebb9@byu.net>
74433         Provide fallback for older kernels.
74434         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
74435         Provide runtime fallback if kernel lacks support.
74436         Reported by Mike Frysinger.
74438 2008-06-02  Bruno Haible  <bruno@clisp.org>
74440         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
74441         it exists.
74443 2008-06-02  Bruno Haible  <bruno@clisp.org>
74445         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
74446         * lib/copy-acl.c (qcopy_acl): Update comment.
74448 2008-06-02  Bruno Haible  <bruno@clisp.org>
74450         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
74451         like ACL APIs.
74453 2008-06-02  Bruno Haible  <bruno@clisp.org>
74455         * tests/test-file-has-acl.sh: Use different code for Cygwin.
74456         * tests/test-set-mode-acl.sh: Likewise.
74457         * tests/test-copy-acl.sh: Likewise.
74458         * tests/test-copy-file.sh: Likewise.
74460 2008-06-02  Bruno Haible  <bruno@clisp.org>
74462         * tests/test-file-has-acl.sh: Remove unused code.
74464 2008-06-01  Bruno Haible  <bruno@clisp.org>
74466         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
74467         (copy_acl): Just a wrapper around qcopy_acl that emits the error
74468         messages.
74469         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
74471 2008-06-01  Bruno Haible  <bruno@clisp.org>
74473         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
74474         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
74475         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
74476         APIs.
74477         * modules/acl-tests (configure.ac): Remove tests now contained in
74478         m4/acl.m4.
74480 2008-06-02  Jim Meyering  <meyering@redhat.com>
74482         announce-gen: use a better key-server host name
74483         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
74484         it may be more consistently reliable.  Suggested by Werner Koch
74485         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
74487 2008-06-01  Bruno Haible  <bruno@clisp.org>
74489         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
74490         Reported by Voroskoi Andras <voroskoi@gmail.com>.
74492 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
74494         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
74496 2008-06-01  Bruno Haible  <bruno@clisp.org>
74498         New ACL tests.
74499         * tests/test-file-has-acl.sh: New file.
74500         * tests/test-file-has-acl.c: New file.
74501         * tests/test-set-mode-acl.sh: New file.
74502         * tests/test-set-mode-acl.c: New file.
74503         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
74504         * tests/test-copy-acl.c: New file.
74505         * modules/acl-tests: New file, based on modules/copy-file-tests.
74506         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
74507         (Depends-on): Add acl-tests.
74508         (configure.ac): Remove checks.
74509         (Makefile.am): Don't create test-sameacls program here any more.
74511 2008-06-01  Bruno Haible  <bruno@clisp.org>
74513         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
74514         * tests/test-sameacls.c: Include progname.h.
74515         (main): Invoke set_program_name. Portability fixes for MacOS X,
74516         Solaris, HP-UX.
74518 2008-06-01  Bruno Haible  <bruno@clisp.org>
74520         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
74521         function.
74522         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
74524 2008-06-01  Bruno Haible  <bruno@clisp.org>
74526         * modules/rpmatch (Depends-on): Add strdup.
74528 2008-06-01  Bruno Haible  <bruno@clisp.org>
74530         * lib/pipe.c: Include unistd-safer.h.
74531         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
74532         * modules/pipe (Depends-on): Add unistd-safer.
74534 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74536         * modules/autobuild (configure.ac): Call AB_INIT.
74538 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74540         * tests/test-getaddrinfo.c: Don't print debug messages by default.
74541         Suggested by Bruno Haible <bruno@clisp.org>.
74543 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74545         * tests/test-base64.c: Cast size_t to unsigned long when invoking
74546         printf.  Use %lu instead of %d.  Reported by Bruno Haible
74547         <bruno@clisp.org>.
74549 2008-05-29  Eric Blake  <ebb9@byu.net>
74551         Prefer new POSIX 200x interfaces over futimesat.
74552         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
74553         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
74554         when available.
74555         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
74557 2008-05-28  Bruno Haible  <bruno@clisp.org>
74559         * modules/stpcpy (License): Change to LGPLv2+.
74560         Requested by David Lutterkort <dlutter@redhat.com>.
74562 2008-05-27  Bruno Haible  <bruno@clisp.org>
74564         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
74565         current mingw.
74566         Reported by Jose E. Marchesi <jemarch@gnu.org>.
74568 2008-05-27  Bruno Haible  <bruno@clisp.org>
74570         * modules/iconv_open (Link): New section, from module 'iconv'.
74571         * modules/striconv (Link): Likewise.
74572         * modules/striconveh (Link): Likewise.
74573         * modules/xstriconv (Link): Likewise.
74574         * modules/unicodeio (Link): Likewise.
74575         * modules/propername (Link): Likewise.
74576         Reported by Jim Meyering.
74578 2008-05-26  Jim Meyering  <meyering@redhat.com>
74580         sha256: do not artificially restrict buffer length to be < 2^32
74581         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
74582         uint32_t to size_t.
74583         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
74584         to match.
74586         avoid unaligned access errors, e.g., on sparc
74587         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
74588         direct access through a possibly-unaligned uint64* pointer.
74589         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
74590         direct access through a possibly-unaligned uint32* pointer.
74591         Prompted by this patch from Tom "spot" Callaway:
74592         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
74594         sha512.c: fix typo in comment
74595         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
74597 2008-05-25  Bruno Haible  <bruno@clisp.org>
74599         * lib/set-mode-acl.c: Renamed from lib/acl.c.
74600         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
74601         (Makefile.am): Update lib_SOURCES.
74603 2008-05-25  Bruno Haible  <bruno@clisp.org>
74605         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
74607 2008-05-25  Jim Meyering  <meyering@redhat.com>
74609         useless-if-before-free: freed expr may have white-space differences
74610         * build-aux/useless-if-before-free: Recognize cases in which the
74611         freed expression differs from the tested one in embedded white
74612         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
74613         $1 was used, so we can't make any regexp shy.  Improved tests now
74614         detect this.
74616         useless-if-before-free: accept white space in the expression.
74617         * build-aux/useless-if-before-free: For now, any white space
74618         in the expression must be identical in the free argument.
74620         useless-if-before-free: efficiency tweak
74621         * build-aux/useless-if-before-free: Make the expression-matching
74622         regexp "shy".
74623         Make the *outer* regexp shy, not the expr-matching one.
74625         update code-in-comment to accept cast of free arg
74626         * build-aux/useless-if-before-free: Update regexp.
74628 2008-05-25  Bruno Haible  <bruno@clisp.org>
74630         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
74631         * modules/copy-file-tests (Files, Makefile.am): Update.
74632         * tests/test-copy-file.c (func_test_copy): Update.
74634 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
74636         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
74638 2008-05-23  Bruno Haible  <bruno@clisp.org>
74640         Improve support for ACLs on OSF/1.
74641         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
74642         Remove fallback for unknown flavors of ACLs.
74644 2008-05-22  Bruno Haible  <bruno@clisp.org>
74646         Add support for ACLs on OSF/1.
74647         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
74648         replacements.
74649         (acl_free_text): New macro fallback.
74650         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
74651         acl_free.
74652         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
74653         acl_free_text function. Require AC_C_INLINE.
74655 2008-05-22  Bruno Haible  <bruno@clisp.org>
74657         Make copy_acl work on MacOS X 10.5.
74658         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
74659         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
74660         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
74661         If MODE_INSIDE_ACL, don't assume that every system has the same text
74662         representation for ACLs as FreeBSD.
74663         * lib/copy-acl.c (copy_acl): Add support for platforms with
74664         !MODE_INSIDE_ACL.
74665         * lib/file-has-acl.c (file_has_acl): Likewise.
74666         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
74667         FreeBSD, MacOS X, or IRIX, respectively.
74669 2008-05-22  Bruno Haible  <bruno@clisp.org>
74671         * lib/acl.h: Don't include <sys/acl.h>.
74672         (GETACLCNT): Move fallback to lib/acl-internal.h.
74673         * lib/acl-internal.h: Include <sys/acl.h> here.
74674         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
74676 2008-05-22  Bruno Haible  <bruno@clisp.org>
74678         Split off copy_acl function to separate file.
74679         * lib/copy-acl.c: New file, extracted from lib/acl.c.
74680         * lib/acl.c (copy_acl): Moved function to separate file.
74681         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
74682         * modules/acl (Files): Add lib/copy-acl.c.
74683         (Makefiles.am): Augment lib_SOURCES.
74685 2008-05-22  Bruno Haible  <bruno@clisp.org>
74687         * modules/copy-file-tests: New file.
74688         * tests/test-copy-file.sh: New file.
74689         * tests/test-copy-file.c: New file.
74690         * tests/test-copy-file-sameacls.c: New file.
74692 2008-05-22  Eric Blake  <ebb9@byu.net>
74694         Avoid gcc warning.
74695         * tests/test-memcmp.c (main): Pass NULL indirectly.
74697 2008-05-21  Bruno Haible  <bruno@clisp.org>
74699         Add reference doc about ACLs.
74700         * doc/acl-resources.txt: New file.
74701         * doc/acl-cygwin.txt: New file.
74703 2008-05-21  Bruno Haible  <bruno@clisp.org>
74705         Avoid one more warning from gcc.
74706         * lib/vasnprintf.c (IF_LINT): Update comments.
74707         (VASNPRINTF): Use it also for the 'prefix' array initializer.
74709 2008-05-21  Jim Meyering  <meyering@redhat.com>
74711         avoid a warning from gcc
74712         * lib/vasnprintf.c (IF_LINT): Define.
74713         (scale10_round_decimal_long_double):
74714         Use it to avoid a "may be used uninitialized" warning.
74715         (scale10_round_decimal_double): Likewise.
74717 2008-05-21  Simon Josefsson  <simon@josefsson.org>
74719         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
74720         declared.
74722 2008-05-20  Bruno Haible  <bruno@clisp.org>
74724         * tests/test-memcmp.c (main): Test also the sign of the result. Test
74725         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
74727 2008-05-20  Simon Josefsson  <simon@josefsson.org>
74729         * modules/memcmp-tests: New file.
74730         * tests/test-memcmp.c: New file.
74732 2008-05-19  Bruno Haible  <bruno@clisp.org>
74734         * modules/propername (Notice, configure.ac): Put quoted "..." into
74735         --keyword option.
74736         * lib/propername.h: Update comments accordingly.
74737         Reported by Eric Blake.
74739 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
74741         * modules/getpass-gnu (Depends-on): Add fseeko.
74743 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74745         * modules/base64-tests: New file.
74747 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
74749         * lib/base64.c (base64_decode_ctx): If a decode context structure
74750         was passed in use it to ignore newlines.  If a context structure
74751         was _not_ passed in, continue to treat newlines as garbage (this
74752         is the historical behavior).  Formerly base64_decode.
74753         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74754         takes a decode context structure.
74755         * lib/base64.h (base64_decode): Macro for four-argument calls.
74756         (base64_decode_alloc): Likewise.
74757         * lib/base64.c (base64_decode_ctx): If a decode context structure
74758         was passed in use it to ignore newlines.  If a context structure
74759         was _not_ passed in, continue to treat newlines as garbage (this
74760         is the historical behavior).  Formerly base64_decode.
74761         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74762         takes a decode context structure.
74763         * lib/base64.h (base64_decode): Macro for four-argument calls.
74764         (base64_decode_alloc): Likewise.
74766 2008-05-19  Jim Meyering  <meyering@redhat.com>
74768         avoid a warning from gcc
74769         * lib/trim.c (IF_LINT): Define.
74770         (trim2): Use it to avoid a "may be used uninitialized" warning.
74772         Fix doc typo.
74773         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
74775 2008-05-19  Bruno Haible  <bruno@clisp.org>
74777         * doc/glibc-functions/getpass.texi: Document limits of other
74778         implementations.
74780 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74781             Bruno Haible <bruno@clisp.org>
74783         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
74785 2008-05-18  Bruno Haible  <bruno@clisp.org>
74787         * modules/propername: New file, from GNU gettext.
74788         * lib/propername.h: New file, from GNU gettext.
74789         * lib/propername.c: New file, from GNU gettext.
74790         * MODULES.html.sh (Internationalization functions): Add propername.
74792 2008-05-16  Jim Meyering  <meyering@redhat.com>
74793             Bruno Haible  <bruno@clisp.org>
74795         Avoid some warnings from "gcc -Wshadow".
74796         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
74798 2008-05-15  Eric Blake  <ebb9@byu.net>
74800         Extend previous patch to cygwin 1.7.0.
74801         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
74802         fast implementation in cygwin >= 1.7.0.
74803         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74806 2008-05-15  Bruno Haible  <bruno@clisp.org>
74808         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
74809         implementation in glibc >= 2.9.
74810         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74813 2008-05-15  Bruno Haible  <bruno@clisp.org>
74815         * MODULES.html.sh (Internationalization functions): Remove linebreak.
74816         (Unicode string functions): Add unilbrk/*.
74817         Reported by Karl Berry.
74819 2008-05-15  Eric Blake  <ebb9@byu.net>
74821         Fix violation of <stdbool.h> replacement in regex.
74822         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
74823         * lib/regexec.c (re_search_internal): Likewise.
74824         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
74826 2008-05-15  Jim Meyering  <meyering@redhat.com>
74828         avoid distracting test output when git or cvs is not found
74829         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
74830         * tests/test-vc-list-files-git.sh: Likewise.
74832 2008-05-15  Eric Blake  <ebb9@byu.net>
74834         Glibc finally accepted the memmem speedup code, bugzilla #5514.
74835         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
74836         glibc version.
74837         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
74838         * doc/posix-functions/strstr.texi (strstr): Likewise.
74839         * lib/str-two-way.h (MAX): Sychronize with glibc.
74841 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
74843         * lib/regcomp.c (optimize_utf8): Add a note on why we test
74844         opr.ctx_type.
74845         (calc_first): Initialize constraint field.
74846         (duplicate_node_closure): Use it instead of special casing ANCHORS.
74847         Fix grammar.
74848         (duplicate_node): Merge constraint field for all node types.
74849         (calc_eclosure_iter): Look at constraint field for all node types.
74850         * lib/regex_internal.c (create_cd_newstate): Don't look at
74851         opr.ctx_type.
74853 2008-05-14  Bruno Haible  <bruno@clisp.org>
74855         Help GCC to do better code generation.
74856         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
74857         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
74858         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
74859         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
74860         Declare with attribute 'malloc' if supported.
74862 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
74864         use "echo STR|wc -c" rather than unportable "expr length STR"
74865         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
74866         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
74868 2008-05-14  Jim Meyering  <meyering@redhat.com>
74870         use dd ibs=$n count=1 ... rather than less-portable head -c$n
74871         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
74872         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
74873         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
74874         via Collin Lasse.
74876 2008-05-14  Eric Blake  <ebb9@byu.net>
74878         Avoid quadratic growth in gl_LIBSOURCES.
74879         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
74880         Suggested by Bruno Haible.
74882         Test xmemdup0.
74883         * modules/xmemdup0-tests: New file.
74884         * tests/test-xmemdup0.c: Likewise.
74886 2008-05-13  Eric Blake  <ebb9@byu.net>
74888         Split xmemdup0 into its own module.
74889         * modules/xmemdup0: New file.
74890         * lib/xmemdup0.h: Likewise.
74891         * lib/xmemdup0.c: Likewise.
74892         * MODULES.html.sh (Memory management functions): Add xmemdup0.
74893         * lib/xalloc.h (xmemdup0): Remove.
74894         * lib/xmalloc.c (xmemdup0): Likewise.
74896 2008-05-13  Eric Blake  <ebb9@byu.net>
74897             Bruno Haible  <bruno@clisp.org>
74899         Reduce number of forks required during autoconf.
74900         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
74901         and gl_LIBSOURCES_DIR.
74902         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
74903         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
74904         m4_syscmd per file.
74905         <m4_foreach_w>: Move...
74906         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
74908 2008-05-13  Eric Blake  <ebb9@byu.net>
74910         * gnulib-tool: Fix various comment typos.
74912 2008-05-12  Bruno Haible  <bruno@clisp.org>
74914         Tailor the linebreaking algorithm.
74915         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
74917 2008-05-12  Bruno Haible  <bruno@clisp.org>
74919         Update to Unicode 5.0.0.
74920         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
74921         LBP_JV, LBP_JT. Redistribute values.
74922         (unilbrk_table): Change size.
74923         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
74924         Unicode TR#14 rev. 22.
74925         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
74926         LBP_JV, LBP_JT. Redistribute values.
74927         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
74928         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
74929         Update.
74930         * lib/unilbrk/lbrkprop1.h: Regenerated.
74931         * lib/unilbrk/lbrkprop2.h: Regenerated.
74932         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
74933         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
74934         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
74935         Likewise.
74936         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
74937         Likewise.
74938         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
74939         result.
74940         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
74941         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
74942         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
74943         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
74944         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
74945         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
74947 2008-05-11  Bruno Haible  <bruno@clisp.org>
74949         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
74951 2008-05-11  Bruno Haible  <bruno@clisp.org>
74953         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
74954         * modules/unilbrk/gen-lbrk: New file.
74956 2008-05-11  Bruno Haible  <bruno@clisp.org>
74958         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
74959         * m4/sha512.m4 (gl_SHA512): Likewise.
74961 2008-05-11  Jim Meyering  <meyering@redhat.com>
74963         New modules: crypto/sha256, crypto/sha512 (from coreutils)
74964         * modules/crypto/sha256: New file.
74965         * modules/crypto/sha512: Likewise.
74966         * lib/sha256.c: Likewise.
74967         * lib/sha256.h: Likewise.
74968         * lib/sha512.c: Likewise.
74969         * lib/sha512.h: Likewise.
74970         * lib/u64.h: Likewise.
74971         * m4/sha256.m4: Likewise.
74972         * m4/sha512.m4: Likewise.
74973         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
74975 2008-05-10  Bruno Haible  <bruno@clisp.org>
74977         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
74978         (Input/Output <stdio.h>): Add xprintf.
74979         (Signal handling <signal.h>): Add strsignal.
74980         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
74981         (Core language properties): Add func.
74982         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
74983         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
74984         strings.
74985         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
74986         (Input/output): New section.
74987         (File system functions): Add openat-die, stat-macros.
74988         (Networking functions): Add sockets.
74989         (Unicode string functions): Add unictype/*.
74990         (Support for building libraries and executables): Add gperf.
74991         (Support for building documentation): Add agpl-3.0.
74992         (Misc): Add nocrash.
74994 2008-05-10  Bruno Haible  <bruno@clisp.org>
74996         * modules/unictype/gen-ctype: New file.
74998 2008-05-10  Jim Meyering  <meyering@redhat.com>
75000         Make chdir-safer.c more efficient on a system with no symlinks.
75001         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
75002         also if ELOOP is zero.  Suggested by Bruno Haible.
75004         Make chdir-safer.c slightly safer.
75005         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
75006         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
75008         Avoid compile failure on systems without ELOOP (like mingw).
75009         * lib/chdir-safer.c (ELOOP): Define if not already defined.
75010         Reported by Bruno Haible.
75012 2008-05-10  Bruno Haible  <bruno@clisp.org>
75014         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
75015         (is_utf8_encoding): Use a case-insensitive comparison.
75016         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
75017         streq.
75019 2008-05-10  Bruno Haible  <bruno@clisp.org>
75021         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
75022         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
75023         * lib/unilbrk/ulc-common.h (iconv_string_length,
75024         iconv_string_keeping_offsets): Remove declarations.
75025         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
75026         Don't include <iconv.h>, streq.h, xsize.h.
75027         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
75028         conversion.
75029         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
75030         <iconv.h>, streq.h, xsize.h.
75031         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
75032         conversion.
75033         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
75034         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
75035         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
75036         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
75038 2008-05-10  Bruno Haible  <bruno@clisp.org>
75040         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
75041         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
75043         * modules/unilbrk/u32-width-linebreaks-tests: New file.
75044         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
75046         * modules/unilbrk/u16-width-linebreaks-tests: New file.
75047         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
75049         * modules/unilbrk/u8-width-linebreaks-tests: New file.
75050         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
75052         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
75053         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
75055         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
75056         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
75058         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
75059         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
75061         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
75062         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
75064 2008-05-10  Bruno Haible  <bruno@clisp.org>
75066         Split up 'linebreak' module.
75067         * lib/unilbrk.h: New file, based on lib/linebreak.h.
75068         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
75069         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
75070         modifications.
75071         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
75072         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
75073         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
75074         lib/linebreak.c.
75075         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
75076         lib/linebreak.c.
75077         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
75078         lib/linebreak.c.
75079         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
75080         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
75081         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
75082         lib/linebreak.c.
75083         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
75084         lib/linebreak.c.
75085         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
75086         lib/linebreak.c.
75087         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
75088         lib/linebreak.c.
75089         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
75090         lib/linebreak.c.
75091         * modules/unilbrk/base: New file.
75092         * modules/unilbrk/tables: New file.
75093         * modules/unilbrk/u8-possible-linebreaks: New file.
75094         * modules/unilbrk/u16-possible-linebreaks: New file.
75095         * modules/unilbrk/u32-possible-linebreaks: New file.
75096         * modules/unilbrk/ulc-common: New file.
75097         * modules/unilbrk/ulc-possible-linebreaks: New file.
75098         * modules/unilbrk/u8-width-linebreaks: New file.
75099         * modules/unilbrk/u16-width-linebreaks: New file.
75100         * modules/unilbrk/u32-width-linebreaks: New file.
75101         * modules/unilbrk/ulc-width-linebreaks: New file.
75102         * lib/linebreak.h: Remove file.
75103         * lib/linebreak.c: Remove file.
75104         * m4/linebreak.m4: Remove file.
75105         * modules/linebreak: Remove file.
75106         * NEWS: Mention the changes.
75108 2008-05-09  Eric Blake  <ebb9@byu.net>
75110         Add xmemdup0.
75111         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
75112         implementation.
75113         * lib/xmalloc.c (xmemdup0): New C implementation.
75115 2008-05-08  Bruno Haible  <bruno@clisp.org>
75117         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
75119 2008-05-07  Eric Blake  <ebb9@byu.net>
75121         Support cross-compilation of <wctype.h>.
75122         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
75123         AC_CACHE_CHECK.
75125 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
75127         * build-aux/vc-list-files: Add support for bzr.
75129 2008-05-03  Jim Meyering  <meyering@redhat.com>
75131         avoid failed assertion with tight malloc
75132         * tests/test-getndelim2.c: Correct an off-by-one assertion.
75134 2008-05-03  Simon Josefsson  <simon@josefsson.org>
75136         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
75137         are needed from arpa/inet.h.
75138         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
75139         Reported by Bruno Haible.
75141 2008-05-02  Jim Meyering  <meyering@redhat.com>
75143         avoid compilation error on FreeBSD 6
75144         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
75146 2008-05-01  Jim Meyering  <meyering@redhat.com>
75148         useless-if-before-free: correct --help's exit status description
75149         * build-aux/useless-if-before-free (usage): Like grep, exit 0
75150         for one or more matches, etc.  Reported by Bruno Haible.
75152         vc-list-files: make the stand-alone gnulib test work
75153         * modules/vc-list-files-tests (configure.ac):
75154         Define and AC_SUBST abs_aux_dir.
75155         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
75156         $(abs_top_srcdir) to each script and having each of them
75157         duplicate the work of setting PATH, set PATH here, using
75158         the new variable, abs_aux_dir instead.
75159         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
75160         * tests/test-vc-list-files-git.sh: Likewise.
75161         Reported by Bruno Haible.
75163 2008-05-01  Bruno Haible  <bruno@clisp.org>
75165         * lib/getndelim2.c (getndelim2): Fix newsize computation during
75166         reallocation. Rename 'done' to 'found_delimiter'.
75168 2008-05-01  Jim Meyering  <meyering@redhat.com>
75170         vc-list-files: accommodate /bin/sh like the one from Solaris 10
75171         * build-aux/vc-list-files: Use `...`, not $(...).
75173 2008-04-30  Jim Meyering  <meyering@redhat.com>
75175         add tests for vc-list-files
75176         * modules/vc-list-files-tests: New module.
75177         * tests/test-vc-list-files-cvs.sh: New file.
75178         * tests/test-vc-list-files-git.sh: New file.
75180         avoid a warning from gcc
75181         * lib/getndelim2.c (IF_LINT): Define.
75182         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
75184         vc-list-files: work properly with build-aux/cvsu, too
75185         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
75186         to all cvs-based clauses.
75188         vc-list-files: work properly in the CVS+awk case, too
75189         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
75191         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
75192         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
75193         take more than one file argument, so .  Add quotes, just in case $dir
75194         ever contains a shell meta-character.  Prompted by Soren Hansen in
75195         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
75197 2008-04-29  Eric Blake  <ebb9@byu.net>
75199         Optimize getndelim2 to use block operations when possible.
75200         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
75201         freadseek, and memchr2.
75202         * lib/getndelim2.c (getndelim2): Use them for block reads.
75204 2008-04-29  Bruno Haible  <bruno@clisp.org>
75206         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
75207         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75208         * modules/inet_ntop (Depends-on): Add extensions.
75209         * modules/inet_pton (Depends-on): Likewise.
75210         Reported by Simon Josefsson.
75212 2008-04-29  Jim Meyering  <meyering@redhat.com>
75214         When the is more than one match in a block, match all of them.
75215         * build-aux/useless-if-before-free: Iterate through each block
75216         until there are no more matches.
75218         Fix broken useless-if-before-free script.
75219         * build-aux/useless-if-before-free: Fix typo: missing "?" after
75220         the expression to match cast of argument to free-like function.
75222 2008-04-29  Eric Blake  <ebb9@byu.net>
75224         Use new header.
75225         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
75227 2008-04-29  Jim Meyering  <meyering@redhat.com>
75229         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
75230         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
75231         by gnulib to exist and to declare e.g., inet_ntop.
75232         Don't include "inet_ntop.h", now removed.
75234         * m4/arpa_inet_h.m4: Remove trailing blanks.
75236 2008-04-29  Eric Blake  <ebb9@byu.net>
75238         Silence valgrind on safe reads beyond potential array bounds.
75239         * lib/rawmemchr.valgrind: New file.
75240         * lib/strchrnul.valgrind: Likewise.
75241         * modules/rawmemchr (Files): Distribute new file.
75242         * modules/strchrnul (Files): Likewise.
75243         Suggested by Bruno Haible.
75245 2008-04-29  Bruno Haible  <bruno@clisp.org>
75247         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
75248         (inet_ntop, inet_pton): Change portability warning's wording.
75249         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
75250         Invoke gl_CHECK_NEXT_HEADERS.
75251         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
75252         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
75253         set ARPA_INET_H.
75254         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75255         * modules/arpa_inet (Description): No longer only for systems that
75256         lack it.
75257         (Depends-on): Add include_next.
75258         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
75259         HAVE_ARPA_INET_H.
75261 2008-04-29  Jim Meyering  <meyering@redhat.com>
75263         * modules/mkdir (License): Re-license as LGPLv2+.
75265 2008-04-29  Bruno Haible  <bruno@clisp.org>
75267         * modules/rawmemchr (Maintainer): Set to Eric.
75268         * modules/strchrnul (Maintainer): Likewise.
75270 2008-04-29  Simon Josefsson  <simon@josefsson.org>
75272         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
75273         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
75275         * modules/arpa_inet (arpa/inet.h): Use them.
75277 2008-04-28  Eric Blake  <ebb9@byu.net>
75279         Test getndelim2.
75280         * modules/getndelim2-tests: New file.
75281         * tests/test-getndelim2.c: Likewise.
75282         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
75283         stream.
75284         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
75286         * MODULES.html.sh: Document new module.
75288 2008-04-20  Bruno Haible  <bruno@clisp.org>
75290         * lib/c-stack.c (die): Use raise.
75291         * modules/c-stack (Depends-on): Add raise.
75293 2008-04-28  Bruno Haible  <bruno@clisp.org>
75295         Expect rpmatch to be declared.
75296         * lib/yesno.c (rpmatch): Remove declaration.
75298         Declare rpmatch.
75299         * lib/stdlib.in.h (rpmatch): New declaration.
75300         * lib/rpmatch.c: Include <stdlib.h> first.
75301         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
75302         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
75303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
75304         HAVE_RPMATCH.
75305         * modules/rpmatch (Depends-on): Add stdlib, extensions.
75306         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
75307         (Include): Set to <stdlib.h>.
75308         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
75309         HAVE_RPMATCH.
75310         * NEWS: Document the change.
75312 2008-04-28  Bruno Haible  <bruno@clisp.org>
75314         Change rpmatch to use nl_langinfo when appropriate.
75315         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
75316         (N_): New macro.
75317         (localized_pattern): New function/macro.
75318         (try): Remove match, nomatch arguments. Copy the pattern into safe
75319         memory before caching it.
75320         (rpmatch): Use localized_pattern. Add translator comments.
75321         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
75322         Suggested by Eric Blake.
75323         * modules/rpmatch (Depends-on): Add stdbool.
75325 2008-04-28  Eric Blake  <ebb9@byu.net>
75327         Add rawmemchr module, matching glibc.
75328         * modules/string (Makefile.am): New indicator.
75329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
75330         * lib/string.in.h (rawmemchr): Declare when appropriate.
75331         * modules/rawmemchr: New file.
75332         * m4/rawmemchr.m4: Likewise.
75333         * lib/rawmemchr.c: Likewise.
75334         * modules/rawmemchr-tests: Likewise.
75335         * tests/test-rawmemchr.c: Likewise.
75336         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
75337         module.
75338         * modules/strchrnul (Depends-on): Add rawmemchr.
75339         * lib/strchrnul.c (strchrnul): Optimize a corner case.
75341         Whitespace cleanup.
75342         * tests/test-strchrnul.c: Reindent.
75343         * lib/strchrnul.c: Likewise.
75345         Optimize and test strchrnul.
75346         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
75347         * modules/strchrnul-tests: New file.
75348         * tests/test-strchrnul.c: Likewise.
75350         Remove intprops dependency.
75351         * modules/memchr (Depends-on): Remove intprops.
75352         * modules/memrchr (Depends-on): Likewise.
75353         * modules/memchr2 (Depends-on): Likewise.
75354         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
75355         * lib/memrchr.c (__memrchr): Likewise.
75356         * lib/memrchr2.c (memchr2): Likewise.
75357         Reported by Simon Josefsson.
75359 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75361         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
75362         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75364 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75366         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
75368         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
75370         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
75372         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
75373         declarations.
75374         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
75376         * m4/inet_pton.m4: Don't check for header files.
75378         * m4/inet_ntop.m4: Don't check for header files.
75380 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75382         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
75383         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
75384         trigger for cygwin).
75385         Reported by Bruno Haible  <bruno@clisp.org>.
75387 2008-04-28  Bruno Haible  <bruno@clisp.org>
75389         * doc/posix-functions/strdup.texi: Mention mingw problem.
75391 2008-04-27  Bruno Haible  <bruno@clisp.org>
75393         * modules/stat-time-tests (Depends-on): Add sleep.
75394         * tests/test-stat-time.c (force_unlink): New function.
75395         (cleanup): Use it.
75396         (test_mtime): Remove the ctime related tests.
75397         (test_ctime): New function, containing the ctime related tests.
75398         (main): Call test_ctime, except on native Windows platforms.
75400 2008-04-27  Bruno Haible  <bruno@clisp.org>
75402         * lib/rpmatch.c (rpmatch): Add some comments.
75403         Reported by James Youngman <jay@gnu.org>.
75405 2008-04-27  Bruno Haible  <bruno@clisp.org>
75407         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
75408         quiet NaNs.
75410 2008-04-27  Bruno Haible  <bruno@clisp.org>
75412         Make test-yesno.sh work on mingw.
75413         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
75414         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
75415         (main): Set stdin to binary mode.
75416         * modules/yesno-tests (Depends-on): Add binary-io.
75418 2008-04-27  Bruno Haible  <bruno@clisp.org>
75420         Fix 'isfinite' on x86, x86_64, ia64 platforms.
75421         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
75422         argument that lie outside the IEEE 854 domain.
75423         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
75424         (gl_ISFINITE): Use it.
75425         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
75427 2008-04-27  Bruno Haible  <bruno@clisp.org>
75429         Allow local renaming in config.h.
75430         * lib/memrchr.c (memrchr): Don't undefine outside libc.
75432 2008-04-27  Bruno Haible  <bruno@clisp.org>
75434         * lib/memchr.c (__memchr): Change type of 'i'.
75435         * lib/memchr2.c (memchr2): Likewise.
75437 2008-04-26  Eric Blake  <ebb9@byu.net>
75438         and Bruno Haible  <bruno@clisp.org>
75440         Optimize and test memrchr.
75441         * modules/memrchr (Depends-on): Add intprops.
75442         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
75443         * modules/memrchr-tests: New file.
75444         * tests/test-memrchr.c: New file.
75446 2008-04-26  Bruno Haible  <bruno@clisp.org>
75448         Add tentative support for DragonFly BSD.
75449         * lib/stdio-impl.h: Add macros for DragonFly BSD.
75450         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
75451         fp.
75452         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75453         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
75454         * lib/fpurge.c (fpurge): Likewise.
75455         * lib/freadable.c (freaadable): Likewise.
75456         * lib/freadahead.c (freadahead): Likewise.
75457         * lib/freading.c (freading): Likewise.
75458         * lib/freadptr.c (freadptr): Likewise.
75459         * lib/freadseek.c (freadptrinc): Likewise.
75460         * lib/fseeko.c (fseeko): Likewise.
75461         * lib/fseterr.c (fseterr): Likewise.
75462         * lib/fwritable.c (fwritable): Likewise.
75463         * lib/fwriting.c (fwriting): Likewise.
75465 2008-04-26  Bruno Haible  <bruno@clisp.org>
75467         * lib/stdio-impl.h: New file.
75468         * lib/fbufmode.c: Include stdio-impl.h.
75469         (fbufmode): Use fp_, remove redundant #defines.
75470         * lib/fflush.c: Include stdio-impl.h.
75471         (clear_ungetc_buffer): Remove redundant #defines.
75472         * lib/fpurge.c: Include stdio-impl.h.
75473         (fpurge): Remove redundant #defines.
75474         * lib/freadable.c: Include stdio-impl.h.
75475         (freadable): Remove redundant #defines.
75476         * lib/freadahead.c: Include stdio-impl.h.
75477         (freadahead): Remove redundant #defines.
75478         * lib/freading.c: Include stdio-impl.h.
75479         (freading): Remove redundant #defines.
75480         * lib/freadptr.c: Include stdio-impl.h.
75481         (freadptr): Remove redundant #defines.
75482         * lib/freadseek.c: Include stdio-impl.h.
75483         (freadptrinc): Remove redundant #defines.
75484         * lib/fseeko.c: Include stdio-impl.h.
75485         (rpl_fseeko): Remove redundant #defines.
75486         * lib/fseterr.c: Include stdio-impl.h.
75487         (fseterr): Remove redundant #defines.
75488         * lib/fwritable.c: Include stdio-impl.h.
75489         (fwritable: Remove redundant #defines.
75490         * lib/fwriting.c: Include stdio-impl.h.
75491         (fwriting): Remove redundant #defines.
75492         * modules/fbufmode (Files): Add lib/stdio-impl.h.
75493         * modules/fflush (Files): Likewise.
75494         * modules/fpurge (Files): Likewise.
75495         * modules/freadable (Files): Likewise.
75496         * modules/freadahead (Files): Likewise.
75497         * modules/freading (Files): Likewise.
75498         * modules/freadptr (Files): Likewise.
75499         * modules/freadseek (Files): Likewise.
75500         * modules/fseeko (Files): Likewise.
75501         * modules/fseterr (Files): Likewise.
75502         * modules/fwritable (Files): Likewise.
75503         * modules/fwriting (Files): Likewise.
75505 2008-04-26  Bruno Haible  <bruno@clisp.org>
75507         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75508         restore_seek_optimization, update_fpos_cache): New functions, extracted
75509         from rpl_fflush.
75510         (rpl_fflush): Use them.
75511         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
75512         (gl_REPLACE_FFLUSH): Use it.
75514 2008-04-26  Bruno Haible  <bruno@clisp.org>
75516         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
75517         on Solaris.
75518         * tests/test-xstrtoimax.sh: Likewise.
75519         * tests/test-xstrtoumax.sh: Likewise.
75520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75522 2008-04-26  Bruno Haible  <bruno@clisp.org>
75524         * modules/memchr-tests: New file.
75525         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
75527 2008-04-26  Eric Blake  <ebb9@byu.net>
75528             Bruno Haible  <bruno@clisp.org>
75530         * lib/memchr.c: Include intprops.h.
75531         (__memchr): Optimize parallel detection of matching bytes. Rename local
75532         variables. Add explanatory comments.
75534 2008-04-26  Bruno Haible  <bruno@clisp.org>
75536         Fix module 'memchr', broken since 2000-10-28.
75537         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
75539 2008-04-26  Bruno Haible  <bruno@clisp.org>
75541         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
75542         comments.
75544 2008-04-25  Eric Blake  <ebb9@byu.net>
75546         Use native fstatat on cygwin 1.7.0.
75547         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
75548         first.
75550 2008-04-23  Eric Blake  <ebb9@byu.net>
75552         Improve memchr2 performance.
75553         * lib/memchr2.c (memchr2): Further optimize parallel detection of
75554         NUL bytes.
75555         * modules/memchr2 (Depends-on): Use intprops.h.
75557 2008-04-23  Simon Josefsson  <simon@josefsson.org>
75559         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
75560         an inline function instead of a CPP macro.  Patch by Ben Pfaff
75561         <blp@cs.stanford.edu>.
75563 2008-04-23  Simon Josefsson  <simon@josefsson.org>
75565         * lib/arpa_inet.in.h: New file.
75567         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
75568         (Makefile.am): Sed in substitute header file.
75570         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
75571         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
75573         * modules/inet_ntop (configure.ac): Use
75574         gl_ARPA_INET_MODULE_INDICATOR.
75576         * modules/inet_pton (configure.ac): Use
75577         gl_ARPA_INET_MODULE_INDICATOR.
75579 2008-04-22  Jim Meyering  <meyering@redhat.com>
75581         * modules/verify (License): Re-license as LGPLv2+.
75583 2008-04-22  Simon Josefsson  <simon@josefsson.org>
75585         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
75586         parameter to void* as per POSIX standard (MinGW uses char*).
75588 2008-04-21  Bruno Haible  <bruno@clisp.org>
75590         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75591         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75592         Define to replacements if REPLACE_ISWCNTRL is 1.
75593         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
75594         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
75595         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
75596         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
75597         what it fixes.
75598         * doc/posix-functions/iswalpha.texi: Likewise.
75599         * doc/posix-functions/iswblank.texi: Likewise.
75600         * doc/posix-functions/iswcntrl.texi: Likewise.
75601         * doc/posix-functions/iswdigit.texi: Likewise.
75602         * doc/posix-functions/iswgraph.texi: Likewise.
75603         * doc/posix-functions/iswlower.texi: Likewise.
75604         * doc/posix-functions/iswprint.texi: Likewise.
75605         * doc/posix-functions/iswpunct.texi: Likewise.
75606         * doc/posix-functions/iswspace.texi: Likewise.
75607         * doc/posix-functions/iswupper.texi: Likewise.
75608         * doc/posix-functions/iswxdigit.texi: Likewise.
75609         Reported by Alain Guibert.
75611 2008-04-21  Bruno Haible  <bruno@clisp.org>
75613         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
75614         Patch by Alain Guibert.
75616 2008-04-21  Bruno Haible  <bruno@clisp.org>
75618         Fix test failures on mingw.
75619         * tests/test-xstrtol.c (print_no_progname): New function.
75620         (main): Install it in error_print_progname hook.
75621         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
75622         * tests/test-xstrtoimax.sh: Likewise.
75623         * tests/test-xstrtoumax.sh: Likewise.
75625 2008-04-21  Bruno Haible  <bruno@clisp.org>
75627         Fix test failure on mingw.
75628         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
75630 2008-04-21  Bruno Haible  <bruno@clisp.org>
75632         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
75633         Actually assign a value.
75635 2008-04-20  Bruno Haible  <bruno@clisp.org>
75637         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
75638         take 2.
75639         * lib/canonicalize.c (canonicalize_file_name): Elide if the
75640         'canonicalize-lgpl' module is also used.
75641         * lib/canonicalize-lgpl.c: Undo last change.
75642         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
75644 2008-04-20  Bruno Haible  <bruno@clisp.org>
75646         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
75647         config.h. Provide _mkdir based fallback for mingw.
75648         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
75649         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
75650         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
75651         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
75652         rather than defining mkdir in config.h.
75653         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
75654         (gl_SYS_STAT_H_DEFAULTS): New macro.
75655         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
75656         HAVE_IO_H any more.
75657         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
75658         HAVE_DECL_MKDIR and HAVE_IO_H.
75660 2008-04-20  Bruno Haible  <bruno@clisp.org>
75662         * lib/isapipe.c: Port to native Windows platforms.
75664 2008-04-20  Bruno Haible  <bruno@clisp.org>
75666         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
75668 2008-04-21  Eric Blake  <ebb9@byu.net>
75670         Work around preprocessors that don't handle UINTMAX_MAX.
75671         * lib/memchr2.c (memchr2): Avoid embedded #if.
75672         Reported by Alain Guibert, fix suggested by Bruno Haible.
75674 2008-04-21  Simon Josefsson  <simon@josefsson.org>
75676         * doc/posix-functions/strftime.texi (strftime): Explain better
75677         Windows incompatibility.  Suggested by Micah Cowan
75678         <micah@cowan.name>.
75680 2008-04-20  Bruno Haible  <bruno@clisp.org>
75682         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
75683         unistr/u8-mblen.
75685 2008-04-20  Bruno Haible  <bruno@clisp.org>
75687         Fix test failure on platforms with non-GNU iconv.
75688         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
75689         (U_TO_U8): Use it, rather than u16_to_u8.
75690         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
75691         units at the end of the input string.
75692         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
75694 2008-04-20  Bruno Haible  <bruno@clisp.org>
75696         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
75697         when the resulting length is 0.
75698         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
75700 2008-04-20  Bruno Haible  <bruno@clisp.org>
75702         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
75703         works.
75704         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
75706 2008-04-20  Bruno Haible  <bruno@clisp.org>
75708         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
75709         * modules/tsearch-tests (configure.ac): Test for initstate function.
75711 2008-04-20  Bruno Haible  <bruno@clisp.org>
75713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
75714         for nlink_t if missing.
75715         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
75717 2008-04-19  Bruno Haible  <bruno@clisp.org>
75719         Work around snprintf bug on Linux libc5.
75720         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
75721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
75722         gl_SNPRINTF_SIZE1.
75723         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75724         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
75725         that test failed.
75726         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
75727         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
75728         * modules/snprintf (Files): Add m4/printf.m4.
75729         * modules/vsnprintf (Files): Likewise.
75730         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
75731         * doc/posix-functions/vsnprintf.texi: Likewise.
75733 2008-04-19  Bruno Haible  <bruno@clisp.org>
75735         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
75736         from 0.0058 to less than 10^-7.
75738 2008-04-19  Bruno Haible  <bruno@clisp.org>
75740         Fix rounding when a precision is given.
75741         * lib/vasnprintf.c (is_borderline): New function.
75742         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
75743         9...9x.
75744         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
75745         %e, %g.
75746         * tests/test-vasprintf-posix.c (test_function): Likewise.
75747         * tests/test-snprintf-posix.h (test_function): Likewise.
75748         * tests/test-sprintf-posix.h (test_function): Likewise.
75749         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
75750         * tests/test-printf-posix.h (test_function): Likewise.
75751         * tests/test-printf-posix.output: Update.
75752         Reported by John Darrington <john@darrington.wattle.id.au> via
75753         Ben Pfaff <blp@cs.stanford.edu>.
75755 2008-04-18  Simon Josefsson  <simon@josefsson.org>
75757         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
75758         Suggested by Bruno Haible <bruno@clisp.org>.
75760 2008-04-17  Bruno Haible  <bruno@clisp.org>
75762         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
75763         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
75764         implementation.
75765         Patch by Bruce Merry <bmerry@gmail.com>.
75767 2008-04-17  Simon Josefsson  <simon@josefsson.org>
75769         * doc/posix-functions/strftime.texi (strftime): Mention that %e
75770         doesn't work under Windows.
75772 2008-04-16  Bruno Haible  <bruno@clisp.org>
75774         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
75775         New macros.
75776         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
75777         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
75778         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
75779         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
75780         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
75781         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
75782         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
75783         macros.
75784         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
75785         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
75786         Northern Sotho, Uighur.
75788 2008-04-16  Bruno Haible  <bruno@clisp.org>
75790         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
75791         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
75792         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
75793         Reported by Daniel Bergström <daniel@octocode.com>.
75795 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
75796             Bruno Haible  <bruno@clisp.org>
75798         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
75799         function.
75800         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
75801         New functions, mostly extracted from gl_locale_name_default.
75802         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
75804 2008-04-16  Eric Blake  <ebb9@byu.net>
75806         Adjust strtod detection to catch glibc 2.7 bug.
75807         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
75808         Reported by John Gatewood Ham.
75810 2008-04-16  Bruno Haible  <bruno@clisp.org>
75812         Add tentative support for Linux libc5.
75813         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
75814         * lib/fpurge.c (fpurge): Likewise.
75815         * lib/freadable.c (freadable): Likewise.
75816         * lib/freadahead.c (freadahead): Likewise.
75817         * lib/freading.c (freading): Likewise.
75818         * lib/freadptr.c (freadptr): Likewise.
75819         * lib/freadseek.c (freadptrinc): Likewise.
75820         * lib/fseeko.c (rpl_fseeko): Likewise.
75821         * lib/fseterr.c (fseterr): Likewise.
75822         * lib/fwritable.c (fwritable): Likewise.
75823         * lib/fwriting.c (fwriting): Likewise.
75824         Reported by Alain Guibert <alguibert+bts@free.fr>.
75826 2008-04-15  Bruno Haible  <bruno@clisp.org>
75828         * modules/mathl (configure.ac): Define module indicator.
75830 2008-04-15  Bruno Haible  <bruno@clisp.org>
75832         * lib/logl.c (logl): Remove unused variables.
75834 2008-04-15  Bruno Haible  <bruno@clisp.org>
75836         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
75837         fails.
75839 2008-04-15  Bruno Haible  <bruno@clisp.org>
75841         * lib/trim.c (trim2): Fix argument of isspace() macro.
75843 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
75845         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
75846         to 0.
75847         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
75849 2008-04-14  Bruno Haible  <bruno@clisp.org>
75851         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
75852         AC_LANG_PROGRAM argument.
75853         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
75854         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
75855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
75856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75857         * m4/math_h.m4 (gl_MATH_H): Likewise.
75858         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
75859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
75861         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
75862         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75863         * m4/regex.m4 (gl_REGEX): Likewise.
75864         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
75865         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
75866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75867         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
75868         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75869         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75870         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
75873 2008-04-14  Jim Meyering  <meyering@redhat.com>
75875         test-strtod: fix typos: s/abs/fabs/
75876         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
75878 2008-04-13  Bruno Haible  <bruno@clisp.org>
75880         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
75881         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
75882         module is also used and while not building the reloc-wrapper.
75884 2008-04-13  Bruno Haible  <bruno@clisp.org>
75886         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
75888 2008-04-13  Bruno Haible  <bruno@clisp.org>
75890         Fix AIX compilation failure introduced on 2008-04-02.
75891         * tests/test-frexp.c (exp): Undefine before redefining.
75892         * tests/test-frexpl.c (exp): Likewise.
75894 2008-04-13  Bruno Haible  <bruno@clisp.org>
75896         Work around a HP-UX stdio bug.
75897         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
75898         * tests/test-ftello.c (main): Likewise.
75899         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
75900         * doc/posix-functions/ftello.texi: Likewise.
75902 2008-04-13  Bruno Haible  <bruno@clisp.org>
75904         Make test-signbit pass on HP-UX/hppa.
75905         * tests/test-signbit.c (minus_zerol): New variable.
75906         (test_signbitl): Use it.
75908 2008-04-13  Bruno Haible  <bruno@clisp.org>
75910         Make truncl work on OSF/1 4.0.
75911         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
75912         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
75913         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
75914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
75915         HAVE_DECL_TRUNCL.
75916         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
75917         HAVE_DECL_TRUNCL.
75918         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
75920 2008-04-13  Bruno Haible  <bruno@clisp.org>
75922         * lib/unictype.h: Remove trailing comma from enumeration definitions.
75924 2008-04-13  Bruno Haible  <bruno@clisp.org>
75926         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
75927         expression, so as to avoid HP-UX 11 cc compiler bug.
75929 2008-04-13  Bruno Haible  <bruno@clisp.org>
75931         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
75933 2008-04-13  Bruno Haible  <bruno@clisp.org>
75935         * lib/git-merge-changelog.c: Remove empty declaration outside of
75936         functions.
75938 2008-04-13  Bruno Haible  <bruno@clisp.org>
75940         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
75942 2008-04-13  Bruno Haible  <bruno@clisp.org>
75944         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
75945         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
75946         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
75947         also if it exists but lacks definitions of the SHUT_* macros.
75948         * modules/sys_socket (Description): Update.
75949         Reported by Elbert Pol <e.pol@chello.nl>.
75951 2008-04-13  Bruno Haible  <bruno@clisp.org>
75953         * lib/localcharset.c (OS2): Don't redefine if already defined.
75954         Reported by Elbert Pol <e.pol@chello.nl>.
75956 2008-04-13  Bruno Haible  <bruno@clisp.org>
75958         * lib/binary-io.h [__EMX__]: Include <io.h>.
75959         Reported by Elbert Pol <e.pol@chello.nl>.
75961 2008-04-12  Bruno Haible  <bruno@clisp.org>
75963         * lib/fpucw.h: Enable the definitions also for x86_64.
75964         Needed for NetBSD/x86_64.
75965         Reported by Thomas Klausner <tk@giga.or.at>.
75967 2008-04-12  Bruno Haible  <bruno@clisp.org>
75969         * tests/test-strtod.c: Include isnand.h.
75970         (main): Use isnand instead of isnan.
75971         Reported by Jim Meyering.
75973 2008-04-12  Bruno Haible  <bruno@clisp.org>
75975         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
75976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75978 2008-04-12  Jim Meyering  <meyering@redhat.com>
75980         * m4/math_h.m4 (gl_MATH_H): Fix typos.
75982 2008-04-12  Bruno Haible  <bruno@clisp.org>
75984         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
75985         Reported by Elbert Pol <e.pol@chello.nl>.
75987 2008-04-12  Eric Blake  <ebb9@byu.net>
75989         Work around Solaris 10 math.h bug.
75990         * m4/math_h.m4 (gl_MATH_H): Check for bug.
75991         (gl_MATH_H_DEFAULTS): Set up default.
75992         * modules/math (Makefile.am): Replace new indicators.
75993         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
75994         * tests/test-math.c (main): Test this.
75995         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
75996         * doc/posix-headers/math.texi (math.h): Mention bug.
75997         Reported by Nelson H. F. Beebe and Jim Meyering.
75999 2008-04-11  Bruno Haible  <bruno@clisp.org>
76001         Adapt to future versions of Apple GCC.
76002         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
76003         Reported by Peter O'Gorman <peter@pogma.com>.
76005 2008-04-11  Bruno Haible  <bruno@clisp.org>
76007         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
76009 2008-04-11  Bruno Haible  <bruno@clisp.org>
76011         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
76013         * modules/getaddrinfo-tests (Makefile.am): Define
76014         test_getaddrinfo_LDADD.
76016 2008-04-11  Bruno Haible  <bruno@clisp.org>
76018         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
76019         (init): Fix syntax error.
76020         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
76021         is declared.
76023 2008-04-11  Bruno Haible  <bruno@clisp.org>
76025         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
76026         * modules/glob (Depends-on): Add stdbool.
76028 2008-04-11  Bruno Haible  <bruno@clisp.org>
76030         * lib/trim.c: Include <string.h>.
76032 2008-04-11  Eric Blake  <ebb9@byu.net>
76034         Avoid compile failure on OS/2.
76035         * lib/regex_internal.h (internal_function): Disable optimization
76036         on OS/2 (__EMX__), where it caused compiler error.
76037         Reported by Elbert Pol.
76039 2008-04-11  Bruno Haible  <bruno@clisp.org>
76041         Flush the standard error stream before aborting. Needed on mingw.
76042         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
76043         * tests/test-array_list.c (ASSERT): Likewise.
76044         * tests/test-array_oset.c (ASSERT): Likewise.
76045         * tests/test-avltree_list.c (ASSERT): Likewise.
76046         * tests/test-avltree_oset.c (ASSERT): Likewise.
76047         * tests/test-avltreehash_list.c (ASSERT): Likewise.
76048         * tests/test-binary-io.c (ASSERT): Likewise.
76049         * tests/test-byteswap.c (ASSERT): Likewise.
76050         * tests/test-c-ctype.c (ASSERT): Likewise.
76051         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
76052         * tests/test-c-strcasestr.c (ASSERT): Likewise.
76053         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
76054         * tests/test-c-strstr.c (ASSERT): Likewise.
76055         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
76056         * tests/test-canonicalize.c (ASSERT): Likewise.
76057         * tests/test-carray_list.c (ASSERT): Likewise.
76058         * tests/test-ceilf1.c (ASSERT): Likewise.
76059         * tests/test-ceilf2.c (ASSERT): Likewise.
76060         * tests/test-ceill.c (ASSERT): Likewise.
76061         * tests/test-count-one-bits.c (ASSERT): Likewise.
76062         * tests/test-fbufmode.c (ASSERT): Likewise.
76063         * tests/test-fflush2.c (ASSERT): Likewise.
76064         * tests/test-floorf1.c (ASSERT): Likewise.
76065         * tests/test-floorf2.c (ASSERT): Likewise.
76066         * tests/test-floorl.c (ASSERT): Likewise.
76067         * tests/test-fopen.c (ASSERT): Likewise.
76068         * tests/test-fpending.c (ASSERT): Likewise.
76069         * tests/test-fprintf-posix.c (ASSERT): Likewise.
76070         * tests/test-fpurge.c (ASSERT): Likewise.
76071         * tests/test-freadable.c (ASSERT): Likewise.
76072         * tests/test-freadahead.c (ASSERT): Likewise.
76073         * tests/test-freading.c (ASSERT): Likewise.
76074         * tests/test-freadptr.c (ASSERT): Likewise.
76075         * tests/test-freadptr2.c (ASSERT): Likewise.
76076         * tests/test-freadseek.c (ASSERT): Likewise.
76077         * tests/test-freopen.c (ASSERT): Likewise.
76078         * tests/test-frexp.c (ASSERT): Likewise.
76079         * tests/test-frexpl.c (ASSERT): Likewise.
76080         * tests/test-fseek.c (ASSERT): Likewise.
76081         * tests/test-fseeko.c (ASSERT): Likewise.
76082         * tests/test-fstrcmp.c (ASSERT): Likewise.
76083         * tests/test-ftell.c (ASSERT): Likewise.
76084         * tests/test-ftello.c (ASSERT): Likewise.
76085         * tests/test-func.c (ASSERT): Likewise.
76086         * tests/test-fwritable.c (ASSERT): Likewise.
76087         * tests/test-fwriting.c (ASSERT): Likewise.
76088         * tests/test-getdelim.c (ASSERT): Likewise.
76089         * tests/test-getline.c (ASSERT): Likewise.
76090         * tests/test-i-ring.c (ASSERT): Likewise.
76091         * tests/test-iconv-utf.c (ASSERT): Likewise.
76092         * tests/test-iconv.c (ASSERT): Likewise.
76093         * tests/test-isfinite.c (ASSERT): Likewise.
76094         * tests/test-isnand.c (ASSERT): Likewise.
76095         * tests/test-isnanf.c (ASSERT): Likewise.
76096         * tests/test-isnanl.h (ASSERT): Likewise.
76097         * tests/test-ldexpl.c (ASSERT): Likewise.
76098         * tests/test-linked_list.c (ASSERT): Likewise.
76099         * tests/test-linkedhash_list.c (ASSERT): Likewise.
76100         * tests/test-localename.c (ASSERT): Likewise.
76101         * tests/test-lseek.c (ASSERT): Likewise.
76102         * tests/test-mbscasecmp.c (ASSERT): Likewise.
76103         * tests/test-mbscasestr1.c (ASSERT): Likewise.
76104         * tests/test-mbscasestr2.c (ASSERT): Likewise.
76105         * tests/test-mbscasestr3.c (ASSERT): Likewise.
76106         * tests/test-mbscasestr4.c (ASSERT): Likewise.
76107         * tests/test-mbschr.c (ASSERT): Likewise.
76108         * tests/test-mbscspn.c (ASSERT): Likewise.
76109         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
76110         * tests/test-mbspbrk.c (ASSERT): Likewise.
76111         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
76112         * tests/test-mbsrchr.c (ASSERT): Likewise.
76113         * tests/test-mbsspn.c (ASSERT): Likewise.
76114         * tests/test-mbsstr1.c (ASSERT): Likewise.
76115         * tests/test-mbsstr2.c (ASSERT): Likewise.
76116         * tests/test-mbsstr3.c (ASSERT): Likewise.
76117         * tests/test-memchr2.c (ASSERT): Likewise.
76118         * tests/test-memmem.c (ASSERT): Likewise.
76119         * tests/test-open.c (ASSERT): Likewise.
76120         * tests/test-printf-frexp.c (ASSERT): Likewise.
76121         * tests/test-printf-frexpl.c (ASSERT): Likewise.
76122         * tests/test-printf-posix.c (ASSERT): Likewise.
76123         * tests/test-quotearg.c (ASSERT): Likewise.
76124         * tests/test-rbtree_list.c (ASSERT): Likewise.
76125         * tests/test-rbtree_oset.c (ASSERT): Likewise.
76126         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
76127         * tests/test-round1.c (ASSERT): Likewise.
76128         * tests/test-roundf1.c (ASSERT): Likewise.
76129         * tests/test-roundl.c (ASSERT): Likewise.
76130         * tests/test-signbit.c (ASSERT): Likewise.
76131         * tests/test-sleep.c (ASSERT): Likewise.
76132         * tests/test-snprintf-posix.c (ASSERT): Likewise.
76133         * tests/test-snprintf.c (ASSERT): Likewise.
76134         * tests/test-sprintf-posix.c (ASSERT): Likewise.
76135         * tests/test-stat-time.c (ASSERT): Likewise.
76136         * tests/test-strcasestr.c (ASSERT): Likewise.
76137         * tests/test-strerror.c (ASSERT): Likewise.
76138         * tests/test-striconv.c (ASSERT): Likewise.
76139         * tests/test-striconveh.c (ASSERT): Likewise.
76140         * tests/test-striconveha.c (ASSERT): Likewise.
76141         * tests/test-strsignal.c (ASSERT): Likewise.
76142         * tests/test-strstr.c (ASSERT): Likewise.
76143         * tests/test-strtod.c (ASSERT): Likewise.
76144         * tests/test-trunc1.c (ASSERT): Likewise.
76145         * tests/test-trunc2.c (ASSERT): Likewise.
76146         * tests/test-truncf1.c (ASSERT): Likewise.
76147         * tests/test-truncf2.c (ASSERT): Likewise.
76148         * tests/test-truncl.c (ASSERT): Likewise.
76149         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
76150         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
76151         * tests/test-vasnprintf.c (ASSERT): Likewise.
76152         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
76153         * tests/test-vasprintf.c (ASSERT): Likewise.
76154         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
76155         * tests/test-vprintf-posix.c (ASSERT): Likewise.
76156         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
76157         * tests/test-vsnprintf.c (ASSERT): Likewise.
76158         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
76159         * tests/test-wcwidth.c (ASSERT): Likewise.
76160         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
76161         * tests/test-xprintf-posix.c (ASSERT): Likewise.
76162         * tests/test-xvasprintf.c (ASSERT): Likewise.
76163         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
76164         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
76165         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
76166         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
76167         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
76168         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
76169         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
76170         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
76171         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
76172         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
76173         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
76174         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
76175         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
76176         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
76177         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
76178         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
76179         * tests/unictype/test-block_list.c (ASSERT): Likewise.
76180         * tests/unictype/test-block_of.c (ASSERT): Likewise.
76181         * tests/unictype/test-block_test.c (ASSERT): Likewise.
76182         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
76183         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
76184         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
76185         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
76186         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
76187         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
76188         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
76189         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
76190         * tests/unictype/test-combining.c (ASSERT): Likewise.
76191         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
76192         * tests/unictype/test-digit.c (ASSERT): Likewise.
76193         * tests/unictype/test-mirror.c (ASSERT): Likewise.
76194         * tests/unictype/test-numeric.c (ASSERT): Likewise.
76195         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
76196         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
76197         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
76198         * tests/unictype/test-scripts.c (ASSERT): Likewise.
76199         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
76200         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
76201         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
76202         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
76203         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
76204         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
76205         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
76206         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
76207         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
76208         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
76209         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
76210         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
76211         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
76212         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
76213         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
76214         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
76215         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
76216         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
76217         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
76218         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
76219         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
76220         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
76221         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
76222         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
76223         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
76224         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
76225         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
76226         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
76227         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
76228         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
76229         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
76230         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
76231         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
76232         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
76233         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
76234         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
76235         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
76236         Reported by Eric Blake.
76238 2008-04-11  Bruno Haible  <bruno@clisp.org>
76240         * lib/wchar.in.h: Tweak comment.
76242 2008-04-11  Bruno Haible  <bruno@clisp.org>
76244         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
76245         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
76246         gl_COMMON.
76247         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
76249 2008-04-11  Bruno Haible  <bruno@clisp.org>
76251         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
76253 2008-04-11  Simon Josefsson  <simon@josefsson.org>
76255         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
76256         of attempting to use non-existing /dev/*random.  Based on patch
76257         from Adam Strzelecki <ono@java.pl> in
76258         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
76260 2008-04-08  Bruno Haible  <bruno@clisp.org>
76262         Add tentative support for emx+gcc.
76263         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
76264         * lib/fpurge.c (fpurge): Likewise.
76265         * lib/freadable.c (freadable): Likewise.
76266         * lib/freadahead.c (freadahead): Likewise.
76267         * lib/freading.c (freading): Likewise.
76268         * lib/freadptr.c (freadptr): Likewise.
76269         * lib/freadseek.c (freadptrinc): Likewise.
76270         * lib/fseeko.c (rpl_fseeko): Likewise.
76271         * lib/fseterr.c (fseterr): Likewise.
76272         * lib/fwritable.c (fwritable): Likewise.
76273         * lib/fwriting.c (fwriting): Likewise.
76274         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
76276 2008-04-09  Eric Blake  <ebb9@byu.net>
76278         Avoid some autoconf warnings.
76279         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
76280         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
76281         * m4/afs.m4 (gl_AFS): Likewise.
76282         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
76283         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
76284         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76285         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
76286         (gl_INTEGER_TYPE_SUFFIX): Likewise.
76287         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
76288         (AC_CHECK_DECLS_ONCE): Likewise.
76289         Rename file...
76290         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
76291         gnulib-tool requires autoconf 2.59 or better.
76292         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
76294 2008-04-08  Eric Blake  <ebb9@byu.net>
76296         Use 'git describe --match' if present (added in git 1.5.5).
76297         * build-aux/git-version-gen: Limit result to tags that match 'v*'
76298         if possible.
76300 2008-04-08  Bruno Haible  <bruno@clisp.org>
76302         Add tentative support for OpenServer.
76303         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
76304         _ptr, _cnt.
76305         * lib/fpurge.c (fpurge): Likewise.
76306         * lib/freadable.c (freadable): Likewise.
76307         * lib/freadahead.c (freadahead): Likewise.
76308         * lib/freading.c (freading): Likewise.
76309         * lib/freadptr.c (freadptr): Likewise.
76310         * lib/freadseek.c (freadptrinc): Likewise.
76311         * lib/fseeko.c (rpl_fseeko): Likewise.
76312         * lib/fseterr.c (fseterr): Likewise.
76313         * lib/fwritable.c (fwritable): Likewise.
76314         * lib/fwriting.c (fwriting): Likewise.
76315         Reported by Roger Cornelius <rac@tenzing.org> and
76316         Brian K. White <brian@aljex.com>.
76318 2008-04-06  Jim Meyering  <meyering@redhat.com>
76320         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
76322 2008-04-06  Bruno Haible  <bruno@clisp.org>
76324         Avoid possible error with non-ASCII bytes in UTF-8 locales.
76325         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
76326         * tests/test-printf-posix.sh: Likewise.
76327         * tests/test-vfprintf-posix.sh: Likewise.
76328         * tests/test-vprintf-posix.sh: Likewise.
76329         * tests/test-xprintf-posix.sh: Likewise.
76331 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76333         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
76334         hide error from 'ls', needed on OS/2.
76335         Report by Elbert Pol <elbert.pol@gmail.com>.
76337 2008-04-04  Eric Blake  <ebb9@byu.net>
76339         Make test-fseeko.c failures meaningful.
76340         * tests/test-fseeko.c: Print line number on failure.
76341         * tests/test-fseek.c: Likewise.
76342         Reported by Nelson H. F. Beebe.
76344         Improve strtod bug detection check.
76345         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
76346         required for Solaris 10.
76347         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
76349 2008-04-04  Bruno Haible  <bruno@clisp.org>
76351         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
76352         by m4/setenv.m4.
76354 2008-04-03  Eric Blake  <ebb9@byu.net>
76356         Ensure sane .version contents.
76357         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
76358         version string.
76359         * build-aux/git-version-gen: Improve documentation.
76361         Make GNU make output nicer.
76362         * top/GNUmakefile [!_have-Makefile]: Add dependency on
76363         MAKECMDGOALS to enforce message for all command line targets.  Set
76364         srcdir for use in maint.mk.
76366         Another maintainer tweak.
76367         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
76368         a target that regenerates version.
76370 2008-04-03  Jim Meyering  <meyering@redhat.com>
76372         vc-list-files: don't cause coreutils "make po-check" failure
76373         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
76375 2008-04-03  Eric Blake  <ebb9@byu.net>
76377         Allow VPATH usage of vc-list-files.
76378         * build-aux/vc-list-files (scriptversion): Add timestamp.
76379         (options): Add --help, --version, -C.
76380         (CVS): Support installed cvsu.
76382 2008-04-02  Bruno Haible  <bruno@clisp.org>
76384         Avoid some "statement with no effect" warnings from gcc.
76385         * tests/test-wctype.c (main): Explicitly ignore unused values.
76386         Reported by Jim Meyering.
76388 2008-04-02  Jim Meyering  <meyering@redhat.com>
76390         Avoid some warnings from "gcc -Wshadow".
76391         * tests/test-frexp.c (exp): Define to a different identifier.
76392         * tests/test-frexpl.c (exp): Likewise.
76394 2008-04-03  Jim Meyering  <meyering@redhat.com>
76396         bootstrap: remove dangling *.[ch] symlinks from lib
76397         * build-aux/bootstrap [dangling symlink removal]: Move find's
76398         -depth option to precede all others, to avoid a warning.
76399         Remove *.[ch] files too, and from "$source_base" (usually lib/).
76401 2008-04-02  Bruno Haible  <bruno@clisp.org>
76403         Avoid some warnings from "gcc -Wshadow".
76404         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
76405         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
76406         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
76407         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
76408         Reported by Jim Meyering.
76410 2008-04-01  Bruno Haible  <bruno@clisp.org>
76412         Fix test to work on IRIX 6.5 with cc.
76413         * tests/test-math.c (numeric_equal): New function.
76414         (main): Use it.
76416 2008-04-01  Bruno Haible  <bruno@clisp.org>
76418         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
76420 2008-04-01  Bruno Haible  <bruno@clisp.org>
76422         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
76423         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76424         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
76425         (Depends-on): Remove math.
76427         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
76428         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76429         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
76430         (Depends-on): Remove math.
76432         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
76433         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76434         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
76435         (Depends-on): Remove math.
76436         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
76437         (Depends-on): Remove math.
76439         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
76440         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76441         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
76442         (Depends-on): Remove math.
76443         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
76444         (Depends-on): Remove math.
76446         * tests/test-round1.c: Include nan.h.
76447         (main): Use NaNd instead of NAN.
76448         * modules/round-tests (Files): Add tests/nan.h.
76450         * tests/test-trunc1.c: Include nan.h.
76451         (main): Use NaNd instead of NAN.
76452         * modules/trunc-tests (Files): Add tests/nan.h.
76454         * tests/test-roundf1.c: Include nan.h.
76455         (main): Use NaNf instead of NAN.
76456         * modules/roundf-tests (Files): Add tests/nan.h.
76458         * tests/test-truncf1.c: Include nan.h.
76459         (main): Use NaNf instead of NAN.
76460         * modules/truncf-tests (Files): Add tests/nan.h.
76462         * tests/test-ceilf1.c: Include nan.h.
76463         (main): Use NaNf instead of NAN.
76464         * modules/ceilf-tests (Files): Add tests/nan.h.
76466         * tests/test-floorf1.c: Include nan.h.
76467         (main): Use NaNf instead of NAN.
76468         * modules/floorf-tests (Files): Add tests/nan.h.
76470         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
76471         (main): Use NaNf instead of NAN.
76472         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
76474         * tests/test-isnand.c: Include nan.h instead of <math.h>.
76475         (main): Use NaNd instead of NAN.
76476         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
76478         * tests/test-frexp.c: Include nan.h.
76479         (main): Use NaNd instead of NAN.
76480         * modules/frexp-tests (Files): Add tests/nan.h.
76482         * lib/isnan.c: Don't include <math.h>.
76483         (FUNC): Don't use NAN macro.
76484         * modules/isnand-nolibm (Depends-on): Remove math.
76485         * modules/isnanf-nolibm (Depends-on): Remove math.
76486         * modules/isnanl (Depends-on): Remove math.
76487         * modules/isnanl-nolibm (Depends-on): Remove math.
76489         * tests/nan.h: New file.
76491 2008-04-01  Eric Blake  <ebb9@byu.net>
76493         Fix typos.
76494         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
76495         values to be the right type.
76497         For now, cater to gnulib strtod inaccuracies.
76498         * tests/test-strtod.c (main): Allow 1-ulp error on expected
76499         fractional results.  While not as nice from a QoI perspective, it
76500         is a quicker patch than correctly implementing decimal to binary
76501         rounding.
76503 2008-03-31  Eric Blake  <ebb9@byu.net>
76505         Guarantee a definition of NAN.
76506         * lib/math.in.h (NAN): Define if missing.
76507         * tests/test-math.c (main): Test it.
76508         * doc/posix-headers/math.texi (math.h): Document this.
76509         * lib/isnan.c (rpl_isnand): Use it.
76510         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
76511         * tests/test-floorf1.c (NaN): Likewise.
76512         * tests/test-frexp.c (NaN): Likewise.
76513         * tests/test-isnand.c (NaN): Likewise.
76514         * tests/test-isnanf.c (NaN): Likewise.
76515         * tests/test-round1.c (NaN): Likewise.
76516         * tests/test-roundf1.c (NaN): Likewise.
76517         * tests/test-snprintf-posix.h (NaN): Likewise.
76518         * tests/test-sprintf-posix.h (NaN): Likewise.
76519         * tests/test-trunc1.c (NaN): Likewise.
76520         * tests/test-truncf1.c (NaN): Likewise.
76521         * tests/test-vasnprintf-posix.c (NaN): Likewise.
76522         * tests/test-vasprintf-posix.c (NaN): Likewise.
76523         * modules/isnand-nolibm (Depends-on): Add math.
76524         * modules/isnanf-nolibm (Depends-on): Likewise.
76525         * modules/isnanl (Depends-on): Likewise.
76526         * modules/isnanl-nolibm (Depends-on): Likewise.
76527         * modules/snprintf-posix-tests (Depends-on): Likewise.
76528         * modules/sprintf-posix-tests (Depends-on): Likewise.
76529         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
76530         * modules/vsprintf-posix-tests (Depends-on): Likewise.
76531         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
76532         * modules/vasprintf-posix-tests (Depends-on): Likewise.
76534 2008-03-31  Bruno Haible  <bruno@clisp.org>
76536         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
76537         * doc/posix-functions/strtod.texi: Likewise.
76539 2008-03-31  Bruno Haible  <bruno@clisp.org>
76541         * tests/test-strtod.c (main): Don't use C99 syntax.
76543 2008-03-31  Bruno Haible  <bruno@clisp.org>
76545         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
76546         Reported by Eric Blake.
76548 2008-03-31  Jim Meyering  <meyering@redhat.com>
76550         Don't compare actual signbit return values.
76551         * tests/test-strtod.c (main): Rather, compare only their
76552         zero/non-zero nature.
76554 2008-03-31  Eric Blake  <ebb9@byu.net>
76556         More strtod documentation.
76557         * doc/posix-functions/strtod.texi (strtod): Interpret more test
76558         failures as distinct bugs.
76560 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
76562         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
76563         Problem reported by Erik Benada in
76564         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
76566 2008-03-30  Bruno Haible  <bruno@clisp.org>
76568         * tests/test-strtod.c: Add comments about which assertion fails on which
76569         platform.
76570         * doc/posix-functions/strtod.texi: Add info about many more platforms.
76572 2008-03-30  Eric Blake  <ebb9@byu.net>
76574         Test signbit behavior on zeros.
76575         * tests/test-signbit.c (test_signbitf): Add tests for zero.
76576         (test_signbitd, test_signbitl): Likewise.
76578         More strtod touchups.
76579         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
76580         sign of negative underflow, for now.  Use .5, not .1.
76581         * doc/posix-functions/strtod.texi (strtod): Mention these
76582         limitations.
76583         Reported by Jim Meyering.
76585 2008-03-30  Bruno Haible  <bruno@clisp.org>
76587         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
76588         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
76590 2008-03-30  Bruno Haible  <bruno@clisp.org>
76592         Avoid failure when attempting to return empty iconv results on some
76593         platforms.
76594         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
76595         allocation, don't report ENOMEM when the resulting string is empty.
76597 2008-03-30  Bruno Haible  <bruno@clisp.org>
76599         Fix buffer overrun.
76600         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
76601         Don't consider the width for tmp_length. Check count against tmp_length
76602         before doing the padding. Ensure enough allocation during padding.
76604 2008-03-30  Eric Blake  <ebb9@byu.net>
76606         strtod touchups.
76607         * lib/strtod.c (strtod): Avoid compiler warnings.
76608         Reported by Jim Meyering.
76610 2008-03-30  Bruno Haible  <bruno@clisp.org>
76612         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
76613         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
76614         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
76615         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
76616         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
76617         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
76618         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
76619         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
76621         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
76622         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
76623         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
76624         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
76625         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
76626         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
76627         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
76628         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
76630         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
76631         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
76632         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
76633         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
76634         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
76635         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
76636         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
76637         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
76639         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
76640         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
76642         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
76643         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
76645         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
76646         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
76648         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
76649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
76650         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
76652         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
76653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
76654         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
76656         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
76657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
76658         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
76660         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
76661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
76662         * modules/vasprintf (Depends-on): Add EOVERFLOW.
76664         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
76665         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
76666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
76667         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
76668         (Depends-on): Add EOVERFLOW.
76669         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
76670         (Depends-on): Add EOVERFLOW.
76671         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76672         (Depends-on): Add EOVERFLOW.
76673         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76674         (Depends-on): Add EOVERFLOW.
76675         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76676         (Depends-on): Add EOVERFLOW.
76677         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76678         (Depends-on): Add EOVERFLOW.
76679         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76680         (Depends-on): Add EOVERFLOW.
76681         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76682         (Depends-on): Add EOVERFLOW.
76684         * lib/sprintf.c (EOVERFLOW): Remove fallback.
76685         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
76686         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
76688         * lib/snprintf.c (EOVERFLOW): Remove fallback.
76689         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
76690         * modules/snprintf (Depends-on): Add EOVERFLOW.
76692         * lib/poll.c (EOVERFLOW): Remove fallback.
76693         * modules/poll (Depends-on): Add EOVERFLOW.
76695         * lib/getugroups.c (EOVERFLOW): Remove fallback.
76696         * modules/getugroups (Depends-on): Add EOVERFLOW.
76698         * lib/getdelim.c (EOVERFLOW): Remove fallback.
76699         * modules/getdelim (Depends-on): Add EOVERFLOW.
76701         * lib/ftell.c (EOVERFLOW): Remove fallback.
76702         * modules/ftell (Depends-on): Add EOVERFLOW.
76704         * lib/fprintf.c (EOVERFLOW): Remove fallback.
76705         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
76706         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
76708         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
76710         * modules/EOVERFLOW-tests: New file.
76711         * tests/test-EOVERFLOW.c: New file.
76713         * modules/EOVERFLOW: New file.
76714         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
76716 2008-03-30  Bruno Haible  <bruno@clisp.org>
76718         Fix bug introduced on 2007-06-10.
76719         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
76720         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
76722 2008-03-30  Bruno Haible  <bruno@clisp.org>
76724         Improve freadseek's efficiency after ungetc.
76725         * lib/freadseek.c: Include freadahead.h.
76726         (freadptrinc): New function, extracted from freadseek.
76727         (freadseek): Use it in a loop. Use freadahead to determine the number
76728         of loop iterations.
76729         * modules/freadseek (Depends-on): Add freadahead.
76730         (configure.ac): Require AC_C_INLINE.
76732 2008-03-30  Bruno Haible  <bruno@clisp.org>
76734         * lib/freadseek.c (freadseek): Don't ignore the return value of
76735         freadptr.
76737 2008-03-29  Eric Blake  <ebb9@byu.net>
76739         Add hex float support.
76740         * modules/strtod (Depends-on): Add c-ctype.
76741         (Link): Mention POW_LIB.
76742         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
76743         whitespace between 'e' and exponent.
76744         * tests/test-strtod.c (main): Enable hex float tests.
76745         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
76746         now provides.
76748         Document various strtod bugs, with some fixes.
76749         * doc/posix-functions/strtod.texi (strtod): Document bugs with
76750         "-0x", "inf", "nan", and hex constants.
76751         * doc/posix-functions/atof.texi (atof): Likewise.
76752         * modules/stdlib (Makefile.am): Support strtod.
76753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76754         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
76755         detect additional strtod bugs.
76756         * lib/stdlib.in.h (rpl_strtod): Add declarations.
76757         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
76758         bool where appropriate.  Parse 'inf' and 'nan'.
76759         * tests/test-strtod.c: New file.
76760         * modules/strtod (Depends-on): Add stdbool, stdlib.
76761         (configure.ac): Turn on module indicator.
76762         * modules/strtod-tests: New module.
76764 2008-03-29  Eric Blake  <ebb9@byu.net>
76766         Fix ftell on mingw.
76767         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
76768         * modules/ftell-tests (Depends-on): Add binary-io.
76769         * modules/ftello-tests (Depends-on): Likewise.
76770         * tests/test-ftell.c (main): Enhance test to cover behavior after
76771         ungetc.  Enforce binary mode.
76772         * tests/test-ftello.c (main): Likewise.
76774         Pass test-freadseek on cygwin.
76775         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
76776         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
76777         ungetc buffer.
76779         * tests/test-fflush2.c (main): Fix typo.
76781 2008-03-29  Bruno Haible  <bruno@clisp.org>
76783         * tests/test-fflush2.c (main): Temporarily disable the contents of
76784         this test.
76785         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
76786         Reported by Eric Blake.
76788 2008-03-28  Simon Josefsson  <simon@josefsson.org>
76790         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
76791         (GC_SHA224_DIGEST_SIZE): Add.
76793         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
76794         (gc_hash_digest_length): Likewise.
76795         (gc_hash_buffer): Likewise.
76797 2008-03-25  Bruno Haible  <bruno@clisp.org>
76799         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
76800         detail which gettext release to use.
76801         Reported by Simon Josefsson.
76803 2008-03-26  Jim Meyering  <meyering@redhat.com>
76805         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
76806         * modules/gnumakefile (clean-GNUmakefile): Also, use
76807         test ... && ... || : syntax rather than if-then ... fi.
76809         gnumakefile: Don't double-quote-expand $(VPATH) value.
76810         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
76812 2008-03-24  Eric Blake  <ebb9@byu.net>
76814         Alter GNUmakefile to install into top directory.
76815         * modules/maintainer-makefile: Split, and add dependency...
76816         * modules/gnumakefile: to this new module.
76817         * build-aux/GNUmakefile: Move...
76818         * top/GNUmakefile: ...here.
76819         * build-aux/maint.mk: Move...
76820         * top/maint.mk: ...here.
76821         * MODULES.html.sh (Support for maintaining...): Document new
76822         module.
76824 2008-03-23  Bruno Haible  <bruno@clisp.org>
76826         * gnulib-tool: New options --vc-files, --no-vc-files.
76827         (func_usage): Document them.
76828         (vc_files): New variable.
76829         (func_import): Consider vc_files.
76830         (func_create_testdir): Set vc_files to empty.
76831         Suggested by Jim Meyering and Karl Berry.
76833 2008-03-23  Bruno Haible  <bruno@clisp.org>
76835         Fix regex compilation error on HP-UX 11.
76836         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
76837         * modules/regex (Files): Add m4/mbstate_t.m4.
76838         Reported by Ton Voon <ton.voon@altinity.com>.
76840 2008-03-23  Bruno Haible  <bruno@clisp.org>
76842         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
76844 2008-03-23  Eric Blake  <ebb9@byu.net>
76845             Bruno Haible  <bruno@clisp.org>
76847         Install files from top/ in the destination directory.
76848         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
76849         augmentation also for the files from top/.
76850         (func_import, func_create_testdir): Rewrite file names:
76851         top/filename -> filename.
76853 2008-03-23  Bruno Haible  <bruno@clisp.org>
76855         Tweak "gnulib --version" output.
76856         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
76858 2008-03-23  Bruno Haible  <bruno@clisp.org>
76860         Tweak "gnulib --version" output.
76861         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
76862         rather than contents of ChangeLog, when possible.
76864 2008-03-21  Eric Blake  <ebb9@byu.net>
76866         More --version tweaks.
76867         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
76868         date of last ChangeLog entry.
76870 2008-03-21  Jim Meyering  <meyering@redhat.com>
76872         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
76874 2008-03-20  Eric Blake  <ebb9@byu.net>
76876         VPATH fix.
76877         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
76879 2008-03-20  Simon Josefsson  <simon@josefsson.org>
76881         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
76882         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
76884 2008-03-20  Eric Blake  <ebb9@byu.net>
76886         Sync GNUmakefile with coreutils.
76887         * build-aux/GNUmakefile (have-Makefile): Rename...
76888         (_have-Makefile): ...to this, for namespace consideration.
76889         (GNUmakefile.cfg): Include, if present.
76890         (_autoreconf): Define a default.
76891         (_is-dist-target): New rule for rebuilds to pick up intra-release
76892         version.
76893         (maint-cfg.mk): Rename...
76894         (cfg.mk): ...to this.
76896 2008-03-18  Jim Meyering  <meyering@redhat.com>
76898         New script and module: mktempd
76899         * MODULES.html.sh (maint+release support): Add mktempd.
76900         * build-aux/mktempd: New file.
76901         * modules/mktempd: New file.
76903 2008-03-15  Jim Meyering  <meyering@redhat.com>
76905         Undo last change.
76906         * lib/sha1.c, lib/md5.c: 63 != ~63.
76907         Reported by Andreas Schwab.
76909         sha1.c, md5.c: Hoist a redundant expression.
76910         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
76911         "ctx->buflen" only once, before calling *_process_block.
76912         * lib/md5.c (md5_process_bytes): Likewise.
76914 2008-03-14  Eric Blake  <ebb9@byu.net>
76916         Bump copyright year in files generated by gnulib-tool.
76917         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
76918         gnulib-tool, rather than hard-coding it.
76920         Fix 'gnulib-tool --version' output to work with git.
76921         * gnulib-tool (func_gnulib_dir): New function, extracted from...
76922         (startup): ...here.
76923         (func_version): Use it to invoke git-version-gen, rather than
76924         relying on CVS keyword expansion.  Modernize wording.
76925         (cvsdatestamp, last_checkin_date, version): Kill unused
76926         variables.
76928 2008-03-12  Jim Meyering  <meyering@redhat.com>
76930         Recognize optional cast of the argument to free.
76931         * build-aux/useless-if-before-free: Update regexps.
76933         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
76935 2008-03-11  Bruno Haible  <bruno@clisp.org>
76937         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
76938         by a single package.
76939         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
76940         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
76941         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
76942         Reported by Sam Steingold <sds@gnu.org>.
76944 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76946         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
76947         repositories.
76949 2008-03-11  Bruno Haible  <bruno@clisp.org>
76951         Avoid conflicts between local macro definitions.
76952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76953         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
76955 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
76956             Bruno Haible  <bruno@clisp.org>
76958         Make va_copy work with some version of xlc on AIX 5.1.
76959         * lib/stdarg.in.h: New file.
76960         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
76961         On AIX, use a <stdarg.h> file substitute.
76962         * modules/stdarg (Files): Add lib/stdarg.in.h.
76963         (Depends-on): Add include_next.
76964         (Makefile.am): Build a stdarg.h substitute if requested.
76965         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
76967 2008-03-10  Bruno Haible  <bruno@clisp.org>
76969         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
76970         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76971         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76973 2008-03-10  Bruno Haible  <bruno@clisp.org>
76975         * modules/stdlib (Depends-on): Add include_next, remove
76976         absolute-header.
76978 2008-03-09  Bruno Haible  <bruno@clisp.org>
76980         * lib/freadahead.h (freadahead): Document more precisely.
76981         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
76982         the sum of both buffer sizes.
76983         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
76984         * NEWS: Document the change.
76986 2008-03-09  Bruno Haible  <bruno@clisp.org>
76988         Extend freadptr to return also the buffer size.
76989         * lib/freadptr.h (freadptr): Add sizep argument.
76990         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
76991         (freadptr): Add sizep argument. Determine buffer size like freadahead
76992         does.
76993         * tests/test-freadptr.c: Don't include freadahead.h.
76994         (main): Adapt for new calling convention of freadptr.
76995         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
76996         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
76997         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
76998         tests/test-freadptr2.sh.
76999         (Depends): Remove freadahead.
77000         (TESTS): Add test-freadptr2.sh.
77001         (check_PROGRAMS): Add test-freadptr2.
77003 2008-03-09  Bruno Haible  <bruno@clisp.org>
77005         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
77006         Report and solution by Simon Josefsson.
77008 2008-03-06  Bruno Haible  <bruno@clisp.org>
77010         Make fflush after ungetc work on BSD platforms.
77011         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
77012         * tests/test-fflush2.c: New file.
77013         * tests/test-fflush2.sh: New file.
77014         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
77015         tests/test-fflush2.c.
77016         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
77017         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
77019 2008-03-06  Eric Blake  <ebb9@byu.net>
77021         Likewise for ftello.
77022         * modules/ftello (Dependencies): Add extensions.
77023         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
77025 2008-03-06  Bruno Haible  <bruno@clisp.org>
77027         * modules/fseeko (Dependencies): Add extensions.
77028         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
77029         Needed on glibc systems.
77031 2008-03-06  Bruno Haible  <bruno@clisp.org>
77033         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
77034         email address.
77035         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77037 2008-03-06  Bruno Haible  <bruno@clisp.org>
77039         * users.txt: Add libgnupdf.
77041 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
77043         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
77044         (Header File Substitutes, Function Substitutes,
77045         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
77046         (Build robot for gnulib): Fix typo.
77048 2008-03-06  Bruno Haible  <bruno@clisp.org>
77050         * doc/gnulib-tool.texi (VCS Issues): Small updates.
77051         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77053 2008-03-06  Bruno Haible  <bruno@clisp.org>
77055         * doc/func.texi: New file, extracted from doc/gnulib.texi.
77056         * doc/gnulib.texi: Include it.
77058 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77060         * modules/func (License): Change license to unlimited; there was
77061         no LGPL parts in the module anyway.
77063 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77065         * modules/__func__: Renamed to modules/func.
77066         * modules/__func__-tests: Renamed to modules/func-tests.
77067         * tests/test-__func__.c: Renamed to tests/test-func.c.
77068         * m4/__func__.m4: Renamed to m4/func.m4.
77069         * doc/gnulib.texi (__func__): Section renamed to func.
77070         Suggested by Eric Blake <ebb9@byu.net>.
77072 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77074         * doc/gnulib.texi (__func__): Use C99 terminology when talking
77075         about __func__.  Make example self-contained.  Suggested by Eric
77076         Blake <ebb9@byu.net>.
77078         * tests/test-__func__.c (main): Avoid extraneous () around __func.
77079         Suggested by Eric Blake <ebb9@byu.net>.
77081 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77083         * modules/__func__: New file.
77084         * modules/__func__-tests: New file.
77085         * tests/test-__func__.c: New file.
77086         * m4/__func__.m4: New file.
77087         * doc/gnulib.texi (__func__): Document __func__ module.
77089 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77091         * modules/byteswap (License): Re-license as LGPLv2+.
77093 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77095         * doc/Makefile: Add pdf target.
77097 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77099         * modules/inline (License): Use 'unlimited', since there are only
77100         *.m4 files in this module.
77102 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77103             Bruno Haible  <bruno@clisp.org>
77105         Add support for HP C 7.1 on OpenVMS 8.3.
77106         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
77108 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77110         Update VMS specifics.
77111         * lib/getopt.c [VMS]: Remove include of unixlib.h.
77113 2008-03-02  Jim Meyering  <meyering@redhat.com>
77115         Remove the last dependency on the "free" module.
77116         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
77117         Reported by Bob Proulx.
77119         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
77121         Remove useless "if" tests before free.  Deprecate "free" module.
77122         * doc/posix-functions/free.texi: Mention that this
77123         module is no longer useful.
77124         * modules/free (Notice): Say this module is obsolete.
77125         * modules/readutmp (Depends-on): Remove free.
77126         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
77127         * lib/putenv.c (putenv): Likewise.
77128         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
77129         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
77130         * tests/test-c-strcasestr.c (main): Likewise.
77131         * tests/test-c-strstr.c (main): Likewise.
77132         * tests/test-mbscasestr1.c (main): Likewise.
77133         * tests/test-mbscasestr2.c (main): Likewise.
77134         * tests/test-mbsstr1.c (main): Likewise.
77135         * tests/test-mbsstr2.c (main): Likewise.
77136         * tests/test-memmem.c (main): Likewise.
77137         * tests/test-strcasestr.c (main): Likewise.
77138         * tests/test-striconv.c (main): Likewise.
77139         * tests/test-striconveh.c (main): Likewise.
77140         * tests/test-striconveha.c (main): Likewise.
77141         * tests/test-strstr.c (main): Likewise.
77143         * build-aux/git-version-gen: Adjust a comment and the Usage string.
77145         bootstrap: sync from coreutils again
77146         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
77148 2008-03-01  Jim Meyering  <meyering@redhat.com>
77150         bootstrap: sync from coreutils
77151         * build-aux/bootstrap (update_po_files): Copy a .po file into place
77152         also when the target doesn't exist.
77154 2008-03-01  Eric Blake  <ebb9@byu.net>
77156         Fix bugs in last patch.
77157         * lib/memchr2.c (memchr2): Fix typo.
77158         * tests/test-memchr2.c: Test previous bug, and don't use GNU
77159         extension.
77160         Reported by Bruce Korb.
77162         New module 'memchr2'.
77163         * modules/memchr2: New file.
77164         * modules/memchr2-tests: Likewise.
77165         * lib/memchr2.h: Likewise.
77166         * lib/memchr2.c: Likewise, based on memchr.c.
77167         * tests/test-memchr2.c: New test.
77168         * MODULES.html.sh (String handling): Add memchr2.
77170 2008-02-29  Bruno Haible  <bruno@clisp.org>
77172         * modules/freadseek-tests: New file.
77173         * tests/test-freadseek.sh: New file.
77174         * tests/test-freadseek.c: New file.
77176         New module 'freadseek'.
77177         * modules/freadseek: New file.
77178         * lib/freadseek.h: New file.
77179         * lib/freadseek.c: New file.
77180         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
77182 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
77184         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
77185         wydawca.
77187         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
77188         program_invocation_name and program_invocation_short_name are
77189         present.
77191 2008-02-28  Bruno Haible  <bruno@clisp.org>
77193         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
77194         * tests/test-freadptr.sh: Also test non-seekable stdin.
77196 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
77198         * build-aux/bootstrap (source_base, m4_base)
77199         (doc_base, tests_base): New variables.
77200         (gnulib_tool_options): Do not hardcode base directories, use
77201         the above variables instead.
77203 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
77205         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
77207 2008-02-28  Bruno Haible  <bruno@clisp.org>
77209         * modules/freadptr-tests: New file.
77210         * tests/test-freadptr.sh: New file.
77211         * tests/test-freadptr.c: New file.
77213         New module 'freadptr'.
77214         * modules/freadptr: New file.
77215         * lib/freadptr.h: New file.
77216         * lib/freadptr.c: New file.
77217         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
77219 2008-02-26  Karl Berry  <karl@freefriends.org>
77221         Sync from Libtool:
77222         * libltdl/argz.c (argz_add, argz_count): New functions.
77223         * libltdl/argz.in.h: Declare them.
77224         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
77226 2008-02-22  Bruno Haible  <bruno@clisp.org>
77228         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
77229         is a pointer type.  Needed for HP-UX 10.
77230         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
77231         * doc/posix-functions/gmtime_r.texi: Likewise.
77232         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77234 2008-02-24  Bruno Haible  <bruno@clisp.org>
77236         * modules/environ-tests: New file.
77237         * tests/test-environ.c: New file.
77239         New module 'environ'.
77240         * modules/environ: New file.
77241         * lib/unistd.in.h (environ): New declaration.
77242         * m4/environ.m4: New file.
77243         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
77244         after use.
77245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
77246         HAVE_DECL_ENVIRON.
77247         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
77248         HAVE_DECL_ENVIRON.
77249         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
77250         wrong claim that 'environ' is missing on some systems.
77251         * modules/execute (Depends-on): Add environ.
77252         * lib/execute.c (environ): Remove fallback declaration.
77253         * modules/pipe (Depends-on): Add environ.
77254         * lib/pipe.c (environ): Remove fallback declaration.
77255         * modules/setenv (Depends-on): Add environ.
77256         * lib/setenv.c (environ): Remove fallback declaration.
77257         * modules/unsetenv (Depends-on): Add environ.
77258         * lib/unsetenv.c (environ): Remove fallback declaration.
77259         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
77260         m4/environ.m4.
77261         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
77262         (gl_PREREQ_UNSETENV): Likewise.
77264 2008-02-24  Bruno Haible  <bruno@clisp.org>
77266         * doc/posix-functions/environ.texi: Document the MacOS X problem.
77268 2008-02-20  Bob Proulx  <bob@proulx.com>
77270         Enable use of older two part flavor 'git describe'.
77271         * build-aux/git-version-gen: If using the older two part flavor of
77272         git version then recreate the third part now present in the
77273         newer three part flavor of git describe.
77275 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
77277         * lib/fts.c (fts_build): Typo correction to comment.
77279 2008-02-17  Bruno Haible  <bruno@clisp.org>
77281         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
77282         generating no-op conflicts.
77284 2008-02-17  Bruno Haible  <bruno@clisp.org>
77286         Speed up by 10%.
77287         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
77288         result_entries, rather than an index-based loop.
77290 2008-02-17  Bruno Haible  <bruno@clisp.org>
77292         Speed up by 25%.
77293         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
77294         'hashcode_cached'.
77295         (entry_create): New function.
77296         (entry_hashcode): Use the cached hashcode if possible.
77297         (read_changelog_file, try_split_merged_entry): Use entry_create.
77299 2008-02-17  Bruno Haible  <bruno@clisp.org>
77301         Speed up from O(n^2) to O(n) for long ChangeLog files.
77302         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
77303         (read_changelog_file): Change implementation of entries_reversed list
77304         to rbtreehash.
77305         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
77307 2008-02-17  Bruno Haible  <bruno@clisp.org>
77309         New option --split-merged-entry.
77310         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
77311         (find_paragraph_end, try_split_merged_entry): New functions.
77312         (long_options): Add option --split-merged-entry.
77313         (usage): Document option --split-merged-entry.
77314         (main): Implement option --split-merged-entry.
77315         Reported by Eric Blake.
77317 2008-02-17  Bruno Haible  <bruno@clisp.org>
77319         * lib/git-merge-changelog.c: Include c-strstr.h.
77320         (main): Support the "git pull --rebase" situation.
77321         * modules/git-merge-changelog (Depends-on): Add c-strstr.
77322         Reported by Eric Blake.
77324 2008-02-16  Eric Blake  <ebb9@byu.net>
77326         Avoid doubling \ in common case of "c-maybe" quoting style.
77327         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
77328         eliding outer quotes.
77329         * lib/quotearg.h: Document this.
77330         * tests/test-quotearg.c (result_strings, inputs, results_g)
77331         (flag_results, locale_results): Test it by adding a new string to
77332         each test group.
77333         (compare_strings): Test new string.
77335 2008-02-13  Eric Blake  <ebb9@byu.net>
77337         Avoid trigraph quoting in default output.
77338         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
77339         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
77340         unless explicitly requested.
77341         * tests/test-quotearg.c (flag_results, main): Add additional tests.
77343 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
77345         Don't rely on signed integer overflowing to negative value.
77346         * lib/getugroups.c (getugroups): Include <limits.h>.
77347         Instead, compare against INT_MAX, and increment only if the test passes.
77349 2008-02-13  Jim Meyering  <meyering@redhat.com>
77350         and Eric Blake  <ebb9@byu.net>
77352         Avoid shadowing warning and compile errors on Linux.
77353         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
77354         forwarding macros on Linux.
77355         (dcgettext): Define a stub, for Linux.
77356         (results_g, main): Avoid warnings.
77358 2008-02-12  Eric Blake  <ebb9@byu.net>
77360         Silence warning in last patch.
77361         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
77363         Quotearg part 4: add tests, fix c-maybe colon quoting.
77364         * lib/quotearg.h: Improve documentation.
77365         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
77366         escapes when adding outer quotes.  When quoting trigraphs, use
77367         valid C notation.  When quoting NUL, omit extra characters if next
77368         character is not digit.  Alter prototype.
77369         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
77370         callers.
77371         * modules/quotearg-tests: New module.
77372         * tests/test-quotearg.c: New test.
77374 2008-02-07  Eric Blake  <ebb9@byu.net>
77376         Quotearg part 3: add flag to control outer quote elision.
77377         * lib/quotearg.h (c_maybe_quoting_style): New style.
77378         (enum quoting_flags): Better documentation of flags.
77379         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
77380         c-maybe style.
77381         (quotearg_buffer_restyled): Handle new flag to elide outer
77382         quotes.
77384         Quotearg part 2: add flag that can control NUL elision.
77385         * lib/quotearg.h (set_quoting_flags): New prototype.
77386         * lib/quotearg.c (struct quoting_options): Add flag field.
77387         (set_quoting_flags): New function.
77388         (quotearg_buffer_restyled): Add flags parameter.
77389         (quotearg_alloc_mem): Set the flag if length cannot be returned.
77390         (quotearg_n_options): Set the flag, since length cannot be
77391         returned.
77392         (quoting_options_from_style): Default flags correctly.
77394         Quotearg part 1: more wrappers, restore quotearg_char state.
77395         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
77396         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
77397         (quotearg_colon_mem): New wrappers.
77398         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
77399         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
77400         functions.
77401         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
77402         (quotearg_colon_mem): New functions.
77404 2008-02-11  Bruno Haible  <bruno@clisp.org>
77406         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
77407         library in the current directory: it does not work with parallel make.
77408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77410 2008-02-11  Bruno Haible  <bruno@clisp.org>
77412         * .gitattributes: New file.
77414 2008-02-11  Jim Meyering  <meyering@redhat.com>
77416         useless-if-before-free: Fix reversed exit values.
77417         * build-aux/useless-if-before-free: Use correct values
77418         for EXIT_MATCH and EXIT_NO_MATCH.
77420         * build-aux/useless-if-before-free: Close stdout carefully.
77422 2008-02-10  Bruno Haible  <bruno@clisp.org>
77424         New module 'git-merge-changelog'.
77425         * modules/git-merge-changelog: New file.
77426         * lib/git-merge-changelog.c: New file.
77428 2008-02-10  Jim Meyering  <meyering@redhat.com>
77430         useless-if-before-free: New option: --list (-l).
77432         useless-if-before-free: Don't exit immediately upon open failure.
77433         * build-aux/useless-if-before-free: Exit 2 for errors.
77434         Upon failure to open a file, don't exit immediately.
77435         Rather, just warn and continue with any remaining files.
77437 2008-02-10  Bruno Haible  <bruno@clisp.org>
77439         New abstract list operation 'node_set_value'.
77440         * lib/gl_list.h (gl_list_node_set_value): New function.
77441         (struct gl_list_implementation): New field node_set_value.
77442         * lib/gl_list.c (gl_list_node_set_value): New function.
77443         * lib/gl_array_list.c (gl_array_node_set_value): New function.
77444         (gl_array_list_implementation): Update.
77445         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
77446         (gl_carray_list_implementation): Update.
77447         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
77448         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77449         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77450         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
77451         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77452         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77453         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77454         Update.
77455         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77456         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
77457         (gl_sublist_list_implementation): Update.
77459 2008-02-10  Bruno Haible  <bruno@clisp.org>
77461         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
77462         Needed when ELEMENT is #defined to 'some_type *'.
77464 2008-02-10  Jim Meyering  <meyering@redhat.com>
77466         New script and module: useless-if-before-free
77467         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
77468         * build-aux/useless-if-before-free: New file.
77469         * modules/useless-if-before-free: New file.
77471         * build-aux/gitlog-to-changelog: Use committer date, not author date.
77473         xstrtol_error: Fix typo.
77474         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
77475         s/exit_failure/exit_status/.
77477 2008-02-09  Jim Meyering  <meyering@redhat.com>
77479         New script and module: gitlog-to-changelog
77480         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
77481         * modules/gitlog-to-changelog: New file.
77482         * build-aux/gitlog-to-changelog: New file.
77484 2008-02-08  Jim Meyering  <meyering@redhat.com>
77486         Avoid two "parameter unused" warnings.
77487         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
77488         Mark "st" as used.
77490         Use "git COMMAND", not "git-COMMAND".
77491         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
77492         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
77493         * build-aux/git-version-gen: Use "git status", not "git-status".
77495 2008-02-07  Bruno Haible  <bruno@clisp.org>
77497         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
77498         Avoids a crash on Windows Vista.
77499         Reported by Adam Strzelecki <ono@java.pl> via
77500         Simon Josefsson <simon@josefsson.org>.
77502 2008-02-06  Bruno Haible  <bruno@clisp.org>
77504         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
77505         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
77506         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
77507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
77508         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77510         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
77511         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
77512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77519         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
77520         left-adjust flag.
77521         * tests/test-snprintf-posix.h (test_function): Likewise.
77522         * tests/test-sprintf-posix.h (test_function): Likewise.
77523         * tests/test-vasprintf-posix.c (test_function): Likewise.
77524         * doc/posix-functions/fprintf.texi: Update.
77525         * doc/posix-functions/printf.texi: Update.
77526         * doc/posix-functions/snprintf.texi: Update.
77527         * doc/posix-functions/sprintf.texi: Update.
77528         * doc/posix-functions/vfprintf.texi: Update.
77529         * doc/posix-functions/vprintf.texi: Update.
77530         * doc/posix-functions/vsnprintf.texi: Update.
77531         * doc/posix-functions/vsprintf.texi: Update.
77532         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77534 2008-02-06  Bruno Haible  <bruno@clisp.org>
77536         Fix bug introduced on 2008-01-26.
77537         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
77539 2008-02-06  Bruno Haible  <bruno@clisp.org>
77541         Fix bug introduced on 2007-06-10.
77542         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
77543         !NEED_PRINTF_FLAG_ZERO.
77545 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
77547         getloadavg: use libperfstat on AIX5
77548         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
77550 2008-02-03  Bruno Haible  <bruno@clisp.org>
77552         * lib/diffseq.h: Add comments about required #includes.
77553         Reported by Michael Biggs <gnulib@doubleplum.net>.
77555 2008-02-01  Bruno Haible  <bruno@clisp.org>
77557         * users.txt: Add gnuit.
77559 2008-01-31  Bruno Haible  <bruno@clisp.org>
77561         * lib/md4.c (set_uint32): Mark as inline.
77562         * lib/md5.c (set_uint32): Likewise.
77563         * lib/sha1.c (set_uint32): Likewise.
77564         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
77565         * m4/md5.m4 (gl_MD5): Likewise.
77566         * m4/sha1.m4 (gl_SHA1): Likewise.
77568 2008-01-31  Jim Meyering  <meyering@redhat.com>
77570         Use "sizeof VAR", rather than a literal "4".
77571         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
77572         * lib/md4.c (md4_read_ctx): Likewise.
77573         * lib/sha1.c (sha1_read_ctx): Likewise.
77575 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77577         * tests/test-sha1.c: New file, based on test-md5.c.
77579         * modules/crypto/sha1-tests: New file.
77581 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77583         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
77585 2008-01-31  Jim Meyering  <meyering@redhat.com>
77587         Prefer "sizeof v" over the equivalent "4".
77588         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
77589         * lib/md5.c (set_uint32): Likewise.
77590         * lib/sha1.c (set_uint32): Likewise.
77592 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77594         * lib/sha1.c (set_uint32): Mark function as static.
77596 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77598         md2: clarify comments to say that alignment is not required.
77599         * lib/md2.h: Remove warning about alignment in comment.
77600         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
77601         never been required.
77603 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77605         md4: adapt alignment constraint fix from sha1.
77606         * lib/md4.c (set_uint32): New function, from sha1.c
77607         (md4_read_ctx): Use it.
77608         (md4_finish_ctx): Doc fix.
77609         * lib/md4.h: Doc fix.
77611 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77613         md5: adapt alignment constraint fix from sha1.
77614         * lib/md5.c (set_uint32): New function, from sha1.c
77615         (md5_read_ctx): Use it.
77616         (md5_finish_ctx): Doc fix.
77617         * lib/md5.h: Doc fix.
77619 2008-01-30  Peter Palfrader  <weasel@debian.org>
77621         sha1: remove the result buffer alignment constraint
77622         * lib/sha1.c (set_uint32): New function.
77623         (sha1_read_ctx): Rewrite to remove the result buffer alignment
77624         constraint.
77625         (sha1_finish_ctx): Remove comment warning about alignment constraint.
77626         * lib/sha1.h: Likewise.
77628 2008-01-30  Andreas Schwab  <schwab@suse.de>
77629             Bruno Haible  <bruno@clisp.org>
77631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
77632         correct definition of LDBL_MIN_EXP.
77634 2008-01-30  Karl Berry  <karl@gnu.org>
77636         * config/srclist-update: try to preserve x bit on updates.
77637         * config/srclistvars.sh: update for karl.
77639 2008-01-29  Jim Meyering  <meyering@redhat.com>
77641         vasnprintf.c: Avoid warning about unused label
77642         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
77643         "overflow" label definition and associated code with the
77644         same cpp condition that guards the sole use of that label.
77646 2008-01-26  Bruno Haible  <bruno@clisp.org>
77648         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
77649         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
77650         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
77651         * lib/isnanl-nolibm.h (isnanl): Likewise.
77652         Reported by Paul Eggert <eggert@cs.ucla.edu>.
77654 2008-01-26  Bruno Haible  <bruno@clisp.org>
77656         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
77657         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
77659 2008-01-26  Bruno Haible  <bruno@clisp.org>
77661         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
77662         GCC >= 4.0 built-in.
77663         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
77665 2008-01-26  Bruno Haible  <bruno@clisp.org>
77667         Rename isnan, applicable to 'double' only, to isnand.
77668         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
77669         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
77670         (configure.ac): Update.
77671         (Include): Replace "isnan.h" with "isnand.h".
77672         * m4/isnand.m4: Renamed from m4/isnan.m4.
77673         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
77674         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
77675         instead of isnan.c.
77676         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
77677         instead of HAVE_ISNAN_IN_LIBC.
77678         (isnand): Renamed from isnan.
77679         * lib/isnand.c: New file.
77680         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
77681         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
77682         (Makefile.am): Update.
77683         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
77684         Include isnand.h instead of isnan.h.
77685         (main): Test isnand instead of isnan.
77686         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
77687         isnan-nolibm.
77688         * modules/frexp (Depends-on): Likewise.
77689         * modules/frexp-tests (Depends-on): Likewise.
77690         * modules/frexp-nolibm (Depends-on): Likewise.
77691         * modules/frexp-nolibm-tests (Depends-on): Likewise.
77692         * modules/isfinite (Depends-on): Likewise.
77693         * modules/round-tests (Depends-on): Likewise.
77694         * modules/signbit (Depends-on): Likewise.
77695         * modules/signbit-tests (Depends-on): Likewise.
77696         * modules/snprintf-posix (Depends-on): Likewise.
77697         * modules/sprintf-posix (Depends-on): Likewise.
77698         * modules/trunc-tests (Depends-on): Likewise.
77699         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77701         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77705         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77706         * modules/vasnprintf-posix (Depends-on): Likewise.
77707         * modules/vasprintf-posix (Depends-on): Likewise.
77708         * modules/vfprintf-posix (Depends-on): Likewise.
77709         * modules/vsnprintf-posix (Depends-on): Likewise.
77710         * modules/vsprintf-posix (Depends-on): Likewise.
77711         * lib/frexp.c: Include isnand.h instead of isnan.h.
77712         (ISNAN): Set to isnand instead of isnan.
77713         * lib/isfinite.c: Include isnand.h instead of isnan.h.
77714         (gl_isfinited): Use isnand instead of isnan.
77715         * lib/signbitd.c: Include isnand.h instead of isnan.h.
77716         (gl_signbitd): Use isnand instead of isnan.
77717         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
77718         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
77719         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
77720         (main): Use isnand instead of isnan.
77721         * tests/test-round1.c: Include isnand.h.
77722         (main): Use isnand instead of isnan.
77723         * tests/test-round2.c: Include isnand.h instead of isnan.h.
77724         (ISNAN): Set to isnand instead of isnan.
77725         * tests/test-trunc1.c: Include isnand.h.
77726         (main): Use isnand instead of isnan.
77727         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
77728         (equal): Use isnand instead of isnan.
77729         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
77730         isnand-nolibm.
77731         * NEWS: Mention the change.
77733 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77734             Bruno Haible  <bruno@clisp.org>
77736         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
77737         the GCC builtins for signbits are present and set
77738         REPLACE_SIGNBIT_USING_GCC if so.
77739         * lib/math.in.h (signbit): Define using GCC builtins if
77740         REPLACE_SIGNBIT_USING_GCC is set.
77741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
77742         REPLACE_SIGNBIT_USING_GCC.
77743         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
77745 2008-01-25  Jim Meyering  <meyering@redhat.com>
77747         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
77748         * lib/poll.c: Include <config.h>, not "config.h".
77749         * tests/test-getaddrinfo.c: Likewise.
77751 2008-01-25  Simon Josefsson  <simon@josefsson.org>
77753         * modules/sockets-tests: New file.
77755 2008-01-24  Simon Josefsson  <simon@josefsson.org>
77757         * modules/sockets: New module, can be used to call WSA_Startup and
77758         WSA_Cleanup when needed.
77760         * lib/sockets.h, lib/sockets.c: New files.
77762         * m4/sockets.m4: New file.
77764         * tests/test-sockets.c: New file.
77766 2008-01-19  Bruno Haible  <bruno@clisp.org>
77768         * doc/posix-headers: Renamed from doc/headers.
77769         * doc/posix-functions: Renamed from doc/functions.
77770         * doc/gnulib.texi: Update.
77772 2008-01-19  Bruno Haible  <bruno@clisp.org>
77774         * doc/glibc-functions/strcasestr.texi: Include contents of
77775         doc/functions/strcasestr.texi, fixing the list of platforms.
77776         * doc/functions/strcasestr.texi: Remove file.
77778 2008-01-19  Bruno Haible  <bruno@clisp.org>
77780         * doc/glibc-functions/memmem.texi: Include contents of
77781         doc/functions/memmem.texi.
77782         * doc/functions/memmem.texi: Remove file.
77784 2008-01-18  Bruno Haible  <bruno@clisp.org>
77786         * doc/glibc-functions/*.texi: New files.
77787         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
77788         to use the new files.
77790 2008-01-17  Bruno Haible  <bruno@clisp.org>
77792         * tests/test-gethostname.c (main): Fix printf statement.
77794 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77796         * modules/gethostname-tests: New file.
77798         * tests/test-gethostname.c: New file.
77800 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77802         * lib/gethostname.c: Include string.h unconditionally, strncpy is
77803         used by the UNAME case.  Reported by Bruno Haible
77804         <bruno@clisp.org>.
77806 2008-01-17  Eric Blake  <ebb9@byu.net>
77808         Convert c-strcasestr to be more efficient.
77809         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
77810         (Depends-on): Add c-strcase, remove malloca, strnlen.
77811         * tests/test-c-strcasestr.c (main): Enhance test.
77812         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
77814 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
77816         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
77817         Use it in creating po/Makevars.
77819 2008-01-15  Simon Josefsson  <simon@josefsson.org>
77821         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
77822         Applications that requires it should initialize libgcrypt
77823         manually.
77825 2008-01-16  Simon Josefsson  <simon@josefsson.org>
77827         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
77829 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
77831         Fix problem with getdate on mingw32 reported by Simon Josefsson
77832         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
77833         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
77834         tzname", when deciding whether to declare tzname.
77835         * lib/strftime.c (tzname): Likewise.
77837 2008-01-15  Bruno Haible  <bruno@clisp.org>
77839         Work around a MacOS X 10.5 bug in frexpl().
77840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
77841         * doc/functions/frexpl.texi: Document the bug.
77842         Reported by Elias Pipping <pipping@gentoo.org>.
77844 2008-01-14  Eric Blake  <ebb9@byu.net>
77846         Touch up previous patch.
77847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
77848         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
77850         Convert strcasestr module to use Two-Way algorithm.
77851         * modules/strcasestr-simple: New module, based on the old
77852         strcasestr, but with Two-Way rather than KMP.
77853         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
77854         * lib/string.in.h (rpl_strcasestr): Declare.
77855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
77856         performance.
77857         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
77858         * modules/string (Makefile.am): Support strcasestr.
77859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
77860         * modules/strcasestr-tests (Depends-on): Check for alarm.
77861         * tests/test-strcasestr.c: Augment test.
77862         * lib/str-two-way.h: Clean up stray macro.
77863         * NEWS: Document new module.
77864         * MODULES.html.sh (string handling): Likewise.
77865         * doc/functions/strcasestr.texi: New file.
77866         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
77867         here, since it is not a POSIX function.
77869 2008-01-14  Colin Watson  <cjwatson@debian.org>
77870             Bruno Haible  <bruno@clisp.org>
77872         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
77873         works fine; if not, set REPLACE_STRSIGNAL.
77874         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
77875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77876         REPLACE_STRSIGNAL.
77877         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
77878         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
77879         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
77881 2008-01-14  Bruno Haible  <bruno@clisp.org>
77883         * modules/strsignal (Include): Change to <string.h>.
77885 2008-01-14  Colin Watson  <cjwatson@debian.org>
77887         * modules/argp (Notice): Add a notice recommending to change
77888         XGETTEXT_OPTIONS.
77889         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
77891 2008-01-13  Colin Watson  <cjwatson@debian.org>
77893         * modules/strsignal-tests: New file.
77894         * tests/test-strsignal.c: New file.
77896         * lib/strsignal.c: New file, from glibc with modifications.
77897         * lib/siglist.h: New file, from glibc with modifications.
77898         * lib/string.in.h (strsignal): New declaration.
77899         * m4/strsignal.m4: New file.
77900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77901         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
77902         * modules/strsignal: New file.
77903         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
77904         HAVE_DECL_STRSIGNAL.
77906 2008-01-13  Bruno Haible  <bruno@clisp.org>
77908         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
77909         locale encoding is not ASCII. Needed for OpenBSD 4.0.
77910         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
77911         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
77913 2008-01-13  Bruno Haible  <bruno@clisp.org>
77915         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
77916         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
77917         * lib/argp.h (__attribute__): Likewise.
77918         * lib/c-stack.c (__attribute__): Likewise.
77919         * lib/error.h (__attribute__): Likewise.
77920         * lib/fts.c (__attribute__): Likewise.
77921         * lib/openat.h (__attribute__): Likewise.
77922         * lib/stdio.in.h (__attribute__): Likewise.
77923         * lib/string.in.h (__attribute__): Likewise.
77924         * lib/utimens.c (__attribute__): Likewise.
77925         * lib/vasnprintf.h (__attribute__): Likewise.
77926         * lib/xalloc.h (__attribute__): Likewise.
77927         * lib/xprintf.h (__attribute__): Likewise.
77928         * lib/xstrtol.h (__attribute__): Likewise.
77929         * lib/xvasprintf.h (__attribute__): Likewise.
77931 2008-01-12  Bruno Haible  <bruno@clisp.org>
77933         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
77934         * doc/glibc-headers/a.out.texi: New file.
77935         * doc/glibc-headers/aliases.texi: New file.
77936         * doc/glibc-headers/alloca.texi: New file.
77937         * doc/glibc-headers/ar.texi: New file.
77938         * doc/glibc-headers/argp.texi: New file.
77939         * doc/glibc-headers/argz.texi: New file.
77940         * doc/glibc-headers/byteswap.texi: New file.
77941         * doc/glibc-headers/crypt.texi: New file.
77942         * doc/glibc-headers/endian.texi: New file.
77943         * doc/glibc-headers/envz.texi: New file.
77944         * doc/glibc-headers/err.texi: New file.
77945         * doc/glibc-headers/error.texi: New file.
77946         * doc/glibc-headers/execinfo.texi: New file.
77947         * doc/glibc-headers/fpu_control.texi: New file.
77948         * doc/glibc-headers/fstab.texi: New file.
77949         * doc/glibc-headers/fts.texi: New file.
77950         * doc/glibc-headers/getopt.texi: New file.
77951         * doc/glibc-headers/ieee754.texi: New file.
77952         * doc/glibc-headers/ifaddrs.texi: New file.
77953         * doc/glibc-headers/libintl.texi: New file.
77954         * doc/glibc-headers/mcheck.texi: New file.
77955         * doc/glibc-headers/mntent.texi: New file.
77956         * doc/glibc-headers/obstack.texi: New file.
77957         * doc/glibc-headers/paths.texi: New file.
77958         * doc/glibc-headers/printf.texi: New file.
77959         * doc/glibc-headers/pty.texi: New file.
77960         * doc/glibc-headers/resolv.texi: New file.
77961         * doc/glibc-headers/shadow.texi: New file.
77962         * doc/glibc-headers/sysexits.texi: New file.
77963         * doc/glibc-headers/ttyent.texi: New file.
77965 2008-01-12  Jim Meyering  <meyering@redhat.com>
77967         announce-gen: emit Gnulib's git-based version string.
77968         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
77969         New option --gnulib-version=V, where V is expected to be
77970         the output of running git describe in the gnulib directory.
77971         (get_tool_versions): Request feedback on xdelta.  I suspect it's
77972         not useful, and plan to stop publishing an xdelta file with each
77973         coreutils release.
77975         * build-aux/announce-gen: Also check for lzma-compressed files.
77977 2008-01-11  Bruno Haible  <bruno@clisp.org>
77979         * tests/test-memmem.c (main): Increase maximum allowed time.
77980         * tests/test-strstr.c (main): Likewise.
77982 2008-01-11  Bruno Haible  <bruno@clisp.org>
77984         * doc/functions/memmem.texi: Add more precisions about platforms.
77985         * doc/functions/strstr.texi: Likewise.
77987 2008-01-10  Eric Blake  <ebb9@byu.net>
77989         * m4/strstr.m4: Delete cruft from copy-n-paste.
77990         Reported by Bruno Haible.
77992 2008-01-10  Bruno Haible  <bruno@clisp.org>
77994         Make c-strstr rely on strstr.
77995         * lib/c-strstr.c: Don't include str-kmp.h.
77996         (c_strstr): Define in terms of strstr.
77997         * modules/c-strstr (Files): Remove lib/str-kmp.h.
77998         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
78000 2008-01-10  Bruno Haible  <bruno@clisp.org>
78002         * doc/gnulib.texi (String Functions in C Locale): New section.
78003         * doc/c-ctype.texi: New file.
78004         * doc/c-strcase.texi: New file.
78005         * doc/c-strcaseeq.texi: New file.
78006         * doc/c-strcasestr.texi: New file.
78007         * doc/c-strstr.texi: New file.
78008         * doc/c-strtod.texi: New file.
78009         * doc/c-strtold.texi: New file.
78011 2008-01-10  Eric Blake  <ebb9@byu.net>
78013         * lib/relocatable.h: Fix a comment.
78015 2008-01-10  Eric Blake  <ebb9@byu.net>
78017         Share two-way algorithm.
78018         * lib/str-two-way.h: New file, merged from...
78019         * lib/memmem.c: ...here...
78020         * lib/strstr.c: ...and here.
78021         * modules/memmem (Files): Use it.
78022         * modules/strstr (Files): Likewise.
78024         Avoid quadratic strstr implementations.
78025         * lib/strstr.c: New file.
78026         * m4/strstr.m4: Likewise.
78027         * modules/strstr: Likewise.
78028         * modules/strstr-tests: Likewise.
78029         * tests/test-strstr.c: Likewise.
78030         * lib/string.in.h (rpl_strstr): Declare.
78031         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
78032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
78033         * modules/string (Makefile.am): Likewise.
78034         * MODULES.html.sh (string handling): Mention new module.
78035         * doc/functions/strstr.texi (strstr): Document the bug.
78037 2008-01-10  Bruno Haible  <bruno@clisp.org>
78039         * lib/relocatable.h (relocate): State whether result is freshly
78040         allocated or not.
78041         * lib/relocatable.c (relocate): Return a freshly allocated string
78042         instead of a pointer to a privately held string.
78043         Reported by Sylvain Beucler <beuc@gnu.org>.
78045 2008-01-10  Colin Watson  <cjwatson@debian.org>
78047         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
78048         s/S_ISNLK/S_ISLNK/.
78050 2008-01-09  Bruno Haible  <bruno@clisp.org>
78052         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
78053         and other files.
78054         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
78055         if it's only a guess.
78056         * modules/memmem: Simplify by depending on memmem-simple.
78058 2008-01-09  Bruno Haible  <bruno@clisp.org>
78060         Work around OpenBSD 4.0 tdelete() bug.
78061         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
78062         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
78063         macros and don't redefine the enum values.
78064         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
78065         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
78066         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
78068 2008-01-09  Bruno Haible  <bruno@clisp.org>
78070         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
78071         (main): Don't perform the tests if setlocale did not install a UTF-8
78072         locale. Needed on OpenBSD 4.0.
78073         * modules/wcwidth-tests (Depends-on): Add localcharset.
78075 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78077         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
78078         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
78079         * NEWS: announce this.
78080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
78082 2008-01-09  Simon Josefsson  <simon@josefsson.org>
78083         and Eric Blake  <ebb9@byu.net>
78085         Add memmem-simple module.
78086         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
78087         (gl_FUNC_MEMMEM): Separate performance from presence checks.
78088         * modules/memmem-simple: New file.
78089         * modules/memmem (Description): Tweak.
78090         * MODULES.html.sh (string handling): Mention new module.
78091         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
78092         addressed by memmem-simple.
78093         * NEWS: Document the difference.
78095 2008-01-09  Eric Blake  <ebb9@byu.net>
78097         Give gcc some memmem optimization hints.
78098         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
78099         (strcasestr): Declare as pure.
78100         * modules/memmem (Maintainer): Claim my implementation.
78102 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78104         Support AIX 6.1 and higher.
78105         * build-aux/config.libpath: Likewise.
78106         * build-aux/config.rpath: Likewise.
78108 2008-01-08  Jim Meyering  <meyering@redhat.com>
78109             Bruno Haible  <bruno@clisp.org>
78111         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
78112         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
78113         Reported by Peter Fales in
78114         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
78116 2008-01-08  Bruno Haible  <bruno@clisp.org>
78118         * modules/unictype/category-of (Depends-on): Add
78119         unictype/category-none.
78120         * modules/unictype/category-and-tests (Depends-on): Add
78121         unictype/category-{L,N,Lu,Nd}.
78122         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
78123         * modules/unictype/category-or-tests (Depends-on): Add
78124         unictype/category-{L,N}.
78125         * modules/unictype/category-name-tests (Depends-on): Add
78126         unictype/category-{Z,Nl}.
78127         Reported by Simon Josefsson.
78129 2008-01-08  Bruno Haible  <bruno@clisp.org>
78131         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
78132         convention better.
78133         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
78134         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
78135         Reported by Peter Miller <millerp@canb.auug.org.au>.
78137 2008-01-08  Eric Blake  <ebb9@byu.net>
78139         Rewrite memmem to guarantee linear complexity without malloc.
78140         * lib/memmem.c (memmem): Use Two-Way rather than
78141         Knuth-Morris-Pratt, to allow O(1) space usage.
78142         (critical_factorization, two_way_short_needle)
78143         (two_way_long_needle): New functions.
78144         (knuth_morris_pratt): Delete.
78145         * modules/memmem (Depends-on): No longer need malloca or stdbool.
78146         Add stdint.
78147         * tests/test-memmem.c (main): Add tests for periodic needle and
78148         sublinear performance.
78149         * doc/functions/memmem.texi (memmem): Document other deficiencies
78150         in cygwin and older glibc.
78152 2008-01-08  Bruno Haible  <bruno@clisp.org>
78154         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
78155         augmentation.
78157 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
78159         Add a configure time option: --disable-acl.
78160         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
78161         AC_ARG_ENABLE(acl).
78163 2008-01-06  Simon Josefsson  <simon@josefsson.org>
78165         * tests/test-localename.c: Don't include obsolete "setenv.h".
78167         * modules/localename-tests (Depends-on): Need unsetenv.
78169 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78171         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
78173 2008-01-06  Colin Watson  <cjwatson@debian.org>
78175         * users.txt: Add man-db.
78177 2008-01-07  Bruno Haible  <bruno@clisp.org>
78179         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
78180         previous section name.
78182 2008-01-07  Bruno Haible  <bruno@clisp.org>
78184         * lib/progname.c (set_program_name): Don't strip off a leading
78185         "lt-" prefix outside a .libs directory.
78186         Suggested by Paul Eggert.
78188 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
78189             Bruno Haible  <bruno@clisp.org>
78191         Improve memory cleanup in 'relocatable' module.
78192         * lib/relocatable.h (compute_curr_prefix): Change return type to
78193         'char *'.
78194         * lib/relocatable.c (compute_curr_prefix): Change return type to
78195         'char *'. Free curr_installdir after use.
78196         (relocate): Free curr_prefix_better after use.
78197         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
78199 2008-01-01  Bruno Haible  <bruno@clisp.org>
78201         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
78202         failure on older glibc systems.
78203         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78205 2008-01-05  Eric Blake  <ebb9@byu.net>
78207         Avoid quadratic system memmem.
78208         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
78209         Reported by Ralf Wildenhues.
78211         Fix memmem test for mingw.
78212         * modules/memmem-tests (configure.ac): Check for alarm.
78213         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
78214         it.
78215         * doc/functions/memmem.texi: New file.
78216         * doc/gnulib.texi (Function Substitutes): Add memmem.
78217         Reported by Bruno Haible.
78219 2008-01-04  Bruno Haible  <bruno@clisp.org>
78221         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
78222         Require gl_HEADER_STRINGS_H_DEFAULTS, not
78223         gl_HEADER_STRING_H_DEFAULTS.
78225 2008-01-04  Eric Blake  <ebb9@byu.net>
78227         Shorten duration of memmem test.
78228         * tests/test-memmem.c (main): Use alarm to declare failure if test
78229         is taking too long.
78230         Reported by Ralf Wildenhues.
78232 2007-12-21  Simon Josefsson  <simon@josefsson.org>
78234         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
78235         string, needed by strerror.
78237 2008-01-03  Colin Watson  <cjwatson@debian.org>
78238             Bruno Haible  <bruno@clisp.org>
78240         * doc/gnulib-tool.texi (Localization): New section.
78242 2008-01-02  Bruno Haible  <bruno@clisp.org>
78244         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
78245         variables to 'unsigned char *' type.
78246         Reported by Paul Eggert.
78248 2008-01-02  Jim Meyering  <jim@meyering.net>
78250         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
78252 2007-12-31  Jim Meyering  <jim@meyering.net>
78254         Avoid use of private FTS type name.
78255         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
78257 2007-12-30  Karl Berry  <karl@gnu.org>
78259         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
78260         work around defect in Texinfo and/or the standalone Info browser.
78262 2007-12-30  Bruno Haible  <bruno@clisp.org>
78264         Unify 5 copies of the KMP code.
78265         * lib/str-kmp.h: New file.
78266         * lib/c-strcasestr.c: Include str-kmp.h.
78267         (knuth_morris_pratt): Remove function.
78268         (c_strcasestr): Update.
78269         * lib/c-strstr.c: Include str-kmp.h.
78270         (knuth_morris_pratt): Remove function.
78271         (c_strcasestr): Update.
78272         * lib/mbscasestr.c: Include str-kmp.h.
78273         (knuth_morris_pratt_unibyte): Remove function.
78274         * lib/mbsstr.c: Include str-kmp.h.
78275         (knuth_morris_pratt_unibyte): Remove function.
78276         * lib/strcasestr.c: Include str-kmp.h.
78277         (knuth_morris_pratt): Remove function.
78278         (strcasestr): Update.
78279         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
78280         * modules/c-strstr (Files): Likewise.
78281         * modules/mbscasestr (Files): Likewise.
78282         * modules/mbsstr (Files): Likewise.
78283         * modules/strcasestr (Files): Likewise.
78284         Suggested by Paul Eggert.
78286 2007-12-30  Bruno Haible  <bruno@clisp.org>
78288         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
78289         defined.
78291 2007-12-30  Bruno Haible  <bruno@clisp.org>
78293         * lib/xmalloca.h: Include xalloc.h.
78294         (xnmalloca): New macro.
78296 2007-12-30  Bruno Haible  <bruno@clisp.org>
78298         * lib/malloca.h (nmalloca): New macro.
78299         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
78300         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
78301         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
78302         knuth_morris_pratt_multibyte): Likewise.
78303         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
78304         knuth_morris_pratt_multibyte): Likewise.
78305         * lib/memmem.c (knuth_morris_pratt): Likewise.
78306         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
78308 2007-12-25  Bruno Haible  <bruno@clisp.org>
78310         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
78311         * lib/glob.c: Don't include openat.h.
78312         (link_exists2_p): Add back the code that deals with the
78313         !GLOB_ALTDIRFUNC case.
78314         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
78315         let it do the filename concatenation.
78316         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
78317         * modules/glob (Depends-on): Remove openat.
78319 2007-12-31  Bruno Haible  <bruno@clisp.org>
78321         * modules/dirfd (License): Change to LGPLv2+.
78322         Approved by Jim Meyering.
78324 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
78326         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
78327         when multiplying M by sizeof (size_t).
78329 2007-12-10  Martin Lambers  <marlam@marlam.de>
78331         Override getpagesize on mingw.
78332         * lib/getpagesize.c: New file.
78333         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
78334         * modules/getpagesize (Files): Add lib/getpagesize.c.
78335         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
78336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78337         REPLACE_GETPAGESIZE.
78338         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
78340 2007-12-25  Bruno Haible  <bruno@clisp.org>
78342         * modules/localcharset (Notice): New field.
78343         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
78344         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
78346 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
78347             Bruno Haible  <bruno@clisp.org>
78349         Avoid using the syntax symbol() in formatted documentation.
78350         * MODULES.html.sh (func_module): When replacing symbol() with a
78351         hyperlink, remove the parentheses. Show an error if some remain.
78352         Recognize and render the '...' syntax.
78353         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
78354         Rework. Add paragraph about GCC's inlining.
78355         * doc/alloca.texi: Likewise.
78356         * doc/error.texi: Remove parentheses from symbol reference.
78357         * doc/gnulib-intro.texi: Likewise.
78358         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
78359         * modules/fnmatch (Description): Reword to say "the ... function".
78360         * modules/full-read (Description): Likewise.
78361         * modules/full-write (Description): Likewise.
78362         * modules/safe-read (Description): Likewise.
78363         * modules/safe-write (Description): Likewise.
78364         * modules/strchrnul (Description): Likewise.
78365         * modules/trim (Description): Likewise.
78366         * modules/error (Description): Remove parentheses from symbol
78367         references.
78368         * modules/verror (Description): Likewise.
78369         Reported by Karl Berry.
78371 2007-12-25  Bruno Haible  <bruno@clisp.org>
78373         Fixup after 2007-10-16 commit.
78374         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
78376 2007-12-24  Bruno Haible  <bruno@clisp.org>
78378         Make --enable-relocatable work with DESTDIR.
78379         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
78380         to compute installdir from destprog.
78381         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
78382         also set the RELOC_DESTDIR variable.
78383         Reported by Левашев Иван <octagram@bluebottle.com>.
78385 2007-12-24  Bruno Haible  <bruno@clisp.org>
78387         Fix link error due to xalloc_die().
78388         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
78389         of xreadlink.
78390         * lib/relocwrapper.c: Update comments.
78391         * build-aux/install-reloc: Remove xreadlink.c from file list.
78392         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
78393         xreadlink.c.
78394         Reported by Левашев Иван <octagram@bluebottle.com>.
78396 2007-12-24  Bruno Haible  <bruno@clisp.org>
78398         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
78399         * lib/setenv.h: Remove file.
78400         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
78401         lib/setenv.h.
78402         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
78403         (Depends-on): Add stdlib.
78404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
78405         gl_FUNC_UNSETENV.
78406         (Include): Replace setenv.h with <stdlib.h>.
78407         * modules/unsetenv: New file.
78408         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
78409         * lib/unsetenv.c: Include <stdlib.h> first.
78410         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
78411         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
78412         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
78413         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
78414         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
78415         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
78417         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78418         * doc/functions/unsetenv.texi: Update.
78419         * modules/xsetenv (Depends-on): Add unsetenv.
78420         * modules/getdate (Depends-on): Likewise.
78421         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
78422         * lib/xsetenv.c: Don't include setenv.h.
78423         * lib/getdate.y: Likewise.
78424         * lib/relocwrapper.c: Likewise.
78425         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
78426         (Depends-on): Add stdlib.
78427         * NEWS: Mention the changes.
78428         Reported by Левашев Иван <octagram@bluebottle.com>.
78430 2007-12-23  Bruno Haible  <bruno@clisp.org>
78432         * lib/memmem.c (memmem): Use lowercase variable names. Tab
78433         indentation.
78435 2007-12-23  Bruno Haible  <bruno@clisp.org>
78437         * lib/c-strcasestr.c: Add more comments.
78438         * lib/c-strstr.c: Likewise.
78439         * lib/mbscasestr.c: Likewise.
78440         * lib/mbsstr.c: Likewise.
78441         * lib/strcasestr.c: Likewise.
78442         * lib/memmem.c: Likewise.
78444 2007-12-23  Bruno Haible  <bruno@clisp.org>
78446         * tests/test-memmem.c: Include <string.h> first.
78448 2007-12-22  Bruno Haible  <bruno@clisp.org>
78450         * gnulib-tool (func_create_testdir): Change $auxdir while generating
78451         the contents of $testsbase.
78452         Reported by Ralf Wildenhues.
78454 2007-12-22  Bruno Haible  <bruno@clisp.org>
78456         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
78457         two variables local_ldadd_before, local_ldadd_last.
78459 2007-12-20  Eric Blake  <ebb9@byu.net>
78461         Work around circular library issue when cross-compiling.
78462         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
78463         that progname.o does not need to pull in rpl_memcmp.
78465 2007-12-19  Eric Blake  <ebb9@byu.net>
78467         Fix memmem to avoid O(n^2) worst-case complexity.
78468         * lib/memmem.c (knuth_morris_pratt): New function.
78469         (memmem): Use it if first few naive iterations fail.
78470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
78471         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
78472         * modules/memchr (License): Likewise.
78473         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
78474         malloca.
78475         * tests/test-memmem.c: Rewrite, borrowing ideas from
78476         test-mbsstr1.c; the old version wouldn't even compile!
78477         * modules/memmem-tests: New file.
78478         * lib/string.in.h (rpl_memmem): Add declaration.
78479         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
78480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
78481         REPLACE_MEMMEM.
78483 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
78485         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
78486         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
78487         before any system include files, and undef after them all.  This
78488         should fix a problem on VMS reported by John E. Malmberg in
78489         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
78491 2007-12-17  Eric Blake  <ebb9@byu.net>
78493         Revert addition of verify, for BSD/OS.
78494         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
78495         can't handle large files, for the sake of obsolete platforms.
78496         * modules/fseeko (Depends-on): Remove verify.
78497         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
78498         * doc/functions/ftello.texi (ftello): Likewise.
78499         * doc/functions/fgetpos.texi (fgetpos): Likewise.
78500         Reported by Larry Jones.
78502 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
78504         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
78505         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
78507 2007-12-17  Jim Meyering  <meyering@redhat.com>
78509         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
78510         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
78511         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
78512         * modules/getcwd (Depends-on): Add openat.
78513         Reported by Petr Salinger.
78515 2007-12-17  Bruno Haible  <bruno@clisp.org>
78517         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
78518         avoid a segmentation fault of the configure test on x86_64 systems.
78520 2007-12-15  Jim Meyering  <meyering@redhat.com>
78522         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
78524 2007-12-13  Eric Blake  <ebb9@byu.net>
78526         Another fseek test.
78527         * tests/test-fseek.c (main): Also test ungetc handling.
78528         * tests/test-fseeko.c (main): Likewise.
78529         * modules/fseeko (Depends-on): Add verify.
78530         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
78531         large.
78532         Reported by Larry Jones.
78534         Fix fseeko on mingw.
78535         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
78536         seek.
78538         Beef up fseek tests.
78539         * tests/test-fseek.c (main): Also test eof handling.
78540         * tests/test-fseeko.c (main): Likewise.
78541         Reported by Larry Jones.
78543 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
78545         Fix fseeko on BSD-based platforms.
78546         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
78547         successful seek.
78549 2007-12-12  Eric Blake  <ebb9@byu.net>
78551         Allow circular dependency of separate libtests.a
78552         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
78553         when use_libtests.
78555 2007-12-11  Eric Blake  <ebb9@byu.net>
78557         Fix bug with -0.0L in previous patch.
78558         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
78559         * tests/test-isnan.c (main): Also test on zeroes.
78560         * tests/test-isnanf.c (main): Likewise.
78561         * tests/test-isnanl.h (main): Likewise.
78563         Detect pseudo-denormals on x86 even when cross-compiling.
78564         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
78565         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
78566         invalid bit patterns that happen to satisfy ==.
78568         Avoid link failures with separate libtests.a.
78569         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
78570         last, to satisfy circular dependencies.
78572 2007-12-11  Eric Blake  <ebb9@byu.net>
78573         and Bruno Haible  <bruno@clisp.org>
78575         Fix OpenBSD 4.0 <float.h> handling of long double.
78576         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
78577         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
78578         * doc/headers/float.texi (float.h): Document OpenBSD bug.
78580 2007-12-11  Jim Meyering  <meyering@redhat.com>
78582         * users.txt: Add libvirt.
78584         Support versions of autoconf prior to 2.59c.
78585         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
78586         if it is not already defined.
78588 2007-12-09  Bruno Haible  <bruno@clisp.org>
78590         Let 'gnulib-tool --import' collect sources needed for the tests in
78591         tests/ rather than in lib/.
78592         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
78593         argument. If true, add rules to generate libtests.a, and put libtests.a
78594         into $(LDADD). Consider source files in subdirectories and set
78595         uses_subdirs.
78596         (func_emit_initmacro_start, func_emit_initmacro_end,
78597         func_emit_initmacro_done): Pass all arguments explicitly.
78598         (func_import): Determine two module lists main_modules,
78599         testsrelated_modules. Determine use_libtests. Determine two variables
78600         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
78601         instead of just sed_transform_lib_file. Determine two variables
78602         main_files and testsrelated_files. Compute 'files' as the union of
78603         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
78604         func_add_or_update. In the generated gnulib-comp.m4, collect the
78605         object files for tests/ in different variables than those for lib/.
78606         Substitute LIBTESTS_LIBDEPS.
78607         (func_create_testdir): Combine the uses_subdirs results from
78608         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
78610 2007-12-09  Bruno Haible  <bruno@clisp.org>
78612         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
78613         the build-aux directory.
78615 2007-12-09  Bruno Haible  <bruno@clisp.org>
78617         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
78618         introduced on 2006-09-09.
78620 2007-12-07  Jim Meyering  <meyering@redhat.com>
78622         Let these macros work also with autoconf-2.59.
78623         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
78624         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
78625         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
78627 2007-12-06  Jim Meyering  <meyering@redhat.com>
78629         Avoid a configure-time syntax error in gl_FUNC_ACL.
78630         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
78631         function in each branch, before testing the cache variable.
78633 2007-12-04  Eric Blake  <ebb9@byu.net>
78635         Make scripts executable.
78636         * build-aux/config.guess: Add execute permissions.
78637         * build-aux/config.sub: Likewise.
78638         * build-aux/gendocs.sh: Likewise.
78640         Fix frexp on mingw.
78641         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
78642         cross-compiling.
78643         * doc/functions/frexp.texi (frexp): Document the bug.
78645         Make cygwin fseeko check more reliable.
78646         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
78647         version numbers, rather than unrelated feature check.
78648         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
78649         * doc/functions/ftello.texi (ftello): Likewise.
78650         Reported by Bruno Haible.
78652         * m4/strerror.m4: Bump version number.
78654 2007-12-03  Bruno Haible  <bruno@clisp.org>
78656         * doc/functions/mprotect.texi: Mention the mingw problem.
78658 2007-12-03  Eric Blake  <ebb9@byu.net>
78660         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
78661         REPLACE_STRERROR is initialized before this macro.
78663 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
78665         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
78666         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
78667         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
78668         put -lsec in even for programs other than 'ls'.  This fixes a problem
78669         for gettext reported by Bruno Haible in
78670         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
78671         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
78672         Add support for Solaris 10.  This isn't efficient, but should get the
78673         job done for now.
78675 2007-12-03  James Youngman  <jay@gnu.org>
78677         * doc/regexprops-generic.texi: change "an close-group" to "a
78678         close-group" and "illegal" to "not allowed".
78680 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78682         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
78683         pr_byname.h. Needed for the rare case when the maintainer has done
78684         "make maintainer-clean" in the source directory and then attempts a
78685         build outside the source directory.
78686         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
78687         scripts_byname.h.
78689 2007-12-02  Martin Lambers  <marlam@marlam.de>
78690             Bruno Haible  <bruno@clisp.org>
78692         * lib/getpagesize.h: Remove file.
78693         * lib/unistd.in.h: Include declaration of getpagesize here.
78694         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
78695         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
78696         HAVE_SYS_PARAM_H.
78697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
78698         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78699         * modules/getpagesize (Files): Remove lib/getpagesize.h.
78700         (Depends-on): Add unistd.
78701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
78702         (Include): Use <unistd.h> instead of getpagesize.h.
78703         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
78704         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78705         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
78706         gl_GETPAGESIZE invocation, already handled by module dependency.
78707         * lib/pagealign_alloc.c: Don't include getpagesize.h.
78709 2007-12-02  Bruno Haible  <bruno@clisp.org>
78711         * modules/strings-tests: New file.
78712         * tests/test-strings.c: New file.
78714         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
78715         * lib/strings.in.h: New file.
78716         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
78717         * m4/strings_h.m4: New file.
78718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
78719         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
78720         * modules/strings: New file.
78721         * modules/string (Makefile.am): Update.
78722         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
78723         Reported by Karl Berry.
78725 2007-12-01  Eric Blake  <ebb9@byu.net>
78727         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
78728         accommodate fix in cygwin 1.5.25.
78730 2007-12-01  Jim Meyering  <meyering@redhat.com>
78732         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
78733         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
78734         that would inhibit utf8-optimization of a regexp containing line-
78735         or buffer-anchors, e.g., `^', `$'.
78737 2007-11-30  Bruno Haible  <bruno@clisp.org>
78739         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
78740         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
78741         glthread_recursive_lock_init.
78742         * lib/lock.c (glthread_recursive_lock_init)
78743         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
78744         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78746 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
78748         New function qset_acl, like set_acl but with syscall semantics.
78749         * lib/acl.h (qset_acl): New decl.
78750         * lib/acl.c (qset_acl): New function.
78751         (set_acl): Use new function.  Use more-consistent diagnostics.
78753 2007-11-28  Jim Meyering  <meyering@redhat.com>
78755         * modules/physmem (License): Change from GPL to LGPLv2+.
78757 2007-11-26  Bruno Haible  <bruno@clisp.org>
78759         * lib/vasnprintf.c (decode_long_double): Don't abort if the
78760         'long double' type has excess precision.
78761         Reported by Jim Meyering in
78762         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
78764 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78766         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
78767         Sync from <http://gnu.org/licenses>.
78768         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
78769         with license text from same location.
78770         * doc/maintain.texi, doc/standards.texi:  Sync from
78771         <http://savannah.gnu.org/projects/gnustandards>.
78773 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
78774         and Jim Meyering  <meyering@redhat.com>
78776         Adjust getdate' grammar to accept a slightly more regular language.
78777         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
78778         Before, the former was rejected.
78779         * lib/getdate.y (digits_to_date_time): New function, factored
78780         out of ...
78781         (number): ...here.  Just call digits_to_date_time.
78782         (hybrid): New non-terminal to handle an <unsigned number,
78783         signed relative offset> sequence consistently.
78785 2007-11-18  Jim Meyering  <meyering@redhat.com>
78787         Pull my changes from coreutils:
78788         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
78789         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
78790         use of $gnulib_tool_option_extras, so that it's separated from the
78791         preceding argument.
78793         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
78794         * build-aux/bootstrap (cp_mark_as_generated): Create any required
78795         parent destination directories before copying a file into place.
78797 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
78799         bootstrap: work also with 4-argument variant of AC_INIT
78800         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
78802 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78804         Port test-getaddrinfo to Solaris.
78805         Problem reported by Bruno Haible in
78806         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
78807         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
78808         explanation of setting 'hints'.
78809         Don't reject an implementation merely because it returns EAI_SERVICE.
78810         (EAI_SERVICE): Define to 0 if not defined.
78812 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78814         The license of gnu-make and posix-shell is now "GPLed build tool".
78815         * modules/gnu-make (License): Likewise.
78816         * modules/posix-shell (License): Likewise.
78818         New module posix-shell, for determining a POSIX shell
78819         or perhaps something that is close enough to a POSIX shell.
78820         * m4/posix-shell.m4: New file.
78821         * modules/posix-shell: New file.
78823         * MODULES.html.sh: Mention new module.
78825         New module gnu-make, for determining whether we're using GNU Make.
78826         * m4/gnu-make.m4: New file.
78827         * modules/gnu-make: New file.
78828         * MODULES.html.sh: Mention new module.
78830 2007-11-14  Jim Meyering  <meyering@redhat.com>
78832         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
78833         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
78834         use this macro to create a function _definition_.
78835         Remove useless "#undef ARGMATCH_DIE".
78837 2007-11-14  Bruno Haible  <bruno@clisp.org>
78839         * lib/config.charset: Update for OpenBSD 4.1.
78840         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
78842 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
78844         Document 64-bit #if problems in stdint.texi.
78845         * doc/headers/stdint.texi (stdint.h): Mention problems with
78846         64-bit-#if, and how to work around them.
78848         Don't insist on 'long long int' support in the preprocessor.  It
78849         breaks too many things.  For example, PRIdMAX still uses a 'long
78850         long int' format with the latest Sun compiler, even though
78851         HAVE_LONG_LONG_INT isn't defined due to that compiler's
78852         preprocessor problem.  This causes the latest coreutils to dump
78853         core on Solaris 10 sparc with the Sun C compiler.
78854         Instead, fix the 2007-10-16 problem in a different way, by evaluating
78855         the troublesome expressions at configure-time, not at #if-time.
78856         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
78857         preprocessor.
78858         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
78859         compile-time C checks, done at 'configure'-time.
78860         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
78861         * modules/inttypes (Makefile): Substitute the new symbols that
78862         gl_INTTYPES_H now generates.
78863         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
78865 2007-11-12  Bruno Haible  <bruno@clisp.org>
78867         Tests for Unicode character classification functions.
78869         * modules/unictype/bidicategory-byname-tests: New file.
78870         * modules/unictype/bidicategory-name-tests: New file.
78871         * modules/unictype/bidicategory-of-tests: New file.
78872         * modules/unictype/bidicategory-test-tests: New file.
78873         * modules/unictype/block-list-tests: New file.
78874         * modules/unictype/block-of-tests: New file.
78875         * modules/unictype/block-test-tests: New file.
78876         * modules/unictype/category-C-tests: New file.
78877         * modules/unictype/category-Cc-tests: New file.
78878         * modules/unictype/category-Cf-tests: New file.
78879         * modules/unictype/category-Cn-tests: New file.
78880         * modules/unictype/category-Co-tests: New file.
78881         * modules/unictype/category-Cs-tests: New file.
78882         * modules/unictype/category-L-tests: New file.
78883         * modules/unictype/category-Ll-tests: New file.
78884         * modules/unictype/category-Lm-tests: New file.
78885         * modules/unictype/category-Lo-tests: New file.
78886         * modules/unictype/category-Lt-tests: New file.
78887         * modules/unictype/category-Lu-tests: New file.
78888         * modules/unictype/category-M-tests: New file.
78889         * modules/unictype/category-Mc-tests: New file.
78890         * modules/unictype/category-Me-tests: New file.
78891         * modules/unictype/category-Mn-tests: New file.
78892         * modules/unictype/category-N-tests: New file.
78893         * modules/unictype/category-Nd-tests: New file.
78894         * modules/unictype/category-Nl-tests: New file.
78895         * modules/unictype/category-No-tests: New file.
78896         * modules/unictype/category-P-tests: New file.
78897         * modules/unictype/category-Pc-tests: New file.
78898         * modules/unictype/category-Pd-tests: New file.
78899         * modules/unictype/category-Pe-tests: New file.
78900         * modules/unictype/category-Pf-tests: New file.
78901         * modules/unictype/category-Pi-tests: New file.
78902         * modules/unictype/category-Po-tests: New file.
78903         * modules/unictype/category-Ps-tests: New file.
78904         * modules/unictype/category-S-tests: New file.
78905         * modules/unictype/category-Sc-tests: New file.
78906         * modules/unictype/category-Sk-tests: New file.
78907         * modules/unictype/category-Sm-tests: New file.
78908         * modules/unictype/category-So-tests: New file.
78909         * modules/unictype/category-Z-tests: New file.
78910         * modules/unictype/category-Zl-tests: New file.
78911         * modules/unictype/category-Zp-tests: New file.
78912         * modules/unictype/category-Zs-tests: New file.
78913         * modules/unictype/category-and-not-tests: New file.
78914         * modules/unictype/category-and-tests: New file.
78915         * modules/unictype/category-byname-tests: New file.
78916         * modules/unictype/category-name-tests: New file.
78917         * modules/unictype/category-none-tests: New file.
78918         * modules/unictype/category-of-tests: New file.
78919         * modules/unictype/category-or-tests: New file.
78920         * modules/unictype/category-test-withtable-tests: New file.
78921         * modules/unictype/combining-class-tests: New file.
78922         * modules/unictype/ctype-alnum-tests: New file.
78923         * modules/unictype/ctype-alpha-tests: New file.
78924         * modules/unictype/ctype-blank-tests: New file.
78925         * modules/unictype/ctype-cntrl-tests: New file.
78926         * modules/unictype/ctype-digit-tests: New file.
78927         * modules/unictype/ctype-graph-tests: New file.
78928         * modules/unictype/ctype-lower-tests: New file.
78929         * modules/unictype/ctype-print-tests: New file.
78930         * modules/unictype/ctype-punct-tests: New file.
78931         * modules/unictype/ctype-space-tests: New file.
78932         * modules/unictype/ctype-upper-tests: New file.
78933         * modules/unictype/ctype-xdigit-tests: New file.
78934         * modules/unictype/decimal-digit-tests: New file.
78935         * modules/unictype/digit-tests: New file.
78936         * modules/unictype/mirror-tests: New file.
78937         * modules/unictype/numeric-tests: New file.
78938         * modules/unictype/property-alphabetic-tests: New file.
78939         * modules/unictype/property-ascii-hex-digit-tests: New file.
78940         * modules/unictype/property-bidi-arabic-digit-tests: New file.
78941         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
78942         * modules/unictype/property-bidi-block-separator-tests: New file.
78943         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
78944         * modules/unictype/property-bidi-common-separator-tests: New file.
78945         * modules/unictype/property-bidi-control-tests: New file.
78946         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
78947         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
78948         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
78949         * modules/unictype/property-bidi-european-digit-tests: New file.
78950         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
78951         * modules/unictype/property-bidi-left-to-right-tests: New file.
78952         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
78953         * modules/unictype/property-bidi-other-neutral-tests: New file.
78954         * modules/unictype/property-bidi-pdf-tests: New file.
78955         * modules/unictype/property-bidi-segment-separator-tests: New file.
78956         * modules/unictype/property-bidi-whitespace-tests: New file.
78957         * modules/unictype/property-byname-tests: New file.
78958         * modules/unictype/property-combining-tests: New file.
78959         * modules/unictype/property-composite-tests: New file.
78960         * modules/unictype/property-currency-symbol-tests: New file.
78961         * modules/unictype/property-dash-tests: New file.
78962         * modules/unictype/property-decimal-digit-tests: New file.
78963         * modules/unictype/property-default-ignorable-code-point-tests: New file.
78964         * modules/unictype/property-deprecated-tests: New file.
78965         * modules/unictype/property-diacritic-tests: New file.
78966         * modules/unictype/property-extender-tests: New file.
78967         * modules/unictype/property-format-control-tests: New file.
78968         * modules/unictype/property-grapheme-base-tests: New file.
78969         * modules/unictype/property-grapheme-extend-tests: New file.
78970         * modules/unictype/property-grapheme-link-tests: New file.
78971         * modules/unictype/property-hex-digit-tests: New file.
78972         * modules/unictype/property-hyphen-tests: New file.
78973         * modules/unictype/property-id-continue-tests: New file.
78974         * modules/unictype/property-id-start-tests: New file.
78975         * modules/unictype/property-ideographic-tests: New file.
78976         * modules/unictype/property-ids-binary-operator-tests: New file.
78977         * modules/unictype/property-ids-trinary-operator-tests: New file.
78978         * modules/unictype/property-ignorable-control-tests: New file.
78979         * modules/unictype/property-iso-control-tests: New file.
78980         * modules/unictype/property-join-control-tests: New file.
78981         * modules/unictype/property-left-of-pair-tests: New file.
78982         * modules/unictype/property-line-separator-tests: New file.
78983         * modules/unictype/property-logical-order-exception-tests: New file.
78984         * modules/unictype/property-lowercase-tests: New file.
78985         * modules/unictype/property-math-tests: New file.
78986         * modules/unictype/property-non-break-tests: New file.
78987         * modules/unictype/property-not-a-character-tests: New file.
78988         * modules/unictype/property-numeric-tests: New file.
78989         * modules/unictype/property-other-alphabetic-tests: New file.
78990         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
78991         * modules/unictype/property-other-grapheme-extend-tests: New file.
78992         * modules/unictype/property-other-id-continue-tests: New file.
78993         * modules/unictype/property-other-id-start-tests: New file.
78994         * modules/unictype/property-other-lowercase-tests: New file.
78995         * modules/unictype/property-other-math-tests: New file.
78996         * modules/unictype/property-other-uppercase-tests: New file.
78997         * modules/unictype/property-paired-punctuation-tests: New file.
78998         * modules/unictype/property-paragraph-separator-tests: New file.
78999         * modules/unictype/property-pattern-syntax-tests: New file.
79000         * modules/unictype/property-pattern-white-space-tests: New file.
79001         * modules/unictype/property-private-use-tests: New file.
79002         * modules/unictype/property-punctuation-tests: New file.
79003         * modules/unictype/property-quotation-mark-tests: New file.
79004         * modules/unictype/property-radical-tests: New file.
79005         * modules/unictype/property-sentence-terminal-tests: New file.
79006         * modules/unictype/property-soft-dotted-tests: New file.
79007         * modules/unictype/property-space-tests: New file.
79008         * modules/unictype/property-terminal-punctuation-tests: New file.
79009         * modules/unictype/property-test-tests: New file.
79010         * modules/unictype/property-titlecase-tests: New file.
79011         * modules/unictype/property-unassigned-code-value-tests: New file.
79012         * modules/unictype/property-unified-ideograph-tests: New file.
79013         * modules/unictype/property-uppercase-tests: New file.
79014         * modules/unictype/property-variation-selector-tests: New file.
79015         * modules/unictype/property-white-space-tests: New file.
79016         * modules/unictype/property-xid-continue-tests: New file.
79017         * modules/unictype/property-xid-start-tests: New file.
79018         * modules/unictype/property-zero-width-tests: New file.
79019         * modules/unictype/scripts-tests: New file.
79020         * modules/unictype/syntax-c-ident-tests: New file.
79021         * modules/unictype/syntax-c-whitespace-tests: New file.
79022         * modules/unictype/syntax-java-ident-tests: New file.
79023         * modules/unictype/syntax-java-whitespace-tests: New file.
79024         * tests/unictype/test-bidi_byname.c: New file.
79025         * tests/unictype/test-bidi_name.c: New file.
79026         * tests/unictype/test-bidi_of.c: New file.
79027         * tests/unictype/test-bidi_test.c: New file.
79028         * tests/unictype/test-block_list.c: New file.
79029         * tests/unictype/test-block_of.c: New file.
79030         * tests/unictype/test-block_test.c: New file.
79031         * tests/unictype/test-categ_and.c: New file.
79032         * tests/unictype/test-categ_and_not.c: New file.
79033         * tests/unictype/test-categ_byname.c: New file.
79034         * tests/unictype/test-categ_name.c: New file.
79035         * tests/unictype/test-categ_none.c: New file.
79036         * tests/unictype/test-categ_of.c: New file.
79037         * tests/unictype/test-categ_or.c: New file.
79038         * tests/unictype/test-categ_test_withtable.c: New file.
79039         * tests/unictype/test-combining.c: New file.
79040         * tests/unictype/test-decdigit.c: New file.
79041         * tests/unictype/test-digit.c: New file.
79042         * tests/unictype/test-mirror.c: New file.
79043         * tests/unictype/test-numeric.c: New file.
79044         * tests/unictype/test-pr_byname.c: New file.
79045         * tests/unictype/test-pr_test.c: New file.
79046         * tests/unictype/test-predicate-part1.h: New file.
79047         * tests/unictype/test-predicate-part2.h: New file.
79048         * tests/unictype/test-scripts.c: New file.
79049         * tests/unictype/test-sy_c_ident.c: New file.
79050         * tests/unictype/test-sy_java_ident.c: New file.
79052         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
79053         for Unicode 5.0.0.
79054         * tests/unictype/test-categ_Cc.c: Likewise.
79055         * tests/unictype/test-categ_Cf.c: Likewise.
79056         * tests/unictype/test-categ_Cn.c: Likewise.
79057         * tests/unictype/test-categ_Co.c: Likewise.
79058         * tests/unictype/test-categ_Cs.c: Likewise.
79059         * tests/unictype/test-categ_L.c: Likewise.
79060         * tests/unictype/test-categ_Ll.c: Likewise.
79061         * tests/unictype/test-categ_Lm.c: Likewise.
79062         * tests/unictype/test-categ_Lo.c: Likewise.
79063         * tests/unictype/test-categ_Lt.c: Likewise.
79064         * tests/unictype/test-categ_Lu.c: Likewise.
79065         * tests/unictype/test-categ_M.c: Likewise.
79066         * tests/unictype/test-categ_Mc.c: Likewise.
79067         * tests/unictype/test-categ_Me.c: Likewise.
79068         * tests/unictype/test-categ_Mn.c: Likewise.
79069         * tests/unictype/test-categ_N.c: Likewise.
79070         * tests/unictype/test-categ_Nd.c: Likewise.
79071         * tests/unictype/test-categ_Nl.c: Likewise.
79072         * tests/unictype/test-categ_No.c: Likewise.
79073         * tests/unictype/test-categ_P.c: Likewise.
79074         * tests/unictype/test-categ_Pc.c: Likewise.
79075         * tests/unictype/test-categ_Pd.c: Likewise.
79076         * tests/unictype/test-categ_Pe.c: Likewise.
79077         * tests/unictype/test-categ_Pf.c: Likewise.
79078         * tests/unictype/test-categ_Pi.c: Likewise.
79079         * tests/unictype/test-categ_Po.c: Likewise.
79080         * tests/unictype/test-categ_Ps.c: Likewise.
79081         * tests/unictype/test-categ_S.c: Likewise.
79082         * tests/unictype/test-categ_Sc.c: Likewise.
79083         * tests/unictype/test-categ_Sk.c: Likewise.
79084         * tests/unictype/test-categ_Sm.c: Likewise.
79085         * tests/unictype/test-categ_So.c: Likewise.
79086         * tests/unictype/test-categ_Z.c: Likewise.
79087         * tests/unictype/test-categ_Zl.c: Likewise.
79088         * tests/unictype/test-categ_Zp.c: Likewise.
79089         * tests/unictype/test-categ_Zs.c: Likewise.
79090         * tests/unictype/test-ctype_alnum.c: Likewise.
79091         * tests/unictype/test-ctype_alpha.c: Likewise.
79092         * tests/unictype/test-ctype_blank.c: Likewise.
79093         * tests/unictype/test-ctype_cntrl.c: Likewise.
79094         * tests/unictype/test-ctype_digit.c: Likewise.
79095         * tests/unictype/test-ctype_graph.c: Likewise.
79096         * tests/unictype/test-ctype_lower.c: Likewise.
79097         * tests/unictype/test-ctype_print.c: Likewise.
79098         * tests/unictype/test-ctype_punct.c: Likewise.
79099         * tests/unictype/test-ctype_space.c: Likewise.
79100         * tests/unictype/test-ctype_upper.c: Likewise.
79101         * tests/unictype/test-ctype_xdigit.c: Likewise.
79102         * tests/unictype/test-decdigit.h: Likewise.
79103         * tests/unictype/test-digit.h: Likewise.
79104         * tests/unictype/test-numeric.h: Likewise.
79105         * tests/unictype/test-pr_alphabetic.c: Likewise.
79106         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
79107         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
79108         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
79109         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
79110         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
79111         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
79112         * tests/unictype/test-pr_bidi_control.c: Likewise.
79113         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
79114         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
79115         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
79116         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
79117         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
79118         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
79119         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
79120         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
79121         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
79122         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
79123         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
79124         * tests/unictype/test-pr_combining.c: Likewise.
79125         * tests/unictype/test-pr_composite.c: Likewise.
79126         * tests/unictype/test-pr_currency_symbol.c: Likewise.
79127         * tests/unictype/test-pr_dash.c: Likewise.
79128         * tests/unictype/test-pr_decimal_digit.c: Likewise.
79129         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
79130         * tests/unictype/test-pr_deprecated.c: Likewise.
79131         * tests/unictype/test-pr_diacritic.c: Likewise.
79132         * tests/unictype/test-pr_extender.c: Likewise.
79133         * tests/unictype/test-pr_format_control.c: Likewise.
79134         * tests/unictype/test-pr_grapheme_base.c: Likewise.
79135         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
79136         * tests/unictype/test-pr_grapheme_link.c: Likewise.
79137         * tests/unictype/test-pr_hex_digit.c: Likewise.
79138         * tests/unictype/test-pr_hyphen.c: Likewise.
79139         * tests/unictype/test-pr_id_continue.c: Likewise.
79140         * tests/unictype/test-pr_id_start.c: Likewise.
79141         * tests/unictype/test-pr_ideographic.c: Likewise.
79142         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
79143         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
79144         * tests/unictype/test-pr_ignorable_control.c: Likewise.
79145         * tests/unictype/test-pr_iso_control.c: Likewise.
79146         * tests/unictype/test-pr_join_control.c: Likewise.
79147         * tests/unictype/test-pr_left_of_pair.c: Likewise.
79148         * tests/unictype/test-pr_line_separator.c: Likewise.
79149         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
79150         * tests/unictype/test-pr_lowercase.c: Likewise.
79151         * tests/unictype/test-pr_math.c: Likewise.
79152         * tests/unictype/test-pr_non_break.c: Likewise.
79153         * tests/unictype/test-pr_not_a_character.c: Likewise.
79154         * tests/unictype/test-pr_numeric.c: Likewise.
79155         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
79156         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
79157         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
79158         * tests/unictype/test-pr_other_id_continue.c: Likewise.
79159         * tests/unictype/test-pr_other_id_start.c: Likewise.
79160         * tests/unictype/test-pr_other_lowercase.c: Likewise.
79161         * tests/unictype/test-pr_other_math.c: Likewise.
79162         * tests/unictype/test-pr_other_uppercase.c: Likewise.
79163         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
79164         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
79165         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
79166         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
79167         * tests/unictype/test-pr_private_use.c: Likewise.
79168         * tests/unictype/test-pr_punctuation.c: Likewise.
79169         * tests/unictype/test-pr_quotation_mark.c: Likewise.
79170         * tests/unictype/test-pr_radical.c: Likewise.
79171         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
79172         * tests/unictype/test-pr_soft_dotted.c: Likewise.
79173         * tests/unictype/test-pr_space.c: Likewise.
79174         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
79175         * tests/unictype/test-pr_titlecase.c: Likewise.
79176         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
79177         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
79178         * tests/unictype/test-pr_uppercase.c: Likewise.
79179         * tests/unictype/test-pr_variation_selector.c: Likewise.
79180         * tests/unictype/test-pr_white_space.c: Likewise.
79181         * tests/unictype/test-pr_xid_continue.c: Likewise.
79182         * tests/unictype/test-pr_xid_start.c: Likewise.
79183         * tests/unictype/test-pr_zero_width.c: Likewise.
79184         * tests/unictype/test-sy_c_whitespace.c: Likewise.
79185         * tests/unictype/test-sy_java_whitespace.c: Likewise.
79187 2007-11-12  Bruno Haible  <bruno@clisp.org>
79189         Unicode character classification functions.
79190         * lib/unictype.h: New file.
79191         * modules/unictype/base: New file.
79192         * modules/unictype/category-L: New file.
79193         * modules/unictype/category-Lu: New file.
79194         * modules/unictype/category-Ll: New file.
79195         * modules/unictype/category-Lt: New file.
79196         * modules/unictype/category-Lm: New file.
79197         * modules/unictype/category-Lo: New file.
79198         * modules/unictype/category-M: New file.
79199         * modules/unictype/category-Mn: New file.
79200         * modules/unictype/category-Mc: New file.
79201         * modules/unictype/category-Me: New file.
79202         * modules/unictype/category-N: New file.
79203         * modules/unictype/category-Nd: New file.
79204         * modules/unictype/category-Nl: New file.
79205         * modules/unictype/category-No: New file.
79206         * modules/unictype/category-P: New file.
79207         * modules/unictype/category-Pc: New file.
79208         * modules/unictype/category-Pd: New file.
79209         * modules/unictype/category-Ps: New file.
79210         * modules/unictype/category-Pe: New file.
79211         * modules/unictype/category-Pi: New file.
79212         * modules/unictype/category-Pf: New file.
79213         * modules/unictype/category-Po: New file.
79214         * modules/unictype/category-S: New file.
79215         * modules/unictype/category-Sm: New file.
79216         * modules/unictype/category-Sc: New file.
79217         * modules/unictype/category-Sk: New file.
79218         * modules/unictype/category-So: New file.
79219         * modules/unictype/category-Z: New file.
79220         * modules/unictype/category-Zs: New file.
79221         * modules/unictype/category-Zl: New file.
79222         * modules/unictype/category-Zp: New file.
79223         * modules/unictype/category-C: New file.
79224         * modules/unictype/category-Cc: New file.
79225         * modules/unictype/category-Cf: New file.
79226         * modules/unictype/category-Cs: New file.
79227         * modules/unictype/category-Co: New file.
79228         * modules/unictype/category-Cn: New file.
79229         * modules/unictype/category-or: New file.
79230         * modules/unictype/category-of: New file.
79231         * modules/unictype/category-test: New file.
79232         * modules/unictype/category-test-withtable: New file.
79233         * modules/unictype/category-byname: New file.
79234         * modules/unictype/category-none: New file.
79235         * modules/unictype/category-and: New file.
79236         * modules/unictype/category-and-not: New file.
79237         * modules/unictype/category-name: New file.
79238         * modules/unictype/combining-class: New file.
79239         * modules/unictype/category-all: New file.
79240         * modules/unictype/bidicategory-all: New file.
79241         * modules/unictype/bidicategory-byname: New file.
79242         * modules/unictype/bidicategory-name: New file.
79243         * modules/unictype/bidicategory-of: New file.
79244         * modules/unictype/bidicategory-test: New file.
79245         * modules/unictype/decimal-digit: New file.
79246         * modules/unictype/digit: New file.
79247         * modules/unictype/numeric: New file.
79248         * modules/unictype/mirror: New file.
79249         * modules/unictype/property-white-space: New file.
79250         * modules/unictype/property-alphabetic: New file.
79251         * modules/unictype/property-other-alphabetic: New file.
79252         * modules/unictype/property-not-a-character: New file.
79253         * modules/unictype/property-default-ignorable-code-point: New file.
79254         * modules/unictype/property-other-default-ignorable-code-point: New
79255         file.
79256         * modules/unictype/property-deprecated: New file.
79257         * modules/unictype/property-logical-order-exception: New file.
79258         * modules/unictype/property-variation-selector: New file.
79259         * modules/unictype/property-private-use: New file.
79260         * modules/unictype/property-unassigned-code-value: New file.
79261         * modules/unictype/property-uppercase: New file.
79262         * modules/unictype/property-other-uppercase: New file.
79263         * modules/unictype/property-lowercase: New file.
79264         * modules/unictype/property-other-lowercase: New file.
79265         * modules/unictype/property-titlecase: New file.
79266         * modules/unictype/property-soft-dotted: New file.
79267         * modules/unictype/property-id-start: New file.
79268         * modules/unictype/property-other-id-start: New file.
79269         * modules/unictype/property-id-continue: New file.
79270         * modules/unictype/property-other-id-continue: New file.
79271         * modules/unictype/property-xid-start: New file.
79272         * modules/unictype/property-xid-continue: New file.
79273         * modules/unictype/property-pattern-white-space: New file.
79274         * modules/unictype/property-pattern-syntax: New file.
79275         * modules/unictype/property-join-control: New file.
79276         * modules/unictype/property-grapheme-base: New file.
79277         * modules/unictype/property-grapheme-extend: New file.
79278         * modules/unictype/property-other-grapheme-extend: New file.
79279         * modules/unictype/property-grapheme-link: New file.
79280         * modules/unictype/property-bidi-control: New file.
79281         * modules/unictype/property-bidi-left-to-right: New file.
79282         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
79283         * modules/unictype/property-bidi-arabic-right-to-left: New file.
79284         * modules/unictype/property-bidi-european-digit: New file.
79285         * modules/unictype/property-bidi-eur-num-separator: New file.
79286         * modules/unictype/property-bidi-eur-num-terminator: New file.
79287         * modules/unictype/property-bidi-arabic-digit: New file.
79288         * modules/unictype/property-bidi-common-separator: New file.
79289         * modules/unictype/property-bidi-block-separator: New file.
79290         * modules/unictype/property-bidi-segment-separator: New file.
79291         * modules/unictype/property-bidi-whitespace: New file.
79292         * modules/unictype/property-bidi-non-spacing-mark: New file.
79293         * modules/unictype/property-bidi-boundary-neutral: New file.
79294         * modules/unictype/property-bidi-pdf: New file.
79295         * modules/unictype/property-bidi-embedding-or-override: New file.
79296         * modules/unictype/property-bidi-other-neutral: New file.
79297         * modules/unictype/property-hex-digit: New file.
79298         * modules/unictype/property-ascii-hex-digit: New file.
79299         * modules/unictype/property-ideographic: New file.
79300         * modules/unictype/property-unified-ideograph: New file.
79301         * modules/unictype/property-radical: New file.
79302         * modules/unictype/property-ids-binary-operator: New file.
79303         * modules/unictype/property-ids-trinary-operator: New file.
79304         * modules/unictype/property-zero-width: New file.
79305         * modules/unictype/property-space: New file.
79306         * modules/unictype/property-non-break: New file.
79307         * modules/unictype/property-iso-control: New file.
79308         * modules/unictype/property-format-control: New file.
79309         * modules/unictype/property-dash: New file.
79310         * modules/unictype/property-hyphen: New file.
79311         * modules/unictype/property-punctuation: New file.
79312         * modules/unictype/property-line-separator: New file.
79313         * modules/unictype/property-paragraph-separator: New file.
79314         * modules/unictype/property-quotation-mark: New file.
79315         * modules/unictype/property-sentence-terminal: New file.
79316         * modules/unictype/property-terminal-punctuation: New file.
79317         * modules/unictype/property-currency-symbol: New file.
79318         * modules/unictype/property-math: New file.
79319         * modules/unictype/property-other-math: New file.
79320         * modules/unictype/property-paired-punctuation: New file.
79321         * modules/unictype/property-left-of-pair: New file.
79322         * modules/unictype/property-combining: New file.
79323         * modules/unictype/property-composite: New file.
79324         * modules/unictype/property-decimal-digit: New file.
79325         * modules/unictype/property-numeric: New file.
79326         * modules/unictype/property-diacritic: New file.
79327         * modules/unictype/property-extender: New file.
79328         * modules/unictype/property-ignorable-control: New file.
79329         * modules/unictype/property-test: New file.
79330         * modules/unictype/property-byname: New file.
79331         * modules/unictype/property-all: New file.
79332         * modules/unictype/scripts: New file.
79333         * modules/unictype/scripts-all: New file.
79334         * modules/unictype/block-of: New file.
79335         * modules/unictype/block-test: New file.
79336         * modules/unictype/block-list: New file.
79337         * modules/unictype/block-all: New file.
79338         * modules/unictype/syntax-c-whitespace: New file.
79339         * modules/unictype/syntax-java-whitespace: New file.
79340         * modules/unictype/syntax-c-ident: New file.
79341         * modules/unictype/syntax-java-ident: New file.
79342         * modules/unictype/ctype-alnum: New file.
79343         * modules/unictype/ctype-alpha: New file.
79344         * modules/unictype/ctype-cntrl: New file.
79345         * modules/unictype/ctype-digit: New file.
79346         * modules/unictype/ctype-graph: New file.
79347         * modules/unictype/ctype-lower: New file.
79348         * modules/unictype/ctype-print: New file.
79349         * modules/unictype/ctype-punct: New file.
79350         * modules/unictype/ctype-space: New file.
79351         * modules/unictype/ctype-upper: New file.
79352         * modules/unictype/ctype-xdigit: New file.
79353         * modules/unictype/ctype-blank: New file.
79354         * lib/unictype/bidi_byname.c: New file.
79355         * lib/unictype/bidi_name.c: New file.
79356         * lib/unictype/bidi_of.c: New file.
79357         * lib/unictype/bidi_test.c: New file.
79358         * lib/unictype/bitmap.h: New file.
79359         * lib/unictype/block_test.c: New file.
79360         * lib/unictype/blocks.c: New file.
79361         * lib/unictype/categ_C.c: New file.
79362         * lib/unictype/categ_Cc.c: New file.
79363         * lib/unictype/categ_Cf.c: New file.
79364         * lib/unictype/categ_Cn.c: New file.
79365         * lib/unictype/categ_Co.c: New file.
79366         * lib/unictype/categ_Cs.c: New file.
79367         * lib/unictype/categ_L.c: New file.
79368         * lib/unictype/categ_Ll.c: New file.
79369         * lib/unictype/categ_Lm.c: New file.
79370         * lib/unictype/categ_Lo.c: New file.
79371         * lib/unictype/categ_Lt.c: New file.
79372         * lib/unictype/categ_Lu.c: New file.
79373         * lib/unictype/categ_M.c: New file.
79374         * lib/unictype/categ_Mc.c: New file.
79375         * lib/unictype/categ_Me.c: New file.
79376         * lib/unictype/categ_Mn.c: New file.
79377         * lib/unictype/categ_N.c: New file.
79378         * lib/unictype/categ_Nd.c: New file.
79379         * lib/unictype/categ_Nl.c: New file.
79380         * lib/unictype/categ_No.c: New file.
79381         * lib/unictype/categ_P.c: New file.
79382         * lib/unictype/categ_Pc.c: New file.
79383         * lib/unictype/categ_Pd.c: New file.
79384         * lib/unictype/categ_Pe.c: New file.
79385         * lib/unictype/categ_Pf.c: New file.
79386         * lib/unictype/categ_Pi.c: New file.
79387         * lib/unictype/categ_Po.c: New file.
79388         * lib/unictype/categ_Ps.c: New file.
79389         * lib/unictype/categ_S.c: New file.
79390         * lib/unictype/categ_Sc.c: New file.
79391         * lib/unictype/categ_Sk.c: New file.
79392         * lib/unictype/categ_Sm.c: New file.
79393         * lib/unictype/categ_So.c: New file.
79394         * lib/unictype/categ_Z.c: New file.
79395         * lib/unictype/categ_Zl.c: New file.
79396         * lib/unictype/categ_Zp.c: New file.
79397         * lib/unictype/categ_Zs.c: New file.
79398         * lib/unictype/categ_and.c: New file.
79399         * lib/unictype/categ_and_not.c: New file.
79400         * lib/unictype/categ_byname.c: New file.
79401         * lib/unictype/categ_name.c: New file.
79402         * lib/unictype/categ_none.c: New file.
79403         * lib/unictype/categ_of.c: New file.
79404         * lib/unictype/categ_or.c: New file.
79405         * lib/unictype/categ_test.c: New file.
79406         * lib/unictype/combining.c: New file.
79407         * lib/unictype/ctype_alnum.c: New file.
79408         * lib/unictype/ctype_alpha.c: New file.
79409         * lib/unictype/ctype_blank.c: New file.
79410         * lib/unictype/ctype_cntrl.c: New file.
79411         * lib/unictype/ctype_digit.c: New file.
79412         * lib/unictype/ctype_graph.c: New file.
79413         * lib/unictype/ctype_lower.c: New file.
79414         * lib/unictype/ctype_print.c: New file.
79415         * lib/unictype/ctype_punct.c: New file.
79416         * lib/unictype/ctype_space.c: New file.
79417         * lib/unictype/ctype_upper.c: New file.
79418         * lib/unictype/ctype_xdigit.c: New file.
79419         * lib/unictype/decdigit.c: New file.
79420         * lib/unictype/digit.c: New file.
79421         * lib/unictype/identsyntaxmap.h: New file.
79422         * lib/unictype/mirror.c: New file.
79423         * lib/unictype/numeric.c: New file.
79424         * lib/unictype/pr_alphabetic.c: New file.
79425         * lib/unictype/pr_ascii_hex_digit.c: New file.
79426         * lib/unictype/pr_bidi_arabic_digit.c: New file.
79427         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
79428         * lib/unictype/pr_bidi_block_separator.c: New file.
79429         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
79430         * lib/unictype/pr_bidi_common_separator.c: New file.
79431         * lib/unictype/pr_bidi_control.c: New file.
79432         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
79433         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
79434         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
79435         * lib/unictype/pr_bidi_european_digit.c: New file.
79436         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
79437         * lib/unictype/pr_bidi_left_to_right.c: New file.
79438         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
79439         * lib/unictype/pr_bidi_other_neutral.c: New file.
79440         * lib/unictype/pr_bidi_pdf.c: New file.
79441         * lib/unictype/pr_bidi_segment_separator.c: New file.
79442         * lib/unictype/pr_bidi_whitespace.c: New file.
79443         * lib/unictype/pr_byname.c: New file.
79444         * lib/unictype/pr_byname.gperf: New file.
79445         * lib/unictype/pr_combining.c: New file.
79446         * lib/unictype/pr_composite.c: New file.
79447         * lib/unictype/pr_currency_symbol.c: New file.
79448         * lib/unictype/pr_dash.c: New file.
79449         * lib/unictype/pr_decimal_digit.c: New file.
79450         * lib/unictype/pr_default_ignorable_code_point.c: New file.
79451         * lib/unictype/pr_deprecated.c: New file.
79452         * lib/unictype/pr_diacritic.c: New file.
79453         * lib/unictype/pr_extender.c: New file.
79454         * lib/unictype/pr_format_control.c: New file.
79455         * lib/unictype/pr_grapheme_base.c: New file.
79456         * lib/unictype/pr_grapheme_extend.c: New file.
79457         * lib/unictype/pr_grapheme_link.c: New file.
79458         * lib/unictype/pr_hex_digit.c: New file.
79459         * lib/unictype/pr_hyphen.c: New file.
79460         * lib/unictype/pr_id_continue.c: New file.
79461         * lib/unictype/pr_id_start.c: New file.
79462         * lib/unictype/pr_ideographic.c: New file.
79463         * lib/unictype/pr_ids_binary_operator.c: New file.
79464         * lib/unictype/pr_ids_trinary_operator.c: New file.
79465         * lib/unictype/pr_ignorable_control.c: New file.
79466         * lib/unictype/pr_iso_control.c: New file.
79467         * lib/unictype/pr_join_control.c: New file.
79468         * lib/unictype/pr_left_of_pair.c: New file.
79469         * lib/unictype/pr_line_separator.c: New file.
79470         * lib/unictype/pr_logical_order_exception.c: New file.
79471         * lib/unictype/pr_lowercase.c: New file.
79472         * lib/unictype/pr_math.c: New file.
79473         * lib/unictype/pr_non_break.c: New file.
79474         * lib/unictype/pr_not_a_character.c: New file.
79475         * lib/unictype/pr_numeric.c: New file.
79476         * lib/unictype/pr_other_alphabetic.c: New file.
79477         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
79478         * lib/unictype/pr_other_grapheme_extend.c: New file.
79479         * lib/unictype/pr_other_id_continue.c: New file.
79480         * lib/unictype/pr_other_id_start.c: New file.
79481         * lib/unictype/pr_other_lowercase.c: New file.
79482         * lib/unictype/pr_other_math.c: New file.
79483         * lib/unictype/pr_other_uppercase.c: New file.
79484         * lib/unictype/pr_paired_punctuation.c: New file.
79485         * lib/unictype/pr_paragraph_separator.c: New file.
79486         * lib/unictype/pr_pattern_syntax.c: New file.
79487         * lib/unictype/pr_pattern_white_space.c: New file.
79488         * lib/unictype/pr_private_use.c: New file.
79489         * lib/unictype/pr_punctuation.c: New file.
79490         * lib/unictype/pr_quotation_mark.c: New file.
79491         * lib/unictype/pr_radical.c: New file.
79492         * lib/unictype/pr_sentence_terminal.c: New file.
79493         * lib/unictype/pr_soft_dotted.c: New file.
79494         * lib/unictype/pr_space.c: New file.
79495         * lib/unictype/pr_terminal_punctuation.c: New file.
79496         * lib/unictype/pr_test.c: New file.
79497         * lib/unictype/pr_titlecase.c: New file.
79498         * lib/unictype/pr_unassigned_code_value.c: New file.
79499         * lib/unictype/pr_unified_ideograph.c: New file.
79500         * lib/unictype/pr_uppercase.c: New file.
79501         * lib/unictype/pr_variation_selector.c: New file.
79502         * lib/unictype/pr_white_space.c: New file.
79503         * lib/unictype/pr_xid_continue.c: New file.
79504         * lib/unictype/pr_xid_start.c: New file.
79505         * lib/unictype/pr_zero_width.c: New file.
79506         * lib/unictype/scripts.c: New file.
79507         * lib/unictype/sy_c_ident.c: New file.
79508         * lib/unictype/sy_c_whitespace.c: New file.
79509         * lib/unictype/sy_java_ident.c: New file.
79510         * lib/unictype/sy_java_whitespace.c: New file.
79512         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
79513         Unicode 5.0.0.
79514         * lib/unictype/blocks.h: Likewise.
79515         * lib/unictype/categ_C.h: Likewise.
79516         * lib/unictype/categ_Cc.h: Likewise.
79517         * lib/unictype/categ_Cf.h: Likewise.
79518         * lib/unictype/categ_Cn.h: Likewise.
79519         * lib/unictype/categ_Co.h: Likewise.
79520         * lib/unictype/categ_Cs.h: Likewise.
79521         * lib/unictype/categ_L.h: Likewise.
79522         * lib/unictype/categ_Ll.h: Likewise.
79523         * lib/unictype/categ_Lm.h: Likewise.
79524         * lib/unictype/categ_Lo.h: Likewise.
79525         * lib/unictype/categ_Lt.h: Likewise.
79526         * lib/unictype/categ_Lu.h: Likewise.
79527         * lib/unictype/categ_M.h: Likewise.
79528         * lib/unictype/categ_Mc.h: Likewise.
79529         * lib/unictype/categ_Me.h: Likewise.
79530         * lib/unictype/categ_Mn.h: Likewise.
79531         * lib/unictype/categ_N.h: Likewise.
79532         * lib/unictype/categ_Nd.h: Likewise.
79533         * lib/unictype/categ_Nl.h: Likewise.
79534         * lib/unictype/categ_No.h: Likewise.
79535         * lib/unictype/categ_P.h: Likewise.
79536         * lib/unictype/categ_Pc.h: Likewise.
79537         * lib/unictype/categ_Pd.h: Likewise.
79538         * lib/unictype/categ_Pe.h: Likewise.
79539         * lib/unictype/categ_Pf.h: Likewise.
79540         * lib/unictype/categ_Pi.h: Likewise.
79541         * lib/unictype/categ_Po.h: Likewise.
79542         * lib/unictype/categ_Ps.h: Likewise.
79543         * lib/unictype/categ_S.h: Likewise.
79544         * lib/unictype/categ_Sc.h: Likewise.
79545         * lib/unictype/categ_Sk.h: Likewise.
79546         * lib/unictype/categ_Sm.h: Likewise.
79547         * lib/unictype/categ_So.h: Likewise.
79548         * lib/unictype/categ_Z.h: Likewise.
79549         * lib/unictype/categ_Zl.h: Likewise.
79550         * lib/unictype/categ_Zp.h: Likewise.
79551         * lib/unictype/categ_Zs.h: Likewise.
79552         * lib/unictype/categ_of.h: Likewise.
79553         * lib/unictype/combining.h: Likewise.
79554         * lib/unictype/ctype_alnum.h: Likewise.
79555         * lib/unictype/ctype_alpha.h: Likewise.
79556         * lib/unictype/ctype_blank.h: Likewise.
79557         * lib/unictype/ctype_cntrl.h: Likewise.
79558         * lib/unictype/ctype_digit.h: Likewise.
79559         * lib/unictype/ctype_graph.h: Likewise.
79560         * lib/unictype/ctype_lower.h: Likewise.
79561         * lib/unictype/ctype_print.h: Likewise.
79562         * lib/unictype/ctype_punct.h: Likewise.
79563         * lib/unictype/ctype_space.h: Likewise.
79564         * lib/unictype/ctype_upper.h: Likewise.
79565         * lib/unictype/ctype_xdigit.h: Likewise.
79566         * lib/unictype/decdigit.h: Likewise.
79567         * lib/unictype/digit.h: Likewise.
79568         * lib/unictype/mirror.h: Likewise.
79569         * lib/unictype/numeric.h: Likewise.
79570         * lib/unictype/pr_alphabetic.h: Likewise.
79571         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
79572         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
79573         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
79574         * lib/unictype/pr_bidi_block_separator.h: Likewise.
79575         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
79576         * lib/unictype/pr_bidi_common_separator.h: Likewise.
79577         * lib/unictype/pr_bidi_control.h: Likewise.
79578         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
79579         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
79580         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
79581         * lib/unictype/pr_bidi_european_digit.h: Likewise.
79582         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
79583         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
79584         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
79585         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
79586         * lib/unictype/pr_bidi_pdf.h: Likewise.
79587         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
79588         * lib/unictype/pr_bidi_whitespace.h: Likewise.
79589         * lib/unictype/pr_combining.h: Likewise.
79590         * lib/unictype/pr_composite.h: Likewise.
79591         * lib/unictype/pr_currency_symbol.h: Likewise.
79592         * lib/unictype/pr_dash.h: Likewise.
79593         * lib/unictype/pr_decimal_digit.h: Likewise.
79594         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
79595         * lib/unictype/pr_deprecated.h: Likewise.
79596         * lib/unictype/pr_diacritic.h: Likewise.
79597         * lib/unictype/pr_extender.h: Likewise.
79598         * lib/unictype/pr_format_control.h: Likewise.
79599         * lib/unictype/pr_grapheme_base.h: Likewise.
79600         * lib/unictype/pr_grapheme_extend.h: Likewise.
79601         * lib/unictype/pr_grapheme_link.h: Likewise.
79602         * lib/unictype/pr_hex_digit.h: Likewise.
79603         * lib/unictype/pr_hyphen.h: Likewise.
79604         * lib/unictype/pr_id_continue.h: Likewise.
79605         * lib/unictype/pr_id_start.h: Likewise.
79606         * lib/unictype/pr_ideographic.h: Likewise.
79607         * lib/unictype/pr_ids_binary_operator.h: Likewise.
79608         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
79609         * lib/unictype/pr_ignorable_control.h: Likewise.
79610         * lib/unictype/pr_iso_control.h: Likewise.
79611         * lib/unictype/pr_join_control.h: Likewise.
79612         * lib/unictype/pr_left_of_pair.h: Likewise.
79613         * lib/unictype/pr_line_separator.h: Likewise.
79614         * lib/unictype/pr_logical_order_exception.h: Likewise.
79615         * lib/unictype/pr_lowercase.h: Likewise.
79616         * lib/unictype/pr_math.h: Likewise.
79617         * lib/unictype/pr_non_break.h: Likewise.
79618         * lib/unictype/pr_not_a_character.h: Likewise.
79619         * lib/unictype/pr_numeric.h: Likewise.
79620         * lib/unictype/pr_other_alphabetic.h: Likewise.
79621         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
79622         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
79623         * lib/unictype/pr_other_id_continue.h: Likewise.
79624         * lib/unictype/pr_other_id_start.h: Likewise.
79625         * lib/unictype/pr_other_lowercase.h: Likewise.
79626         * lib/unictype/pr_other_math.h: Likewise.
79627         * lib/unictype/pr_other_uppercase.h: Likewise.
79628         * lib/unictype/pr_paired_punctuation.h: Likewise.
79629         * lib/unictype/pr_paragraph_separator.h: Likewise.
79630         * lib/unictype/pr_pattern_syntax.h: Likewise.
79631         * lib/unictype/pr_pattern_white_space.h: Likewise.
79632         * lib/unictype/pr_private_use.h: Likewise.
79633         * lib/unictype/pr_punctuation.h: Likewise.
79634         * lib/unictype/pr_quotation_mark.h: Likewise.
79635         * lib/unictype/pr_radical.h: Likewise.
79636         * lib/unictype/pr_sentence_terminal.h: Likewise.
79637         * lib/unictype/pr_soft_dotted.h: Likewise.
79638         * lib/unictype/pr_space.h: Likewise.
79639         * lib/unictype/pr_terminal_punctuation.h: Likewise.
79640         * lib/unictype/pr_titlecase.h: Likewise.
79641         * lib/unictype/pr_unassigned_code_value.h: Likewise.
79642         * lib/unictype/pr_unified_ideograph.h: Likewise.
79643         * lib/unictype/pr_uppercase.h: Likewise.
79644         * lib/unictype/pr_variation_selector.h: Likewise.
79645         * lib/unictype/pr_white_space.h: Likewise.
79646         * lib/unictype/pr_xid_continue.h: Likewise.
79647         * lib/unictype/pr_xid_start.h: Likewise.
79648         * lib/unictype/pr_zero_width.h: Likewise.
79649         * lib/unictype/scripts.h: Likewise.
79650         * lib/unictype/scripts_byname.gperf: Likewise.
79651         * lib/unictype/sy_c_ident.h: Likewise.
79652         * lib/unictype/sy_c_whitespace.h: Likewise.
79653         * lib/unictype/sy_java_ident.h: Likewise.
79654         * lib/unictype/sy_java_whitespace.h: Likewise.
79656         * lib/unictype/Makefile: New file.
79657         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
79658         glibc.
79659         * lib/unictype/3level.h: New file, copied from glibc.
79660         * lib/unictype/3levelbit.h: New file.
79662 2007-11-11  Bruno Haible  <bruno@clisp.org>
79664         * modules/gperf: New file.
79665         * modules/iconv_open (Depends-on): Add it.
79666         (Makefile.am): Remove the GPERF definition.
79668 2007-11-11  Bruno Haible  <bruno@clisp.org>
79670         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
79671         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
79673 2007-11-11  Bruno Haible  <bruno@clisp.org>
79675         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
79676         (usage): Remove function.
79678 2007-11-11  Bruno Haible  <bruno@clisp.org>
79680         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
79681         gl_FUNC_CEILF_LIBS.
79682         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
79683         gl_FUNC_CEIL_LIBS.
79684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
79685         gl_FUNC_CEILL_LIBS.
79686         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
79687         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
79688         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
79690 2007-11-11  Bruno Haible  <bruno@clisp.org>
79692         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
79693         roundf were declared but do not exist on functions.
79694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
79695         roundl were declared but do not exist on functions.
79696         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
79697         HAVE_FLOORL_AND_CEILL, respectively.
79698         Needed for Sun C on Solaris 10.
79700 2007-11-11  Bruno Haible  <bruno@clisp.org>
79702         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
79703         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
79704         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
79705         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
79706         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
79707         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
79708         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
79709         HAVE_DECL_ROUNDF.
79710         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
79711         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
79712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
79713         of HAVE_DECL_ROUND*.
79714         * modules/math (Makefile.am): Update.
79716 2007-11-10  Bruno Haible  <bruno@clisp.org>
79718         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
79719         ptrdiff_t as m4/intl.m4.
79721 2007-11-10  Jim Meyering  <meyering@redhat.com>
79723         Avoid link failure for the argmatch test.
79724         * tests/test-argmatch.c (usage): Define function to avoid a link
79725         failure: argmatch_die requires a usage function.
79727 2007-11-09  Bruno Haible  <bruno@clisp.org>
79729         * doc/functions/snprintf.texi: Mention BeOS deficiency.
79730         * doc/functions/vsnprintf.texi: Likewise.
79731         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
79732         with a size argument < 2.
79734 2007-11-09  Bruno Haible  <bruno@clisp.org>
79736         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
79737         buffer. Fixes an inefficiency introduced on 2007-11-03.
79739 2007-11-09  Bruno Haible  <bruno@clisp.org>
79741         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
79742         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
79744 2007-11-08  Jim Meyering  <meyering@redhat.com>
79746         Change cache variable name prefix "jm_" to "gl_" everywhere.
79747         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
79748         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
79749         * m4/uptime.m4: s/gl_/jm_/
79751 2007-11-07  Bruno Haible  <bruno@clisp.org>
79753         Update to GNU gettext 0.17.
79754         * m4/intl.m4: Update to GNU gettext 0.17.
79755         * m4/po.m4: Likewise.
79756         * modules/gettext (Files): Remove m4/ulonglong.m4.
79757         (configure.ac): Require gettext infrastructure from version 0.17.
79759 2007-11-06  Bruno Haible  <bruno@clisp.org>
79761         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
79762         symbolic values are not defined in a public header.
79763         * lib/freadable.c (freadable) [QNX]: Likewise.
79764         * lib/freadahead.c (freadahead) [QNX]: Likewise.
79765         * lib/freading.c (freading) [QNX]: Likewise.
79766         * lib/fseterr.c (fseterr) [QNX]: Likewise.
79767         * lib/fwritable.c (fwritable) [QNX]: Likewise.
79768         * lib/fwriting.c (fwriting) [QNX]: Likewise.
79769         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
79770         Reported by Alain Magloire.
79772         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
79774 2007-11-05  Bruno Haible  <bruno@clisp.org>
79776         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
79777         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
79778         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
79779         Reported by Eric Blake.
79781 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79782             Bruno Haible  <bruno@clisp.org>
79784         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
79785         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
79786         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
79787         (malloc): Undefine also before including <stdlib.h>.
79788         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
79789         Needed on OSF/1 4.0.
79791 2007-11-05  Jim Meyering  <meyering@redhat.com>
79793         git-version-gen: sync from coreutils.
79794         * build-aux/git-version-gen: Add comments.
79795         Change the first '-' to '.' in the snapshot version string,
79796         e.g., 6.9-377-08144 -> 6.9.377-08144
79797         Remove first parameter.
79798         Don't declare a version "-dirty" merely because a time
79799         stamp has changed.
79801 2007-11-04  Bruno Haible  <bruno@clisp.org>
79803         * lib/lock.h: Protect all macro definitions containing an 'if'
79804         statement through a "do { ... } while (0)".
79805         * lib/tls.h: Likewise.
79807 2007-11-04  Bruno Haible  <bruno@clisp.org>
79809         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
79811 2007-11-04  Bruno Haible  <bruno@clisp.org>
79813         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
79814         * modules/fprintf-posix (Depends-on): Add nocrash.
79815         * modules/snprintf-posix (Depends-on): Likewise.
79816         * modules/sprintf-posix (Depends-on): Likewise.
79817         * modules/vasnprintf-posix (Depends-on): Likewise.
79818         * modules/vasprintf-posix (Depends-on): Likewise.
79819         * modules/vfprintf-posix (Depends-on): Likewise.
79820         * modules/vsnprintf-posix (Depends-on): Likewise.
79821         * modules/vsprintf-posix (Depends-on): Likewise.
79822         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79823         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79824         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79825         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79826         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79827         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79828         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79830 2007-11-04  Bruno Haible  <bruno@clisp.org>
79832         * modules/nocrash: New file.
79833         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
79834         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
79836 2007-11-04  Bruno Haible  <bruno@clisp.org>
79838         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
79839         precision handling.
79840         * tests/test-vasprintf-posix.c (test_function): Likewise.
79841         * tests/test-snprintf-posix.h (test_function): Likewise.
79842         * tests/test-sprintf-posix.h (test_function): Likewise.
79844         Fix *printf behaviour for large precisions on mingw and BeOS.
79845         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
79846         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
79847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
79848         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79849         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79850         gl_PRINTF_PRECISION and test its result. Invoke
79851         gl_PREREQ_VASNPRINTF_PRECISION.
79852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79856         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79858         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79859         * doc/functions/fprintf.texi: Update.
79860         * doc/functions/printf.texi: Update.
79861         * doc/functions/snprintf.texi: Update.
79862         * doc/functions/sprintf.texi: Update.
79863         * doc/functions/vfprintf.texi: Update.
79864         * doc/functions/vprintf.texi: Update.
79865         * doc/functions/vsnprintf.texi: Update.
79866         * doc/functions/vsprintf.texi: Update.
79868 2007-11-04  Bruno Haible  <bruno@clisp.org>
79870         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
79872 2007-11-04  Bruno Haible  <bruno@clisp.org>
79874         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
79875         Reported by Sylvain Beucler <beuc@gnu.org>.
79877 2007-11-03  Bruno Haible  <bruno@clisp.org>
79879         * tests/test-fprintf-posix2.sh: New file.
79880         * tests/test-fprintf-posix2.c: New file.
79881         * modules/fprintf-posix-tests (Files): Add them.
79882         (TESTS): Add test-fprintf-posix2.sh.
79883         (configure.ac): Check for getrlimit and setrlimit.
79884         (check_PROGRAMS): Add test-fprintf-posix2.
79886         * tests/test-printf-posix2.sh: New file.
79887         * tests/test-printf-posix2.c: New file.
79888         * modules/printf-posix-tests (Files): Add them.
79889         (TESTS): Add test-printf-posix2.sh.
79890         (configure.ac): Check for getrlimit and setrlimit.
79891         (check_PROGRAMS): Add test-printf-posix2.
79893         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
79894         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
79895         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
79896         (decode_double): New function, copied from decode_long_double.
79897         (scale10_round_decimal_decoded): New function, extracted from
79898         scale10_round_decimal_long_double.
79899         (scale10_round_decimal_long_double): Use it.
79900         (scale10_round_decimal_double): New function.
79901         (floorlog10): New function.
79902         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
79903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
79904         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79905         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79906         gl_PRINTF_ENOMEM and test its result. Invoke
79907         gl_PREREQ_VASNPRINTF_ENOMEM.
79908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79912         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79915         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
79916         * modules/snprintf-posix (Depends-on): Likewise.
79917         * modules/sprintf-posix (Depends-on): Likewise.
79918         * modules/vasnprintf-posix (Depends-on): Likewise.
79919         * modules/vasprintf-posix (Depends-on): Likewise.
79920         * modules/vfprintf-posix (Depends-on): Likewise.
79921         * modules/vsnprintf-posix (Depends-on): Likewise.
79922         * modules/vsprintf-posix (Depends-on): Likewise.
79923         * doc/functions/fprintf.texi: Update.
79924         * doc/functions/printf.texi: Update.
79925         * doc/functions/snprintf.texi: Update.
79926         * doc/functions/sprintf.texi: Update.
79927         * doc/functions/vfprintf.texi: Update.
79928         * doc/functions/vprintf.texi: Update.
79929         * doc/functions/vsnprintf.texi: Update.
79930         * doc/functions/vsprintf.texi: Update.
79932 2007-11-03  Bruno Haible  <bruno@clisp.org>
79934         * modules/frexp-nolibm-tests: New file.
79936         * modules/frexp-nolibm: New file.
79937         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
79939 2007-11-03  Bruno Haible  <bruno@clisp.org>
79941         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
79942         value is C99 compliant.
79943         Needed for OSF/1 5.1.
79945 2007-11-03  Bruno Haible  <bruno@clisp.org>
79947         Fix out-of-memory handling of vasnprintf.
79948         * lib/printf-parse.c: Include <errno.h>.
79949         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
79950         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
79951         is already set.
79953 2007-11-02  Eric Blake  <ebb9@byu.net>
79955         Fix tests on cygwin.
79956         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
79958 2007-11-01  Bruno Haible  <bruno@clisp.org>
79960         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
79961         warning.
79962         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
79963         needed for POSIX compatibility.
79965 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79967         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
79968         for compatibility with GNU.
79970 2007-11-01  Bruno Haible  <bruno@clisp.org>
79972         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
79973         (putenv): Renamed from rpl_putenv. Change argument type from
79974         'const char *' to 'char *'.
79975         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
79976         of defining putenv in config.h, just set REPLACE_PUTENV.
79977         * modules/putenv (Depends-on): Add stdlib.
79978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79979         (Include): Use <stdlib.h>.
79980         * lib/stdlib.in.h (putenv): New declaration.
79981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
79982         REPLACE_PUTENV.
79983         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
79984         REPLACE_PUTENV.
79985         Needed for MacOS X 10.5.0.
79986         Reported by Peter O'Gorman <peter@pogma.com>.
79988 2007-11-01  Jim Meyering  <meyering@redhat.com>
79990         Treat an empty date string exactly like "0".
79991         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
79992         if the remaining date string (to be parsed) is empty, use "0".
79993         Reported by Mischa Molhoek and discussed in this thread:
79994         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
79996 2007-10-31  Bruno Haible  <bruno@clisp.org>
79998         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
79999         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
80000         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
80001         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
80002         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
80003         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
80005 2007-10-31  Bruno Haible  <bruno@clisp.org>
80007         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
80008         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
80009         (AC_TYPE_LONG_LONG_INT): Use it.
80010         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
80011         it as well.
80012         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
80013         to m4/longlong.m4.
80014         * modules/stdint (Files): Remove m4/ulonglong.m4.
80015         * modules/strtoull (Files): Use m4/longlong.m4 instead of
80016         m4/ulonglong.m4.
80017         * modules/strtoumax (Files): Likewise.
80019 2007-10-30  Bruno Haible  <bruno@clisp.org>
80021         * modules/xvasprintf-posix: New file.
80022         Suggested by Eric Blake.
80024 2007-10-30  Bruno Haible  <bruno@clisp.org>
80026         * modules/xprintf-posix-tests: New file.
80027         * tests/test-xprintf-posix.sh: New file.
80028         * tests/test-xprintf-posix.c: New file.
80029         * tests/test-xfprintf-posix.c: New file.
80031         * modules/xprintf-posix: New file.
80033 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80035         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
80036         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
80037         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
80039 2007-10-29  Bruno Haible  <bruno@clisp.org>
80041         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
80042         contain the special marker '_cv_'.
80043         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
80044         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
80045         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
80046         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
80047         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
80048         Reported by Ralf Wildenhues.
80050 2007-10-29  Bruno Haible  <bruno@clisp.org>
80052         * gnulib-tool (func_import): When --lgpl is not specified, set
80053         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
80054         GPLv3.
80055         Reported by Simon Josefsson.
80057 2007-10-28  Bruno Haible  <bruno@clisp.org>
80059         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
80060         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
80061         HAVE_DECL_ISFINITE.
80062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80063         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
80064         HAVE_DECL_ISFINITE.
80066 2007-10-28  Bruno Haible  <bruno@clisp.org>
80068         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
80069         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
80071 2007-10-28  Bruno Haible  <bruno@clisp.org>
80073         Fix link errors with Sun C 5.0 on Solaris 10.
80074         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
80075         function is declared but not present in the compiler's libm.
80076         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
80077         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
80078         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
80079         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
80080         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
80081         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
80082         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
80083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80084         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
80085         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
80086         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
80087         HAVE_DECL_FLOORL.
80089 2007-10-28  Bruno Haible  <bruno@clisp.org>
80091         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
80092         gl_FUNC_FLOORL. Cache the result.
80093         (gl_FUNC_FLOORL): Use it.
80094         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
80095         gl_FUNC_CEILL. Cache the result.
80096         (gl_FUNC_CEILL): Use it.
80098         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
80099         gl_FUNC_FLOOR. Cache the result.
80100         (gl_FUNC_FLOOR): Use it.
80101         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
80102         gl_FUNC_CEIL. Cache the result.
80103         (gl_FUNC_CEIL): Use it.
80105         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
80106         gl_FUNC_FLOORF. Cache the result.
80107         (gl_FUNC_FLOORF): Use it.
80108         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
80109         gl_FUNC_CEILF. Cache the result.
80110         (gl_FUNC_CEILF): Use it.
80112 2007-10-28  Bruno Haible  <bruno@clisp.org>
80114         * gnulib-tool: Allow specifying the LGPL version number through
80115         --lgpl=2 or --lgpl=3.
80116         (func_usage): Document --lgpl with argument.
80117         Handle --lgpl=... arguments.
80118         (func_import): Recognize also gl_LGPL calls with an argument. When
80119         --lgpl=2 is used and the module's license is just LGPL, report an
80120         error. Set sed_transform_lib_file according to the lgpl variable. In
80121         the generated files, use --lgpl or gl_LGPL invocations with argument,
80122         if necessary.
80123         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
80124         an LGPv2+ license.
80125         * doc/gnulib-tool.texi (Modified imports): Update explanation of
80126         gl_LGPL macro.
80128 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80129             Bruno Haible  <bruno@clisp.org>
80131         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
80132         (u16_uctomb_aux): Likewise.
80133         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
80134         !HAVE_INLINE.
80135         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
80137 2007-10-28  Bruno Haible  <bruno@clisp.org>
80139         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
80140         Invoke AM_GETTEXT_OPTION if it exists.
80141         * modules/vasprintf: Likewise.
80142         * modules/verror: Likewise.
80143         * modules/xprintf: Likewise.
80144         * modules/xvasprintf: Likewise.
80146 2007-10-27  Ben Pfaff  <blp@gnu.org>
80148         * lib/math.in.h: Define isfinite macro and prototypes for
80149         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
80150         implementations.
80151         * m4/math_h.m4: New substitutions for isfinite module.
80152         * lib/isfinite.c: New file.
80153         * m4/isfinite.m4: New file.
80154         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
80155         * modules/isfinite: New file.
80156         * modules/isfinite-tests: New file.
80157         * tests/tests-isfinite.c: New file.
80158         * doc/functions/isfinite.texi: Mention isfinite module.
80159         * MODULES.html.sh: Mention new module.
80161 2007-10-27  Ben Pfaff  <blp@gnu.org>
80163         Ralf Wildenhues reported that Tru64 4.0D declares the round
80164         functions but does not have definitions.
80165         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
80166         cannot be found in any library, set the output variable to
80167         "missing" instead of "".
80168         * m4/round.m4: Also use our substitute if we cannot find round in
80169         any library, even if it is declared.
80170         * m4/roundf.m4: Likewise for roundf.
80171         * m4/roundl.m4: Likewise for roundl.
80172         * lib/math.in.h: Undefine roundf, round, roundl before defining
80173         their replacements, to allow for hypothetical systems where these
80174         may be defined as macros but not available in libraries.
80176 2007-10-27  Bruno Haible  <bruno@clisp.org>
80178         * doc/gnulib.texi: Invoke @firstparagraphindent.
80179         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
80180         changes in gnulib.
80181         (Source changes): New section.
80183 2007-10-26  Bruno Haible  <bruno@clisp.org>
80185         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
80186         borrowed from autoconf.
80188 2007-10-26  Bruno Haible  <bruno@clisp.org>
80190         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
80191         strerror returned the empty string. Needed on HP-UX 11.00.
80193 2007-10-24  Micah Cowan  <micah@cowan.name>
80195         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
80196         * build-aux/bootstrap: Remove support for now-unnecessary option,
80197         --cvs-user, and envvars CVS_USER, CVS_RSH.
80199 2007-10-24  Jim Meyering  <meyering@redhat.com>
80201         Avoid diagnostics from sha1sum when there is no cached checksum.
80202         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
80203         if the po.s1 file hasn't been created yet.
80205         * build-aux/bootstrap: Sync from coreutils:
80206         2007-10-24  Jim Meyering  <meyering@redhat.com>
80207         Get gnulib from the git repository, not from an obsolete cvs one.
80208         * build-aux/bootstrap: Suggestion from Micah Cowan.
80209         2007-10-04  Jim Meyering  <jim@meyering.net>
80210         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
80211         (update_po_files): Work also when there are no .po files in po/.
80213 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80215         * README: Append ".git" to git and cg examples.
80216         Problem reported by Benoit Sigoure.
80218 2007-10-23  Micah Cowan  <micah@cowan.name>
80220         * users.txt: Add wget.
80222 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80224         Fix linking of some unistdio tests on FreeBSD.
80225         * modules/unistdio/u16-vsnprintf-tests
80226         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
80227         * modules/unistdio/u16-vsprintf-tests
80228         (test_u16_vsnprintf1_LDADD): Likewise.
80229         * modules/unistdio/u32-vsnprintf-tests
80230         (test_u32_vsnprintf1_LDADD): Likewise.
80231         * modules/unistdio/u32-vsprintf-tests
80232         (test_u32_vsprintf1_LDADD): Likewise.
80233         * modules/unistdio/u8-vsnprintf-tests
80234         (test_u8_vsnprintf1_LDADD): Likewise.
80235         * modules/unistdio/u8-vsprintf-tests
80236         (test_u8_vsprintf1_LDADD): Likewise.
80237         * modules/unistdio/ulc-vsnprintf-tests
80238         (test_ulc_vsnprintf1_LDADD): Likewise.
80239         * modules/unistdio/ulc-vsprintf-tests
80240         (test_ulc_vsprintf1_LDADD): Likewise.
80242         Fix linking of some uniconv tests on FreeBSD.
80243         * modules/uniconv/u16-conv-from-enc-tests
80244         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
80245         * modules/uniconv/u16-conv-to-enc-tests
80246         (test_u16_conv_to_enc_LDADD): Likewise.
80247         * modules/uniconv/u16-strconv-from-enc-tests
80248         (test_u16_strconv_from_enc_LDADD): Likewise.
80249         * modules/uniconv/u16-strconv-to-enc-tests
80250         (test_u16_strconv_to_enc_LDADD): Likewise.
80251         * modules/uniconv/u32-conv-from-enc-tests
80252         (test_u32_conv_from_enc_LDADD): Likewise.
80253         * modules/uniconv/u32-conv-to-enc-tests
80254         (test_u32_conv_to_enc_LDADD): Likewise.
80255         * modules/uniconv/u32-strconv-from-enc-tests
80256         (test_u32_strconv_from_enc_LDADD): Likewise.
80257         * modules/uniconv/u32-strconv-to-enc-tests
80258         (test_u32_strconv_to_enc_LDADD): Likewise.
80259         * modules/uniconv/u8-conv-from-enc-tests
80260         (test_u8_conv_from_enc_LDADD): Likewise.
80261         * modules/uniconv/u8-conv-to-enc-tests
80262         (test_u8_conv_to_enc_LDADD): Likewise.
80263         * modules/uniconv/u8-strconv-from-enc-tests
80264         (test_u8_strconv_from_enc_LDADD): Likewise.
80265         * modules/uniconv/u8-strconv-to-enc-tests
80266         (test_u8_strconv_to_enc_LDADD): Likewise.
80268 2007-10-22  Bruno Haible  <bruno@clisp.org>
80270         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
80271         size.
80273 2007-10-22  Eric Blake  <ebb9@byu.net>
80275         Tweak x*printf documentation.
80276         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
80277         variable name and comments.
80278         Suggested by Bruno Haible.
80280 2007-10-22  Bruno Haible  <bruno@clisp.org>
80282         * lib/acl.c (copy_acl): Fix file name in comment.
80284 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80286         Fix Tru64 problem with stdbool.h.
80287         * lib/stdbool.in.h (false, true):
80288         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
80289         Don't declare as an enum in this situation; it runs afoul of Tru64.
80290         Problem reported by Steven M. Schweda in
80291         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
80293 2007-10-22  Eric Blake  <ebb9@byu.net>
80295         Also wrap vf?printf.
80296         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
80297         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
80298         (xvprintf, xvfprintf): New functions.
80300 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80302         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
80303         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
80305         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
80306         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
80308 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80310         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
80311         by Bruno Haible.
80313 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80315         * lib/getloadavg.c
80316         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
80317         Undef `sys' after including sys/table.h, for Tru64 4.0D.
80319         * tests/test-i-ring.c: Work for C89.
80321 2007-10-22  Bruno Haible  <bruno@clisp.org>
80323         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
80324         -1u, in preprocessor expression, so that we don't test for the bug
80325         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
80326         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
80328 2007-10-22  Eric Blake  <ebb9@byu.net>
80330         * tests/test-yesno.sh: Silence stderr during test.
80332 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80334         * modules/crypto/gc-camellia: New file.
80336         * m4/gc-camellia.m4: New file.
80338         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
80340         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
80342 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80344         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
80345         --help to stdout.  Reported by sms@antinode.org (Steven
80346         M. Schweda).
80348 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80350         * users.txt: Fix link to libksba.
80352 2007-10-21  Ben Pfaff  <blp@gnu.org>
80354         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
80355         round.c roundf implementation that depends on floorf and ceilf to
80356         be tested unconditionally.
80358 2007-10-21  Ben Pfaff  <blp@gnu.org>
80360         * m4/check-libm-func.m4: Removed.
80361         * m4/check-math-lib.m4: New file.
80362         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
80363         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
80364         definition and lack of AC_LIBOBJ([roundf]).
80365         * m4/roundl.m4: Ditto, and similarly for roundl.
80366         * modules/round: Reference new m4 file.
80367         * modules/roundf: Ditto.
80368         * modules/roundl: Ditto.
80369         * tests/test-round2.c (main): Use ROUND instead of round.
80370         Bug report from Bruno Haible.
80372 2007-10-21  Bruno Haible  <bruno@clisp.org>
80374         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
80375         context.
80377 2007-10-21  Bruno Haible  <bruno@clisp.org>
80379         * tests/test-wcwidth.c (main): Allow negative result for some control
80380         characters.
80382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
80383         Needed on OSF/1 5.1.
80385 2007-10-21  Bruno Haible  <bruno@clisp.org>
80387         * tests/test-floorf1.c: Include isnanf.h.
80388         (main): Use isnanf() instead of isnan().
80389         * tests/test-ceilf1.c: Include isnanf.h.
80390         (main): Use isnanf() instead of isnan().
80391         * tests/test-truncf1.c: Include isnanf.h.
80392         (main): Use isnanf() instead of isnan().
80393         * tests/test-roundf1.c: Include isnanf.h.
80394         (main): Use isnanf() instead of isnan().
80396 2007-10-21  Eric Blake  <ebb9@byu.net>
80398         * users.txt: Update URL for m4.
80400 2007-10-21  Bruno Haible  <bruno@clisp.org>
80402         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
80404 2007-10-21  Bruno Haible  <bruno@clisp.org>
80406         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
80407         Git's management files if the CVS files are not present.
80409 2007-10-20  Bruno Haible  <bruno@clisp.org>
80411         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
80412         gcc-3.4.x.
80414 2007-10-20  Ben Pfaff  <blp@gnu.org>
80416         * lib/math.in.h: Declare round, roundf, roundl if we are providing
80417         implementations.
80418         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
80419         * lib/round.c: New file.
80420         * lib/roundf.c: New file.
80421         * lib/roundl.c: New file.
80422         * m4/round.m4: New file.
80423         * m4/roundf.m4: New file.
80424         * m4/roundl.m4: New file.
80425         * m4/check-libm-func-m4: New file.
80426         * modules/math: Replace round, roundf, roundl related @VARS@ in
80427         math.in.h.
80428         * modules/round: New file.
80429         * modules/round-tests: New file.
80430         * modules/roundf: New file.
80431         * modules/roundf-tests: New file.
80432         * modules/roundl: New file.
80433         * modules/roundl-tests: New file.
80434         * tests/test-round1.c: New file.
80435         * tests/test-round2.c: New file.
80436         * tests/test-roundf1.c: New file.
80437         * tests/test-roundf2.c: New file.
80438         * tests/test-roundl.c: New file.
80439         * doc/functions/round.texi: Mention round module.
80440         * doc/functions/roundf.texi: Mention roundf module.
80441         * doc/functions/roundl.texi: Mention roundl module.
80442         * MODULES.html.sh: Mention new modules.
80443         Thanks to Bruno Haible for suggestions.
80445 2007-10-20  Jim Meyering  <meyering@redhat.com>
80447         * lib/xprintf.c: Include <config.h> unconditionally.
80449         Change xprintf's license to GPL.
80450         * modules/xprintf (License): s/LGPL/GPL/, since this module
80451         depends on modules (exit and exitfail) which are GPL.
80452         Suggestion from Bruno Haible.
80454         xprintf fixes.
80455         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
80456         Use a clearer diagnostic.
80457         Patch from Bruno Haible.
80459 2007-10-20  Bruno Haible  <bruno@clisp.org>
80461         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
80462         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
80463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80465 2007-10-20  Bruno Haible  <bruno@clisp.org>
80467         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
80468         precision in the comparison result > x - 1 or similar.
80469         * tests/test-ceilf2.c (correct_result_p): Likewise.
80470         * tests/test-truncf2.c (correct_result_p): Likewise.
80471         * tests/test-trunc2.c (correct_result_p): Likewise.
80472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80474 2007-10-20  Bruno Haible  <bruno@clisp.org>
80476         * modules/ceil: New file.
80477         * m4/ceil.m4: New file.
80478         * doc/functions/ceil.texi: Mention the 'ceil' module.
80480 2007-10-20  Bruno Haible  <bruno@clisp.org>
80482         * modules/floor: New file.
80483         * m4/floor.m4: New file.
80484         * doc/functions/floor.texi: Mention the 'floor' module.
80486 2007-10-20  Bruno Haible  <bruno@clisp.org>
80488         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
80489         of %a.
80490         * modules/floorf-tests (Depends-on): Likewise.
80491         * modules/truncf-tests (Depends-on): Likewise.
80492         * modules/trunc-tests (Depends-on): Likewise.
80493         Reported by Ben Pfaff.
80495 2007-10-19  Jim Meyering  <meyering@redhat.com>
80497         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
80498         Don't bother testing specific errno values.  Just test ferror.
80500         New module: xprintf
80501         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
80503 2007-10-19  Bruno Haible  <bruno@clisp.org>
80505         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
80506         syntax.
80507         * modules/javaexec (Makefile.am): Likewise.
80508         * modules/relocatable-prog (Makefile.am): Likewise.
80509         Suggested by Jim Meyering.
80511 2007-10-18  Bruno Haible  <bruno@clisp.org>
80513         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
80514         Reported by Jim Meyering.
80516 2007-10-18  Eric Blake  <ebb9@byu.net>
80518         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
80520 2007-10-18  Bruno Haible  <bruno@clisp.org>
80522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
80523         the format string into writable memory. Needed in Fortify conditions.
80525 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
80526             Bruno Haible  <bruno@clisp.org>
80528         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
80529         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
80530         * modules/trim (Depends-on): Add mbchar.
80531         (configure.ac): Add gl_FUNC_MBRTOWC.
80532         (Makefile.am): Augment lib_SOURCES.
80534 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80536         Modify glob.c to use fstatat and dirfd, to simplify it.
80537         Suggested by Eric Blake.
80538         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
80539         Don't include <stdbool.h>; not used.
80540         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
80541         (link_exists_p): Simplify implementation, since we can now assume
80542         dirfd and fstatat.
80543         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
80545 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80547         * gnulib-tool (func_get_dependencies): Fix sed script to
80548         match only tests.
80550 2007-10-17  Bruno Haible  <bruno@clisp.org>
80552         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
80553         allow locale names without encoding suffix.
80554         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
80555         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
80557 2007-10-16  Bruno Haible  <bruno@clisp.org>
80559         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
80560         * lib/getgroups.c (getgroups): Likewise.
80561         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
80563 2007-10-16  Bruno Haible  <bruno@clisp.org>
80565         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
80566         * modules/malloc-posix (License): Likewise.
80567         * modules/realloc-posix (License): Likewise.
80568         * modules/calloc-posix (License): Likewise.
80569         * modules/intprops (License): Change from GPL to LGPL, with
80570         Paul Eggert's approval.
80572 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80574         Merge glibc changes into lib/glob.c.
80576         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
80577         2007-10-15 04:59:03 UTC.  Here are the changes:
80579         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
80581         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
80583         * lib/glob.c: Add some branch prediction throughout.
80585         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
80587         [BZ #5103]
80588         * lib/glob.c (glob): Recognize patterns starting \/.
80590         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
80592         [BZ #3996]
80593         * lib/glob.c (attribute_hidden): Define if not defined.
80594         (glob): Unescape dirname, filename or username when needed and not
80595         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
80596         is NULL.  Handle unescaped [ in pattern without closing ].
80597         Don't pass GLOB_CHECK down to recursive glob for directories.
80598         (__glob_pattern_type): New function.
80599         (__glob_pattern_p): Implement using __glob_pattern_type.
80600         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
80601         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
80602         Remove unreachable code.
80604         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
80606         * lib/glob.c (glob_in_dir): Add some comments and asserts to
80607         explain why there are no leaks.
80609         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
80611         [BZ #3253]
80612         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
80613         time, rather allocate increasingly bigger arrays of pointers, if
80614         possible with alloca, if too large with malloc.
80616 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80618         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
80619         Problem reported by H.Merijn Brand in
80620         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
80621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
80622         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80624 2007-10-15  Bruno Haible  <bruno@clisp.org>
80626         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
80627         with explicit rpl_ prefix.
80628         * lib/fopen.c (fopen): Likewise.
80629         * lib/freopen.c (freopen): Likewise.
80630         * lib/iconv.c (iconv): Likewise.
80631         * lib/iconv_close.c (iconv_close): Likewise.
80633 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80635         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
80637 2007-10-15  Bruno Haible  <bruno@clisp.org>
80639         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
80640         <stddef.h> instead of <stdlib.h> since we only need NULL.
80641         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80643 2007-10-15  Bruno Haible  <bruno@clisp.org>
80645         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
80646         Replace paragraph talking about LIBOBJS.
80647         Reported by Colin Watson <cjwatson@debian.org>.
80649 2007-10-15  Bruno Haible  <bruno@clisp.org>
80651         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
80652         <stdlib.h> before using NULL.
80654 2007-10-15  Simon Josefsson  <simon@josefsson.org>
80656         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
80657         Reported by Albert Chin <china@thewrittenword.com>.
80659 2007-10-14  Bruno Haible  <bruno@clisp.org>
80661         * modules/iconv_open-utf-tests: New file.
80662         * tests/test-iconv-utf.c: New file.
80664         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
80665         * modules/iconv_open-utf: New file.
80666         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
80667         (iconv, iconv_close): New declarations.
80668         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
80669         be defined.
80670         (iconv_open): Add special handling of conversion between UTF-8 and
80671         UTF-{16,32}{BE,LE}.
80672         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
80673         * lib/iconv_close.c: New file.
80674         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
80675         gl_FUNC_ICONV_OPEN.
80676         (gl_FUNC_ICONV_OPEN): Use it.
80677         (gl_FUNC_ICONV_OPEN_UTF): New macro.
80678         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
80679         and REPLACE_ICONV_UTF.
80680         * modules/iconv_open (Depends-on): Add c-strcase.
80681         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
80682         ICONV_CONST.
80683         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
80685 2007-10-13  Albert Chin  <china@thewrittenword.com>
80686             Bruno Haible  <bruno@clisp.org>
80688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
80689         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
80691 2007-10-13  Bruno Haible  <bruno@clisp.org>
80693         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
80694         defined, use the ISO C99 inline semantics.
80695         * lib/argp.h (ARGP_EI): Likewise.
80697 2007-10-13  Bruno Haible  <bruno@clisp.org>
80699         Handle 'inline' change in gcc 4.3.0.
80700         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
80701         argp_fmtstream_write, argp_fmtstream_set_lmargin,
80702         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
80703         argp_fmtstream_point): Disable 'extern' declaration if the function
80704         definition is going to be provided inline.
80705         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
80706         semantics, not the ISO C99 inline semantics.
80707         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
80708         'extern' declaration if the function definition is going to be provided
80709         inline.
80710         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
80711         the GNU C inline semantics, not the ISO C99 inline semantics. With
80712         GCC 4.2, avoid a warning.
80714 2007-10-13  Bruno Haible  <bruno@clisp.org>
80716         * lib/freading.h (freading): Enable the use of __freading for
80717         glibc >= 2.7.
80718         * lib/freading.c (freading): Likewise.
80720 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
80722         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
80723         "warning: C99 inline functions are not supported; using GNU89".
80725 2007-10-12  Bruno Haible  <bruno@clisp.org>
80727         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
80728         of 2.
80729         * tests/test-ceilf2.c: New file.
80730         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
80732         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
80733         * modules/ceilf-tests: Update.
80735 2007-10-12  Bruno Haible  <bruno@clisp.org>
80737         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
80738         of 2.
80739         * tests/test-floorf2.c: New file.
80740         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
80742         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
80743         * modules/floorf-tests: Update.
80745 2007-10-12  Bruno Haible  <bruno@clisp.org>
80747         * tests/test-trunc2.c: New file.
80748         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
80750         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
80751         * modules/trunc-tests: Update.
80753 2007-10-12  Bruno Haible  <bruno@clisp.org>
80755         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
80756         of 2.
80757         * tests/test-truncf2.c: New file.
80758         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
80760         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
80761         * modules/truncf-tests: Update.
80763 2007-10-11  Eric Blake  <ebb9@byu.net>
80765         Don't claim strerror is broken on Interix.
80766         * doc/functions/strerror.texi (strerror): Known broken systems are
80767         now Solaris 8, and not Interix.
80768         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
80769         Interix on cross-compile.
80770         Reported by Martin Koeppe in
80771         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
80773 2007-10-11  Bruno Haible  <bruno@clisp.org>
80775         * modules/i-ring-tests: New file.
80776         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
80777         instead of assert.
80779 2007-10-11  Bruno Haible  <bruno@clisp.org>
80781         * modules/filenamecat-tests: New file.
80782         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
80783         * lib/filenamecat.c: Remove test code.
80785 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
80787         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
80789         * lib/strerror.c: Include <string.h> always, to test interface,
80790         and to remove the need for the dummy.
80791         Include intprops.h to compute width instead of doing it ourselves
80792         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
80793         (strerror): Define it to return NULL if there's no system strerror.
80794         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
80795         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
80796         ancient pre-strerror Unix systems well any more.  Saying "unknown
80797         system error" is enough.
80798         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
80799         simpler strerror.c implementation.
80800         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
80801         Simplify the tests to reflect the simpler strerror implementation.
80802         * modules/strerror (Depends-on): Add intprops.
80804 2007-10-09  Eric Blake  <ebb9@byu.net>
80806         Silence test-fpending.
80807         * modules/fpending-tests (Files): Add wrapper script.
80808         * tests/test-fpending.sh: New file.
80810 2007-10-09  Bruno Haible  <bruno@clisp.org>
80812         * MODULES.html.sh (func_module): Don't create a hyperlink for
80813         function names like 'printf_frexp'.
80814         (Misc): Add crc, memxor.
80815         (Characteristics of floating types): New section.
80816         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
80817         isnanf-nolibm, signbit, trunc, truncf, truncl.
80818         (Enhancements for ISO C 99 functions): New subsection Input/output.
80819         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
80820         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
80821         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
80822         (Compatibility checks for POSIX:2001 functions): Add clock-time.
80823         (Enhancements for POSIX:2001 functions): Add chdir-long.
80824         (File system functions): Add areadlink, chdir-safer, read-file.
80825         Remove cycle-check.
80826         (File system as inode set): New section.
80827         (Date and time): Add gethrxtime.
80828         (Multithreading): Add openmp.
80829         (Internationalization functions): Add localename.
80830         (Unicode string functions): Add unistr/u*-mbsnlen.
80831         (Support for maintaining and releasing projects): Add git-version-gen.
80832         (Lone files): Remove directories.
80834 2007-10-08  Ben Pfaff  <blp@gnu.org>
80836         * lib/xmalloca.h: Fix typo in comment.
80838 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
80840         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
80841         when avoiding problems with integer overflow.  Use a portable test
80842         instead.
80844 2007-10-08  Simon Josefsson  <simon@josefsson.org>
80846         * modules/dummy (License): Change to LGPLv2+.
80847         * modules/float (License): Likewise
80848         * modules/realloc (License): Likewise
80849         * modules/stdlib (License): Likewise
80851 2007-10-07  Bruno Haible  <bruno@clisp.org>
80853         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
80854         * floor.c (TWO_MANT_DIG): Likewise.
80855         * ceil.c (TWO_MANT_DIG): Likewise.
80856         Reported by Ben Pfaff.
80858 2007-10-07  Bruno Haible  <bruno@clisp.org>
80860         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
80861         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
80862         * lib/frexp.c (FUNC): Likewise.
80863         * lib/printf-frexp.h (printf_frexp): Likewise.
80864         * lib/printf-frexpl.h (printf_frexpl): Likewise.
80865         * lib/printf-frexp.c (FUNC): Likewise.
80866         Suggested by Jim Meyering.
80868 2007-10-07  Jim Meyering  <meyering@redhat.com>
80870         Make xnanosleep's integer overflow test more robust.
80871         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
80872         so that gcc-4.3.0 doesn't optimize away this test for overflow.
80874 2007-10-07  Bruno Haible  <bruno@clisp.org>
80876         * NEWS: Mention the license change.
80878         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
80879         abbreviations in the modules files.
80881         Change copyright notice from GPLv2+ to GPLv3+.
80882         * README: Change copyright notice.
80883         * MODULES.html.sh: Likewise.
80884         * build-aux/bootstrap.conf: Likewise.
80885         * build-aux/config.libpath: Likewise.
80886         * build-aux/csharpcomp.sh.in: Likewise.
80887         * build-aux/csharpexec.sh.in: Likewise.
80888         * build-aux/install-reloc: Likewise.
80889         * build-aux/javacomp.sh.in: Likewise.
80890         * build-aux/javaexec.sh.in: Likewise.
80891         * build-aux/ldd.sh.in: Likewise.
80892         * build-aux/reloc-ldflags: Likewise.
80893         * build-aux/relocatable.sh.in: Likewise.
80894         * build-aux/x-to-1.in: Likewise.
80895         * check-module: Likewise.
80896         * config/srclistvars.sh: Likewise.
80897         * gnulib-tool: Likewise.
80898         * lib/acl-internal.h: Likewise.
80899         * lib/acl.c: Likewise.
80900         * lib/acl.h: Likewise.
80901         * lib/acl_entries.c: Likewise.
80902         * lib/areadlink-with-size.c: Likewise.
80903         * lib/areadlink.c: Likewise.
80904         * lib/areadlink.h: Likewise.
80905         * lib/argmatch.c: Likewise.
80906         * lib/argmatch.h: Likewise.
80907         * lib/argp-ba.c: Likewise.
80908         * lib/argp-eexst.c: Likewise.
80909         * lib/argp-fmtstream.c: Likewise.
80910         * lib/argp-fmtstream.h: Likewise.
80911         * lib/argp-fs-xinl.c: Likewise.
80912         * lib/argp-help.c: Likewise.
80913         * lib/argp-namefrob.h: Likewise.
80914         * lib/argp-parse.c: Likewise.
80915         * lib/argp-pin.c: Likewise.
80916         * lib/argp-pv.c: Likewise.
80917         * lib/argp-pvh.c: Likewise.
80918         * lib/argp-xinl.c: Likewise.
80919         * lib/argp.h: Likewise.
80920         * lib/at-func.c: Likewise.
80921         * lib/atanl.c: Likewise.
80922         * lib/backupfile.c: Likewise.
80923         * lib/backupfile.h: Likewise.
80924         * lib/basename.c: Likewise.
80925         * lib/binary-io.h: Likewise.
80926         * lib/byteswap.in.h: Likewise.
80927         * lib/c-stack.c: Likewise.
80928         * lib/c-stack.h: Likewise.
80929         * lib/c-strcasestr.c: Likewise.
80930         * lib/c-strcasestr.h: Likewise.
80931         * lib/c-strstr.c: Likewise.
80932         * lib/c-strstr.h: Likewise.
80933         * lib/c-strtod.c: Likewise.
80934         * lib/calloc.c: Likewise.
80935         * lib/canon-host.c: Likewise.
80936         * lib/canon-host.h: Likewise.
80937         * lib/canonicalize-lgpl.c: Likewise.
80938         * lib/canonicalize.c: Likewise.
80939         * lib/canonicalize.h: Likewise.
80940         * lib/ceil.c: Likewise.
80941         * lib/ceilf.c: Likewise.
80942         * lib/ceill.c: Likewise.
80943         * lib/chdir-long.c: Likewise.
80944         * lib/chdir-long.h: Likewise.
80945         * lib/chdir-safer.c: Likewise.
80946         * lib/chdir-safer.h: Likewise.
80947         * lib/chown.c: Likewise.
80948         * lib/classpath.c: Likewise.
80949         * lib/classpath.h: Likewise.
80950         * lib/clean-temp.c: Likewise.
80951         * lib/clean-temp.h: Likewise.
80952         * lib/cloexec.c: Likewise.
80953         * lib/close-stream.c: Likewise.
80954         * lib/closein.c: Likewise.
80955         * lib/closein.h: Likewise.
80956         * lib/closeout.c: Likewise.
80957         * lib/closeout.h: Likewise.
80958         * lib/concat-filename.c: Likewise.
80959         * lib/copy-file.c: Likewise.
80960         * lib/copy-file.h: Likewise.
80961         * lib/count-one-bits.h: Likewise.
80962         * lib/crc.c: Likewise.
80963         * lib/crc.h: Likewise.
80964         * lib/creat-safer.c: Likewise.
80965         * lib/csharpcomp.c: Likewise.
80966         * lib/csharpcomp.h: Likewise.
80967         * lib/csharpexec.c: Likewise.
80968         * lib/csharpexec.h: Likewise.
80969         * lib/cycle-check.c: Likewise.
80970         * lib/cycle-check.h: Likewise.
80971         * lib/diacrit.c: Likewise.
80972         * lib/diacrit.h: Likewise.
80973         * lib/diffseq.h: Likewise.
80974         * lib/dirchownmod.c: Likewise.
80975         * lib/dirent.in.h: Likewise.
80976         * lib/dirfd.c: Likewise.
80977         * lib/dirfd.h: Likewise.
80978         * lib/dirname.c: Likewise.
80979         * lib/dirname.h: Likewise.
80980         * lib/dummy.c: Likewise.
80981         * lib/dup-safer.c: Likewise.
80982         * lib/dup2.c: Likewise.
80983         * lib/eealloc.h: Likewise.
80984         * lib/error.c: Likewise.
80985         * lib/error.h: Likewise.
80986         * lib/euidaccess.c: Likewise.
80987         * lib/exclude.c: Likewise.
80988         * lib/exclude.h: Likewise.
80989         * lib/execute.c: Likewise.
80990         * lib/execute.h: Likewise.
80991         * lib/exitfail.c: Likewise.
80992         * lib/exitfail.h: Likewise.
80993         * lib/expl.c: Likewise.
80994         * lib/fatal-signal.c: Likewise.
80995         * lib/fatal-signal.h: Likewise.
80996         * lib/fbufmode.c: Likewise.
80997         * lib/fbufmode.h: Likewise.
80998         * lib/fchdir.c: Likewise.
80999         * lib/fchmodat.c: Likewise.
81000         * lib/fchownat.c: Likewise.
81001         * lib/fcntl--.h: Likewise.
81002         * lib/fcntl-safer.h: Likewise.
81003         * lib/fcntl.in.h: Likewise.
81004         * lib/fd-safer.c: Likewise.
81005         * lib/fflush.c: Likewise.
81006         * lib/file-has-acl.c: Likewise.
81007         * lib/file-set.c: Likewise.
81008         * lib/file-type.c: Likewise.
81009         * lib/file-type.h: Likewise.
81010         * lib/fileblocks.c: Likewise.
81011         * lib/filemode.c: Likewise.
81012         * lib/filemode.h: Likewise.
81013         * lib/filename.h: Likewise.
81014         * lib/filenamecat.c: Likewise.
81015         * lib/filenamecat.h: Likewise.
81016         * lib/findprog.c: Likewise.
81017         * lib/findprog.h: Likewise.
81018         * lib/float.in.h: Likewise.
81019         * lib/floor.c: Likewise.
81020         * lib/floorf.c: Likewise.
81021         * lib/floorl.c: Likewise.
81022         * lib/fopen-safer.c: Likewise.
81023         * lib/fopen.c: Likewise.
81024         * lib/fpending.c: Likewise.
81025         * lib/fpending.h: Likewise.
81026         * lib/fprintf.c: Likewise.
81027         * lib/fprintftime.h: Likewise.
81028         * lib/fpucw.h: Likewise.
81029         * lib/fpurge.c: Likewise.
81030         * lib/fpurge.h: Likewise.
81031         * lib/freadable.c: Likewise.
81032         * lib/freadable.h: Likewise.
81033         * lib/freadahead.c: Likewise.
81034         * lib/freadahead.h: Likewise.
81035         * lib/freading.c: Likewise.
81036         * lib/freading.h: Likewise.
81037         * lib/free.c: Likewise.
81038         * lib/freopen.c: Likewise.
81039         * lib/frexp.c: Likewise.
81040         * lib/frexpl.c: Likewise.
81041         * lib/fseek.c: Likewise.
81042         * lib/fseterr.c: Likewise.
81043         * lib/fseterr.h: Likewise.
81044         * lib/fstatat.c: Likewise.
81045         * lib/fstrcmp.c: Likewise.
81046         * lib/fstrcmp.h: Likewise.
81047         * lib/fsusage.c: Likewise.
81048         * lib/fsusage.h: Likewise.
81049         * lib/ftell.c: Likewise.
81050         * lib/ftello.c: Likewise.
81051         * lib/fts-cycle.c: Likewise.
81052         * lib/fts.c: Likewise.
81053         * lib/fts_.h: Likewise.
81054         * lib/full-read.c: Likewise.
81055         * lib/full-read.h: Likewise.
81056         * lib/full-write.c: Likewise.
81057         * lib/full-write.h: Likewise.
81058         * lib/fwritable.c: Likewise.
81059         * lib/fwritable.h: Likewise.
81060         * lib/fwriteerror.c: Likewise.
81061         * lib/fwriteerror.h: Likewise.
81062         * lib/fwriting.c: Likewise.
81063         * lib/fwriting.h: Likewise.
81064         * lib/gcd.c: Likewise.
81065         * lib/gcd.h: Likewise.
81066         * lib/getcwd.c: Likewise.
81067         * lib/getdate.h: Likewise.
81068         * lib/getdate.y: Likewise.
81069         * lib/getdomainname.c: Likewise.
81070         * lib/getdomainname.h: Likewise.
81071         * lib/getgroups.c: Likewise.
81072         * lib/gethostname.c: Likewise.
81073         * lib/gethrxtime.c: Likewise.
81074         * lib/gethrxtime.h: Likewise.
81075         * lib/getloadavg.c: Likewise.
81076         * lib/getndelim2.c: Likewise.
81077         * lib/getndelim2.h: Likewise.
81078         * lib/getnline.c: Likewise.
81079         * lib/getnline.h: Likewise.
81080         * lib/getopt.c: Likewise.
81081         * lib/getopt.in.h: Likewise.
81082         * lib/getopt1.c: Likewise.
81083         * lib/getopt_int.h: Likewise.
81084         * lib/getpagesize.h: Likewise.
81085         * lib/getsubopt.c: Likewise.
81086         * lib/gettime.c: Likewise.
81087         * lib/getugroups.c: Likewise.
81088         * lib/getugroups.h: Likewise.
81089         * lib/getusershell.c: Likewise.
81090         * lib/gl_anyavltree_list1.h: Likewise.
81091         * lib/gl_anyavltree_list2.h: Likewise.
81092         * lib/gl_anyhash_list1.h: Likewise.
81093         * lib/gl_anyhash_list2.h: Likewise.
81094         * lib/gl_anylinked_list1.h: Likewise.
81095         * lib/gl_anylinked_list2.h: Likewise.
81096         * lib/gl_anyrbtree_list1.h: Likewise.
81097         * lib/gl_anyrbtree_list2.h: Likewise.
81098         * lib/gl_anytree_list1.h: Likewise.
81099         * lib/gl_anytree_list2.h: Likewise.
81100         * lib/gl_anytree_oset.h: Likewise.
81101         * lib/gl_anytreehash_list1.h: Likewise.
81102         * lib/gl_anytreehash_list2.h: Likewise.
81103         * lib/gl_array_list.c: Likewise.
81104         * lib/gl_array_list.h: Likewise.
81105         * lib/gl_array_oset.c: Likewise.
81106         * lib/gl_array_oset.h: Likewise.
81107         * lib/gl_avltree_list.c: Likewise.
81108         * lib/gl_avltree_list.h: Likewise.
81109         * lib/gl_avltree_oset.c: Likewise.
81110         * lib/gl_avltree_oset.h: Likewise.
81111         * lib/gl_avltreehash_list.c: Likewise.
81112         * lib/gl_avltreehash_list.h: Likewise.
81113         * lib/gl_carray_list.c: Likewise.
81114         * lib/gl_carray_list.h: Likewise.
81115         * lib/gl_linked_list.c: Likewise.
81116         * lib/gl_linked_list.h: Likewise.
81117         * lib/gl_linkedhash_list.c: Likewise.
81118         * lib/gl_linkedhash_list.h: Likewise.
81119         * lib/gl_list.c: Likewise.
81120         * lib/gl_list.h: Likewise.
81121         * lib/gl_oset.c: Likewise.
81122         * lib/gl_oset.h: Likewise.
81123         * lib/gl_rbtree_list.c: Likewise.
81124         * lib/gl_rbtree_list.h: Likewise.
81125         * lib/gl_rbtree_oset.c: Likewise.
81126         * lib/gl_rbtree_oset.h: Likewise.
81127         * lib/gl_rbtreehash_list.c: Likewise.
81128         * lib/gl_rbtreehash_list.h: Likewise.
81129         * lib/gl_sublist.c: Likewise.
81130         * lib/gl_sublist.h: Likewise.
81131         * lib/group-member.c: Likewise.
81132         * lib/group-member.h: Likewise.
81133         * lib/hard-locale.c: Likewise.
81134         * lib/hard-locale.h: Likewise.
81135         * lib/hash-pjw.c: Likewise.
81136         * lib/hash-pjw.h: Likewise.
81137         * lib/hash-triple.c: Likewise.
81138         * lib/hash.c: Likewise.
81139         * lib/hash.h: Likewise.
81140         * lib/human.c: Likewise.
81141         * lib/human.h: Likewise.
81142         * lib/i-ring.c: Likewise.
81143         * lib/i-ring.h: Likewise.
81144         * lib/idcache.c: Likewise.
81145         * lib/imaxabs.c: Likewise.
81146         * lib/imaxdiv.c: Likewise.
81147         * lib/inet_pton.c: Likewise.
81148         * lib/inet_pton.h: Likewise.
81149         * lib/intprops.h: Likewise.
81150         * lib/inttostr.c: Likewise.
81151         * lib/inttostr.h: Likewise.
81152         * lib/inttypes.in.h: Likewise.
81153         * lib/isapipe.c: Likewise.
81154         * lib/isdir.c: Likewise.
81155         * lib/isnan.c: Likewise.
81156         * lib/isnan.h: Likewise.
81157         * lib/isnanf.c: Likewise.
81158         * lib/isnanf.h: Likewise.
81159         * lib/isnanl-nolibm.h: Likewise.
81160         * lib/isnanl.c: Likewise.
81161         * lib/isnanl.h: Likewise.
81162         * lib/javacomp.c: Likewise.
81163         * lib/javacomp.h: Likewise.
81164         * lib/javaexec.c: Likewise.
81165         * lib/javaexec.h: Likewise.
81166         * lib/javaversion.c: Likewise.
81167         * lib/javaversion.h: Likewise.
81168         * lib/javaversion.java: Likewise.
81169         * lib/lbrkprop.h: Likewise.
81170         * lib/lchmod.h: Likewise.
81171         * lib/lchown.c: Likewise.
81172         * lib/ldexpl.c: Likewise.
81173         * lib/linebreak.c: Likewise.
81174         * lib/linebreak.h: Likewise.
81175         * lib/linebuffer.c: Likewise.
81176         * lib/linebuffer.h: Likewise.
81177         * lib/locale.in.h: Likewise.
81178         * lib/logl.c: Likewise.
81179         * lib/long-options.c: Likewise.
81180         * lib/long-options.h: Likewise.
81181         * lib/lstat.c: Likewise.
81182         * lib/lstat.h: Likewise.
81183         * lib/math.in.h: Likewise.
81184         * lib/mbchar.c: Likewise.
81185         * lib/mbchar.h: Likewise.
81186         * lib/mbfile.h: Likewise.
81187         * lib/mbiter.h: Likewise.
81188         * lib/mbscasecmp.c: Likewise.
81189         * lib/mbscasestr.c: Likewise.
81190         * lib/mbschr.c: Likewise.
81191         * lib/mbscspn.c: Likewise.
81192         * lib/mbslen.c: Likewise.
81193         * lib/mbsncasecmp.c: Likewise.
81194         * lib/mbsnlen.c: Likewise.
81195         * lib/mbspbrk.c: Likewise.
81196         * lib/mbspcasecmp.c: Likewise.
81197         * lib/mbsrchr.c: Likewise.
81198         * lib/mbssep.c: Likewise.
81199         * lib/mbsspn.c: Likewise.
81200         * lib/mbsstr.c: Likewise.
81201         * lib/mbstok_r.c: Likewise.
81202         * lib/mbswidth.c: Likewise.
81203         * lib/mbswidth.h: Likewise.
81204         * lib/mbuiter.h: Likewise.
81205         * lib/memcasecmp.c: Likewise.
81206         * lib/memcasecmp.h: Likewise.
81207         * lib/memchr.c: Likewise.
81208         * lib/memcmp.c: Likewise.
81209         * lib/memcoll.c: Likewise.
81210         * lib/memcoll.h: Likewise.
81211         * lib/memcpy.c: Likewise.
81212         * lib/memrchr.c: Likewise.
81213         * lib/mkancesdirs.c: Likewise.
81214         * lib/mkdir-p.c: Likewise.
81215         * lib/mkdir-p.h: Likewise.
81216         * lib/mkdir.c: Likewise.
81217         * lib/mkdirat.c: Likewise.
81218         * lib/mkdtemp.c: Likewise.
81219         * lib/mkstemp-safer.c: Likewise.
81220         * lib/mkstemp.c: Likewise.
81221         * lib/modechange.c: Likewise.
81222         * lib/modechange.h: Likewise.
81223         * lib/mountlist.c: Likewise.
81224         * lib/mountlist.h: Likewise.
81225         * lib/mpsort.c: Likewise.
81226         * lib/nanosleep.c: Likewise.
81227         * lib/obstack.c: Likewise.
81228         * lib/obstack.h: Likewise.
81229         * lib/open-safer.c: Likewise.
81230         * lib/open.c: Likewise.
81231         * lib/openat-die.c: Likewise.
81232         * lib/openat-priv.h: Likewise.
81233         * lib/openat-proc.c: Likewise.
81234         * lib/openat.c: Likewise.
81235         * lib/openat.h: Likewise.
81236         * lib/pagealign_alloc.c: Likewise.
81237         * lib/pagealign_alloc.h: Likewise.
81238         * lib/physmem.c: Likewise.
81239         * lib/physmem.h: Likewise.
81240         * lib/pipe-safer.c: Likewise.
81241         * lib/pipe.c: Likewise.
81242         * lib/pipe.h: Likewise.
81243         * lib/posixtm.c: Likewise.
81244         * lib/posixtm.h: Likewise.
81245         * lib/posixver.c: Likewise.
81246         * lib/printf-frexp.c: Likewise.
81247         * lib/printf-frexp.h: Likewise.
81248         * lib/printf-frexpl.c: Likewise.
81249         * lib/printf-frexpl.h: Likewise.
81250         * lib/printf.c: Likewise.
81251         * lib/progname.c: Likewise.
81252         * lib/progname.h: Likewise.
81253         * lib/progreloc.c: Likewise.
81254         * lib/putenv.c: Likewise.
81255         * lib/quote.c: Likewise.
81256         * lib/quote.h: Likewise.
81257         * lib/quotearg.c: Likewise.
81258         * lib/quotearg.h: Likewise.
81259         * lib/raise.c: Likewise.
81260         * lib/readline.c: Likewise.
81261         * lib/readline.h: Likewise.
81262         * lib/readlink.c: Likewise.
81263         * lib/readtokens.c: Likewise.
81264         * lib/readtokens.h: Likewise.
81265         * lib/readtokens0.c: Likewise.
81266         * lib/readtokens0.h: Likewise.
81267         * lib/readutmp.c: Likewise.
81268         * lib/readutmp.h: Likewise.
81269         * lib/realloc.c: Likewise.
81270         * lib/relocwrapper.c: Likewise.
81271         * lib/rename-dest-slash.c: Likewise.
81272         * lib/rename.c: Likewise.
81273         * lib/rmdir.c: Likewise.
81274         * lib/rpmatch.c: Likewise.
81275         * lib/safe-read.c: Likewise.
81276         * lib/safe-read.h: Likewise.
81277         * lib/safe-write.c: Likewise.
81278         * lib/safe-write.h: Likewise.
81279         * lib/same-inode.h: Likewise.
81280         * lib/same.c: Likewise.
81281         * lib/same.h: Likewise.
81282         * lib/save-cwd.c: Likewise.
81283         * lib/save-cwd.h: Likewise.
81284         * lib/savedir.c: Likewise.
81285         * lib/savedir.h: Likewise.
81286         * lib/savewd.c: Likewise.
81287         * lib/savewd.h: Likewise.
81288         * lib/search.in.h: Likewise.
81289         * lib/setenv.c: Likewise.
81290         * lib/setenv.h: Likewise.
81291         * lib/settime.c: Likewise.
81292         * lib/sh-quote.c: Likewise.
81293         * lib/sh-quote.h: Likewise.
81294         * lib/sig2str.c: Likewise.
81295         * lib/sig2str.h: Likewise.
81296         * lib/signal.in.h: Likewise.
81297         * lib/signbitd.c: Likewise.
81298         * lib/signbitf.c: Likewise.
81299         * lib/signbitl.c: Likewise.
81300         * lib/sigprocmask.c: Likewise.
81301         * lib/sincosl.c: Likewise.
81302         * lib/sleep.c: Likewise.
81303         * lib/sprintf.c: Likewise.
81304         * lib/sqrtl.c: Likewise.
81305         * lib/stat-time.h: Likewise.
81306         * lib/stdio--.h: Likewise.
81307         * lib/stdio-safer.h: Likewise.
81308         * lib/stdlib--.h: Likewise.
81309         * lib/stdlib-safer.h: Likewise.
81310         * lib/stdlib.in.h: Likewise.
81311         * lib/stpcpy.c: Likewise.
81312         * lib/stpncpy.c: Likewise.
81313         * lib/strchrnul.c: Likewise.
81314         * lib/strcspn.c: Likewise.
81315         * lib/strerror.c: Likewise.
81316         * lib/strftime.c: Likewise.
81317         * lib/strftime.h: Likewise.
81318         * lib/striconveh.c: Likewise.
81319         * lib/striconveh.h: Likewise.
81320         * lib/striconveha.c: Likewise.
81321         * lib/striconveha.h: Likewise.
81322         * lib/stripslash.c: Likewise.
81323         * lib/strnlen1.c: Likewise.
81324         * lib/strnlen1.h: Likewise.
81325         * lib/strtod.c: Likewise.
81326         * lib/strtoimax.c: Likewise.
81327         * lib/strtok_r.c: Likewise.
81328         * lib/strtol.c: Likewise.
81329         * lib/strtoll.c: Likewise.
81330         * lib/strtoul.c: Likewise.
81331         * lib/strtoull.c: Likewise.
81332         * lib/sysexits.in.h: Likewise.
81333         * lib/tempname.c: Likewise.
81334         * lib/tempname.h: Likewise.
81335         * lib/timespec.h: Likewise.
81336         * lib/tls.c: Likewise.
81337         * lib/tls.h: Likewise.
81338         * lib/tmpdir.c: Likewise.
81339         * lib/tmpdir.h: Likewise.
81340         * lib/tmpfile-safer.c: Likewise.
81341         * lib/tmpfile.c: Likewise.
81342         * lib/trigl.c: Likewise.
81343         * lib/trigl.h: Likewise.
81344         * lib/trim.c: Likewise.
81345         * lib/trim.h: Likewise.
81346         * lib/trunc.c: Likewise.
81347         * lib/truncf.c: Likewise.
81348         * lib/truncl.c: Likewise.
81349         * lib/tsearch.c: Likewise.
81350         * lib/unicodeio.c: Likewise.
81351         * lib/unicodeio.h: Likewise.
81352         * lib/unistd--.h: Likewise.
81353         * lib/unistd-safer.h: Likewise.
81354         * lib/unistdio/ulc-fprintf.c: Likewise.
81355         * lib/unistdio/ulc-vfprintf.c: Likewise.
81356         * lib/unlinkdir.c: Likewise.
81357         * lib/unlinkdir.h: Likewise.
81358         * lib/unlocked-io.h: Likewise.
81359         * lib/unsetenv.c: Likewise.
81360         * lib/userspec.c: Likewise.
81361         * lib/utime.c: Likewise.
81362         * lib/utimecmp.c: Likewise.
81363         * lib/utimecmp.h: Likewise.
81364         * lib/utimens.c: Likewise.
81365         * lib/verify.h: Likewise.
81366         * lib/verror.c: Likewise.
81367         * lib/verror.h: Likewise.
81368         * lib/version-etc-fsf.c: Likewise.
81369         * lib/version-etc.c: Likewise.
81370         * lib/version-etc.h: Likewise.
81371         * lib/vfprintf.c: Likewise.
81372         * lib/vprintf.c: Likewise.
81373         * lib/vsprintf.c: Likewise.
81374         * lib/w32spawn.h: Likewise.
81375         * lib/wait-process.c: Likewise.
81376         * lib/wait-process.h: Likewise.
81377         * lib/wcwidth.c: Likewise.
81378         * lib/write-any-file.c: Likewise.
81379         * lib/xalloc-die.c: Likewise.
81380         * lib/xalloc.h: Likewise.
81381         * lib/xasprintf.c: Likewise.
81382         * lib/xgetcwd.c: Likewise.
81383         * lib/xgetcwd.h: Likewise.
81384         * lib/xgetdomainname.c: Likewise.
81385         * lib/xgetdomainname.h: Likewise.
81386         * lib/xgethostname.c: Likewise.
81387         * lib/xmalloc.c: Likewise.
81388         * lib/xmalloca.c: Likewise.
81389         * lib/xmalloca.h: Likewise.
81390         * lib/xmemcoll.c: Likewise.
81391         * lib/xnanosleep.c: Likewise.
81392         * lib/xreadlink.c: Likewise.
81393         * lib/xreadlink.h: Likewise.
81394         * lib/xsetenv.c: Likewise.
81395         * lib/xsetenv.h: Likewise.
81396         * lib/xstriconv.c: Likewise.
81397         * lib/xstriconv.h: Likewise.
81398         * lib/xstrndup.c: Likewise.
81399         * lib/xstrndup.h: Likewise.
81400         * lib/xstrtod.c: Likewise.
81401         * lib/xstrtod.h: Likewise.
81402         * lib/xstrtol-error.c: Likewise.
81403         * lib/xstrtol.c: Likewise.
81404         * lib/xstrtol.h: Likewise.
81405         * lib/xtime.h: Likewise.
81406         * lib/xvasprintf.c: Likewise.
81407         * lib/xvasprintf.h: Likewise.
81408         * lib/yesno.c: Likewise.
81409         * lib/yesno.h: Likewise.
81410         * posix-modules: Likewise.
81411         * tests/test-alloca-opt.c: Likewise.
81412         * tests/test-arcfour.c: Likewise.
81413         * tests/test-arctwo.c: Likewise.
81414         * tests/test-argmatch.c: Likewise.
81415         * tests/test-argp-2.sh: Likewise.
81416         * tests/test-argp.c: Likewise.
81417         * tests/test-arpa_inet.c: Likewise.
81418         * tests/test-array_list.c: Likewise.
81419         * tests/test-array_oset.c: Likewise.
81420         * tests/test-atexit.c: Likewise.
81421         * tests/test-avltree_list.c: Likewise.
81422         * tests/test-avltree_oset.c: Likewise.
81423         * tests/test-avltreehash_list.c: Likewise.
81424         * tests/test-base64.c: Likewise.
81425         * tests/test-binary-io.c: Likewise.
81426         * tests/test-byteswap.c: Likewise.
81427         * tests/test-c-ctype.c: Likewise.
81428         * tests/test-c-strcasecmp.c: Likewise.
81429         * tests/test-c-strcasestr.c: Likewise.
81430         * tests/test-c-strncasecmp.c: Likewise.
81431         * tests/test-c-strstr.c: Likewise.
81432         * tests/test-canonicalize-lgpl.c: Likewise.
81433         * tests/test-canonicalize.c: Likewise.
81434         * tests/test-carray_list.c: Likewise.
81435         * tests/test-ceilf.c: Likewise.
81436         * tests/test-ceill.c: Likewise.
81437         * tests/test-count-one-bits.c: Likewise.
81438         * tests/test-crc.c: Likewise.
81439         * tests/test-dirname.c: Likewise.
81440         * tests/test-fbufmode.c: Likewise.
81441         * tests/test-fcntl.c: Likewise.
81442         * tests/test-fflush.c: Likewise.
81443         * tests/test-floorf.c: Likewise.
81444         * tests/test-floorl.c: Likewise.
81445         * tests/test-fopen.c: Likewise.
81446         * tests/test-fprintf-posix.c: Likewise.
81447         * tests/test-fprintf-posix.h: Likewise.
81448         * tests/test-fpurge.c: Likewise.
81449         * tests/test-freadable.c: Likewise.
81450         * tests/test-freadahead.c: Likewise.
81451         * tests/test-freading.c: Likewise.
81452         * tests/test-freopen.c: Likewise.
81453         * tests/test-frexp.c: Likewise.
81454         * tests/test-frexpl.c: Likewise.
81455         * tests/test-fseek.c: Likewise.
81456         * tests/test-fseeko.c: Likewise.
81457         * tests/test-fseterr.c: Likewise.
81458         * tests/test-fstrcmp.c: Likewise.
81459         * tests/test-ftell.c: Likewise.
81460         * tests/test-ftello.c: Likewise.
81461         * tests/test-fwritable.c: Likewise.
81462         * tests/test-fwriting.c: Likewise.
81463         * tests/test-getaddrinfo.c: Likewise.
81464         * tests/test-getpass.c: Likewise.
81465         * tests/test-gettimeofday.c: Likewise.
81466         * tests/test-hmac-md5.c: Likewise.
81467         * tests/test-hmac-sha1.c: Likewise.
81468         * tests/test-iconv.c: Likewise.
81469         * tests/test-iconvme.c: Likewise.
81470         * tests/test-inttypes.c: Likewise.
81471         * tests/test-isnan.c: Likewise.
81472         * tests/test-isnanf.c: Likewise.
81473         * tests/test-isnanl-nolibm.c: Likewise.
81474         * tests/test-isnanl.c: Likewise.
81475         * tests/test-isnanl.h: Likewise.
81476         * tests/test-ldexpl.c: Likewise.
81477         * tests/test-linked_list.c: Likewise.
81478         * tests/test-linkedhash_list.c: Likewise.
81479         * tests/test-locale.c: Likewise.
81480         * tests/test-localename.c: Likewise.
81481         * tests/test-lock.c: Likewise.
81482         * tests/test-lseek.c: Likewise.
81483         * tests/test-malloca.c: Likewise.
81484         * tests/test-math.c: Likewise.
81485         * tests/test-mbscasecmp.c: Likewise.
81486         * tests/test-mbscasestr1.c: Likewise.
81487         * tests/test-mbscasestr2.c: Likewise.
81488         * tests/test-mbscasestr3.c: Likewise.
81489         * tests/test-mbscasestr4.c: Likewise.
81490         * tests/test-mbschr.c: Likewise.
81491         * tests/test-mbscspn.c: Likewise.
81492         * tests/test-mbsncasecmp.c: Likewise.
81493         * tests/test-mbspbrk.c: Likewise.
81494         * tests/test-mbspcasecmp.c: Likewise.
81495         * tests/test-mbsrchr.c: Likewise.
81496         * tests/test-mbsspn.c: Likewise.
81497         * tests/test-mbsstr1.c: Likewise.
81498         * tests/test-mbsstr2.c: Likewise.
81499         * tests/test-mbsstr3.c: Likewise.
81500         * tests/test-md5.c: Likewise.
81501         * tests/test-memmem.c: Likewise.
81502         * tests/test-netinet_in.c: Likewise.
81503         * tests/test-open.c: Likewise.
81504         * tests/test-printf-frexp.c: Likewise.
81505         * tests/test-printf-frexpl.c: Likewise.
81506         * tests/test-printf-posix.c: Likewise.
81507         * tests/test-printf-posix.h: Likewise.
81508         * tests/test-rbtree_list.c: Likewise.
81509         * tests/test-rbtree_oset.c: Likewise.
81510         * tests/test-rbtreehash_list.c: Likewise.
81511         * tests/test-read-file.c: Likewise.
81512         * tests/test-rijndael.c: Likewise.
81513         * tests/test-search.c: Likewise.
81514         * tests/test-signbit.c: Likewise.
81515         * tests/test-sleep.c: Likewise.
81516         * tests/test-snprintf-posix.c: Likewise.
81517         * tests/test-snprintf-posix.h: Likewise.
81518         * tests/test-snprintf.c: Likewise.
81519         * tests/test-sprintf-posix.c: Likewise.
81520         * tests/test-sprintf-posix.h: Likewise.
81521         * tests/test-stat-time.c: Likewise.
81522         * tests/test-stdbool.c: Likewise.
81523         * tests/test-stdint.c: Likewise.
81524         * tests/test-stdio.c: Likewise.
81525         * tests/test-stdlib.c: Likewise.
81526         * tests/test-stpncpy.c: Likewise.
81527         * tests/test-strcasestr.c: Likewise.
81528         * tests/test-striconv.c: Likewise.
81529         * tests/test-striconveh.c: Likewise.
81530         * tests/test-striconveha.c: Likewise.
81531         * tests/test-string.c: Likewise.
81532         * tests/test-sys_select.c: Likewise.
81533         * tests/test-sys_socket.c: Likewise.
81534         * tests/test-sys_stat.c: Likewise.
81535         * tests/test-sys_time.c: Likewise.
81536         * tests/test-sysexits.c: Likewise.
81537         * tests/test-time.c: Likewise.
81538         * tests/test-tls.c: Likewise.
81539         * tests/test-trunc.c: Likewise.
81540         * tests/test-truncf.c: Likewise.
81541         * tests/test-truncl.c: Likewise.
81542         * tests/test-unistd.c: Likewise.
81543         * tests/test-vasnprintf-posix.c: Likewise.
81544         * tests/test-vasnprintf-posix2.c: Likewise.
81545         * tests/test-vasnprintf.c: Likewise.
81546         * tests/test-vasprintf-posix.c: Likewise.
81547         * tests/test-vasprintf.c: Likewise.
81548         * tests/test-verify.c: Likewise.
81549         * tests/test-vfprintf-posix.c: Likewise.
81550         * tests/test-vprintf-posix.c: Likewise.
81551         * tests/test-vsnprintf-posix.c: Likewise.
81552         * tests/test-vsnprintf.c: Likewise.
81553         * tests/test-vsprintf-posix.c: Likewise.
81554         * tests/test-wchar.c: Likewise.
81555         * tests/test-wctype.c: Likewise.
81556         * tests/test-wcwidth.c: Likewise.
81557         * tests/test-xstrtol.c: Likewise.
81558         * tests/test-xvasprintf.c: Likewise.
81559         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
81560         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
81561         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
81562         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
81563         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
81564         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
81565         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
81566         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
81567         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
81568         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
81569         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
81570         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
81571         * tests/uniname/test-uninames.c: Likewise.
81572         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
81573         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
81574         * tests/unistdio/test-u16-printf1.h: Likewise.
81575         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
81576         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
81577         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
81578         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
81579         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
81580         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
81581         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
81582         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
81583         * tests/unistdio/test-u32-printf1.h: Likewise.
81584         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
81585         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
81586         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
81587         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
81588         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
81589         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
81590         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
81591         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
81592         * tests/unistdio/test-u8-printf1.h: Likewise.
81593         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
81594         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
81595         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
81596         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
81597         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
81598         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
81599         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
81600         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
81601         * tests/unistdio/test-ulc-printf1.h: Likewise.
81602         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
81603         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
81604         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
81605         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
81606         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
81607         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
81608         * tests/uniwidth/test-u16-strwidth.c: Likewise.
81609         * tests/uniwidth/test-u16-width.c: Likewise.
81610         * tests/uniwidth/test-u32-strwidth.c: Likewise.
81611         * tests/uniwidth/test-u32-width.c: Likewise.
81612         * tests/uniwidth/test-u8-strwidth.c: Likewise.
81613         * tests/uniwidth/test-u8-width.c: Likewise.
81614         * tests/uniwidth/test-uc_width.c: Likewise.
81615         * config/srclist-update: Likewise.
81616         (fixlicense): Update to GPLv3+.
81618         Change copyright notice from LGPLv2.1+ to LGPLv3+.
81619         * tests/test-tsearch.c: Change copyright notice.
81621         Change copyright notice from LGPLv2.0+ to LGPLv3+.
81622         * lib/c-strcaseeq.h: Change copyright notice.
81623         * lib/streq.h: Likewise.
81624         * lib/uniconv.h: Likewise.
81625         * lib/uniconv/u-conv-from-enc.h: Likewise.
81626         * lib/uniconv/u-conv-to-enc.h: Likewise.
81627         * lib/uniconv/u-strconv-from-enc.h: Likewise.
81628         * lib/uniconv/u-strconv-to-enc.h: Likewise.
81629         * lib/uniconv/u16-conv-from-enc.c: Likewise.
81630         * lib/uniconv/u16-conv-to-enc.c: Likewise.
81631         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
81632         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
81633         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
81634         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
81635         * lib/uniconv/u32-conv-from-enc.c: Likewise.
81636         * lib/uniconv/u32-conv-to-enc.c: Likewise.
81637         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
81638         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
81639         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
81640         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
81641         * lib/uniconv/u8-conv-from-enc.c: Likewise.
81642         * lib/uniconv/u8-conv-to-enc.c: Likewise.
81643         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
81644         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
81645         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
81646         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
81647         * lib/uniname.h: Likewise.
81648         * lib/uniname/uniname.c: Likewise.
81649         * lib/unistdio.h: Likewise.
81650         * lib/unistdio/u-asnprintf.h: Likewise.
81651         * lib/unistdio/u-asprintf.h: Likewise.
81652         * lib/unistdio/u-printf-args.c: Likewise.
81653         * lib/unistdio/u-printf-args.h: Likewise.
81654         * lib/unistdio/u-printf-parse.h: Likewise.
81655         * lib/unistdio/u-snprintf.h: Likewise.
81656         * lib/unistdio/u-sprintf.h: Likewise.
81657         * lib/unistdio/u-vasprintf.h: Likewise.
81658         * lib/unistdio/u-vsnprintf.h: Likewise.
81659         * lib/unistdio/u-vsprintf.h: Likewise.
81660         * lib/unistdio/u16-asnprintf.c: Likewise.
81661         * lib/unistdio/u16-asprintf.c: Likewise.
81662         * lib/unistdio/u16-printf-parse.c: Likewise.
81663         * lib/unistdio/u16-snprintf.c: Likewise.
81664         * lib/unistdio/u16-sprintf.c: Likewise.
81665         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
81666         * lib/unistdio/u16-u16-asprintf.c: Likewise.
81667         * lib/unistdio/u16-u16-snprintf.c: Likewise.
81668         * lib/unistdio/u16-u16-sprintf.c: Likewise.
81669         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
81670         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
81671         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
81672         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
81673         * lib/unistdio/u16-vasnprintf.c: Likewise.
81674         * lib/unistdio/u16-vasprintf.c: Likewise.
81675         * lib/unistdio/u16-vsnprintf.c: Likewise.
81676         * lib/unistdio/u16-vsprintf.c: Likewise.
81677         * lib/unistdio/u32-asnprintf.c: Likewise.
81678         * lib/unistdio/u32-asprintf.c: Likewise.
81679         * lib/unistdio/u32-printf-parse.c: Likewise.
81680         * lib/unistdio/u32-snprintf.c: Likewise.
81681         * lib/unistdio/u32-sprintf.c: Likewise.
81682         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
81683         * lib/unistdio/u32-u32-asprintf.c: Likewise.
81684         * lib/unistdio/u32-u32-snprintf.c: Likewise.
81685         * lib/unistdio/u32-u32-sprintf.c: Likewise.
81686         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
81687         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
81688         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
81689         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
81690         * lib/unistdio/u32-vasnprintf.c: Likewise.
81691         * lib/unistdio/u32-vasprintf.c: Likewise.
81692         * lib/unistdio/u32-vsnprintf.c: Likewise.
81693         * lib/unistdio/u32-vsprintf.c: Likewise.
81694         * lib/unistdio/u8-asnprintf.c: Likewise.
81695         * lib/unistdio/u8-asprintf.c: Likewise.
81696         * lib/unistdio/u8-printf-parse.c: Likewise.
81697         * lib/unistdio/u8-snprintf.c: Likewise.
81698         * lib/unistdio/u8-sprintf.c: Likewise.
81699         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
81700         * lib/unistdio/u8-u8-asprintf.c: Likewise.
81701         * lib/unistdio/u8-u8-snprintf.c: Likewise.
81702         * lib/unistdio/u8-u8-sprintf.c: Likewise.
81703         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
81704         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
81705         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
81706         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
81707         * lib/unistdio/u8-vasnprintf.c: Likewise.
81708         * lib/unistdio/u8-vasprintf.c: Likewise.
81709         * lib/unistdio/u8-vsnprintf.c: Likewise.
81710         * lib/unistdio/u8-vsprintf.c: Likewise.
81711         * lib/unistdio/ulc-asnprintf.c: Likewise.
81712         * lib/unistdio/ulc-asprintf.c: Likewise.
81713         * lib/unistdio/ulc-printf-parse.c: Likewise.
81714         * lib/unistdio/ulc-snprintf.c: Likewise.
81715         * lib/unistdio/ulc-sprintf.c: Likewise.
81716         * lib/unistdio/ulc-vasnprintf.c: Likewise.
81717         * lib/unistdio/ulc-vasprintf.c: Likewise.
81718         * lib/unistdio/ulc-vsnprintf.c: Likewise.
81719         * lib/unistdio/ulc-vsprintf.c: Likewise.
81720         * lib/unistr.h: Likewise.
81721         * lib/unistr/u-cpy-alloc.h: Likewise.
81722         * lib/unistr/u-cpy.h: Likewise.
81723         * lib/unistr/u-endswith.h: Likewise.
81724         * lib/unistr/u-move.h: Likewise.
81725         * lib/unistr/u-set.h: Likewise.
81726         * lib/unistr/u-startswith.h: Likewise.
81727         * lib/unistr/u-stpcpy.h: Likewise.
81728         * lib/unistr/u-stpncpy.h: Likewise.
81729         * lib/unistr/u-strcat.h: Likewise.
81730         * lib/unistr/u-strcpy.h: Likewise.
81731         * lib/unistr/u-strcspn.h: Likewise.
81732         * lib/unistr/u-strdup.h: Likewise.
81733         * lib/unistr/u-strlen.h: Likewise.
81734         * lib/unistr/u-strncat.h: Likewise.
81735         * lib/unistr/u-strncpy.h: Likewise.
81736         * lib/unistr/u-strnlen.h: Likewise.
81737         * lib/unistr/u-strpbrk.h: Likewise.
81738         * lib/unistr/u-strspn.h: Likewise.
81739         * lib/unistr/u-strstr.h: Likewise.
81740         * lib/unistr/u-strtok.h: Likewise.
81741         * lib/unistr/u16-check.c: Likewise.
81742         * lib/unistr/u16-chr.c: Likewise.
81743         * lib/unistr/u16-cmp.c: Likewise.
81744         * lib/unistr/u16-cpy-alloc.c: Likewise.
81745         * lib/unistr/u16-cpy.c: Likewise.
81746         * lib/unistr/u16-endswith.c: Likewise.
81747         * lib/unistr/u16-mblen.c: Likewise.
81748         * lib/unistr/u16-mbsnlen.c: Likewise.
81749         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81750         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81751         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81752         * lib/unistr/u16-mbtouc.c: Likewise.
81753         * lib/unistr/u16-mbtoucr.c: Likewise.
81754         * lib/unistr/u16-move.c: Likewise.
81755         * lib/unistr/u16-next.c: Likewise.
81756         * lib/unistr/u16-prev.c: Likewise.
81757         * lib/unistr/u16-set.c: Likewise.
81758         * lib/unistr/u16-startswith.c: Likewise.
81759         * lib/unistr/u16-stpcpy.c: Likewise.
81760         * lib/unistr/u16-stpncpy.c: Likewise.
81761         * lib/unistr/u16-strcat.c: Likewise.
81762         * lib/unistr/u16-strchr.c: Likewise.
81763         * lib/unistr/u16-strcmp.c: Likewise.
81764         * lib/unistr/u16-strcpy.c: Likewise.
81765         * lib/unistr/u16-strcspn.c: Likewise.
81766         * lib/unistr/u16-strdup.c: Likewise.
81767         * lib/unistr/u16-strlen.c: Likewise.
81768         * lib/unistr/u16-strmblen.c: Likewise.
81769         * lib/unistr/u16-strmbtouc.c: Likewise.
81770         * lib/unistr/u16-strncat.c: Likewise.
81771         * lib/unistr/u16-strncmp.c: Likewise.
81772         * lib/unistr/u16-strncpy.c: Likewise.
81773         * lib/unistr/u16-strnlen.c: Likewise.
81774         * lib/unistr/u16-strpbrk.c: Likewise.
81775         * lib/unistr/u16-strrchr.c: Likewise.
81776         * lib/unistr/u16-strspn.c: Likewise.
81777         * lib/unistr/u16-strstr.c: Likewise.
81778         * lib/unistr/u16-strtok.c: Likewise.
81779         * lib/unistr/u16-to-u32.c: Likewise.
81780         * lib/unistr/u16-to-u8.c: Likewise.
81781         * lib/unistr/u16-uctomb-aux.c: Likewise.
81782         * lib/unistr/u16-uctomb.c: Likewise.
81783         * lib/unistr/u32-check.c: Likewise.
81784         * lib/unistr/u32-chr.c: Likewise.
81785         * lib/unistr/u32-cmp.c: Likewise.
81786         * lib/unistr/u32-cpy-alloc.c: Likewise.
81787         * lib/unistr/u32-cpy.c: Likewise.
81788         * lib/unistr/u32-endswith.c: Likewise.
81789         * lib/unistr/u32-mblen.c: Likewise.
81790         * lib/unistr/u32-mbsnlen.c: Likewise.
81791         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81792         * lib/unistr/u32-mbtouc.c: Likewise.
81793         * lib/unistr/u32-mbtoucr.c: Likewise.
81794         * lib/unistr/u32-move.c: Likewise.
81795         * lib/unistr/u32-next.c: Likewise.
81796         * lib/unistr/u32-prev.c: Likewise.
81797         * lib/unistr/u32-set.c: Likewise.
81798         * lib/unistr/u32-startswith.c: Likewise.
81799         * lib/unistr/u32-stpcpy.c: Likewise.
81800         * lib/unistr/u32-stpncpy.c: Likewise.
81801         * lib/unistr/u32-strcat.c: Likewise.
81802         * lib/unistr/u32-strchr.c: Likewise.
81803         * lib/unistr/u32-strcmp.c: Likewise.
81804         * lib/unistr/u32-strcpy.c: Likewise.
81805         * lib/unistr/u32-strcspn.c: Likewise.
81806         * lib/unistr/u32-strdup.c: Likewise.
81807         * lib/unistr/u32-strlen.c: Likewise.
81808         * lib/unistr/u32-strmblen.c: Likewise.
81809         * lib/unistr/u32-strmbtouc.c: Likewise.
81810         * lib/unistr/u32-strncat.c: Likewise.
81811         * lib/unistr/u32-strncmp.c: Likewise.
81812         * lib/unistr/u32-strncpy.c: Likewise.
81813         * lib/unistr/u32-strnlen.c: Likewise.
81814         * lib/unistr/u32-strpbrk.c: Likewise.
81815         * lib/unistr/u32-strrchr.c: Likewise.
81816         * lib/unistr/u32-strspn.c: Likewise.
81817         * lib/unistr/u32-strstr.c: Likewise.
81818         * lib/unistr/u32-strtok.c: Likewise.
81819         * lib/unistr/u32-to-u16.c: Likewise.
81820         * lib/unistr/u32-to-u8.c: Likewise.
81821         * lib/unistr/u32-uctomb.c: Likewise.
81822         * lib/unistr/u8-check.c: Likewise.
81823         * lib/unistr/u8-chr.c: Likewise.
81824         * lib/unistr/u8-cmp.c: Likewise.
81825         * lib/unistr/u8-cpy-alloc.c: Likewise.
81826         * lib/unistr/u8-cpy.c: Likewise.
81827         * lib/unistr/u8-endswith.c: Likewise.
81828         * lib/unistr/u8-mblen.c: Likewise.
81829         * lib/unistr/u8-mbsnlen.c: Likewise.
81830         * lib/unistr/u8-mbtouc-aux.c: Likewise.
81831         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81832         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81833         * lib/unistr/u8-mbtouc.c: Likewise.
81834         * lib/unistr/u8-mbtoucr.c: Likewise.
81835         * lib/unistr/u8-move.c: Likewise.
81836         * lib/unistr/u8-next.c: Likewise.
81837         * lib/unistr/u8-prev.c: Likewise.
81838         * lib/unistr/u8-set.c: Likewise.
81839         * lib/unistr/u8-startswith.c: Likewise.
81840         * lib/unistr/u8-stpcpy.c: Likewise.
81841         * lib/unistr/u8-stpncpy.c: Likewise.
81842         * lib/unistr/u8-strcat.c: Likewise.
81843         * lib/unistr/u8-strchr.c: Likewise.
81844         * lib/unistr/u8-strcmp.c: Likewise.
81845         * lib/unistr/u8-strcpy.c: Likewise.
81846         * lib/unistr/u8-strcspn.c: Likewise.
81847         * lib/unistr/u8-strdup.c: Likewise.
81848         * lib/unistr/u8-strlen.c: Likewise.
81849         * lib/unistr/u8-strmblen.c: Likewise.
81850         * lib/unistr/u8-strmbtouc.c: Likewise.
81851         * lib/unistr/u8-strncat.c: Likewise.
81852         * lib/unistr/u8-strncmp.c: Likewise.
81853         * lib/unistr/u8-strncpy.c: Likewise.
81854         * lib/unistr/u8-strnlen.c: Likewise.
81855         * lib/unistr/u8-strpbrk.c: Likewise.
81856         * lib/unistr/u8-strrchr.c: Likewise.
81857         * lib/unistr/u8-strspn.c: Likewise.
81858         * lib/unistr/u8-strstr.c: Likewise.
81859         * lib/unistr/u8-strtok.c: Likewise.
81860         * lib/unistr/u8-to-u16.c: Likewise.
81861         * lib/unistr/u8-to-u32.c: Likewise.
81862         * lib/unistr/u8-uctomb-aux.c: Likewise.
81863         * lib/unistr/u8-uctomb.c: Likewise.
81864         * lib/unitypes.h: Likewise.
81865         * lib/uniwidth.h: Likewise.
81866         * lib/uniwidth/cjk.h: Likewise.
81867         * lib/uniwidth/u16-strwidth.c: Likewise.
81868         * lib/uniwidth/u16-width.c: Likewise.
81869         * lib/uniwidth/u32-strwidth.c: Likewise.
81870         * lib/uniwidth/u32-width.c: Likewise.
81871         * lib/uniwidth/u8-strwidth.c: Likewise.
81872         * lib/uniwidth/u8-width.c: Likewise.
81873         * lib/uniwidth/width.c: Likewise.
81875 2007-10-07  Bruno Haible  <bruno@clisp.org>
81877         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
81878         The file is still under LGPL (see modules/inttypes).
81880 2007-10-06  Bruno Haible  <bruno@clisp.org>
81882         * modules/trunc (Dependencies): Add 'extensions'.
81883         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
81884         Reported by Ben Pfaff <blp@gnu.org>.
81886 2007-10-06  Bruno Haible  <bruno@clisp.org>
81888         * modules/freopen-tests: New file.
81889         * tests/test-freopen.c: New file.
81891         * modules/fopen-tests: New file.
81892         * tests/test-fopen.c: New file.
81894         * modules/fopen: New file.
81895         * lib/fopen.c: New file.
81896         * m4/fopen.m4: New file.
81897         * modules/freopen: New file.
81898         * lib/freopen.c: New file.
81899         * m4/freopen.m4: New file.
81900         * lib/stdio.in.h (fopen, freopen): New declarations.
81901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
81902         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
81903         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
81904         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
81905         * doc/functions/fopen.texi: Mention the 'fopen' module.
81906         * doc/functions/freopen.texi: Mention the 'freopen' module.
81908 2007-10-06  Bruno Haible  <bruno@clisp.org>
81910         * modules/open-tests: New file.
81911         * tests/test-open.c: New file.
81913         * modules/open: New file.
81914         * lib/open.c: New file.
81915         * m4/open.m4: New file.
81916         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
81917         lib/open.c does.
81918         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
81919         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
81920         macros.
81921         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
81922         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
81923         REPLACE_OPEN.
81924         * doc/functions/open.texi: Mention the 'open' module.
81926 2007-10-04  Bruno Haible  <bruno@clisp.org>
81928         * modules/ceill-tests: New file.
81929         * tests/test-ceill.c: New file.
81931         * modules/ceill: New file.
81932         * lib/ceill.c: Replace entire file.
81933         * m4/ceill.m4: New file.
81934         * lib/math.in.h (ceill): Replace declaration.
81935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
81936         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
81937         * doc/functions/ceill.texi: Mention the 'ceill' module.
81938         * modules/mathl (Files): Remove lib/ceill.c.
81939         (Depends-on): Add ceill.
81941 2007-10-04  Bruno Haible  <bruno@clisp.org>
81943         * modules/ceilf-tests: New file.
81944         * tests/test-ceilf.c: New file.
81946         * modules/ceilf: New file.
81947         * lib/ceil.c: New file.
81948         * lib/ceilf.c: New file.
81949         * m4/ceilf.m4: New file.
81950         * lib/math.in.h (ceilf): New declaration.
81951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
81952         HAVE_DECL_CEILF.
81953         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
81954         HAVE_DECL_CEILF.
81955         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
81957 2007-10-04  Bruno Haible  <bruno@clisp.org>
81959         * modules/floorl-tests: New file.
81960         * tests/test-floorl.c: New file.
81962         * modules/floorl: New file.
81963         * lib/floorl.c: Replace entire file.
81964         * m4/floorl.m4: New file.
81965         * lib/math.in.h (floorl): Replace declaration.
81966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
81967         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
81968         * doc/functions/floorl.texi: Mention the 'floorl' module.
81969         * modules/mathl (Files): Remove lib/floorl.c.
81970         (Depends-on): Add floorl.
81972 2007-10-04  Bruno Haible  <bruno@clisp.org>
81974         * modules/floorf-tests: New file.
81975         * tests/test-floorf.c: New file.
81977         * modules/floorf: New file.
81978         * lib/floor.c: New file.
81979         * lib/floorf.c: New file.
81980         * m4/floorf.m4: New file.
81981         * lib/math.in.h (floorf): New declaration.
81982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
81983         HAVE_DECL_FLOORF.
81984         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
81985         HAVE_DECL_FLOORF.
81986         * doc/functions/floorf.texi: Mention the 'floorf' module.
81988 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
81989             Bruno Haible  <bruno@clisp.org>
81991         Advertise for the Git server instead of the CVS server.
81992         * doc/gnulib-intro.texi (Steady Development): Mention the Git
81993         repository instead of the CVS one.
81994         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
81995         about all VCS systems generically.
81996         * doc/gnulib.texi (Introduction): Capitalize `Git'.
81998 2007-10-04  Bruno Haible  <bruno@clisp.org>
82000         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
82001         means.
82002         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
82004 2007-10-04  Bruno Haible  <bruno@clisp.org>
82006         * modules/truncl-tests: New file.
82007         * tests/test-truncl.c: New file.
82009         * modules/truncl: New file.
82010         * lib/truncl.c: New file.
82011         * m4/truncl.m4: New file.
82012         * lib/math.in.h (truncl): New declaration.
82013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
82014         HAVE_DECL_TRUNCL.
82015         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
82016         HAVE_DECL_TRUNCL.
82017         * doc/functions/truncl.texi: Mention the 'truncl' module.
82019 2007-10-04  Bruno Haible  <bruno@clisp.org>
82021         * modules/truncf-tests: New file.
82022         * tests/test-truncf.c: New file.
82024         * modules/truncf: New file.
82025         * lib/trunc.c: Make paramerizable through USE_* macros.
82026         * lib/truncf.c: New file.
82027         * m4/truncf.m4: New file.
82028         * lib/math.in.h (truncf): New declaration.
82029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
82030         HAVE_DECL_TRUNCF.
82031         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
82032         HAVE_DECL_TRUNCF.
82033         * doc/functions/truncf.texi: Mention the 'truncf' module.
82035 2007-10-03  Bruno Haible  <bruno@clisp.org>
82037         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
82038         augmentation also for tests modules.
82039         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
82040         * modules/atexit-tests (Makefile.am): Likewise.
82041         * modules/binary-io-tests (Makefile.am): Likewise.
82042         * modules/c-strcase-tests (Makefile.am): Likewise.
82043         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
82044         * modules/canonicalize-tests (Makefile.am): Likewise.
82045         * modules/closein-tests (Makefile.am): Likewise.
82046         * modules/fprintf-posix-tests (Makefile.am): Likewise.
82047         * modules/freadahead-tests (Makefile.am): Likewise.
82048         * modules/fseek-tests (Makefile.am): Likewise.
82049         * modules/fseeko-tests (Makefile.am): Likewise.
82050         * modules/ftell-tests (Makefile.am): Likewise.
82051         * modules/ftello-tests (Makefile.am): Likewise.
82052         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
82053         * modules/isnanl-tests (Makefile.am): Likewise.
82054         * modules/lseek-tests (Makefile.am): Likewise.
82055         * modules/mbscasecmp-tests (Makefile.am): Likewise.
82056         * modules/mbscasestr-tests (Makefile.am): Likewise.
82057         * modules/mbschr-tests (Makefile.am): Likewise.
82058         * modules/mbscspn-tests (Makefile.am): Likewise.
82059         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
82060         * modules/mbspbrk-tests (Makefile.am): Likewise.
82061         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
82062         * modules/mbsrchr-tests (Makefile.am): Likewise.
82063         * modules/mbsspn-tests (Makefile.am): Likewise.
82064         * modules/mbsstr-tests (Makefile.am): Likewise.
82065         * modules/printf-posix-tests (Makefile.am): Likewise.
82066         * modules/snprintf-posix-tests (Makefile.am): Likewise.
82067         * modules/sprintf-posix-tests (Makefile.am): Likewise.
82068         * modules/tsearch-tests (Makefile.am): Likewise.
82069         * modules/uniname/uniname-tests (Makefile.am): Likewise.
82070         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
82071         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
82072         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
82073         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
82074         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
82075         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
82076         * modules/vprintf-posix-tests (Makefile.am): Likewise.
82077         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
82078         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
82079         * modules/xstrtoimax-tests (Makefile.am): Likewise.
82080         * modules/xstrtol-tests (Makefile.am): Likewise.
82081         * modules/xstrtoumax-tests (Makefile.am): Likewise.
82082         * modules/yesno-tests (Makefile.am): Likewise.
82084 2007-10-03  Bruno Haible  <bruno@clisp.org>
82086         * modules/trunc-tests: New file.
82087         * tests/test-trunc.c: New file.
82089         * modules/trunc: New file.
82090         * lib/trunc.c: New file.
82091         * m4/trunc.m4: New file.
82092         * lib/math.in.h (trunc): New declaration.
82093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
82094         HAVE_DECL_TRUNC.
82095         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
82096         HAVE_DECL_TRUNC.
82097         * doc/functions/trunc.texi: Mention the 'trunc' module.
82099 2007-10-03  Bruno Haible  <bruno@clisp.org>
82101         * tests/test-fpending.c: New file, mostly copied
82102         from coreutils/lib/t-fpending.c.
82103         * modules/fpending-tests: New file.
82105 2007-10-03  Bruno Haible  <bruno@clisp.org>
82107         Port the stdio extensions to QNX (untested).
82108         * lib/fseterr.c (fseterr): Add support for QNX.
82109         * lib/fbufmode.c (fbufmode): Likewise.
82110         * lib/freadable.c (freadable): Likewise.
82111         * lib/fwritable.c (fwritable): Likewise.
82112         * lib/freading.c (freading): Likewise.
82113         * lib/fwriting.c (fwriting): Likewise.
82114         * lib/freadahead.c (freadahed): Likewise.
82115         * lib/fpurge.c (fpurge): Likewise.
82116         * lib/fseeko.c (rpl_fseeko): Likewise.
82118 2007-10-03  Bruno Haible  <bruno@clisp.org>
82119             Jim Meyering  <jim@meyering.net>
82120             Eric Blake  <ebb9@byu.net>
82122         * doc/relocatable.texi: Use @command instead of @program.
82124 2007-10-02  Jim Meyering  <jim@meyering.net>
82126         Perform one more "_.h" -> ".in.h" substitution.
82127         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
82128         instead of unistd_.h here, too.
82130 2007-10-01  Bruno Haible  <bruno@clisp.org>
82132         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
82133         Needed for the alloca-opt module.
82135 2007-09-30  Bruno Haible  <bruno@clisp.org>
82137         * lib/alloca.in.h: Renamed from lib/alloca_.h.
82138         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
82139         alloca_.h.
82140         * lib/argz.in.h: Renamed from lib/argz_.h.
82141         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
82142         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
82143         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
82144         byteswap_.h.
82145         * lib/dirent.in.h: Renamed from lib/dirent_.h.
82146         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
82147         dirent_.h.
82148         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
82149         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
82150         fcntl_.h.
82151         * lib/float.in.h: Renamed from lib/float_.h.
82152         * modules/float (Files, Makefile.am): Use float.in.h instead of
82153         float_.h.
82154         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
82155         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
82156         fnmatch_.h.
82157         * lib/getopt.in.h: Renamed from lib/getopt_.h.
82158         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
82159         getopt_.h.
82160         * lib/glob.in.h: Renamed from lib/glob_.h.
82161         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
82162         * lib/iconv.in.h: Renamed from lib/iconv_.h.
82163         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
82164         iconv_.h.
82165         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
82166         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
82167         inttypes_.h.
82168         * lib/locale.in.h: Renamed from lib/locale_.h.
82169         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
82170         locale_.h.
82171         * lib/math.in.h: Renamed from lib/math_.h.
82172         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
82173         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
82174         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
82175         of netinet_in_.h. Add dependency.
82176         * lib/poll.in.h: Renamed from lib/poll_.h.
82177         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
82178         * lib/search.in.h: Renamed from lib/search_.h.
82179         * modules/search (Files, Makefile.am): Use search.in.h instead of
82180         search_.h.
82181         * lib/signal.in.h: Renamed from lib/signal_.h.
82182         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
82183         _signal.h.
82184         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
82185         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
82186         stdbool_.h.
82187         * lib/stdint.in.h: Renamed from lib/stdint_.h.
82188         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
82189         stdint_.h.
82190         * lib/stdio.in.h: Renamed from lib/stdio_.h.
82191         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
82192         stdio_.h.
82193         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
82194         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
82195         stdlib_.h.
82196         * lib/string.in.h: Renamed from lib/string_.h.
82197         * modules/string (Files, Makefile.am): Use string.in.h instead of
82198         string_.h.
82199         * doc/gnulib-tool.texi (Initial import): Update.
82200         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
82201         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
82202         of sys_select_.h. Add dependency.
82203         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
82204         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
82205         of sys_socket_.h.
82206         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
82207         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
82208         sys_stat_.h.
82209         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
82210         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
82211         sys_time_.h.
82212         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
82213         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
82214         sysexits_.h.
82215         * lib/time.in.h: Renamed from lib/time_.h.
82216         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
82217         * lib/unistd.in.h: Renamed from lib/unistd_.h.
82218         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
82219         unistd_.h.
82220         * lib/wchar.in.h: Renamed from lib/wchar_.h.
82221         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
82222         wchar_.h.
82223         * lib/wctype.in.h: Renamed from lib/wctype_.h.
82224         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
82225         wctype_.h.
82226         * build-aux/bootstrap (slurp): Update.
82227         * lib/.cppi-disable: Update.
82229 2007-09-30  Bruno Haible  <bruno@clisp.org>
82231         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
82232         Needed on BeOS.
82234 2007-09-30  Bruno Haible  <bruno@clisp.org>
82236         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
82238 2007-09-29  Bruno Haible  <bruno@clisp.org>
82240         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
82242 2007-09-29  Bruno Haible  <bruno@clisp.org>
82244         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
82245         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
82246         * build-aux/install-reloc: Compile also areadlink.c.
82247         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
82249 2007-09-29  Bruno Haible  <bruno@clisp.org>
82251         * gnulib-tool (func_emit_initmacro_done): Indentation.
82253 2007-09-29  Bruno Haible  <bruno@clisp.org>
82255         * README: Add CVS checkout update instructions.
82256         Info from Bob Proulx <bob@proulx.com>.
82258 2007-09-28  Eric Blake  <ebb9@byu.net>
82260         Provide move-if-change.
82261         * build-aux/move-if-change: New file, based on best practice
82262         rather than any canonical upstream location.
82264 2007-09-28  Jim Meyering  <jim@meyering.net>
82266         Fix canonicalize loop-detection corner case.
82267         Do not attempt to stat the symlink values stored via seen_triple.
82268         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
82269         on linux-2.6.18, (but not 2.6.22).
82270         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
82271         triple_compare.  The former compares dev,ino,filename, while the latter
82272         would actually stat dirname(filename) when dev and ino were equal.
82273         * lib/hash-triple.c: Install <string.h>.
82274         (STREQ): Define.
82275         (triple_compare_ino_str): New function.
82276         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
82278 2007-09-28  Eric Blake  <ebb9@byu.net>
82280         Enforce that AC_REPLACE_FUNCS files exist.
82281         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
82282         override check for typos.
82284         Fix test-closein on Solaris 10.
82285         * tests/test-closein.c (main): Don't assume stdin can be inherited
82286         closed on all systems.
82287         * tests/test-closein.sh: Likewise.
82288         Reported by Piotr Tarnowski.
82290 2007-09-28  Jim Meyering  <jim@meyering.net>
82292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
82294 2007-09-27  Jim Meyering  <jim@meyering.net>
82296         canonicalize: Avoid a false-positive cycle failure.
82297         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
82298         Sort.  Remove cycle-check.
82299         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
82300         not cycle-check.h.
82301         (seen_triple): New function.
82302         (canonicalize_filename_mode): Use it instead of cycle-check.
82303         * tests/test-canonicalize.c: Add a test for this bug.
82304         * tests/test-canonicalize.sh: Set up and run the test.
82306         New module, file-set, from coreutils.
82307         * modules/file-set: Define it.
82308         * lib/file-set.c, lib/file-set.h: Implement.
82310         New module, hash-triple, from coreutils.
82311         * modules/hash-triple: Define it.
82312         * lib/hash-triple.c, lib/hash-triple.h: Implement.
82314 2007-09-25  Eric Blake  <ebb9@byu.net>
82316         Fix strerror on Interix.
82317         * lib/string_.h (strerror): Declare replacement.
82318         * doc/functions/strerror.texi (strerror): Document the Interix
82319         shortcoming.
82320         * modules/string (Makefile.am): Support new hooks.
82321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
82322         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
82323         gl_FUNC_STRERROR_SEPARATE.
82324         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
82325         * lib/strerror.c (rpl_strerror): Provide replacement.
82326         * modules/strerror (Depends-on): Add string.
82327         (configure.ac): Detect use of module.
82328         * tests/test-strerror.c: New file.
82329         * modules/strerror-tests: New test module.
82330         * modules/argp (Depends-on): Add strerror.
82331         * modules/error (Depends-on): Likewise.
82332         Reported by Martin Koeppe.
82334 2007-09-24  Bruno Haible  <bruno@clisp.org>
82336         * README: Update git instructions.
82338 2007-09-24  Eric Blake  <ebb9@byu.net>
82340         Revert fpending breakage from 2007-09-08.
82341         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
82342         __fpending.c.
82344 2007-09-24  Jim Meyering  <jim@meyering.net>
82346         filenamecat.c: Add a test.
82347         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
82348         showing how the function works when DIR is the empty string.
82350 2007-09-21  Simon Josefsson  <simon@josefsson.org>
82352         * tests/test-canonicalize.sh: Turn on executable bit.
82354 2007-09-19  Eric Blake  <ebb9@byu.net>
82356         * README: Update CVS instructions.
82358 2007-09-18  Bruno Haible  <bruno@clisp.org>
82360         * modules/areadlink: New file.
82361         * lib/areadlink.h (areadlink): New declaration.
82362         * lib/areadlink.c: New file, based on lib/xreadlink.c.
82364 2007-09-17  Jim Meyering  <jim@meyering.net>
82366         * lib/savewd.c (ESTALE) [!defined]: Define.
82367         Reported to be required on Interix by Martin Koeppe.
82369 2007-09-17  Bruno Haible  <bruno@clisp.org>
82371         * gnulib-tool (func_version): Use $version.
82373 2007-09-16  Bruno Haible  <bruno@clisp.org>
82375         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
82376         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
82377         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
82378         Reported by Greg Schafer <gschafer@zip.com.au>.
82380 2007-09-15  Bruno Haible  <bruno@clisp.org>
82382         * gnulib-tool (sed): Try a little harder to make bash understand the
82383         alias.
82384         Reported by Bruce Korb <bruce.korb@gmail.com>.
82386 2007-09-13  Eric Blake  <ebb9@byu.net>
82388         * ChangeLog: Remove conflict markers.
82390 2007-09-13  Simon Josefsson  <simon@josefsson.org>
82392         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
82393         Reported by Bruno Haible <bruno@clisp.org>.
82395 2007-09-12  Bruno Haible  <bruno@clisp.org>
82397         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
82398         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
82399         is not defined.
82401 2007-09-12  Eric Blake  <ebb9@byu.net>
82403         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
82404         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
82405         Autoconf definition.
82406         * modules/euidaccess (Depends-on): Add extensions, for
82407         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
82408         * modules/fnmatch (Depends-on): Likewise.
82409         * modules/getaddrinfo (Depends-on): Likewise.
82410         * modules/getdelim (Depends-on): Likewise.
82411         * modules/getline (Depends-on): Likewise.
82412         * modules/getsubopt (Depends-on): Likewise.
82413         * modules/gettext (Depends-on): Likewise.
82414         * modules/group-member (Depends-on): Likewise.
82415         * modules/mbchar (Depends-on): Likewise.
82416         * modules/memmem (Depends-on): Likewise.
82417         * modules/mempcpy (Depends-on): Likewise.
82418         * modules/memrchr (Depends-on): Likewise.
82419         * modules/pagealign_alloc (Depends-on): Likewise.
82420         * modules/readutmp (Depends-on): Likewise.
82421         * modules/stpcpy (Depends-on): Likewise.
82422         * modules/stpncpy (Depends-on): Likewise.
82423         * modules/strchrnul (Depends-on): Likewise.
82424         * modules/strndup (Depends-on): Likewise.
82425         * modules/strsep (Depends-on): Likewise.
82426         * modules/strverscmp (Depends-on): Likewise.
82427         * modules/vasprintf (Depends-on): Likewise.
82428         * modules/wcwidth (Depends-on): Likewise.
82429         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
82430         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
82431         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
82432         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
82433         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82434         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82435         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
82436         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82437         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
82438         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
82439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
82440         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
82441         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
82442         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
82443         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
82444         * m4/readutmp.m4 (gl_READUTMP): Likewise.
82445         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82446         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
82447         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82448         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
82449         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
82450         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
82451         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
82452         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
82453         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
82454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
82455         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
82456         so that lock.m4 can be used in gettext without extensions module.
82458 2007-09-11  Bruno Haible  <bruno@clisp.org>
82460         * m4/isc-posix.m4: Remove file.
82461         Suggested by Eric Blake.
82463 2007-09-11  Eric Blake  <ebb9@byu.net>
82465         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
82467 2007-09-10  Bruno Haible  <bruno@clisp.org>
82469         * posix-modules: Fix typo in error message.
82470         Reported by Matt <mkraai@beckman.com>.
82472 2007-09-09  Bruno Haible  <bruno@clisp.org>
82474         * doc/functions/getdelim.texi: Update list of platforms lacking the
82475         function.
82476         * doc/functions/getline.texi: Likewise.
82478 2007-09-09  Jim Meyering  <jim@meyering.net>
82480         * lib/hash.c (hash_initialize): Detect calloc failure.
82481         Reported by Bruno Haible.
82483 2007-09-09  Bruno Haible  <bruno@clisp.org>
82485         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
82486         malloc or realloc fails.
82488 2007-09-09  Bruno Haible  <bruno@clisp.org>
82490         * modules/getcwd (Depends-on): Add malloc-posix.
82491         * modules/glob (Depends-on): Likewise.
82492         * modules/putenv (Depends-on): Likewise.
82493         * modules/strdup (Depends-on): Likewise.
82494         * modules/getdelim (Depends-on): Add realloc-posix.
82495         * modules/read-file (Depends-on): Likewise.
82497 2007-09-09  Bruno Haible  <bruno@clisp.org>
82499         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
82500         (gl_FUNC_MALLOC_POSIX): Require it.
82501         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
82502         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
82503         * modules/realloc (Files): Add m4/malloc.m4.
82504         * modules/calloc (Files): Likewise.
82506 2007-09-09  Bruno Haible  <bruno@clisp.org>
82508         * modules/malloc-posix: New file.
82509         * modules/malloc (Depends-on): Add malloc-posix.
82510         * lib/malloc.c: Include errno.h.
82511         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
82512         and a POSIX-compatible malloc into a single function. Set ENOMEM
82513         when returning NULL.
82514         * m4/malloc.m4: New file.
82515         * doc/functions/malloc.texi: Mention the malloc-posix module.
82516         * lib/stdlib_.h (malloc): New declaration.
82517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82518         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
82519         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
82520         and HAVE_MALLOC_POSIX.
82522 2007-09-09  Bruno Haible  <bruno@clisp.org>
82524         * modules/realloc-posix: New file.
82525         * modules/realloc (Depends-on): Add realloc-posix.
82526         * lib/realloc.c: Include errno.h.
82527         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
82528         and a POSIX-compatible realloc into a single function. Set ENOMEM
82529         when returning NULL.
82530         * m4/realloc.m4: New file.
82531         * doc/functions/realloc.texi: Mention the realloc-posix module.
82532         * lib/stdlib_.h (realloc): New declaration.
82533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82534         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
82535         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
82536         and HAVE_REALLOC_POSIX.
82538 2007-09-09  Bruno Haible  <bruno@clisp.org>
82540         * modules/calloc-posix: New file.
82541         * modules/calloc (Depends-on): Add calloc-posix.
82542         * lib/calloc.c: Include errno.h.
82543         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
82544         and a POSIX-compatible calloc into a single function. Set ENOMEM
82545         when returning NULL.
82546         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
82547         * doc/functions/calloc.texi: Mention the calloc-posix module.
82548         * lib/stdlib_.h (calloc): New declaration.
82549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82550         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
82551         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
82552         and HAVE_CALLOC_POSIX.
82554 2007-09-09  Bruno Haible  <bruno@clisp.org>
82556         Allow for modules to show an arbitrary notice.
82557         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
82558         * gnulib-tool: New option --extract-notice.
82559         (func_usage): Document it.
82560         (sed_extract_prog): Update.
82561         (func_get_notice): New function.
82562         (func_modules_notice): New function.
82563         (func_import, func_create_testdir): Invoke it.
82564         Suggested by Jim Meyering.
82566 2007-09-09  Bruno Haible  <bruno@clisp.org>
82568         * gnulib-tool: New options --verbose, --quiet.
82569         (func_usage): Document them.
82570         (verbose): New variable.
82571         (func_execute_command): New function.
82572         (func_import): Don't show the module list and the file list if
82573         $verbose < 0.
82574         (func_create_testdir): Likewise. Use func_execute_command.
82575         (func_create_megatestdir): Use func_execute_command.
82577 2007-09-08  Bruno Haible  <bruno@clisp.org>
82579         * gnulib-tool (func_import): Prefer rsync over wget when available,
82580         for fetching the PO files.
82582 2007-09-08  Bruno Haible  <bruno@clisp.org>
82584         * posix-modules: New file. Portions copied from gnulib-tool.
82585         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
82587 2007-09-08  Jim Meyering  <jim@meyering.net>
82589         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
82590         * lib/fpending.h: Rename from __fpending.h.
82591         * lib/fpending.c: Rename from __fpending.c.
82592         Include "fpending.h", not "__fpending.h".
82593         * lib/__fpending.h, lib/__fpending.c: Remove files.
82594         * modules/fpending (Files): Reflect new file names.
82595         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
82597 2007-09-08  Bruno Haible  <bruno@clisp.org>
82599         * m4/inttypes-h.m4: Remove stub file.
82601 2007-09-07  Simon Josefsson  <simon@josefsson.org>
82603         * doc/headers/stdint.texi: Discuss #include_next issue.
82605 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82607         * build-aux/bootstrap: Remove obsolete comment about wget --help.
82609 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82611         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
82612         in variable name.
82614 2007-09-03  Jim Meyering  <jim@meyering.net>
82616         New module: git-version-gen.
82617         * modules/git-version-gen: New file.
82619         Import changes from coreutils for bootstrap script.
82621         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
82623         bootstrap: uses rsync to download the .po files
82624         * build-aux/bootstrap (po_download_command_format): New global.
82625         (download_po_files): Use rsync.
82626         (update_po_files): Don't remove .po files after download,
82627         so future rsync runs can take advantage of the copies.
82629         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
82631         Solve the unnecessary-.po-file-regeneration problem once and for all.
82632         * build-aux/bootstrap (download_po_files): New function, renamed from
82633         get_translations.  Now, downloads, but doesn't update LINGUAS.
82634         (update_po_files): New function.
82636         bootstrap: Ignore more.
82637         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
82638         uniwidth to e.g., lib/.gitignore.
82639         (slurp): Handle the sys_stat_.h -> sys mapping, too.
82641         * build-aux/bootstrap: New setting: vc_ignore.
82642         (insert_sorted_if_absent): Create $file if absent.
82643         Adapt to new, possibly empty, list: $vc_ignore.
82645         bootstrap: generate more ignorable names
82646         * build-aux/bootstrap (slurp): When generating ignorable names,
82647         also map .sin to .sed, .gperf to .c, and .y to .c.
82649 2007-09-03  Jim Meyering  <jim@meyering.net>
82651         * build-aux/git-version-gen: New file, from coreutils.  For details, see
82652         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
82654 2007-09-02  Bruno Haible  <bruno@clisp.org>
82656         Fix mis-recognition of 'mcs' on QNX 6.
82657         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
82658         output contains the string "Mono".
82659         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
82660         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
82662 2007-09-01  Bruno Haible  <bruno@clisp.org>
82664         Fix collision between uniwidth/* and linebreak modules.
82665         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
82666         u32_width): Remove declarations.
82667         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
82668         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
82669         streq3, streq2, streq1, streq0): Remove functions.
82670         (STREQ): Remove macro.
82671         (is_cjk_encoding): Remove function.
82672         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
82673         (uc_width, u8_width, u16_width, u32_width): Remove functions.
82674         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
82675         * NEWS: Document the change.
82677 2007-09-01  Bruno Haible  <bruno@clisp.org>
82679         * lib/streq.h: Add double-inclusion guard.
82681 2007-09-01  Karl Berry  <karl@gnu.org>
82683         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
82685 2007-08-28  Jim Meyering  <jim@meyering.net>
82687         Rename mreadlink_with_size to areadlink_with_size.
82688         * NEWS: Document the change.
82689         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
82690         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
82691         * lib/mreadlink.h: Rename this to...
82692         * lib/areadlink.h: ...this.
82693         * modules/mreadlink-with-size: Rename this to...
82694         * modules/areadlink-with-size: ...this.
82695         * lib/canonicalize.c: Reflect the renaming.
82696         * modules/canonicalize: Likewise.
82698 2007-08-26  Bruno Haible  <bruno@clisp.org>
82700         * gnulib-tool (func_import): When deciding which files to remove,
82701         consider also dangling symbolic links.
82702         Reported by Eric Blake.
82704 2007-08-26  Bruno Haible  <bruno@clisp.org>
82706         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
82708 2007-08-23  Simon Josefsson  <simon@josefsson.org>
82710         * lib/readline.c: Don't include getline.h, the prototype is now
82711         found in stdio.h.
82713 2007-08-23  Jim Meyering  <jim@meyering.net>
82715         Getdelim touchup.
82716         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
82717         around the funlockfile call, since funlockfile never sets errno.
82718         Don't set errno upon failed realloc.
82720 2007-08-22  Eric Blake  <ebb9@byu.net>
82722         Getline touchups.
82723         * lib/getdelim.c (getdelim): Revert regression that required *n to
82724         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
82725         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
82726         getdelim, rather than whether implementation is missing.
82727         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
82728         * lib/stdio_.h (getline): Also declare if replacement is
82729         required.
82730         * doc/functions/getdelim.texi: New file.
82731         * doc/functions/getline.texi: Likewise.
82732         * doc/gnulib.texi (Function Substitutes): Add new files.
82733         Reported by Bruno Haible.
82735 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
82737         * users.txt: Add Guile.
82739 2007-08-22  Eric Blake  <ebb9@byu.net>
82741         * tests/test-getdelim.c (main): Use remove, not unlink.
82742         * tests/test-getline.c (main): Likewise.
82744         Move getline and getdelim into stdio.h, per POSIX 200x.
82745         * modules/getline (Files): Remove getline.h.
82746         (Depends-on): Add stdio.
82747         (configure.ac): Add module indicator.
82748         * modules/getdelim (Files): Remove getdelim.h.
82749         (Depends-on): Add stdio.
82750         (configure.ac): Add module indicator.
82751         * modules/stdio (Makefile.am): Work with new indicators.
82752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
82753         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
82754         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82755         * lib/getdelim.h: Delete.
82756         * lib/getline.h: Delete.
82757         * lib/stdio_.h (getdelim, getline): Declare.
82758         * modules/getdelim-tests: New module.
82759         * modules/getline-tests: Likewise.
82760         * tests/test-getdelim.c: New file.
82761         * tests/test-getline.c: Likewise.
82762         * NEWS: Document the change.
82763         * lib/getline.c: Update choice of header.
82764         * lib/csharpcomp.c: Likewise.
82765         * lib/getpass.c: Likewise.
82766         * lib/javacomp.c: Likewise.
82767         * lib/javaversion.c: Likewise.
82768         * lib/yesno.c: Likewise.
82769         * lib/getdelim.c: Likewise.
82770         (getdelim): Set errno on failure, and avoid memory leak.
82772 2007-08-19  Bruno Haible  <bruno@clisp.org>
82774         * modules/closein (Depends-on): Add freadahead.
82775         * lib/closein.c: Include freadahead.h.
82776         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
82777         is zero.
82779 2007-08-19  Bruno Haible  <bruno@clisp.org>
82781         * modules/freadahead-tests: New file.
82782         * tests/test-freadahead.sh: New file.
82783         * tests/test-freadahead.c: New file.
82785         * modules/freadahead: New file.
82786         * lib/freadahead.h: New file.
82787         * lib/freadahead.c: New file.
82788         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
82789         fbufmode, fpurge, freadable, fwritable.
82791 2007-08-19  Eric Blake  <ebb9@byu.net>
82793         Test yesno in combination with closein.
82794         * lib/yesno.c (yesno): Document use of stdin.
82795         * modules/yesno-tests (Files): New module.
82796         * tests/test-yesno.c (main): New file.
82797         * tests/test-yesno.sh: Likewise.
82799 2007-08-19  Bruno Haible  <bruno@clisp.org>
82801         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
82802         * lib/fseeko.c (rpl_fseeko): Likewise.
82803         * lib/fseterr.c (fseterr): Likewise.
82805 2007-08-19  Bruno Haible  <bruno@clisp.org>
82807         * tests/test-lseek.c (main): Disable a test for BeOS.
82808         * doc/functions/lseek.texi: Document the BeOS bug.
82810 2007-08-19  Bruno Haible  <bruno@clisp.org>
82811             Eric Blake  <ebb9@byu.net>
82813         * lib/lseek.c: Include <sys/stat.h>.
82814         (rpl_lseek): Add workaround code also for Unix platforms.
82815         Needed for BeOS.
82816         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
82817         * doc/functions/lseek.texi: Document BeOS definiency.
82819 2007-08-18  Bruno Haible  <bruno@clisp.org>
82821         * modules/fstrcmp-tests: New file.
82822         * tests/test-fstrcmp.c: New file.
82824 2007-08-18  Bruno Haible  <bruno@clisp.org>
82826         * modules/fstrcmp: New file, from GNU gettext with modifications.
82827         * lib/fstrcmp.h: New file, from GNU gettext.
82828         * lib/fstrcmp.c: New file, from GNU gettext.
82829         * MODULES.html.sh (String handling): Add fstrcmp.
82831 2007-08-18  Bruno Haible  <bruno@clisp.org>
82833         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
82834         'bool'.
82835         (diag, compareseq): Remove const from the ctxt argument.
82836         (USE_HEURISTIC): Undefine at the end.
82838 2007-08-18  Jim Meyering  <jim@meyering.net>
82840         New file: lib/idcache.h
82841         * NEWS: Mention the addition.
82842         * modules/idcache (Files): Add lib/idcache.h
82843         * lib/idcache.c: Include "idcache.h".
82844         Don't include <sys/types.h>.
82845         Add a FIXME comment.
82846         Move file-scoped "static" declarations to the top.
82847         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
82849 2007-08-17  Bruno Haible  <bruno@clisp.org>
82850         and Paul Eggert  <eggert@cs.ucla.edu>
82852         * MODULES.html.sh: Add diffseq.
82853         * modules/diffseq: New file.
82854         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
82855         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
82857 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82859         Import changes from coreutils for bootstrap script.
82861         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
82863         * build-aux/bootstrap (slurp): Work even in environments where
82864         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
82865         current code does not slurp files whose names start with ".", and
82866         this looks like it might be a troublesome area.
82868         2007-07-11  Jim Meyering  <jim@meyering.net>
82870         If there's a GPL vN copyright comment, require that N == 3.
82872         2007-07-08  Jim Meyering  <jim@meyering.net>
82874         Run the coreutils-specific code only if tests/Makefile.am.in exists.
82875         * build-aux/bootstrap (mam_template): Move definition out of loop.
82877         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
82879         * build-aux/bootstrap (symlink_to_dir): Rename function from
82880         symlink_to_gnulib.  Add a directory parameter.  Update all
82881         callers.
82882         (cp_mark_as_generated): Also check for -- and link to -- files in
82883         gl/.
82885         2007-07-08  Jim Meyering  <jim@meyering.net>
82887         Adapt to deeper hierarchy in gnulib.
82888         * build-aux/bootstrap (symlink_to_dir): If the destination
82889         directory doesn't exist, create it. This is required at least for
82890         "lib/uniwidth/cjk.h".
82892         2007-05-15  Jim Meyering  <jim@meyering.net>
82894         * build-aux/bootstrap: Now that generated Makefile.am files
82895         are no longer under version control, they must be created at
82896         bootstrap time.
82898 2007-08-14  Ben Pfaff  <blp@gnu.org>
82900         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
82902 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
82904         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
82905         given the changes below.
82906         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
82907         even on hosts that have padding bits beyond the supported 64.
82909 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
82911         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
82912         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
82913         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
82914         depends on it.
82915         (xstrtol_error): Remove.
82916         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
82917         but with a different signature.
82918         (ATTRIBUTE_NORETURN, __attribute__): New macros.
82919         * lib/xstrtol-error.c: Include exitfail.h.
82920         (xstrtol_fatal): New function, with a different signature from the
82921         old xstrtol_error, so that the caller need not worry about passing
82922         in an exit status, or about storage management of the option argument.
82923         (xstrtol_error): Now a static function.  Redo signature to
82924         implement xstrtol_fatal.  Output the correct number of hyphens in
82925         front of the option so that the caller need not worry about
82926         storage management.
82927         (N_): New macro.
82928         (_): Remove; not used now.
82929         * modules/xstrtol: Depend on getopt.
82930         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
82931         of old STRTOL_FATAL_ERROR macro.
82932         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
82933         of test program.
82934         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
82935         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
82937 2007-08-08  Eric Blake  <ebb9@byu.net>
82939         * lib/xstrtol-error.c: Add missing include.
82941         Move xstrtol messages into gnulib domain, when --pobase is used.
82942         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
82943         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
82944         * modules/xstrtol (Files): Distribute new file.
82945         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
82946         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
82947         * tests/test-xstrtol.c: ...into new file.
82948         * tests/test-xstrtoul.c: Also test xstrtoul.
82949         * tests/test-xstrtoimax.c: Also test xstrtoimax.
82950         * tests/test-xstrtoumax.c: Also test xstrtoumax.
82951         * tests/test-xstrtol.sh: Drive the tests.
82952         * tests/test-xstrtoimax.sh: Likewise.
82953         * tests/test-xstrtoumax.sh: Likewise.
82954         * modules/xstrtol-tests: New module.
82955         * modules/xstrtoimax-tests: Likewise.
82956         * modules/xstrtoumax-tests: Likewise.
82958 2007-08-08  Jim Meyering  <jim@meyering.net>
82960         New function: mfile_name_concat.
82961         * lib/filenamecat.c (mfile_name_concat): New function, just like
82962         file_name_concat, but return NULL upon failure rather than exiting
82963         with a diagnostic.
82964         * lib/filenamecat.h: Declare it.
82966 2007-08-07  Bruno Haible  <bruno@clisp.org>
82968         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
82969         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
82970         warning from gcc.
82971         Reported by Eric Blake.
82973 2007-08-07  Simon Josefsson  <simon@josefsson.org>
82975         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
82976         * modules/crypto/arcfour (License): Likewise.
82977         * modules/crypto/des-tests (License): Likewise.
82978         * modules/crypto/gc-arctwo-tests (License): Likewise.
82979         * modules/crypto/gc-des-tests (License): Likewise.
82980         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
82981         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
82982         * modules/crypto/gc-md2-tests (License): Likewise.
82983         * modules/crypto/gc-md4-tests (License): Likewise.
82984         * modules/crypto/gc-md5-tests (License): Likewise.
82985         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
82986         * modules/crypto/gc-rijndael-tests (License): Likewise.
82987         * modules/crypto/gc-sha1-tests (License): Likewise.
82988         * modules/crypto/gc-tests (License): Likewise.
82989         * modules/crypto/hmac-md5 (License): Likewise.
82990         * modules/crypto/hmac-sha1 (License): Likewise.
82991         * modules/crypto/md2-tests (License): Likewise.
82992         * modules/crypto/md4-tests (License): Likewise.
82993         * modules/crypto/md5 (License): Likewise.
82994         * modules/crypto/rijndael (License): Likewise.
82995         * modules/crypto/sha1 (License): Likewise.
82996         * modules/memxor (License): Likewise.
82998 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82999         and Bruno Haible  <bruno@clisp.org>
83001         * NEWS: Describe interface changes to human, xstrtol.
83002         * lib/human.h: Include <xstrtol.h>.
83003         (human_options): Return enum strtol_error, not int.  Remove
83004         bool arg; take int * instead.
83005         * lib/human.c: Don't include "gettext.h".
83006         (_): Remove; no longer used.
83007         Don't include <xstrtol.h>, since human.h does it.
83008         (human_options): Adjust to abovementioned interface changes.
83009         Do not report error to stderr; that's now the caller's
83010         responsibility.
83011         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
83012         interface change.
83013         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
83014         Str, Argument_type_string.  All uses changed.  Put " argument"
83015         in diagnostics to make them clearer.  Change wording of suffix
83016         message for clarity.
83017         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
83018         Argument_type_string.
83019         (STRTOL_FATAL_WARN): Remove; no longer used.
83020         * modules/human (Depends-on): Remove gettext-h.
83022 2007-08-06  Simon Josefsson  <simon@josefsson.org>
83024         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
83026 2007-07-31  Bruno Haible  <bruno@clisp.org>
83028         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
83029         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
83030         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
83032 2007-07-31  Bruno Haible  <bruno@clisp.org>
83034         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
83035         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
83037 2007-07-30  Bruno Haible  <bruno@clisp.org>
83039         * modules/base64 (License): Use the synonymous term "LGPLv2+".
83040         * modules/c-ctype (License): Likewise.
83041         * modules/c-strcase (License): Likewise.
83042         * modules/check-version (License): Likewise.
83043         * modules/iconv (License): Likewise.
83044         * modules/iconv_open (License): Likewise.
83045         * modules/read-file (License): Likewise.
83046         * modules/striconv (License): Likewise.
83047         * modules/strverscmp (License): Likewise.
83048         * modules/vasprintf (License): Likewise.
83049         * modules/crypto/des (License): Likewise.
83050         * modules/crypto/gc (License): Likewise.
83051         * modules/crypto/gc-arcfour (License): Likewise.
83052         * modules/crypto/gc-arctwo (License): Likewise.
83053         * modules/crypto/gc-des (License): Likewise.
83054         * modules/crypto/gc-hmac-md5 (License): Likewise.
83055         * modules/crypto/gc-hmac-sha1 (License): Likewise.
83056         * modules/crypto/gc-md2 (License): Likewise.
83057         * modules/crypto/gc-md4 (License): Likewise.
83058         * modules/crypto/gc-md5 (License): Likewise.
83059         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
83060         * modules/crypto/gc-random (License): Likewise.
83061         * modules/crypto/gc-rijndael (License): Likewise.
83062         * modules/crypto/gc-sha1 (License): Likewise.
83063         * modules/crypto/md2 (License): Likewise.
83064         * modules/crypto/md4 (License): Likewise.
83066 2007-07-30  Jim Meyering  <jim@meyering.net>
83068         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
83069         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
83070         it has valid stat data.  This bug would cause du not to count the
83071         sizes of inaccessible directories.
83072         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
83073         in <http://bugzilla.redhat.com/250077>.
83075 2007-07-25  Peter O'Gorman  <peter@pogma.com>
83076             Bruno Haible  <bruno@clisp.org>
83078         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
83079         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
83080         #include_next, gives a diagnostic about it, but reports no error in
83081         the exit code.
83082         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83084 2007-07-24  Ben Pfaff  <blp@gnu.org>
83086         Improve name: "count-one-bits" is better than "popcount".
83087         * MODULES.html.sh: Update name.
83088         * lib/popcount.h: Renamed lib/count-one-bits.h.
83089         (popcount): Renamed count_one_bits.
83090         (popcountl): Renamed count_one_bits_l.
83091         (popcountll): Renamed count_one_bits_ll.
83092         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
83093         * modules/popcount: Renamed module/count-one-bits.
83094         * modules/popcount-tests: Renamed module/count-one-bits-tests.
83095         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
83097 2007-07-23  Ben Pfaff  <blp@gnu.org>
83099         * lib/popcount.h (popcount32): Reduce size of constants, to allow
83100         better code generation, and add U to large constants to avoid
83101         warnings, in non-GCC case.
83102         Suggested by Bruno Haible.
83104 2007-07-23  Ben Pfaff  <blp@gnu.org>
83106         * lib/popcount.h: Use verify_true instead of if...abort.
83107         * modules/popcount: Depend on verify module.
83108         Suggested by Jim Meyering.
83110 2007-07-23  Bruno Haible  <bruno@clisp.org>
83112         * gnulib-tool (func_import): Create a .cvsignore file also when the
83113         directory is not yet in CVS but the toplevel directory is. When
83114         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
83115         Reported by Karl Berry.
83117 2007-07-22  Ben Pfaff  <blp@gnu.org>
83119         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
83120         case.
83121         Suggested by Eric Blake.
83123 2007-07-22  Ben Pfaff  <blp@gnu.org>
83125         New module: popcount.
83126         * MODULES.html.sh: Add popcount.
83127         * modules/popcount: New file.
83128         * modules/popcount-tests: New file.
83129         * tests/test-popcount.c: New file.
83130         * lib/popcount.h: New file.
83131         * m4/popcount.m4: New file.
83133 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
83135         * build-aux/announce-gen: Update to GPLv3.
83137         * build-aux/config.guess: Update from config.
83139 2007-07-21  Bruno Haible  <bruno@clisp.org>
83141         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
83142         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
83144 2007-07-20  Jim Meyering  <jim@meyering.net>
83146         * check-module: Diagnose a self-dependency.
83148 2007-07-19  Bruno Haible  <bruno@clisp.org>
83150         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
83151         empty.
83152         Reported by Eric Blake.
83154 2007-07-18  Bruno Haible  <bruno@clisp.org>
83156         * gnulib-tool: New options --po-base, --po-domain.
83157         (func_usage): Document them.
83158         (pobase, po_domain): New variables.
83159         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
83160         DEFAULT_TEXT_DOMAIN.
83161         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
83162         (func_import): Consider pobase and po_domain. Create a po/ directory.
83163         (func_create_testdir): Set pobase and po_domain to empty.
83164         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
83165         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
83167 2007-07-18  Bruno Haible  <bruno@clisp.org>
83169         * gnulib-tool (func_get_automake_snippet): Synthesize also an
83170         EXTRA_DIST augmentation for files in build-aux/.
83172 2007-07-16  Bruno Haible  <bruno@clisp.org>
83174         * modules/lseek (License): Use the synonymous term "LGPLv2+".
83175         * modules/getdelim (License): Likewise.
83177 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83179         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
83180         * modules/d-type (License): Likewise.
83181         * modules/extensions (License): Likewise.
83182         * modules/fnmatch (License): Likewise.
83183         * modules/fseeko (License): Likewise.
83184         * modules/getaddrinfo (License): Likewise.
83185         * modules/getline (License): Likewise.
83186         * modules/getlogin_r (License): Likewise.
83187         * modules/getpass (License): Likewise.
83188         * modules/gettimeofday (License): Likewise.
83189         * modules/glob (License): Likewise.
83190         * modules/inet_ntop (License): Likewise.
83191         * modules/malloc (License): Likewise.
83192         * modules/malloca (License): Likewise.
83193         * modules/memmem (License): Likewise.
83194         * modules/mempcpy (License): Likewise.
83195         * modules/memset (License): Likewise.
83196         * modules/minmax (License): Likewise.
83197         * modules/mktime (License): Likewise.
83198         * modules/netinet_in (License): Likewise.
83199         * modules/pathmax (License): Likewise.
83200         * modules/poll (License): Likewise.
83201         * modules/regex (License): Likewise.
83202         * modules/snprintf (License): Likewise.
83203         * modules/stdbool (License): Likewise.
83204         * modules/stdint (License): Likewise.
83205         * modules/stdio (License): Likewise.
83206         * modules/strcase (License): Likewise.
83207         * modules/strcasestr (License): Likewise.
83208         * modules/strdup (License): Likewise.
83209         * modules/string (License): Likewise.
83210         * modules/strndup (License): Likewise.
83211         * modules/strnlen (License): Likewise.
83212         * modules/strpbrk (License): Likewise.
83213         * modules/strptime (License): Likewise.
83214         * modules/strsep (License): Likewise.
83215         * modules/sys_select (License): Likewise.
83216         * modules/sys_socket (License): Likewise.
83217         * modules/sys_stat (License): Likewise.
83218         * modules/sys_time (License): Likewise.
83219         * modules/time (License): Likewise.
83220         * modules/time_r (License): Likewise.
83221         * modules/timegm (License): Likewise.
83222         * modules/unistd (License): Likewise.
83223         * modules/vsnprintf (License): Likewise.
83224         * modules/wctype (License): Likewise.
83226 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83228         * modules/argz (License): LGPLv2+.
83230 2007-07-15  Karl Berry  <karl@gnu.org>
83232         * doc/gnulib.texi: revise node structure per new fdl.texi.
83234 2007-07-14  Bruno Haible  <bruno@clisp.org>
83236         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
83237         the output file.
83238         * lib/uniname/uninames.h: Regenerated.
83240 2007-07-14  Karl Berry  <karl@gnu.org>
83242         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
83243         omitting sectioning and index commands.
83245 2007-07-13  Bruno Haible  <bruno@clisp.org>
83247         New gnulib-tool option --more-symlinks.
83248         * gnulib-tool (func_usage): Document --more-symlinks.
83249         (do_copyrights): New variable.
83250         Recognize option --more-symlinks.
83251         (func_import): Don't add a copyright notice transform to
83252         sed_transform_lib_file if do_copyrights is empty.
83254 2007-07-13  Bruno Haible  <bruno@clisp.org>
83256         * lib/vasnprintf.c (decimal_point_char): Define also if
83257         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
83258         && !NEED_PRINTF_DIRECTIVE_A.
83259         Reported by Clemens Koller <clemens.koller@anagramm.de> via
83260         Gary V. Vaughan <gary@gnu.org>.
83262 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
83264         * lib/inttypes_.h: Undo previous change, since it was fixed
83265         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
83267 2007-07-13  Bruno Haible  <bruno@clisp.org>
83269         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
83270         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
83272 2007-07-13  Jim Meyering  <jim@meyering.net>
83274         df: Don't fail for Tru64's "file-on-file mount".
83275         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
83276         so we fall through and use statfs instead.  Details here:
83277         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
83278         Reported by Albert Chin.
83280 2007-07-13  Bruno Haible  <bruno@clisp.org>
83282         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
83283         * modules/configmake (License): Likewise.
83284         * modules/gettext (License): Likewise.
83285         * modules/gettext-h (License): Likewise.
83286         * modules/include_next (License): Likewise.
83287         * modules/link-warning (License): Likewise.
83288         * modules/localcharset (License): Likewise.
83289         * modules/localename (License): Likewise.
83290         * modules/lock (License): Likewise.
83291         * modules/relocatable-lib-lgpl (License): Likewise.
83292         * modules/size_max (License): Likewise.
83293         * modules/vasnprintf (License): Likewise.
83294         * modules/wchar (License): Likewise.
83295         * modules/xsize (License): Likewise.
83297 2007-07-13  Bruno Haible  <bruno@clisp.org>
83299         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
83300         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
83302 2007-07-12  Bruno Haible  <bruno@clisp.org>
83304         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
83305         in the modules files.
83307 2007-07-11  Karl Berry  <karl@gnu.org>
83309         * MODULES.html.sh (func_module): use
83310          sed -e '\|^'"${includefile}"'$|d'
83311          instead of /.../d, to avoid errors on $includefile's containing /.
83313 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83315         * gnulib-tool (func_import): Avoid duplication of --avoid
83316         statements
83317         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
83318         names to `_' in variable names.
83320 2007-07-10  Eric Blake  <ebb9@byu.net>
83322         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
83323         * NEWS: Document this change.
83325 2007-07-08  Bruno Haible  <bruno@clisp.org>
83327         Update to Unicode 5.0.
83328         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
83329         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
83330         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
83331         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
83332         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
83333         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
83334         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
83335         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
83336         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
83337         U+10A3F, U+1D242..U+1D244.
83338         (nonspacing_table_ind): Update.
83339         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
83340         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
83342 2007-07-08  Bruno Haible  <bruno@clisp.org>
83344         Update to Unicode 5.0.
83345         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
83346         code transform. Extend the name index field of unicode_name_to_code and
83347         unicode_code_to_name from 16 to 24 bits.
83348         * lib/uniname/uniname.c (unicode_character_name,
83349         unicode_name_character): Add the range 0x12xxx to the code transform.
83350         * lib/uniname/uninames.h: Regenerated.
83351         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
83353 2007-07-07  Bruno Haible  <bruno@clisp.org>
83355         * modules/wcwidth-tests: New file.
83356         * tests/test-wcwidth.c: New file.
83358         Work around MacOS X wcwidth() bug.
83359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
83360         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
83361         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
83362         original wcwidth in non-UTF-8 locales.
83363         * modules/wcwidth (Depends-on): Add localcharset, streq,
83364         uniwidth/width.
83365         * doc/functions/wcwidth.texi: Update.
83367 2007-07-07  Bruno Haible  <bruno@clisp.org>
83369         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
83370         (wcwidth): New declaration.
83371         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
83372         macros.
83373         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
83374         here. Prepare for creating <wchar.h> unconditionally.
83375         * modules/wchar (Depends-on): Add link-warning.
83376         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
83377         REPLACE_WCWIDTH, and GL_LINK_WARNING.
83378         * lib/wcwidth.h: Remove file.
83379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
83380         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
83381         * modules/wcwidth (Files): Remove lib/wcwidth.h.
83382         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
83383         (Include): Replace wcwidth.h with <wchar.h>.
83384         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
83385         * lib/mbchar.h: Don't include wcwidth.h.
83386         * lib/mbswidth.c: Likewise.
83387         * NEWS: Mention the change.
83389 2007-07-07  Bruno Haible  <bruno@clisp.org>
83391         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
83392         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
83393         definition with an external declaration.
83394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
83395         defined as a function. Remove AC_C_INLINE requirement.
83396         * modules/wcwidth (Files): Add lib/wcwidth.c.
83397         (Makefile.am): Remove redundant statement.
83399 2007-07-07  Bruno Haible  <bruno@clisp.org>
83401         * MODULES.html.sh (Unicode string functions): Add the new modules.
83403         * tests/uniwidth/test-u32-strwidth.c: New file.
83404         * modules/uniwidth/u32-strwidth-tests: New file.
83406         * lib/uniwidth/u32-strwidth.c: New file.
83407         * modules/uniwidth/u32-strwidth: New file.
83409         * tests/uniwidth/test-u16-strwidth.c: New file.
83410         * modules/uniwidth/u16-strwidth-tests: New file.
83412         * lib/uniwidth/u16-strwidth.c: New file.
83413         * modules/uniwidth/u16-strwidth: New file.
83415         * tests/uniwidth/test-u8-strwidth.c: New file.
83416         * modules/uniwidth/u8-strwidth-tests: New file.
83418         * lib/uniwidth/u8-strwidth.c: New file.
83419         * modules/uniwidth/u8-strwidth: New file.
83421         * tests/uniwidth/test-u32-width.c: New file.
83422         * modules/uniwidth/u32-width-tests: New file.
83424         * lib/uniwidth/u32-width.c: New file.
83425         * modules/uniwidth/u32-width: New file.
83427         * tests/uniwidth/test-u16-width.c: New file.
83428         * modules/uniwidth/u16-width-tests: New file.
83430         * lib/uniwidth/u16-width.c: New file.
83431         * modules/uniwidth/u16-width: New file.
83433         * tests/uniwidth/test-u8-width.c: New file.
83434         * modules/uniwidth/u8-width-tests: New file.
83436         * lib/uniwidth/u8-width.c: New file.
83437         * modules/uniwidth/u8-width: New file.
83439         * tests/uniwidth/test-uc_width.c: New file.
83440         * modules/uniwidth/width-tests: New file.
83442         * lib/uniwidth/width.c: New file, from GNU libiconv.
83443         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
83444         * modules/uniwidth/width: New file.
83446         * lib/uniwidth.h: New file, from GNU libiconv.
83447         * modules/uniwidth/base: New file.
83449 2007-07-07  Bruno Haible  <bruno@clisp.org>
83451         * lib/uniname.h: New file, from GNU gettext.
83452         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
83453         * lib/uniname/uninames.h: New file, from GNU gettext.
83454         * lib/uniname/uniname.c: New file, from GNU gettext.
83455         * tests/uniname/test-uninames.sh: New file.
83456         * tests/uniname/test-uninames.c: New file, from GNU gettext.
83457         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
83458         * modules/uniname/base: New file.
83459         * modules/uniname/uniname: New file.
83460         * modules/uniname/uniname-tests: New file.
83461         * MODULES.html.sh (Unicode string functions): Add the new modules.
83463 2007-07-06  Bruno Haible  <bruno@clisp.org>
83465         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
83467 2007-07-06  Bruno Haible  <bruno@clisp.org>
83469         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
83470         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
83471         includes <cygwin/sys_time.h> which includes <sys/select.h> which
83472         include <sys/time.h>.
83473         Reported by Eric Blake.
83475 2007-07-06  Eric Blake  <ebb9@byu.net>
83477         Fix testing canonicalize on cygwin.
83478         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83479         Revert patch from 2007-06-19.
83480         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
83481         canonicalize module is also in use.
83482         * tests/test-canonicalize.c: New file.
83483         * tests/test-canonicalize.sh: Likewise.
83484         * modules/canonicalize-tests: Likewise.
83486 2007-07-06  Jim Meyering  <jim@meyering.net>
83488         * lib/getugroups.c (getugroups): Detect getgrent failure.
83489         Adjust comment to reflect reality: this function may return -1.
83491 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
83493         * build-aux/bootstrap (TP_URL,get_translations): Update to use
83494         the new TP address.
83495         (usage): Fix typo
83496         (gnulib_mk): New variable.
83498 2007-07-05  Jim Meyering  <jim@meyering.net>
83500         Don't let endgrent clobber errno, no matter how improbable.
83501         * lib/getugroups.c (getugroups): Save and restore errno around
83502         endgrent call.
83504         Close the group DB even when failing with 2^31 or more members.
83505         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
83507 2007-07-04  Jim Meyering  <jim@meyering.net>
83509         * lib/getugroups.h: New file.
83510         * lib/getugroups.c: Include "getugroups.h".
83511         Remove uses of "register" keyword.
83512         Move local variable, "cp", down into scope where used.
83513         Give "username" parameter the "const" attribute.
83514         * modules/getugroups (Files): Add lib/getugroups.h
83516 2007-07-04  Karl Berry  <karl@gnu.org>
83518         * MODULES.html.sh (func_all_modules): Complete rename of
83519         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
83521 2007-07-02  Bruno Haible  <bruno@clisp.org>
83523         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
83524         mode, when inttypes.h comes from gnulib.
83525         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
83527 2007-07-02  Simon Josefsson  <simon@josefsson.org>
83529         * NEWS: Mention lgpl module name change.
83531         * modules/lgpl-2.1: Renamed from lgpl.
83533         * NEWS: Mention gpl module name change.
83535         * modules/gpl-3.0: New file, based on gpl-2.0.
83537         * modules/gpl-2.0: Renamed from gpl.
83539         * modules/gpl: Fix filename, doc/gpl.texi is now found at
83540         doc/gpl-2.0.texi.
83542 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
83544         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
83545         #define __STDC_LIMIT_MACROS temporarily while including
83546         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
83547         Problem reported by Joel E. Denny in
83548         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
83550 2007-07-01  Bruno Haible  <bruno@clisp.org>
83552         * lib/unistdio.h: New file.
83553         * lib/unistdio/u-asnprintf.h: New file.
83554         * lib/unistdio/u-asprintf.h: New file.
83555         * lib/unistdio/u-printf-args.c: New file.
83556         * lib/unistdio/u-printf-args.h: New file.
83557         * lib/unistdio/u-printf-parse.h: New file.
83558         * lib/unistdio/u-snprintf.h: New file.
83559         * lib/unistdio/u-sprintf.h: New file.
83560         * lib/unistdio/u-vasprintf.h: New file.
83561         * lib/unistdio/u-vsnprintf.h: New file.
83562         * lib/unistdio/u-vsprintf.h: New file.
83563         * lib/unistdio/ulc-asnprintf.c: New file.
83564         * lib/unistdio/ulc-asprintf.c: New file.
83565         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
83566         * lib/unistdio/ulc-printf-parse.c: New file.
83567         * lib/unistdio/ulc-snprintf.c: New file.
83568         * lib/unistdio/ulc-sprintf.c: New file.
83569         * lib/unistdio/ulc-vasnprintf.c: New file.
83570         * lib/unistdio/ulc-vasprintf.c: New file.
83571         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
83572         * lib/unistdio/ulc-vsnprintf.c: New file.
83573         * lib/unistdio/ulc-vsprintf.c: New file.
83574         * lib/unistdio/u8-asnprintf.c: New file.
83575         * lib/unistdio/u8-asprintf.c: New file.
83576         * lib/unistdio/u8-printf-parse.c: New file.
83577         * lib/unistdio/u8-snprintf.c: New file.
83578         * lib/unistdio/u8-sprintf.c: New file.
83579         * lib/unistdio/u8-vasnprintf.c: New file.
83580         * lib/unistdio/u8-vasprintf.c: New file.
83581         * lib/unistdio/u8-vsnprintf.c: New file.
83582         * lib/unistdio/u8-vsprintf.c: New file.
83583         * lib/unistdio/u8-u8-asnprintf.c: New file.
83584         * lib/unistdio/u8-u8-asprintf.c: New file.
83585         * lib/unistdio/u8-u8-snprintf.c: New file.
83586         * lib/unistdio/u8-u8-sprintf.c: New file.
83587         * lib/unistdio/u8-u8-vasnprintf.c: New file.
83588         * lib/unistdio/u8-u8-vasprintf.c: New file.
83589         * lib/unistdio/u8-u8-vsnprintf.c: New file.
83590         * lib/unistdio/u8-u8-vsprintf.c: New file.
83591         * lib/unistdio/u16-asnprintf.c: New file.
83592         * lib/unistdio/u16-asprintf.c: New file.
83593         * lib/unistdio/u16-printf-parse.c: New file.
83594         * lib/unistdio/u16-snprintf.c: New file.
83595         * lib/unistdio/u16-sprintf.c: New file.
83596         * lib/unistdio/u16-vasnprintf.c: New file.
83597         * lib/unistdio/u16-vasprintf.c: New file.
83598         * lib/unistdio/u16-vsnprintf.c: New file.
83599         * lib/unistdio/u16-vsprintf.c: New file.
83600         * lib/unistdio/u16-u16-asnprintf.c: New file.
83601         * lib/unistdio/u16-u16-asprintf.c: New file.
83602         * lib/unistdio/u16-u16-snprintf.c: New file.
83603         * lib/unistdio/u16-u16-sprintf.c: New file.
83604         * lib/unistdio/u16-u16-vasnprintf.c: New file.
83605         * lib/unistdio/u16-u16-vasprintf.c: New file.
83606         * lib/unistdio/u16-u16-vsnprintf.c: New file.
83607         * lib/unistdio/u16-u16-vsprintf.c: New file.
83608         * lib/unistdio/u32-asnprintf.c: New file.
83609         * lib/unistdio/u32-asprintf.c: New file.
83610         * lib/unistdio/u32-printf-parse.c: New file.
83611         * lib/unistdio/u32-snprintf.c: New file.
83612         * lib/unistdio/u32-sprintf.c: New file.
83613         * lib/unistdio/u32-vasnprintf.c: New file.
83614         * lib/unistdio/u32-vasprintf.c: New file.
83615         * lib/unistdio/u32-vsnprintf.c: New file.
83616         * lib/unistdio/u32-vsprintf.c: New file.
83617         * lib/unistdio/u32-u32-asnprintf.c: New file.
83618         * lib/unistdio/u32-u32-asprintf.c: New file.
83619         * lib/unistdio/u32-u32-snprintf.c: New file.
83620         * lib/unistdio/u32-u32-sprintf.c: New file.
83621         * lib/unistdio/u32-u32-vasnprintf.c: New file.
83622         * lib/unistdio/u32-u32-vasprintf.c: New file.
83623         * lib/unistdio/u32-u32-vsnprintf.c: New file.
83624         * lib/unistdio/u32-u32-vsprintf.c: New file.
83625         * tests/unistdio/test-ulc-asnprintf1.c: New file.
83626         * tests/unistdio/test-ulc-asnprintf1.h: New file.
83627         * tests/unistdio/test-ulc-printf1.h: New file.
83628         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
83629         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
83630         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
83631         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
83632         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
83633         * tests/unistdio/test-ulc-vasprintf1.c: New file.
83634         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
83635         * tests/unistdio/test-ulc-vsprintf1.c: New file.
83636         * tests/unistdio/test-u8-asnprintf1.c: New file.
83637         * tests/unistdio/test-u8-asnprintf1.h: New file.
83638         * tests/unistdio/test-u8-printf1.h: New file.
83639         * tests/unistdio/test-u8-vasnprintf1.c: New file.
83640         * tests/unistdio/test-u8-vasnprintf2.c: New file.
83641         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
83642         * tests/unistdio/test-u8-vasnprintf3.c: New file.
83643         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
83644         * tests/unistdio/test-u8-vasprintf1.c: New file.
83645         * tests/unistdio/test-u8-vsnprintf1.c: New file.
83646         * tests/unistdio/test-u8-vsprintf1.c: New file.
83647         * tests/unistdio/test-u16-asnprintf1.c: New file.
83648         * tests/unistdio/test-u16-asnprintf1.h: New file.
83649         * tests/unistdio/test-u16-printf1.h: New file.
83650         * tests/unistdio/test-u16-vasnprintf1.c: New file.
83651         * tests/unistdio/test-u16-vasnprintf2.c: New file.
83652         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
83653         * tests/unistdio/test-u16-vasnprintf3.c: New file.
83654         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
83655         * tests/unistdio/test-u16-vasprintf1.c: New file.
83656         * tests/unistdio/test-u16-vsnprintf1.c: New file.
83657         * tests/unistdio/test-u16-vsprintf1.c: New file.
83658         * tests/unistdio/test-u32-asnprintf1.c: New file.
83659         * tests/unistdio/test-u32-asnprintf1.h: New file.
83660         * tests/unistdio/test-u32-printf1.h: New file.
83661         * tests/unistdio/test-u32-vasnprintf1.c: New file.
83662         * tests/unistdio/test-u32-vasnprintf2.c: New file.
83663         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
83664         * tests/unistdio/test-u32-vasnprintf3.c: New file.
83665         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
83666         * tests/unistdio/test-u32-vasprintf1.c: New file.
83667         * tests/unistdio/test-u32-vsnprintf1.c: New file.
83668         * tests/unistdio/test-u32-vsprintf1.c: New file.
83669         * modules/unistdio/base: New file.
83670         * modules/unistdio/u-printf-args: New file.
83671         * modules/unistdio/ulc-asnprintf: New file.
83672         * modules/unistdio/ulc-asprintf: New file.
83673         * modules/unistdio/ulc-fprintf: New file.
83674         * modules/unistdio/ulc-printf-parse: New file.
83675         * modules/unistdio/ulc-snprintf: New file.
83676         * modules/unistdio/ulc-sprintf: New file.
83677         * modules/unistdio/ulc-vasnprintf: New file.
83678         * modules/unistdio/ulc-vasprintf: New file.
83679         * modules/unistdio/ulc-vfprintf: New file.
83680         * modules/unistdio/ulc-vsnprintf: New file.
83681         * modules/unistdio/ulc-vsprintf: New file.
83682         * modules/unistdio/u8-asnprintf: New file.
83683         * modules/unistdio/u8-asprintf: New file.
83684         * modules/unistdio/u8-printf-parse: New file.
83685         * modules/unistdio/u8-snprintf: New file.
83686         * modules/unistdio/u8-sprintf: New file.
83687         * modules/unistdio/u8-vasnprintf: New file.
83688         * modules/unistdio/u8-vasprintf: New file.
83689         * modules/unistdio/u8-vsnprintf: New file.
83690         * modules/unistdio/u8-vsprintf: New file.
83691         * modules/unistdio/u8-u8-asnprintf: New file.
83692         * modules/unistdio/u8-u8-asprintf: New file.
83693         * modules/unistdio/u8-u8-snprintf: New file.
83694         * modules/unistdio/u8-u8-sprintf: New file.
83695         * modules/unistdio/u8-u8-vasnprintf: New file.
83696         * modules/unistdio/u8-u8-vasprintf: New file.
83697         * modules/unistdio/u8-u8-vsnprintf: New file.
83698         * modules/unistdio/u8-u8-vsprintf: New file.
83699         * modules/unistdio/u16-asnprintf: New file.
83700         * modules/unistdio/u16-asprintf: New file.
83701         * modules/unistdio/u16-printf-parse: New file.
83702         * modules/unistdio/u16-snprintf: New file.
83703         * modules/unistdio/u16-sprintf: New file.
83704         * modules/unistdio/u16-vasnprintf: New file.
83705         * modules/unistdio/u16-vasprintf: New file.
83706         * modules/unistdio/u16-vsnprintf: New file.
83707         * modules/unistdio/u16-vsprintf: New file.
83708         * modules/unistdio/u16-u16-asnprintf: New file.
83709         * modules/unistdio/u16-u16-asprintf: New file.
83710         * modules/unistdio/u16-u16-snprintf: New file.
83711         * modules/unistdio/u16-u16-sprintf: New file.
83712         * modules/unistdio/u16-u16-vasnprintf: New file.
83713         * modules/unistdio/u16-u16-vasprintf: New file.
83714         * modules/unistdio/u16-u16-vsnprintf: New file.
83715         * modules/unistdio/u16-u16-vsprintf: New file.
83716         * modules/unistdio/u32-asnprintf: New file.
83717         * modules/unistdio/u32-asprintf: New file.
83718         * modules/unistdio/u32-printf-parse: New file.
83719         * modules/unistdio/u32-snprintf: New file.
83720         * modules/unistdio/u32-sprintf: New file.
83721         * modules/unistdio/u32-vasnprintf: New file.
83722         * modules/unistdio/u32-vasprintf: New file.
83723         * modules/unistdio/u32-vsnprintf: New file.
83724         * modules/unistdio/u32-vsprintf: New file.
83725         * modules/unistdio/u32-u32-asnprintf: New file.
83726         * modules/unistdio/u32-u32-asprintf: New file.
83727         * modules/unistdio/u32-u32-snprintf: New file.
83728         * modules/unistdio/u32-u32-sprintf: New file.
83729         * modules/unistdio/u32-u32-vasnprintf: New file.
83730         * modules/unistdio/u32-u32-vasprintf: New file.
83731         * modules/unistdio/u32-u32-vsnprintf: New file.
83732         * modules/unistdio/u32-u32-vsprintf: New file.
83733         * modules/unistdio/ulc-asnprintf-tests: New file.
83734         * modules/unistdio/ulc-vasnprintf-tests: New file.
83735         * modules/unistdio/ulc-vasprintf-tests: New file.
83736         * modules/unistdio/ulc-vsnprintf-tests: New file.
83737         * modules/unistdio/ulc-vsprintf-tests: New file.
83738         * modules/unistdio/u8-asnprintf-tests: New file.
83739         * modules/unistdio/u8-vasnprintf-tests: New file.
83740         * modules/unistdio/u8-vasprintf-tests: New file.
83741         * modules/unistdio/u8-vsnprintf-tests: New file.
83742         * modules/unistdio/u8-vsprintf-tests: New file.
83743         * modules/unistdio/u16-asnprintf-tests: New file.
83744         * modules/unistdio/u16-vasnprintf-tests: New file.
83745         * modules/unistdio/u16-vasprintf-tests: New file.
83746         * modules/unistdio/u16-vsnprintf-tests: New file.
83747         * modules/unistdio/u16-vsprintf-tests: New file.
83748         * modules/unistdio/u32-asnprintf-tests: New file.
83749         * modules/unistdio/u32-vasnprintf-tests: New file.
83750         * modules/unistdio/u32-vasprintf-tests: New file.
83751         * modules/unistdio/u32-vsnprintf-tests: New file.
83752         * modules/unistdio/u32-vsprintf-tests: New file.
83753         * MODULES.html.sh (Unicode string functions): Add the new modules.
83755 2007-07-01  Bruno Haible  <bruno@clisp.org>
83757         * lib/sprintf.c (sprintf): Limit the available length estimation,
83758         to avoid address wraparound.
83759         * lib/vsprintf.c (vsprintf): Likewise.
83760         * modules/sprintf-posix (Dependencies): Add stdint.
83761         * modules/vsprintf-posix (Dependencies): Likewise.
83763 2007-07-01  Bruno Haible  <bruno@clisp.org>
83765         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
83766         Windows PATH as well. Conservative double-quoting. Comments.
83768 2007-07-01  Bruno Haible  <bruno@clisp.org>
83769             Eric Blake  <ebb9@byu.net>
83770             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83772         * gnulib-tool (self_abspathname): Fix algorithm to cope with
83773         empty components in $PATH, denoting '.'.
83775 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83777         * gnulib-tool: Fix indentation.
83778         (func_create_megatestdir): Likewise.
83779         Report by Bruno Haible.
83781 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83783         Sync from Automake.
83784         * build-aux/gnupload: Fix shell portability issues with for loops.
83785         Report by Karl Berry.
83787 2007-06-29  Simon Josefsson  <simon@josefsson.org>
83789         * build-aux/maint.mk (POURL): Use translationproject.org.
83791 2007-06-27  Simon Josefsson  <simon@josefsson.org>
83792             Bruno Haible  <bruno@clisp.org>
83794         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
83795         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
83796         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
83797         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
83798         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
83800 2007-06-27  Bruno Haible  <bruno@clisp.org>
83802         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
83803         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
83805 2007-06-26  Karl Berry  <karl@gnu.org>
83807         * MODULES.html.sh: remove xreadlink-with-size.
83809 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83811         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
83812         method that I hope also handles the double-include problem noted
83813         by Bruno Haible in
83814         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
83816 2007-06-23  Bruno Haible  <bruno@clisp.org>
83818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83819         Don't let the 'mostlyclean' target fail if the last subdirectory could
83820         not be removed.
83821         Reported by Karl Berry.
83823 2007-06-23  Bruno Haible  <bruno@clisp.org>
83825         * gnulib-tool (echo): Add a speedier workaround for ksh.
83826         * tests/test-echo.sh: Likewise.
83828 2007-06-23  Bruno Haible  <bruno@clisp.org>
83830         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
83831         * tests/test-echo.sh: Likewise.
83833 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83835         * gnulib-tool (IFS): Initialize early, so we don't set it to
83836         empty later.
83837         (self_abspathname): Rewrite algorithm to set it, reindent.
83838         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
83839         (func_create_megatestdir): Merge some sed scripts.
83841 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83843         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
83844         exposed by Sun Studio 11 cc on Solaris 8.
83846 2007-06-22  Bruno Haible  <bruno@clisp.org>
83848         * gnulib-tool (echo): Ensure the echo primitive does not interpret
83849         backslashes.
83850         * tests/test-echo.sh: New file.
83852 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83854         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
83855         simplify `sed_replace_build_aux' scripts, they are portable but
83856         echoing them with `echo' is not.
83857         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
83859 2007-06-21  Karl Berry  <karl@gnu.org>
83861         * config/srclist.txt: guess we can't handle the licenses via
83862         srclist at the moment.
83864 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
83866         * MODULES.html.sh: Add include_next.
83867         * modules/include_next: New file.
83869 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
83871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
83872         INCLUDE_NEXT.
83873         (gl_CHECK_NEXT_HEADERS): New macro.
83874         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
83875         the obsolescent gl_ABSOLUTE_HEADER.
83876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
83877         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
83878         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
83879         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
83880         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
83881         * m4/math_h.m4 (gl_MATH_H): Likewise.
83882         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
83883         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
83884         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
83885         * m4/stdint.m4 (gl_STDINT_H): Likewise.
83886         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
83887         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
83888         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
83889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
83890         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
83891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
83892         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
83893         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
83894         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
83895         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
83896         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
83897         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
83898         * m4/inttypes.m4 (gl_INTTYPES_H): Define
83899         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
83900         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
83901         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
83902         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
83903         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
83904         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
83905         * lib/float_.h: Likewise.
83906         * lib/inttypes_.h: Likewise.
83907         * lib/math_.h: Likewise.
83908         * lib/search_.h: Likewise.
83909         * lib/signal_.h: Likewise.
83910         * lib/stdint_.h: Likewise.
83911         * lib/stdio_.h: Likewise.
83912         * lib/stdlib_.h: Likewise.
83913         * lib/string_.h: Likewise.
83914         * lib/sys_stat_.h: Likewise.
83915         * lib/sys_time_.h: Likewise.
83916         * lib/time_.h: Likewise.
83917         * lib/unistd_.h: Likewise.
83918         * lib/wchar_.h: Likewise.
83919         * lib/wctype_.h: Likewise.
83920         * lib/dirent_.h: Likewise.
83921         * lib/iconv_.h: Likewise.
83922         * lib/locale_.h: Likewise.
83923         * lib/netinet_in_.h: Likewise.
83924         * lib/sys_select_.h: Likewise.
83925         * lib/sys_socket_.h: Likewise.
83926         * lib/sysexits_.h: Likewise.
83927         * modules/fcntl (Depends-on): Depend on include_next, not
83928         absolute_header.
83929         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
83930         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
83931         * modules/fchdir: Likewise.
83932         * modules/float: Likewise.
83933         * modules/iconv_open: Likewise.
83934         * modules/inttypes: Likewise.
83935         * modules/locale: Likewise.
83936         * modules/math: Likewise.
83937         * modules/netinet_in: Likewise.
83938         * modules/search: Likewise.
83939         * modules/signal: Likewise.
83940         * modules/stdint: Likewise.
83941         * modules/stdio: Likewise.
83942         * modules/stdlib: Likewise.
83943         * modules/string: Likewise.
83944         * modules/sys_select: Likewise.
83945         * modules/sys_socket: Likewise.
83946         * modules/sys_stat: Likewise.
83947         * modules/sys_time: Likewise.
83948         * modules/sysexits: Likewise.
83949         * modules/time: Likewise.
83950         * modules/unistd: Likewise.
83951         * modules/wchar: Likewise.
83952         * modules/wctype: Likewise.
83953         * modules/sys_stat: Change maintainer to "all".
83954         * modules/unistd: Likewise.
83956 2007-06-20  Karl Berry  <karl@gnu.org>
83958         * config/srclist.txt: track www changes in license files.
83960 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
83962         * build-aux/bootstrap: Remove stray dot.
83963         Make sure build_aux settings are honored when linking
83964         gnulib_extra_files.
83966 2007-06-19  Eric Blake  <ebb9@byu.net>
83968         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83969         Allow compilation on cygwin.
83971 2007-06-19  Jim Meyering  <jim@meyering.net>
83973         xreadlink-with-size: Remove module.  No longer used.
83974         Ex-callers now use xreadlink or mreadlink-with-size.
83975         * modules/xreadlink-with-size: Remove module.
83976         * lib/xreadlink-with-size.c: Remove file.
83977         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
83978         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
83979         just before the function definition *is* accurate.
83981         Eliminate one way canonicalize_filename_mode could exit.
83982         * lib/canonicalize.c (canonicalize_filename_mode):
83983         Use mreadlink_with_size, not xreadlink_with_size.
83985 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
83987         Detect porting problems to FreeBSD/arm, which has time_t wider than
83988         long int.  Original problem reported for GNU diff by Xin Li in
83989         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
83990         * modules/getdate (Depends-on): Add intprops, verify.
83991         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
83992         is an integer type no wider than long int.
83994 2007-06-18  Jim Meyering  <jim@meyering.net>
83996         New module: mreadlink-with-size.
83997         * MODULES.html.sh: Add mreadlink-with-size.
83998         * modules/mreadlink-with-size: New module
83999         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
84000         not xreadlink-with-size.
84001         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
84003 2007-06-16  Bruno Haible  <bruno@clisp.org>
84005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
84006         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
84007         Reported by Gary V. Vaughan <gary@gnu.org>.
84009 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
84011         Revamp lchown so that it lives in unistd.h where it belongs.
84012         * lib/lchown.h: Remove.
84013         * lib/dirchownmod.c: Don't include lib/lchown.h.
84014         * lib/fchownat.c: Likewise.
84015         * lib/openat.c: Likewise.
84016         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
84017         does not follow symlinks.
84018         (EOPNOTSUPP): Define if not defined.
84019         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
84020         is defined to 0.
84021         (lchown): New decl.
84022         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
84023         Do not check for lchown decl.
84024         Set REPLACE_LCHOWN.
84025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
84026         REPLACE_LCHOWN.
84027         * modules/chown: Make it clear it follows symlinks.
84028         * modules/lchown: Make it clear it doesn't follow symlinks.
84029         (Files): Remove lib/lchown.h
84030         (Depends-on): Add unistd.
84031         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
84032         (Include): Include <unistd.h>, not "lchown.h".
84033         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
84034         REPLACE_LCHOWN.
84036 2007-06-15  Jim Meyering  <jim@meyering.net>
84038         Change license (GPL to LGPL) of fsusage and dependents.
84039         * modules/fsusage (License): Change to LGPL.
84040         * modules/full-read (License): Likewise.
84041         * modules/full-write (License): Likewise.
84042         * modules/safe-read (License): Likewise.
84043         * modules/safe-write (License): Likewise.
84045 2007-06-14  Ben Pfaff  <blp@gnu.org>
84047         Missing part of allocsa -> malloca transition.
84048         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
84049         gl_MALLOCA.
84051 2007-06-12  Bruno Haible  <bruno@clisp.org>
84053         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
84054         to ia64, x86_64, i386.
84055         Reported by Eric Blake.
84057 2007-06-12  Bruno Haible  <bruno@clisp.org>
84059         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
84060         cross-compiling to x86_64.
84062 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
84064         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
84065         glitch reported by Ralf Wildenhues in
84066         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
84068         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
84069         Vin Shelton.
84071 2007-06-11  Bruno Haible  <bruno@clisp.org>
84073         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
84074         replacement string.
84075         Reported by Eric Blake.
84077 2007-06-10  Bruno Haible  <bruno@clisp.org>
84079         Prepare vasnprintf code for use with Unicode strings.
84080         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
84081         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
84082         TYPE_U32_STRING.
84083         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
84084         a_u32_string variants.
84085         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84086         * lib/printf-args.c: Don't include config.h and the specification
84087         header if PRINTF_FETCHARGS is already defined.
84088         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84089         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
84090         TYPE_U16_STRING, TYPE_U32_STRING.
84091         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
84092         u16_directive, u16_directives, u32_directive, u32_directives): New
84093         types.
84094         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
84095         New declarations.
84096         * lib/printf-parse.c: Don't include config.h and the specification
84097         header if PRINTF_PARSE is already defined. Eliminate the set of
84098         parameters for WIDE_CHAR_VERSION; the user of this file must provide
84099         them now. Include c-ctype.h.
84100         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
84101         directive and CHAR_T_ONLY_ASCII.
84102         * lib/vasnprintf.c: Don't include config.h and the specification header
84103         if VASNPRINTF is already defined.
84104         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
84105         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
84106         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
84107         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
84108         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
84109         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
84110         code accordingly.
84111         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
84112         pad_ourselves also in this case, with the 'c' and 's' directives, and
84113         with a different notion of "width".
84114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
84116 2007-06-10  Bruno Haible  <bruno@clisp.org>
84118         * modules/unistr/u32-mbsnlen: New file.
84119         * lib/unistr/u32-mbsnlen.c: New file.
84121         * modules/unistr/u16-mbsnlen: New file.
84122         * lib/unistr/u16-mbsnlen.c: New file.
84124         * modules/unistr/u8-mbsnlen: New file.
84125         * lib/unistr/u8-mbsnlen.c: New file.
84127         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
84128         declarations.
84130 2007-06-10  Bruno Haible  <bruno@clisp.org>
84132         * lib/string_.h (mbsnlen): New declaration.
84133         * lib/mbsnlen.c: New file.
84134         * m4/mbsnlen.m4: New file.
84135         * modules/mbsnlen: New file.
84136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
84137         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
84138         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
84140 2007-06-10  Bruno Haible  <bruno@clisp.org>
84142         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
84144 2007-06-10  Bruno Haible  <bruno@clisp.org>
84146         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
84147         * lib/mbuiter.h: Likewise.
84149 2007-06-10  Bruno Haible  <bruno@clisp.org>
84151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
84152         declaration.
84154 2007-06-10  Karl Berry  <karl@gnu.org>
84156         * config/srclist.txt: remove gettext entries, Bruno prefers
84157         to update individually.
84159 2007-06-10  Bruno Haible  <bruno@clisp.org>
84161         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
84162         'maxlen'. Ensure only length + width bytes are allocated, not
84163         length + 1 + width.
84165 2007-06-09  Bruno Haible  <bruno@clisp.org>
84167         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
84168         (CHAR_T): Remove macro.
84169         (VASNPRINTF): Update.
84171 2007-06-09  Bruno Haible  <bruno@clisp.org>
84173         * MODULES.html.sh (Unicode string functions): Add the new modules.
84175         * modules/uniconv/u32-conv-to-enc: New file.
84176         * lib/uniconv/u32-conv-to-enc.c: New file.
84177         * modules/uniconv/u32-conv-to-enc-tests: New file.
84178         * tests/uniconv/test-u32-conv-to-enc.c: New file.
84180         * modules/uniconv/u16-conv-to-enc: New file.
84181         * lib/uniconv/u16-conv-to-enc.c: New file.
84182         * lib/uniconv/u-conv-to-enc.h: New file.
84183         * modules/uniconv/u16-conv-to-enc-tests: New file.
84184         * tests/uniconv/test-u16-conv-to-enc.c: New file.
84186         * modules/uniconv/u8-conv-to-enc: New file.
84187         * lib/uniconv/u8-conv-to-enc.c: New file.
84188         * modules/uniconv/u8-conv-to-enc-tests: New file.
84189         * tests/uniconv/test-u8-conv-to-enc.c: New file.
84191         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84192         u32_conv_to_encoding): New declarations.
84194 2007-06-09  Bruno Haible  <bruno@clisp.org>
84196         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
84198 2007-06-09  Bruno Haible  <bruno@clisp.org>
84200         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
84201         * modules/malloca: Renamed from modules/allocsa, updated.
84202         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
84203         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
84204         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
84205         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
84206         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
84207         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
84208         * modules/xmalloca: Renamed from modules/xallocsa, updated.
84209         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
84210         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
84211         * modules/c-strcasestr (Depends-on): Update.
84212         * lib/c-strcasestr.c: Update.
84213         * modules/c-strstr (Depends-on): Update.
84214         * lib/c-strstr.c: Update.
84215         * modules/canonicalize-lgpl (Depends-on): Update.
84216         * lib/canonicalize-lgpl.c: Update.
84217         * modules/clean-temp (Depends-on): Update.
84218         * lib/clean-temp.c: Update.
84219         * modules/csharpcomp (Depends-on): Update.
84220         * lib/csharpcomp.c: Update.
84221         * modules/csharpexec (Depends-on): Update.
84222         * lib/csharpexec.c: Update.
84223         * modules/javacomp (Depends-on): Update.
84224         * lib/javacomp.c: Update.
84225         * modules/javaexec (Depends-on): Update.
84226         * lib/javaexec.c: Update.
84227         * modules/mbscasestr (Depends-on): Update.
84228         * lib/mbscasestr.c: Update.
84229         * modules/mbsstr (Depends-on): Update.
84230         * lib/mbsstr.c: Update.
84231         * modules/setenv (Depends-on): Update.
84232         * lib/setenv.c: Update.
84233         * modules/strcasestr (Depends-on): Update.
84234         * lib/strcasestr.c: Update.
84235         * modules/striconveha (Depends-on): Update.
84236         * lib/striconveha.c: Update.
84237         * modules/relocatable-prog-wrapper (Files): Update.
84238         * lib/relocwrapper.c: Update.
84239         * build-aux/install-reloc: Update.
84240         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
84242 2007-06-08  Bruno Haible  <bruno@clisp.org>
84244         Port to uClibc.
84245         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
84246         * lib/fpurge.c (fpurge): Likewise.
84247         * lib/freading.c (freading): Likewise.
84248         * lib/fseeko.c (rpl_fseeko): Likewise.
84249         * lib/fseterr.c (fseterr): Likewise.
84250         * lib/fwriting.c (fwriting): Likewise.
84251         * tests/test-fflush.c (main): Avoid a failure on uClibc.
84253 2007-06-08  Bruno Haible  <bruno@clisp.org>
84255         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
84256         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
84257         * modules/gettext (Files): Add m4/intlmacosx.m4.
84259 2007-06-07  Bruno Haible  <bruno@clisp.org>
84261         * modules/localename-tests: New file.
84262         * tests/test-localename.c: New file.
84264         New module 'localename'.
84265         * lib/localename.h: New file.
84266         * lib/localename.c: New file, from GNU gettext.
84267         * m4/localename.m4: New file.
84268         * modules/localename: New file.
84270 2007-06-07  Bruno Haible  <bruno@clisp.org>
84272         Work around the lack of <wchar.h> on some builds of uClibc.
84273         * doc/headers/wchar.texi: Update.
84274         * lib/wchar_.h: Include <wchar.h> only if it exists.
84275         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
84276         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
84277         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
84278         doesn't exist.
84279         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
84280         * modules/mbfile (Depends-on): Add wchar.
84281         * modules/mbiter (Depends-on): Likewise.
84282         * modules/mbuiter (Depends-on): Likewise.
84283         Reported by Simon Josefsson.
84285 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84287         Work around problem reported by Steven M. Schweda in
84288         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
84289         Tru64 5.1B with the Compaq compiler environment installed declares
84290         an 'isblank' function but does not define it in the C library.
84291         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
84292         * lib/regex_internal.h (isblank): Likewise.
84293         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
84294         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
84296 2007-06-05  Bruno Haible  <bruno@clisp.org>
84298         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
84299         ia64.
84300         * modules/printf-safe: New file.
84301         * modules/fprintf-posix (Depends-on): Add printf-safe.
84302         * modules/printf-posix (Depends-on): Likewise.
84303         * modules/snprintf-posix (Depends-on): Likewise.
84304         * modules/sprintf-posix (Depends-on): Likewise.
84305         * modules/vasnprintf-posix (Depends-on): Likewise.
84306         * modules/vasprintf-posix (Depends-on): Likewise.
84307         * modules/vfprintf-posix (Depends-on): Likewise.
84308         * modules/vprintf-posix (Depends-on): Likewise.
84309         * modules/vsnprintf-posix (Depends-on): Likewise.
84310         * modules/vsprintf-posix (Depends-on): Likewise.
84311         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
84312         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
84313         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
84314         "no" on i386, x86_64, ia64.
84315         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
84316         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84317         on i386, x86_64, ia64.
84318         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
84319         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84320         on i386, x86_64, ia64.
84321         * tests/test-vasnprintf-posix.c: Include float.h.
84322         (LDBL80_WORDS): New macro.
84323         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84324         on i386, x86_64, ia64.
84325         * tests/test-vasprintf-posix.c: Include float.h.
84326         (LDBL80_WORDS): New macro.
84327         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84328         on i386, x86_64, ia64.
84329         * tests/test-snprintf-posix.c: Include float.h.
84330         * tests/test-sprintf-posix.c: Likewise.
84331         * tests/test-vsnprintf-posix.c: Likewise.
84332         * tests/test-vsprintf-posix.c: Likewise.
84334 2007-06-05  Bruno Haible  <bruno@clisp.org>
84336         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
84337         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
84338         non-IEEE numbers on i386, x86_64, ia64.
84339         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
84340         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
84341         * tests/test-isnanl.h: Include float.h.
84342         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
84344 2007-06-05  Bruno Haible  <bruno@clisp.org>
84346         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
84347         also the %a / %A. Handle the %a / %A code before this extra handling.
84349 2007-06-05  Bruno Haible  <bruno@clisp.org>
84351         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
84352         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
84354 2007-06-05  Bruno Haible  <bruno@clisp.org>
84356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
84357         typo in variable name.
84359 2007-06-05  Eric Blake  <ebb9@byu.net>
84361         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
84362         Reported by Simon Josefsson.
84364 2007-06-04  Bruno Haible  <bruno@clisp.org>
84366         Avoid test failures on some PowerPC platforms.
84367         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
84368         Define differently for PowerPC.
84369         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
84370         Reported by Gary V. Vaughan <gary@gnu.org>.
84372 2007-06-02  Bruno Haible  <bruno@clisp.org>
84374         Fix test-stdint failure on FreeBSD/ia64.
84375         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
84376         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
84377         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
84378         * doc/headers/stdint.texi: Update.
84380 2007-06-01  Bruno Haible  <bruno@clisp.org>
84382         * tests/test-binary-io.c (main): Pass a third argument to open().
84383         Reported by Gary V. Vaughan <gary@gnu.org>.
84385 2007-06-01  Bruno Haible  <bruno@clisp.org>
84387         * doc/functions/frexpl.texi: Update for mingw.
84389 2007-06-01  Bruno Haible  <bruno@clisp.org>
84391         * tests/test-lseek.c (main): Disable test of errno for invalid third
84392         argument.
84393         * doc/functions/lseek.texi: Update.
84394         Reported by Gary V. Vaughan <gary@gnu.org>.
84396 2007-05-28  Bruno Haible  <bruno@clisp.org>
84398         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
84400 2007-05-31  Eric Blake  <ebb9@byu.net>
84402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
84403         cross compiling.
84405 2007-05-30  Eric Blake  <ebb9@byu.net>
84406         and Bruno Haible  <bruno@clisp.org>
84408         Work around mingw test failures exposed by m4-1.4.9b.
84409         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
84410         * tests/test-unistd.c: Disable uid_t and git_t tests for the
84411         moment.
84413 2007-05-30  Bruno Haible  <bruno@clisp.org>
84415         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
84416         assuming that they are closed. Needed on HP-UX 11.
84418 2007-05-29  Bruno Haible  <bruno@clisp.org>
84420         Fix a problem with #include_next.
84421         * lib/dirent_.h: Split the double-inclusion guard.
84422         * lib/fcntl_.h: Likewise.
84423         * lib/float_.h: Likewise.
84424         * lib/iconv_.h: Likewise.
84425         * lib/inttypes_.h: Likewise.
84426         * lib/locale_.h: Likewise.
84427         * lib/math_.h: Likewise.
84428         * lib/netinet_in_.h: Likewise.
84429         * lib/search_.h: Likewise.
84430         * lib/signal_.h: Likewise.
84431         * lib/stdint_.h: Likewise.
84432         * lib/stdio_.h: Likewise.
84433         * lib/stdlib_.h: Likewise.
84434         * lib/string_.h: Likewise.
84435         * lib/sys_select_.h: Likewise.
84436         * lib/sys_socket_.h: Likewise.
84437         * lib/sys_stat_.h: Likewise.
84438         * lib/sys_time_.h: Likewise.
84439         * lib/sysexits_.h: Likewise.
84440         * lib/time_.h: Likewise.
84441         * lib/unistd_.h: Likewise.
84442         * lib/wchar_.h: Likewise.
84443         * lib/wctype_.h: Likewise.
84445 2007-05-29  Bruno Haible  <bruno@clisp.org>
84447         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
84448         for the moment.
84450 2007-05-29  Bruno Haible  <bruno@clisp.org>
84452         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
84453         invocation.
84454         Reported by Eric Blake.
84456 2007-05-29  Bruno Haible  <bruno@clisp.org>
84458         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
84459         compiling case.
84461 2007-05-29  Eric Blake  <ebb9@byu.net>
84462             Bruno Haible  <bruno@clisp.org>
84464         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
84465         cross compiles.
84467 2007-05-28  Eric Blake  <ebb9@byu.net>
84469         * modules/closein-tests (test_closein_LDADD): Support test on
84470         cygwin with libtool.
84472 2007-05-28  Bruno Haible  <bruno@clisp.org>
84474         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
84475         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84476         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84477         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84478         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84479         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84480         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84481         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
84482         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
84484 2007-05-28  Eric Blake  <ebb9@byu.net>
84486         Unconditionally include <config.h> in unit tests.
84487         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
84488         * tests/test-allocsa.c, tests/test-arcfour.c,
84489         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
84490         tests/test-array_list.c, tests/test-array_oset.c,
84491         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
84492         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
84493         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
84494         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
84495         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
84496         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
84497         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
84498         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
84499         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
84500         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
84501         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
84502         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
84503         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
84504         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
84505         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
84506         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
84507         test-md5.c, test-memmem.c, test-printf-posix.c,
84508         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
84509         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
84510         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
84511         test-strcasestr.c, test-striconv.c, test-striconveh.c,
84512         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
84513         test-vasnprintf-posix2.c, test-vasnprintf.c,
84514         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
84515         test-vfprintf-posix.c, test-vprintf-posix.c,
84516         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
84517         test-xvasprintf.c: Likewise.
84519 2007-05-28  Bruno Haible  <bruno@clisp.org>
84521         * gnulib-tool (func_import): Remember the --with-tests command-line
84522         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
84523         Reported by Eric Blake.
84525 2007-05-28  Bruno Haible  <bruno@clisp.org>
84527         * modules/ftell-tests: New file.
84528         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
84529         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
84531         * lib/ftell.c: New file.
84532         * modules/ftell: New file.
84533         * m4/ftell.m4: New file.
84534         * doc/functions/ftell.texi: Update.
84535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
84536         REPLACE_FTELL.
84537         * lib/stdio_.h (rpl_ftell): New declaration.
84538         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
84539         REPLACE_FTELL.
84541 2007-05-28  Eric Blake  <ebb9@byu.net>
84543         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
84545 2007-05-28  Bruno Haible  <bruno@clisp.org>
84547         * modules/fseek-tests: New file.
84548         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
84549         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
84551         * lib/fseek.c: New file.
84552         * modules/fseek: New file.
84553         * m4/fseek.m4: New file.
84554         * doc/functions/fseek.texi: Update.
84555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
84556         REPLACE_FSEEK.
84557         * lib/stdio_.h (rpl_fseek): New declaration.
84558         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
84559         REPLACE_FSEEK.
84561 2007-05-28  Bruno Haible  <bruno@clisp.org>
84563         * lib/stdio_.h (fflush): More comments.
84565 2007-05-28  Bruno Haible  <bruno@clisp.org>
84567         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
84568         runtime test.
84570 2007-05-28  Eric Blake  <ebb9@byu.net>
84572         Improve lseek module.
84573         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
84574         * lib/unistd_.h (lseek): Scale back link warning message.
84575         * tests/test-lseek.c: Beef up test.
84576         * tests/test-lseek.sh: Exercise more facets of lseek.
84577         Reported by Bruno Haible.
84579 2007-05-28  Bruno Haible  <bruno@clisp.org>
84581         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
84582         to define.
84584 2007-05-27  Bruno Haible  <bruno@clisp.org>
84586         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
84588 2007-05-27  Bruno Haible  <bruno@clisp.org>
84590         * modules/openmp: New file.
84591         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
84592         Noah Misch.
84594 2007-05-26  Bruno Haible  <bruno@clisp.org>
84596         * modules/chdir-long (Depends-on): Add fchdir.
84597         * modules/chdir-safer (Depends-on): Likewise.
84598         * modules/fts (Depends-on): Likewise.
84599         * modules/fts-lgpl (Depends-on): Likewise.
84600         * modules/openat (Depends-on): Likewise.
84601         * modules/savewd (Depends-on): Likewise.
84603 2007-05-24  Eric Blake  <ebb9@byu.net>
84605         Fix lseek on mingw.
84606         * modules/lseek: New module.
84607         * m4/lseek.m4: New file.
84608         * lib/lseek.c: New file.
84609         * modules/lseek-tests: New file.
84610         * tests/test-lseek.c: New file.
84611         * tests/test-lseek.sh: New file.
84612         * MODULES.html.sh: Document lseek module.
84613         * modules/fflush (Depends-on): Add lseek, fseeko.
84614         * modules/fseeko (Depends-on): Likewise.
84615         * modules/ftello (Depends-on): Likewise.
84616         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
84617         broken.
84618         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
84619         broken.
84620         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
84621         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
84622         * lib/ftello.c (rpl_ftello): Likewise.
84623         * tests/test-fseeko.c (main): Test this.
84624         * tests/test-fseeko.sh: Likewise.
84625         * tests/test-ftello.c (main): Likewise.
84626         * tests/test-ftello.sh: Likewise.
84627         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
84628         implies replacing fseek.
84629         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
84630         HAVE_FTELLO.
84631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
84632         * modules/unistd (Makefile.am): Likewise.
84633         * lib/unistd_.h (lseek): Declare a replacement.
84634         * doc/functions/lseek.texi (lseek): Document this fix.
84635         * doc/functions/fseek.texi (fseek): Likewise.
84636         * doc/functions/ftell.texi (ftell): Likewise.
84638 2007-05-24  Bruno Haible  <bruno@clisp.org>
84640         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
84641         in the printed representation of a NaN.
84642         * tests/test-vasprintf-posix.c (test_function): Likewise.
84643         * tests/test-snprintf-posix.h (test_function): Likewise.
84644         * tests/test-sprintf-posix.h (test_function): Likewise.
84645         Reported by Eric Blake.
84647 2007-05-23  Eric Blake  <ebb9@byu.net>
84649         Fix fseeko/ftello on cygwin 1.5.24.
84650         * doc/functions/fseeko.texi (fseeko): Document the fix.
84651         * doc/functions/ftello.texi (ftello): Document the fix.
84652         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
84653         * doc/functions/stdout.text (stdout): New file.
84654         * doc/functions/stderr.text (stderr): New file.
84655         * doc/gnulib.texi (Function Substitutes): Use new files.
84656         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
84657         prior to 1.7.0.
84658         * tests/test-ftello.c (main): Likewise for ftello.
84659         * tests/test-fseeko.sh: New file.
84660         * tests/test-ftello.sh: New file.
84661         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
84662         with seekable stdin.
84663         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
84664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
84665         (gl_REPLACE_FSEEKO): New macro.
84666         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
84667         * modules/fseeko (Files): Distribute fseeko.c.
84668         * modules/ftello (Files): Distribute ftello.c.
84669         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
84670         mode.
84671         * lib/ftello.c (rpl_ftello): New file.
84672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
84673         fseeko, ftello.
84674         (gl_STDIN_LARGE_OFFSET): New macro.
84675         * modules/stdio (Makefile.am): Perform the replacement.
84676         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
84678 2007-05-23  Bruno Haible  <bruno@clisp.org>
84680         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
84681         GNULIB_POSIXCHECK is defined.
84683 2007-05-21  Bruno Haible  <bruno@clisp.org>
84685         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
84686         Check also the output for NaN arguments. When cross-compiling, guess
84687         no on IRIX.
84688         * lib/vasnprintf.c: Update comments.
84689         * tests/test-vasnprintf-posix.c (strisnan): New function.
84690         (test_function): Use it.
84691         * tests/test-vasprintf-posix.c (strisnan): New function.
84692         (test_function): Use it.
84693         * tests/test-snprintf-posix.h (strisnan): New function.
84694         (test_function): Use it.
84695         * tests/test-sprintf-posix.h (strisnan): New function.
84696         (test_function): Use it.
84697         Reported by Eric Blake.
84699 2007-05-20  Bruno Haible  <bruno@clisp.org>
84701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
84702         numbers that fails on BeOS.
84703         * doc/functions/frexpl.texi: Update.
84705 2007-05-20  Jim Meyering  <jim@meyering.net>
84707         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
84708         forced upon us by glibc-2.6.
84710 2007-05-20  Bruno Haible  <bruno@clisp.org>
84712         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
84713         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
84714         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
84715         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
84716         NEED_PRINTF_INFINITE.
84717         (is_infinitel): New function.
84718         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
84719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
84720         gl_PREREQ_VASNPRINTF_INFINITE.
84721         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
84722         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84723         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
84724         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
84725         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
84726         gl_PREREQ_VASNPRINTF_INFINITE.
84727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84728         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84729         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84730         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84731         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84732         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84733         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84734         * doc/functions/fprintf.texi: Update.
84735         * doc/functions/printf.texi: Update.
84736         * doc/functions/snprintf.texi: Update.
84737         * doc/functions/sprintf.texi: Update.
84738         * doc/functions/vfprintf.texi: Update.
84739         * doc/functions/vprintf.texi: Update.
84740         * doc/functions/vsnprintf.texi: Update.
84741         * doc/functions/vsprintf.texi: Update.
84743 2007-05-20  Bruno Haible  <bruno@clisp.org>
84745         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
84746         was not found in libc.
84747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
84749 2007-05-20  Bruno Haible  <bruno@clisp.org>
84751         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84752         printed as "-nan" instead of "nan".
84753         * tests/test-vasprintf-posix.c (test_function): Likewise.
84754         * tests/test-snprintf-posix.h (test_function): Likewise.
84755         * tests/test-sprintf-posix.h (test_function): Likewise.
84756         Needed for HP-UX 11.
84758 2007-05-20  Jim Meyering  <jim@meyering.net>
84760         Fix buggy test for the fchownat-deref bug.
84761         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
84762         symlink required for the run-test.  Without it, this test would
84763         always declare that fchownat doesn't work, and client code would
84764         unnecessarily use the replacement function with fixed libc.
84765         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
84766         Reported by Greg Schafer.
84768 2007-05-19  Bruno Haible  <bruno@clisp.org>
84770         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
84771         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
84772         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
84773         Needed for IRIX 6.5 and Solaris 2.5.1.
84775 2007-05-19  Bruno Haible  <bruno@clisp.org>
84777         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
84778         (test_function): Skip tests involving -0.0 on platforms where
84779         -0.0 = 0.0.
84780         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
84781         (test_function): Skip tests involving -0.0 on platforms where
84782         -0.0 = 0.0.
84783         * tests/test-snprintf-posix.h (have_minus_zero): New function.
84784         (test_function): Skip tests involving -0.0 on platforms where
84785         -0.0 = 0.0.
84786         * tests/test-sprintf-posix.h (have_minus_zero): New function.
84787         (test_function): Skip tests involving -0.0 on platforms where
84788         -0.0 = 0.0.
84789         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
84790         tests.
84791         * tests/test-printf-posix.h (test_function): Likewise.
84792         * tests/test-printf-posix.output: Remove all -0.0 related results.
84793         Needed for IRIX 6.5.
84795 2007-05-19  Bruno Haible  <bruno@clisp.org>
84797         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84798         printed as "nan0x7fffffff" instead of "nan".
84799         * tests/test-vasprintf-posix.c (test_function): Likewise.
84800         * tests/test-snprintf-posix.h (test_function): Likewise.
84801         * tests/test-sprintf-posix.h (test_function): Likewise.
84802         * tests/test-fprintf-posix.h (NaN): Remove macro.
84803         (test_function): Remove all NaN related tests.
84804         * tests/test-printf-posix.h (NaN): Remove macro.
84805         (test_function): Remove all NaN related tests.
84806         * tests/test-printf-posix.output: Remove all NaN related results.
84807         Needed for IRIX 6.5.
84809 2007-05-19  Bruno Haible  <bruno@clisp.org>
84811         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
84812         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
84814 2007-05-19  Bruno Haible  <bruno@clisp.org>
84816         * lib/float_.h: New file.
84817         * m4/float_h.m4: New file.
84818         * modules/float: New file.
84819         * modules/isnanl (Dependencies): Add float.
84820         * modules/isnanl-nolibm (Dependencies): Likewise.
84821         * modules/mathl (Dependencies): Likewise.
84822         * modules/printf-frexpl (Dependencies): Likewise.
84823         * modules/signbit (Dependencies): Likewise.
84824         * modules/vasnprintf (Dependencies): Likewise.
84825         * doc/headers/float.texi: Update.
84827 2007-05-19  Jim Meyering  <jim@meyering.net>
84829         * lib/utimens.c (gl_futimens): Rename from futimens,
84830         now that glibc-2.6 declares futimens.
84831         * lib/utimens.h: Likewise.
84833 2007-05-19  Bruno Haible  <bruno@clisp.org>
84835         Avoid test failures on mingw.
84836         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
84837         * tests/test-printf-posix.sh: Likewise.
84838         * tests/test-vfprintf-posix.sh: Likewise.
84839         * tests/test-vprintf-posix.sh: Likewise.
84841 2007-05-19  Bruno Haible  <bruno@clisp.org>
84843         Fix *printf result for NaN, Inf, -0.0 on mingw.
84844         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
84845         * lib/vasnprintf.c: Include math.h and isnan.h.
84846         (is_infinite_or_zero): New function.
84847         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
84848         values in the %f, %F, %e, %E, %g, %G directives.
84849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
84850         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84851         gl_PRINTF_INFINITE and test its result. Invoke
84852         gl_PREREQ_VASNPRINTF_INFINITE.
84853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84854         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84860         * doc/functions/fprintf.texi: Update.
84861         * doc/functions/printf.texi: Update.
84862         * doc/functions/snprintf.texi: Update.
84863         * doc/functions/sprintf.texi: Update.
84864         * doc/functions/vfprintf.texi: Update.
84865         * doc/functions/vprintf.texi: Update.
84866         * doc/functions/vsnprintf.texi: Update.
84867         * doc/functions/vsprintf.texi: Update.
84869 2007-05-19  Bruno Haible  <bruno@clisp.org>
84871         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
84872         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
84873         Instead of multiplying with 10^k, set extra_zeroes to k.
84874         (scale10_round_long_double): Remove function.
84876 2007-05-18  Bruno Haible  <bruno@clisp.org>
84878         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
84879         introduced on 2007-05-06.
84881 2007-05-18  Bruno Haible  <bruno@clisp.org>
84883         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
84884         %g directives.
84885         * tests/test-vasprintf-posix.c (test_function): Likewise.
84886         * tests/test-snprintf-posix.h (test_function): Likewise.
84887         * tests/test-sprintf-posix.h (test_function): Likewise.
84889 2007-05-18  Bruno Haible  <bruno@clisp.org>
84891         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
84892         (strmatch): New function.
84893         (test_function): Test the %f directive on numbers of various exponents.
84894         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
84895         (strmatch): New function.
84896         (test_function): Test the %f directive on numbers of various exponents.
84897         * tests/test-snprintf-posix.h (strmatch): New function.
84898         (test_function): Test the %f directive on numbers of various exponents.
84899         * tests/test-sprintf-posix.h (strmatch): New function.
84900         (test_function): Test the %f directive on numbers of various exponents.
84901         * tests/test-snprintf-posix.c (SIZEOF): New macro.
84902         * tests/test-sprintf-posix.c (SIZEOF): New macro.
84903         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
84904         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
84906 2007-05-18  Bruno Haible  <bruno@clisp.org>
84908         Add support for 'long double' number output.
84909         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
84910         * lib/vasnprintf.c: Include math.h and float+.h.
84911         (mp_limb_t): New type.
84912         (GMP_LIMB_BITS): New macro.
84913         (mp_twolimb_t): New type.
84914         (GMP_TWOLIMB_BITS): New macro.
84915         (mpn_t): New type.
84916         (multiply, divide, convert_to_decimal, decode_long_double,
84917         scale10_round_long_double, scale10_round_decimal_long_double,
84918         floorlog10l): New functions.
84919         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
84920         for the %f, %F, %e, %E, %g, %G directives.
84921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
84922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84923         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
84924         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
84925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84932         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
84933         * modules/snprintf-posix (Depends-on): Likewise.
84934         * modules/sprintf-posix (Depends-on): Likewise.
84935         * modules/vasnprintf-posix (Depends-on): Likewise.
84936         * modules/vasprintf-posix (Depends-on): Likewise.
84937         * modules/vfprintf-posix (Depends-on): Likewise.
84938         * modules/vsnprintf-posix (Depends-on): Likewise.
84939         * modules/vsprintf-posix (Depends-on): Likewise.
84940         * modules/vasnprintf (Files): Add lib/float+.h.
84941         * doc/functions/fprintf.texi: Update.
84942         * doc/functions/printf.texi: Update.
84943         * doc/functions/snprintf.texi: Update.
84944         * doc/functions/sprintf.texi: Update.
84945         * doc/functions/vfprintf.texi: Update.
84946         * doc/functions/vprintf.texi: Update.
84947         * doc/functions/vsnprintf.texi: Update.
84948         * doc/functions/vsprintf.texi: Update.
84950 2007-05-18  Bruno Haible  <bruno@clisp.org>
84952         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
84954 2007-05-18  Bruno Haible  <bruno@clisp.org>
84956         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
84957         for printing 64-bit integers. Needed for mingw.
84959 2007-05-18  Bruno Haible  <bruno@clisp.org>
84961         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84962         gl_FUNC_FREXPL_WORKS.
84963         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
84965 2007-05-18  Bruno Haible  <bruno@clisp.org>
84967         * modules/frexpl-nolibm-tests: New file.
84969         * modules/frexpl-nolibm: New file.
84970         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
84972 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84974         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
84975         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84976         GCC 4.2, which otherwise issues a lot of warnings.
84977         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
84978         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
84979         Likewise.
84980         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
84981         * modules/iconv_open (iconv.h): Likewise.
84982         * modules/locale (locale.h): Likewise.
84983         * modules/netinet_in (netinet/in.h): Likewise.
84984         * modules/sys_select (sys_select.h): Likewise.
84985         * modules/sys_socket (sys/socket.h): Likewise.
84986         * modules/sys_stat (sys/stat.h): Likewise.
84987         * modules/sysexits (sysexits.h): Likewise.
84988         * modules/unistd (unistd.h): Likewise.
84990 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84992         * modules/closein-tests (Makefile.am): Distribute
84993         `test-closein.sh'.
84995 2007-05-17  Bruno Haible  <bruno@clisp.org>
84997         * tests/test-printf-posix.output: Renamed from
84998         tests/test-fprintf-posix.out.
84999         * modules/fprintf-posix-tests: Update.
85000         * modules/printf-posix-tests: Update.
85001         * modules/vfprintf-posix-tests: Update.
85002         * modules/vprintf-posix-tests: Update.
85003         * tests/test-fprintf-posix.sh: Update.
85004         * tests/test-printf-posix.sh: Update.
85005         * tests/test-vfprintf-posix.sh: Update.
85006         * tests/test-vprintf-posix.sh: Update.
85007         Reported by Ralf Wildenhues.
85009 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85011         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
85012         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85013         GCC 4.2, which otherwise issues a lot of warnings.
85014         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
85015         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
85016         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
85017         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
85018         it should no longer be needed.
85019         * lib/string_.h: Likewise.
85020         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
85021         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
85022         * modules/inttypes (inttypes.h): Likewise.
85023         * modules/math (math.h): Likewise.
85024         * modules/search (search.h): Likewise.
85025         * modules/signal (signal.h): Likewise.
85026         * modules/stdint (stdint.h): Likewise.
85027         * modules/stdio (stdio.h): Likewise.
85028         * modules/stdlib (stdlib.h): Likewise.
85029         * modules/string (string.h): Likewise.
85030         * modules/sys_time (sys/time.h): Likewise.
85031         * modules/time (time.h): Likewise.
85032         * modules/wchar (wchar.h): Likewise.
85033         * modules/wctype (wtype.h): Likewise.
85035 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85037         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
85039 2007-05-13  Bruno Haible  <bruno@clisp.org>
85041         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
85042         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85043         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
85044         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
85045         (gl_PREREQ_STRTOK_R): Don't require it here.
85047 2007-05-13  Bruno Haible  <bruno@clisp.org>
85049         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
85050         when used in C++ mode.
85052 2007-05-12  Bruno Haible  <bruno@clisp.org>
85054         * lib/linebuffer.h: Tweak doc.
85055         * lib/linebuffer.c: Likewise.
85057 2007-05-12  James Youngman  <jay@gnu.org>
85059         * lib/linebuffer.c (readlinebuffer_delim): New function,
85060         like readlinebuffer, but use a caller-specified delimiter.
85061         (readlinebuffer): Just call readlinebuffer_delim with '\n'
85062         as the delimiter.
85063         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
85065 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85067         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
85068         * modules/openat (Files): Remove openat-die.c.
85069         (Depends-on): Add openat-die.
85070         * modules/openat-die: New module.
85072 2007-05-06  Bruno Haible  <bruno@clisp.org>
85074         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
85075         Update with info about Cygwin.
85076         * doc/functions/fprintf.texi: Update.
85077         * doc/functions/printf.texi: Update.
85078         * doc/functions/snprintf.texi: Update.
85079         * doc/functions/sprintf.texi: Update.
85080         * doc/functions/vfprintf.texi: Update.
85081         * doc/functions/vprintf.texi: Update.
85082         * doc/functions/vsnprintf.texi: Update.
85083         * doc/functions/vsprintf.texi: Update.
85084         Reported by Eric Blake.
85086 2007-05-06  Bruno Haible  <bruno@clisp.org>
85088         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
85089         padding ourselves for the floating-point directives.
85090         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
85091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
85092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85093         gl_PRINTF_FLAG_ZERO and test its result. Invoke
85094         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
85095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85096         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85099         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85101         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85102         * tests/test-snprintf-posix.h (test_function): Also check the width
85103         and some flags in the %f directive.
85104         * tests/test-sprintf-posix.h (test_function): Likewise.
85105         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85106         * tests/test-vasprintf-posix.c (test_function): Likewise.
85107         * doc/functions/fprintf.texi: Update.
85108         * doc/functions/printf.texi: Update.
85109         * doc/functions/snprintf.texi: Update.
85110         * doc/functions/sprintf.texi: Update.
85111         * doc/functions/vfprintf.texi: Update.
85112         * doc/functions/vprintf.texi: Update.
85113         * doc/functions/vsnprintf.texi: Update.
85114         * doc/functions/vsprintf.texi: Update.
85116 2007-05-06  Bruno Haible  <bruno@clisp.org>
85118         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
85119         pass the ' flag character to sprintf or snprintf.
85120         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
85121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
85122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85123         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
85124         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
85125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85128         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85129         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85131         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85132         * tests/test-snprintf-posix.h (test_function): Also check the grouping
85133         flag.
85134         * tests/test-sprintf-posix.h (test_function): Likewise.
85135         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85136         * tests/test-vasprintf-posix.c (test_function): Likewise.
85137         * doc/functions/fprintf.texi: Update.
85138         * doc/functions/printf.texi: Update.
85139         * doc/functions/snprintf.texi: Update.
85140         * doc/functions/sprintf.texi: Update.
85141         * doc/functions/vfprintf.texi: Update.
85142         * doc/functions/vprintf.texi: Update.
85143         * doc/functions/vsnprintf.texi: Update.
85144         * doc/functions/vsprintf.texi: Update.
85146 2007-05-01  Bruno Haible  <bruno@clisp.org>
85148         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
85150 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
85152         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
85153         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
85155 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
85157         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
85158         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
85159         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
85161 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
85163         * lib/argp-help.c (struct hol_entry): New member `ord'.
85164         (HOL_ENTRY_PTRCMP): Use ord for comparison
85165         (hol_sort): Initialize ord.
85167 2007-05-01  Bruno Haible  <bruno@clisp.org>
85169         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
85170         Reported by Eric Blake.
85171         * doc/gnulib.texi (Function Substitutes): Update.
85173 2007-05-01  Bruno Haible  <bruno@clisp.org>
85175         * doc/functions.texi: Remove file, now redundant through
85176         doc/functions/*.texi.
85178 2007-05-01  Bruno Haible  <bruno@clisp.org>
85180         * modules/argp (Depends-on): Add sleep.
85182 2007-05-01  Bruno Haible  <bruno@clisp.org>
85184         * modules/sleep-tests: New file.
85185         * tests/test-sleep.c: New file.
85187         * modules/sleep: New file.
85188         * lib/sleep.c: New file.
85189         * m4/sleep.m4: New file.
85190         * lib/unistd_.h (sleep): New declaration.
85191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
85192         HAVE_SLEEP.
85193         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
85194         * doc/functions/sleep.texi: Document the sleep module.
85196 2007-05-01  Bruno Haible  <bruno@clisp.org>
85198         * lib/sigprocmask.h: Remove file.
85199         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
85200         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
85201         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
85202         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
85203         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
85204         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
85205         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
85206         HAVE_SIGSET_T as a shell variable.
85207         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
85208         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
85209         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
85210         (Depends-on): Add signal. Remove verify.
85211         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
85212         (Include): Mention <signal.h> instead of sigprocmask.h.
85213         * NEWS: Mention the change.
85214         * lib/fatal-signal.c: Don't include sigprocmask.h.
85216 2007-05-01  Bruno Haible  <bruno@clisp.org>
85218         * modules/signal: New file.
85219         * lib/signal_.h: New file.
85220         * m4/signal_h.m4: New file.
85222 2007-05-01  Bruno Haible  <bruno@clisp.org>
85224         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
85225         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
85226         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
85227         HAVE_WCTYPE_CTMP_BUG into wctype.h.
85229 2007-05-01  Bruno Haible  <bruno@clisp.org>
85231         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
85232         configure time.
85233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
85234         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
85235         * modules/sys_stat (Makefile.am): Substitute their values into
85236         sys/stat.h.
85238 2007-05-01  Bruno Haible  <bruno@clisp.org>
85240         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
85241         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
85242         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
85244 2007-05-01  Bruno Haible  <bruno@clisp.org>
85246         * doc/header/assert.texi: Undo last change: don't mention the gnulib
85247         'assert' module here.
85249 2007-05-01  Bruno Haible  <bruno@clisp.org>
85251         * doc/functions/*.texi: New files.
85252         * doc/functions/google-ranking.txt: New file.
85253         * doc/gnulib.texi (Function Substitutes): New chapter.
85254         (ctime, inet_ntoa): Remove sections.
85255         * doc/ctime.texi: Remove file.
85256         * doc/inet_ntoa.texi: Remove file.
85257         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
85258         dependencies.
85259         (%.info): New rule, specifying a --reference-limit.
85261 2007-05-01  Bruno Haible  <bruno@clisp.org>
85263         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
85265 2007-05-01  Bruno Haible  <bruno@clisp.org>
85267         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
85268         the portability of 'mkdir' to mingw systems.
85270 2007-05-01  Bruno Haible  <bruno@clisp.org>
85272         * doc/headers/google-ranking.txt: New file.
85274 2007-04-30  Eric Blake  <ebb9@byu.net>
85276         Prefer fseeko to fseek.
85277         * modules/getpass (Depends-on): Add fseeko.
85278         * lib/getpass.c (getpass): Use fseeko, not fseek.
85280 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
85282         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
85283         assumes the sorting is stable, while most qsort implementations
85284         are not.  Use argument addresses to ensure they never compare as
85285         equal.
85287         * tests/test-argp-2.sh (usage-indent test): Fix output
85288         (func_compare): Restore diff options
85289         * tests/test-argp.c: Restore #include "progname.h"
85291 2007-04-29  Bruno Haible  <bruno@clisp.org>
85293         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
85294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85295         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
85296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85297         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
85298         (configure.ac): Define CHECK_SNPRINTF_POSIX.
85299         (TESTS, check_PROGRAMS): Add test-snprintf.
85300         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
85301         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
85302         (TESTS, check_PROGRAMS): Add test-vsnprintf.
85303         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
85304         assertions that fail on HP-UX, OSF/1, or IRIX.
85305         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
85307 2007-04-29  Bruno Haible  <bruno@clisp.org>
85309         * MODULES.html.sh (posix_functions): Remove 'contents'.
85311 2007-04-29  Karl Berry  <karl@gnu.org>
85313         * config/srclist.txt (gendocs_template_min): new entry.
85315 2007-04-29  Bruno Haible  <bruno@clisp.org>
85317         Work around fpurge bug on BSD systems.
85318         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
85319         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
85320         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
85321         fpurge to rpl_fpurge if the system already has this function.
85322         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
85323         the case where the system already has this function. Correct invariants
85324         on BSD systems.
85325         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
85326         BSD systems.
85328 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
85330         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
85331         proposed by Sven Verdoolaege.
85333         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
85334         options.
85335         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
85336         (usage and help tests): Update
85338 2007-04-29  Bruno Haible  <bruno@clisp.org>
85340         * tests/test-fflush.c (main): Use a file of size 17, not 10.
85341         Print more information in case of failure. Disable a test on BeOS.
85343 2007-04-29  Bruno Haible  <bruno@clisp.org>
85345         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
85346         This helps debugging on systems on which no gdb is available.
85348 2007-04-29  Bruno Haible  <bruno@clisp.org>
85350         * lib/freading.h: Improve comments.
85351         * lib/fwriting.h: Likewise.
85352         * tests/test-freading.c (main): Don't check freading immediately after
85353         repositioning. Needed for glibc.
85355 2007-04-29  Bruno Haible  <bruno@clisp.org>
85357         * lib/freading.c (freading): Trivial simplification.
85359 2007-04-28  Bruno Haible  <bruno@clisp.org>
85361         * tests/test-fwriting.c (main): Also test the interaction between
85362         fflush and fwriting.
85363         * modules/fwriting-tests (Depends-on): Add fflush.
85365         * tests/test-freading.c (main): Also test the interaction between
85366         fflush and freading.
85367         * modules/freading-tests (Depends-on): Add fflush.
85369 2007-04-28  Bruno Haible  <bruno@clisp.org>
85371         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
85372         fseeko and ftello.
85373         Suggested by Eric Blake.
85375 2007-04-28  Jim Meyering  <jim@meyering.net>
85377         Avoid false-negative in gl_STDINT_H's C99 conformance test.
85378         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
85379         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
85381 2007-04-27  Eric Blake  <ebb9@byu.net>
85383         * doc/headers/assert.texi (assert.h): Document assert module use.
85385 2007-04-27  Bruno Haible  <bruno@clisp.org>
85387         * doc/headers/*.texi: New files.
85388         * doc/gnulib.texi (Header File Substitutes): New chapter.
85389         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
85390         dependencies.
85391         (standards.info ,standards.html, standards.dvi): Update dependencies.
85392         (mostlyclean, clean): New targets.
85394 2007-04-27  Bruno Haible  <bruno@clisp.org>
85396         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
85397         * modules/sysexits (Files, Makefile.am): Update.
85399         * lib/sys_socket_.h: Renamed from lib/socket_.h.
85400         * modules/sys_socket (Files, Makefile.am): Update.
85402         * lib/sys_stat_.h: Renamed from lib/stat_.h.
85403         * modules/sys_stat (Files, Makefile.am): Update.
85405 2007-04-27  Eric Blake  <ebb9@byu.net>
85407         * lib/freading.h: Improve comments.
85408         * lib/fwriting.h: Likewise.
85409         * lib/fflush.c: Likewise.
85411         Fix closein for mingw.
85412         * modules/closein-tests: Add tests for closein.
85413         * tests/test-closein.c: New file.
85414         * tests/test-closein.sh: Likewise.
85415         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
85416         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
85418 2007-04-27  Bruno Haible  <bruno@clisp.org>
85420         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
85421         version is < 6.
85422         * lib/math_.h [__DECC]: Likewise.
85423         * lib/stdio_.h [__DECC]: Likewise.
85424         * lib/stdlib_.h [__DECC]: Likewise.
85425         * lib/string_.h [__DECC]: Likewise.
85426         * lib/time_.h [__DECC]: Likewise.
85427         * lib/wchar_.h [__DECC]: Likewise.
85428         * lib/wctype_.h [__DECC]: Likewise.
85430 2007-04-27  Bruno Haible  <bruno@clisp.org>
85432         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
85434 2007-04-27  Bruno Haible  <bruno@clisp.org>
85436         * lib/fflush.c: Add comments.
85437         * modules/fpurge-tests (Depends-on): Add fflush.
85438         * modules/freadable-tests (Depends-on): Likewise.
85439         * modules/fwritable-tests (Depends-on): Likewise.
85441 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
85443         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
85444         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
85445         Report by Bruno Haible <bruno@clisp.org>.
85447 2007-04-26  Eric Blake  <ebb9@byu.net>
85449         Fix fflush on mingw.
85450         * modules/fflush (Depends-on): Add freading.
85451         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
85452         but unread data.
85454 2007-04-26  Eric Blake  <ebb9@byu.net>
85455         and Bruno Haible  <bruno@clisp.org>
85457         Implement freading and fwriting.
85458         * lib/freading.c: New file.
85459         * lib/freading.h: Likewise.
85460         * m4/freading.m4: Likewise.
85461         * modules/freading: Likewise.
85462         * modules/freading-tests: Likewise.
85463         * tests/test-freading.c: Likewise.
85464         * lib/fwriting.c: New file.
85465         * lib/fwriting.h: Likewise.
85466         * m4/fwriting.m4: Likewise.
85467         * modules/fwriting: Likewise.
85468         * modules/fwriting-tests: Likewise.
85469         * tests/test-fwriting.c: Likewise.
85470         * MODULES.html.sh (File stream based Input/Output): Mention them.
85472 2007-04-26  Bruno Haible  <bruno@clisp.org>
85474         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
85475         'long' when we assume it.
85476         Suggested by Eric Blake.
85478 2007-04-26  Bruno Haible  <bruno@clisp.org>
85480         Ensure fseeko, ftello are declared on glibc systems.
85481         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
85482         * modules/fseeko (configure.ac-early): Likewise.
85483         * modules/ftello (configure.ac-early): Likewise.
85484         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
85485         AC_FUNC_FSEEKO for this.
85486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
85487         (gl_CHECK_FSEEKO): Remove macro.
85489 2007-04-26  Bruno Haible  <bruno@clisp.org>
85491         * tests/test-fflush.c (main): Also check the ftell result after
85492         fflush and fseek/fseeko.
85493         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
85494         file descriptor position cache in the stream.
85495         * lib/fseeko.c (rpl_fseeko): Likewise.
85497 2007-04-26  Bruno Haible  <bruno@clisp.org>
85499         * modules/fflush-tests (Depends-on): Add fseeko.
85501 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
85502             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85504         * lib/argz_.h: ensure error_t definition is obtained in same
85505         mechanism system argz.h would have.
85506         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
85507         argz facilities are known bad.  Err on the side of caution if
85508         cross-compiling.
85510 2007-04-25  Eric Blake  <ebb9@byu.net>
85512         * lib/fpurge.c (includes): Use stdlib.h for free.
85513         * tests/test-fflush.c (main): Also test fflush-fseeko.
85515 2007-04-25  Bruno Haible  <bruno@clisp.org>
85517         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
85518         * lib/fseeko.c: New file.
85519         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
85520         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
85521         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
85522         gl_FUNC_FSEEKO.
85523         (gl_FUNC_FSEEKO): Invoke it.
85524         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
85525         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
85526         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
85528 2007-04-25  Bruno Haible  <bruno@clisp.org>
85530         * modules/fflush (Depends-on): Add ftello.
85532 2007-04-25  Bruno Haible  <bruno@clisp.org>
85534         * modules/ftello-tests: New file.
85535         * tests/test-ftello.c: New file.
85537         * modules/ftello: New file.
85538         * m4/ftello.m4: New file.
85539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
85540         HAVE_FTELLO.
85541         * lib/stdio_.h (ftello): New declaration.
85542         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
85543         HAVE_FTELLO.
85545 2007-04-25  Bruno Haible  <bruno@clisp.org>
85547         * modules/fseeko-tests: New file.
85548         * tests/test-fseeko.c: New file.
85550         * modules/fseeko: New file.
85551         * m4/fseeko.m4: New file.
85552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
85553         HAVE_FSEEKO.
85554         * lib/stdio_.h (fseeko): New declaration.
85555         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
85556         HAVE_FSEEKO.
85558 2007-04-25  Bruno Haible  <bruno@clisp.org>
85560         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
85562 2007-04-25  Bruno Haible  <bruno@clisp.org>
85564         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
85565         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
85566         * tests/test-unistd.c: Likewise.
85567         * tests/test-fcntl.c: Likewise.
85569 2007-04-23  Eric Blake  <ebb9@byu.net>
85571         * lib/fflush.c: Fix missing include.
85572         Reported by Bruno Haible.
85574 2007-04-23  Bruno Haible  <bruno@clisp.org>
85576         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
85577         Reported by Eric Blake.
85579 2007-04-23  Bruno Haible  <bruno@clisp.org>
85581         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
85583 2007-04-23  Bruno Haible  <bruno@clisp.org>
85585         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
85587 2007-04-23  Bruno Haible  <bruno@clisp.org>
85589         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
85590         Needed on HP-UX 11.
85592 2007-04-16  Eric Blake  <ebb9@byu.net>
85594         Make fflush rely on fpurge.
85595         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
85596         open coding all variants.
85597         * modules/fflush (Depends-on): Add fpurge and unistd.
85598         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
85599         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
85601         Fix --with-tests compilation on cygwin.
85602         * modules/argmatch-tests (Makefile.am): List gnulib library first
85603         in LDADD.
85604         * modules/argp-tests (Makefile.am): Likewise.
85605         * modules/array-list-tests (Makefile.am): Likewise.
85606         * modules/array-oset-tests (Makefile.am): Likewise.
85607         * modules/avltree-list-tests (Makefile.am): Likewise.
85608         * modules/avltree-oset-tests (Makefile.am): Likewise.
85609         * modules/avltreehash-list-tests (Makefile.am): Likewise.
85610         * modules/carray-list-tests (Makefile.am): Likewise.
85611         * modules/dirname-tests (Makefile.am): Likewise.
85612         * modules/frexp-tests (Makefile.am): Likewise.
85613         * modules/isnanl-tests (Makefile.am): Likewise.
85614         * modules/linked-list-tests (Makefile.am): Likewise.
85615         * modules/linkedhash-list-tests (Makefile.am): Likewise.
85616         * modules/lock-tests (Makefile.am): Likewise.
85617         * modules/rbtree-list-tests (Makefile.am): Likewise.
85618         * modules/rbtree-oset-tests (Makefile.am): Likewise.
85619         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
85620         * modules/tls-tests (Makefile.am): Likewise.
85621         * modules/tsearch-tests (Makefile.am): Likewise.
85622         * modules/xvasprintf-tests (Makefile.am): Likewise.
85624         Fix fpurge for cygwin.
85625         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
85626         value.
85627         * modules/fpurge-tests (Depends-on): Clean up trash.
85629 2007-04-16  Simon Josefsson  <simon@josefsson.org>
85631         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
85633         * m4/autobuild.m4: Re-indent.
85635 2007-04-13  Bruno Haible  <bruno@clisp.org>
85637         * modules/fpurge-tests: New file.
85638         * tests/test-fpurge.c: New file.
85640         * modules/fpurge: New file.
85641         * lib/fpurge.h: New file.
85642         * lib/fpurge.c: New file.
85643         * m4/fpurge.m4: New file.
85645 2007-04-13  Bruno Haible  <bruno@clisp.org>
85647         * modules/fbufmode-tests: New file.
85648         * tests/test-fbufmode.c: New file.
85650         * modules/fbufmode: New file.
85651         * lib/fbufmode.h: New file.
85652         * lib/fbufmode.c: New file.
85653         * m4/fbufmode.m4: New file.
85655 2007-04-13  Bruno Haible  <bruno@clisp.org>
85657         * modules/fwritable-tests: New file.
85658         * tests/test-fwritable.c: New file.
85660         * modules/fwritable: New file.
85661         * lib/fwritable.h: New file.
85662         * lib/fwritable.c: New file.
85663         * m4/fwritable.m4: New file.
85665 2007-04-13  Bruno Haible  <bruno@clisp.org>
85667         * modules/freadable-tests: New file.
85668         * tests/test-freadable.c: New file.
85670         * modules/freadable: New file.
85671         * lib/freadable.h: New file.
85672         * lib/freadable.c: New file.
85673         * m4/freadable.m4: New file.
85675 2007-04-13  Bruno Haible  <bruno@clisp.org>
85677         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
85678         MOSTLYCLEANFILES.
85680 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85682         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
85683         gzip bootstrap.conf to avoid dragging in i18n machinery.
85684         (gnulib_tool_option): Use it.
85686 2007-04-13  Bruno Haible  <bruno@clisp.org>
85688         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
85689         %F directives.
85690         * tests/test-vasprintf-posix.c (test_function): Likewise.
85691         * tests/test-snprintf-posix.h (test_function): Likewise.
85692         * tests/test-sprintf-posix.h (test_function): Likewise.
85693         * tests/test-fprintf-posix.h (test_function): Likewise.
85694         * tests/test-printf-posix.h (test_function): Likewise.
85695         * tests/test-fprintf-posix.out: Likewise.
85697 2007-04-13  Bruno Haible  <bruno@clisp.org>
85699         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
85700         * modules/tls-tests (configure.ac): Likewise.
85701         Reported by Arto C. Nirkko <anirkko@insel.ch>.
85703 2007-04-13  Bruno Haible  <bruno@clisp.org>
85705         * lib/tls.c (glthread_tls_get): Fix return type.
85706         Patch by Arto C. Nirkko <anirkko@insel.ch>.
85708 2007-04-12  Eric Blake  <ebb9@byu.net>
85710         * modules/gettime (Depends-on): Remove gettime.
85711         Reported by Dmitry V. Levin.
85713 2007-04-12  Bruno Haible  <bruno@clisp.org>
85715         * modules/fflush (Include): Mention <stdio.h>.
85716         * modules/strtoimax (Include): Mention <inttypes.h>.
85717         * modules/strtoumax (Include): Likewise.
85719 2007-04-12  Eric Blake  <ebb9@byu.net>
85721         * .cvsignore: New file.
85722         * .gitignore: Likewise.
85724 2007-04-12  Bruno Haible  <bruno@clisp.org>
85726         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
85727         not before, since $(LDADD) often contains libgnu.a.
85728         * modules/striconv-tests (test_striconv_LDADD): Likewise.
85729         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
85730         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
85731         Needed on Cygwin.
85733 2007-04-12  Eric Blake  <ebb9@byu.net>
85735         Work around glibc's failure to flush stdin on fclose.
85736         * lib/closein.c (close_stdin): Flush stdin before closing.
85738         Work around glibc's failure to reset seekable stdin on exit.
85739         * modules/closein: New module.
85740         * lib/closein.c: New file.
85741         * lib/closein.h: Likewise.
85742         * m4/closein.m4: Likewise.
85743         * MODULES.html.sh (File stream based Input/Output): Document it.
85745 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85747         * gnulib-tool: Rename generated 'autobuild' script to
85748         'do-autobuild' in --create-megatestdir output.
85750         * doc/gnulib.texi (Build robot for gnulib): Fix.
85752 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85754         * modules/sysexits (Depends-on): Add absolute-header.
85756 2007-04-12  Eric Blake  <ebb9@byu.net>
85758         No need to preserve errno on success.
85759         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
85760         Reported by Bruno Haible.
85762 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85764         * MODULES.html.sh (Support for maintaining and releasing
85765         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
85767 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85769         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
85771 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85773         * modules/autobuild: New module.
85775         * m4/autobuild.m4: New file.
85777 2007-04-11  Bruno Haible  <bruno@clisp.org>
85779         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
85780         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
85781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
85782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
85783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
85790         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85791         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
85793         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85794         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85795         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
85796         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85797         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85798         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
85799         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85800         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
85802         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85803         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85804         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
85805         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85806         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85807         Reported by Eric Blake.
85809 2007-04-11  Bruno Haible  <bruno@clisp.org>
85811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
85813 2007-04-10  Bruno Haible  <bruno@clisp.org>
85815         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
85816         for NaN and Infinity. Needed on FreeBSD 6.1.
85817         * tests/test-vasnprintf-posix.c (test_function): Undo last change
85818         regarding results for "%010a" of Infinity and NaN.
85819         * tests/test-vasprintf-posix.c (test_function): Likewise.
85820         * tests/test-snprintf-posix.h (test_function): Likewise.
85821         * tests/test-sprintf-posix.h (test_function): Likewise.
85822         * tests/test-fprintf-posix.h (test_function): Likewise.
85823         * tests/test-printf-posix.h (test_function): Likewise.
85824         * tests/test-fprintf-posix.out: Likewise.
85826 2007-04-10  Bruno Haible  <bruno@clisp.org>
85828         * modules/locale-tests: New file.
85829         * tests/test-locale.c: New file.
85831         * modules/locale: New file.
85832         * lib/locale_.h: New file.
85833         * m4/locale_h.m4: New file.
85835 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
85836             Bruno Haible  <bruno@clisp.org>
85838         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
85839         be determined, test for availability of the copysignf, copysign,
85840         copysignl functions.
85841         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
85842         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
85843         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
85845 2007-04-09  Eric Blake  <ebb9@byu.net>
85847         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
85848         * modules/stdio (Makefile.am): Support fflush.
85849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85850         * modules/fflush: New file.
85851         * lib/fflush.c: Likewise.
85852         * m4/fflush.m4: Likewise.
85853         * modules/fflush-tests: New test.
85854         * tests/test-fflush.c: Likewise.
85855         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
85857 2007-04-06  Bruno Haible  <bruno@clisp.org>
85859         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
85860         (VASNPRINTF): Use signbit for faster determination whether to print a
85861         minus sign.
85862         * modules/vasnprintf (Files): Remove lib/float+.h.
85863         * modules/fprintf-posix (Depends-on): Add signbit.
85864         * modules/snprintf-posix (Depends-on): Likewise.
85865         * modules/sprintf-posix (Depends-on): Likewise.
85866         * modules/vasnprintf-posix (Depends-on): Likewise.
85867         * modules/vasprintf-posix (Depends-on): Likewise.
85868         * modules/vfprintf-posix (Depends-on): Likewise.
85869         * modules/vsnprintf-posix (Depends-on): Likewise.
85870         * modules/vsprintf-posix (Depends-on): Likewise.
85872 2007-04-06  Bruno Haible  <bruno@clisp.org>
85874         * tests/test-frexp.c (main): Test also the sign bit of zero results.
85875         * tests/test-frexpl.c (main): Likewise.
85876         * tests/test-ldexpl.c (main): Likewise.
85877         * modules/frexp-tests (Depends-on): Add signbit.
85878         * modules/frexpl-tests (Depdends-on): Likewise.
85879         * modules/ldexpl-tests (Depdends-on): Likewise.
85881 2007-04-06  Bruno Haible  <bruno@clisp.org>
85883         * modules/signbit-tests: New file.
85884         * tests/test-signbit.c: New file.
85886         * modules/signbit: New file.
85887         * lib/signbitf.c: New file.
85888         * lib/signbitd.c: New file.
85889         * lib/signbitl.c: New file.
85890         * m4/signbit.m4: New file.
85891         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
85892         (signbit): New macro.
85893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
85894         REPLACE_SIGNBIT.
85895         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
85896         REPLACE_FREXPL into math.h.
85898 2007-04-06  Bruno Haible  <bruno@clisp.org>
85900         * modules/isnanf-nolibm-tests: New file.
85901         * tests/test-isnanf.c: New file.
85903         * modules/isnanf-nolibm: New file.
85904         * lib/isnanf.h: New file.
85905         * lib/isnanf.c: New file.
85906         * lib/isnan.c: Consider the USE_FLOAT macro.
85907         * m4/isnanf.m4: New file.
85909 2007-04-06  Bruno Haible  <bruno@clisp.org>
85911         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
85912         (Link): New section.
85914         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
85916 2007-04-06  Bruno Haible  <bruno@clisp.org>
85918         Assume the 'long double' type.
85919         * m4/longdouble.m4: Remove file.
85920         * config/srclist.txt: Don't mention longdouble.m4.
85921         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
85922         * lib/float+.h: Likewise.
85923         * lib/frexp.c: Likewise.
85924         * lib/printf-args.h: Likewise.
85925         * lib/printf-args.c: Likewise.
85926         * lib/printf-frexp.c: Likewise.
85927         * lib/printf-parse.c: Likewise.
85928         * lib/vasnprintf.c: Likewise.
85929         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
85930         * m4/intl.m4: Likewise.
85931         * m4/isnanl.m4: Likewise.
85932         * m4/printf.m4: Likewise.
85933         * m4/printf-frexpl.m4: Likewise.
85934         * m4/vasnprintf.m4: Likewise.
85935         * modules/allocsa (Files): Remove m4/longdouble.m4.
85936         * modules/gettext (Files): Likewise.
85937         * modules/relocatable-prog-wrapper (Files): Likewise.
85938         * modules/vasnprintf (Files): Likewise.
85939         * modules/isnanl (Files): Likewise.
85940         (Include): Simplify.
85941         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
85942         (Include): Simplify.
85943         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
85944         (Include): Simplify.
85945         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
85946         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85947         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
85948         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85949         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85950         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85951         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
85952         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85953         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85954         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85955         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
85956         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85957         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
85958         * tests/test-isnanl.c: Likewise.
85959         * tests/test-snprintf-posix.h: Likewise.
85960         * tests/test-sprintf-posix.h: Likewise.
85961         * tests/test-vasnprintf-posix.c: Likewise.
85962         * tests/test-vasnprintf-posix2.c: Likewise.
85963         * tests/test-vasprintf-posix.c: Likewise.
85965 2007-04-06  Bruno Haible  <bruno@clisp.org>
85967         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
85968         * lib/math_.h [__DECC]: Include the overridden include file through
85969         #include_next, outside the double-inclusion guard.
85970         * lib/stdio_.h [__DECC]: Likewise.
85971         * lib/stdlib_.h [__DECC]: Likewise.
85972         * lib/string_.h [__DECC]: Likewise.
85973         * lib/time_.h [__DECC]: Likewise.
85974         * lib/wchar_.h [__DECC]: Likewise.
85975         * lib/wctype_.h [__DECC]: Likewise.
85976         * lib/inttypes_.h [__DECC]: Likewise.
85977         Reported by Albert Chin <china@thewrittenword.com> in
85978         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
85980 2007-04-04  Eric Blake  <ebb9@byu.net>
85982         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
85983         1.5.x.
85985 2007-04-04  Bruno Haible  <bruno@clisp.org>
85987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
85988         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
85990 2007-04-04  Bruno Haible  <bruno@clisp.org>
85992         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
85993         results for "%010a" of Infinity and NaN.
85994         * tests/test-vasprintf-posix.c (test_function): Likewise.
85995         * tests/test-snprintf-posix.h (test_function): Likewise.
85996         * tests/test-sprintf-posix.h (test_function): Likewise.
85997         * tests/test-fprintf-posix.h (test_function): Remove these tests.
85998         * tests/test-printf-posix.h (test_function): Likewise.
85999         * tests/test-fprintf-posix.out: Update.
86000         Needed for FreeBSD 6.1.
86002 2007-04-04  Bruno Haible  <bruno@clisp.org>
86004         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
86005         directly used by the gnulib modules nor by gnulib-tool.
86007 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86009         * DEPENDENCIES: Give overall description of version dependency
86010         desirability.  Use more-typical names for apps.
86011         Add shell, coreutils, diffutils, grep, tar, gzip.
86013 2007-04-04  Simon Josefsson  <simon@josefsson.org>
86015         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
86017 2007-04-04  Karl Berry  <karl@gnu.org>
86019         * MODULES.html.sh (func_module): missing '.
86021 2007-04-03  Bruno Haible  <bruno@clisp.org>
86023         * modules/argmatch-tests (Makefile.am): New variable
86024         test_argmatch_LDADD.
86025         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
86026         * modules/array-list-tests (Makefile.am): New variable
86027         test_array_list_LDADD.
86028         * modules/array-oset-tests (Makefile.am): New variable
86029         test_array_oset_LDADD.
86030         * modules/avltree-list-tests (Makefile.am): New variable
86031         test_avltree_list_LDADD.
86032         * modules/avltree-oset-tests (Makefile.am): New variable
86033         test_avltree_oset_LDADD.
86034         * modules/avltreehash-list-tests (Makefile.am): New variable
86035         test_avltreehash_list_LDADD.
86036         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
86037         test_canonicalize_lgpl_LDADD.
86038         * modules/carray-list-tests (Makefile.am): New variable
86039         test_carray_list_LDADD.
86040         * modules/dirname-tests (Makefile.am): New variable
86041         test_dirname_LDADD.
86042         * modules/linked-list-tests (Makefile.am): New variable
86043         test_linked_list_LDADD.
86044         * modules/linkedhash-list-tests (Makefile.am): New variable
86045         test_linkedhash_list_LDADD.
86046         * modules/rbtree-list-tests (Makefile.am): New variable
86047         test_rbtree_list_LDADD.
86048         * modules/rbtree-oset-tests (Makefile.am): New variable
86049         test_rbtree_oset_LDADD.
86050         * modules/rbtreehash-list-tests (Makefile.am): New variable
86051         test_rbtreehash_list_LDADD.
86052         * modules/xvasprintf-tests (Makefile.am): New variable
86053         test_xvasprintf_LDADD.
86054         Reported by Eric Blake.
86056 2007-04-03  Eric Blake  <ebb9@byu.net>
86058         * DEPENDENCIES: Weaken m4 requirements.
86060 2007-04-03  Bruno Haible  <bruno@clisp.org>
86062         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
86063         * modules/isnanl-tests (configure.ac): Likewise.
86065 2007-04-03  Ben Pfaff  <blp@gnu.org>
86067         * modules/iconv_open: Add $(srcdir)/ to source directory
86068         references in Makefile fragments that call gperf, to fix VPATH
86069         builds.
86071 2007-04-03  Bruno Haible  <bruno@clisp.org>
86073         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
86074         * lib/ldexpl.c: Undo last change.
86076 2007-04-03  Bruno Haible  <bruno@clisp.org>
86078         * modules/printf-frexpl (Depends-on): Undo last change.
86079         (Files): Add m4/ldexpl.m4.
86081 2007-04-03  Bruno Haible  <bruno@clisp.org>
86083         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
86084         * modules/isnanl (Link): New section.
86086         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
86087         * modules/frexp (Link): New section.
86089         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
86090         * modules/frexpl (Link): New section.
86092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
86093         * modules/ldexpl (Link): New section.
86095 2007-04-03  Bruno Haible  <bruno@clisp.org>
86097         * modules/TEMPLATE-EXTENDED: New file.
86098         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
86100 2007-04-03  Bruno Haible  <bruno@clisp.org>
86102         * DEPENDENCIES: New file.
86103         Suggested by Simon Josefsson.
86105 2007-04-03  Bruno Haible  <bruno@clisp.org>
86107         * doc/gnulib.texi: Escape @.
86109 2007-04-03  James Youngman  <jay@gnu.org>
86110         and Paul Eggert  <eggert@cs.ucla.edu>
86112         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
86113         birthtime on all systems that have birthtime, not just those which
86114         use st_birthtimensec rather than st_birthtim.  Putting zero in
86115         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
86116         that the birth time is not available for files on an NFS mount.
86118 2007-04-03  Simon Josefsson  <simon@josefsson.org>
86120         * modules/memxor: Move back from crypto/, suggested by Bruno.
86121         * modules/crypto/hmac-sha1: Fix memxor dependency.
86123         * modules/crypto/gc: Moved from ../.
86125 2007-04-02  Eric Blake  <ebb9@byu.net>
86127         * lib/ldexpl.c (includes): Avoid libm.
86129         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
86131 2007-04-02  Bruno Haible  <bruno@clisp.org>
86133         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
86134         on IRIX.
86136 2007-04-02  Bruno Haible  <bruno@clisp.org>
86138         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
86139         x86 or x86_64 platforms running MacOS X.
86140         Reported by Ryan Schmidt <@ryandesign.com>.
86142 2007-04-02  Bruno Haible  <bruno@clisp.org>
86144         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
86145         i386.
86147 2007-04-01  Simon Josefsson  <simon@josefsson.org>
86149         * modules/crypto/arcfour: Moved from ../.
86150         * modules/crypto/arcfour-tests: Moved from ../.
86151         * modules/crypto/arctwo: Moved from ../.
86152         * modules/crypto/arctwo-tests: Moved from ../.
86153         * modules/crypto/des: Moved from ../.
86154         * modules/crypto/des-tests: Moved from ../.
86155         * modules/crypto/gc-arcfour: Moved from ../.
86156         * modules/crypto/gc-arcfour-tests: Moved from ../.
86157         * modules/crypto/gc-arctwo: Moved from ../.
86158         * modules/crypto/gc-arctwo-tests: Moved from ../.
86159         * modules/crypto/gc-des: Moved from ../.
86160         * modules/crypto/gc-des-tests: Moved from ../.
86161         * modules/crypto/gc-hmac-md5: Moved from ../.
86162         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
86163         * modules/crypto/gc-hmac-sha1: Moved from ../.
86164         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
86165         * modules/crypto/gc-md2: Moved from ../.
86166         * modules/crypto/gc-md2-tests: Moved from ../.
86167         * modules/crypto/gc-md4: Moved from ../.
86168         * modules/crypto/gc-md4-tests: Moved from ../.
86169         * modules/crypto/gc-md5: Moved from ../.
86170         * modules/crypto/gc-md5-tests: Moved from ../.
86171         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
86172         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
86173         * modules/crypto/gc-random: Moved from ../.
86174         * modules/crypto/gc-rijndael: Moved from ../.
86175         * modules/crypto/gc-rijndael-tests: Moved from ../.
86176         * modules/crypto/gc-sha1: Moved from ../.
86177         * modules/crypto/gc-sha1-tests: Moved from ../.
86178         * modules/crypto/gc-tests: Moved from ../.
86179         * modules/crypto/hmac-md5: Moved from ../.
86180         * modules/crypto/hmac-md5-tests: Moved from ../.
86181         * modules/crypto/hmac-sha1: Moved from ../.
86182         * modules/crypto/hmac-sha1-tests: Moved from ../.
86183         * modules/crypto/md2: Moved from ../.
86184         * modules/crypto/md2-tests: Moved from ../.
86185         * modules/crypto/md4: Moved from ../.
86186         * modules/crypto/md4-tests: Moved from ../.
86187         * modules/crypto/md5: Moved from ../.
86188         * modules/crypto/md5-tests: Moved from ../.
86189         * modules/crypto/memxor: Moved from ../.
86190         * modules/crypto/rijndael: Moved from ../.
86191         * modules/crypto/rijndael-tests: Moved from ../.
86192         * modules/crypto/sha1: Moved from ../.
86194 2007-03-30  James Youngman  <jay@gnu.org>
86196         * tests/test-stat-time.c (prepare_test): use chmod() rather than
86197         rename() to change the ctime of a file (because ctime is unaffected
86198         by rename on jfs2 on AIX 5.1).
86199         (main): Start by doing cleanup, in case a previous run failed leaving
86200         test files behind.
86202 2007-03-31  Bruno Haible  <bruno@clisp.org>
86204         Support old proprietary implementations of iconv.
86205         * modules/iconv_open: New file.
86206         * lib/iconv_.h: New file.
86207         * m4/iconv_h.m4: New file.
86208         * lib/iconv_open.c: New file.
86209         * lib/iconv_open-aix.gperf: New file.
86210         * lib/iconv_open-hpux.gperf: New file.
86211         * lib/iconv_open-irix.gperf: New file.
86212         * lib/iconv_open-osf.gperf: New file.
86213         * m4/iconv_open.m4: New file.
86214         * modules/linebreak (Depends-on): Add iconv_open.
86215         * modules/striconv (Depends-on): Likewise.
86216         * modules/striconveh (Depends-on): Likewise.
86217         * modules/unicodeio (Depends-on): Likewise.
86218         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
86219         (iconv_t)(-1).
86220         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
86221         conversion if cd is (iconv_t)(-1).
86222         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
86223         is not possible.
86225 2007-03-31  Bruno Haible  <bruno@clisp.org>
86227         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
86228         work on Solaris either. Protect also second use of "autodetect_jp".
86230 2007-03-31  Bruno Haible  <bruno@clisp.org>
86232         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
86233         the function is not present.
86235 2007-03-31  Bruno Haible  <bruno@clisp.org>
86237         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
86238         the function is not present.
86240 2007-03-31  Bruno Haible  <bruno@clisp.org>
86242         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
86243         a bug in HP-UX iconv_open().
86245 2007-03-31  Bruno Haible  <bruno@clisp.org>
86247         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
86248         (Mathematics <math.h>): New section, add fpieee.
86249         (Input/output <stdio.h>): Add fseterr.
86250         (Mathematics <math.h>): New section, add printf-frexp.
86251         (Container data structures): Add sublist.
86252         (Core language properties): Add fpucw, inline.
86253         (Functions for greatest-width integer types <inttypes.h>): Add
86254         imaxabs, imaxdiv, inttypes.
86255         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
86256         isnanl-nolibm, ldexp.
86257         (Mathematics <math.h>): New section, add printf-frexpl.
86258         (Support for systems lacking POSIX:2001): Add fprintf-posix,
86259         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
86260         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
86261         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
86262         (Unicode string functions): Add unistr/u*-mbtoucr.
86263         (Java): Add javacomp-script, javaexec-script.
86264         (C#): Add csharpcomp-script, csharpexec-script.
86265         (Support for building libraries and executables): Add havelib,
86266         relocatable-*.
86267         (Support for maintaining and releasing projects): Renamed from
86268         'Support for maintaining and release projects'. Add announce-gen.
86270 2007-03-31  Bruno Haible  <bruno@clisp.org>
86272         * README: Talk primarily about git.
86273         (git and CVS): Renamed from CVS.
86274         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
86275         gnulib is available through git.
86276         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
86278 2007-03-30  Bruno Haible  <bruno@clisp.org>
86280         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
86281         * lib/poll_.h: Likewise.
86282         * lib/stat_.h: Likewise.
86283         * lib/sys_time_.h: Likewise.
86284         * lib/sysexit_.h: Likewise.
86285         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
86286         * lib/stdbool_.h: Likewise.
86287         * lib/byteswap_.h: Add double-inclusion guard.
86289 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
86291         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
86293 2007-03-30  Karl Berry  <karl@gnu.org>
86295         * config/srclist-update: double space after USA in the license
86296         substitution, since that's how it's usually (?) written.
86298 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
86300         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
86301         reported by Bruno Haible.
86303 2007-03-29  Bruno Haible  <bruno@clisp.org>
86305         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
86306         a bug in AIX iconv().
86308 2007-03-29  Bruno Haible  <bruno@clisp.org>
86310         * modules/ldexpl-tests: New file.
86311         * tests/test-ldexpl.c: New file.
86313 2007-03-29  Bruno Haible  <bruno@clisp.org>
86315         * lib/ldexpl.c: Include fpucw.h.
86316         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
86317         multiplication.
86318         * modules/ldexpl (Depends-on): Add fpucw.
86320 2007-03-29  Bruno Haible  <bruno@clisp.org>
86322         * modules/ldexpl: New file.
86323         * m4/ldexpl.m4: New file.
86324         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
86325         set.
86326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
86327         REPLACE_LDEXPL.
86328         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
86329         REPLACE_LDEXPL.
86330         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86331         gl_FUNC_LDEXPL_WORKS.
86332         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
86333         * modules/mathl (Files): Remove lib/ldexpl.c.
86334         (Depends-on): Add ldexpl.
86336 2007-03-29  Bruno Haible  <bruno@clisp.org>
86338         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
86340 2007-03-29  Bruno Haible  <bruno@clisp.org>
86342         * tests/test-striconveh.c (main): Don't assume that a direct conversion
86343         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
86344         and possibly also HP-UX.
86345         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
86346         work on AIX, IRIX, HP-UX, OSF/1.
86347         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
86348         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
86349         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
86350         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
86351         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
86352         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
86354 2007-03-29  Bruno Haible  <bruno@clisp.org>
86356         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
86358 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
86360         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
86361         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
86363 2007-03-29  Eric Blake  <ebb9@byu.net>
86365         * lib/acl-internal.h: Remove redundant include.
86366         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
86367         Cygwin when a file is locked.
86369 2007-03-29  Bruno Haible  <bruno@clisp.org>
86371         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
86372         file.
86373         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
86375 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
86377         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
86378         try to remove a parent directory if the child couldn't be removed
86379         (except for the first rmdir, which could fail because the child
86380         doesn't exist).  Problem reported by Jeff Blaine in
86381         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
86383 2007-03-28  Bruno Haible  <bruno@clisp.org>
86385         * lib/striconveh.c (utf8conv_carefully): New function.
86386         (mem_cd_iconveh_internal): Invoke it.
86388 2007-03-28  Bruno Haible  <bruno@clisp.org>
86390         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
86391         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
86392         input.
86393         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
86394         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
86395         unistr/u8-uctomb.
86397 2007-03-28  Bruno Haible  <bruno@clisp.org>
86399         * modules/unistr/u8-mbtoucr: New file.
86400         * lib/unistr/u8-mbtoucr.c: New file.
86401         * modules/unistr/u16-mbtoucr: New file.
86402         * lib/unistr/u16-mbtoucr.c: New file.
86403         * modules/unistr/u16-mbtoucr: New file.
86404         * lib/unistr/u16-mbtoucr.c: New file.
86405         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
86407 2007-03-27  Simon Josefsson  <simon@josefsson.org>
86408             Bruno Haible  <bruno@clisp.org>
86410         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
86411         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
86412         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
86414         * m4/stdio_h.m4: Add stubs for vasprintf too.
86416         * modules/stdio: Support vasprintf in sed command.
86418         * modules/vasprintf: Depend on stdio for prototypes.  Remove
86419         vasprintf.h.  Add stdio module indicator.
86421         * lib/stdio_.h: Declare asprintf and vasprintf, based on
86422         vasprintf.h.
86424         * lib/vasprintf.h: File removed.
86426         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
86427         * lib/vasprintf.c: Ditto.
86428         * lib/xvasprintf.c: Ditto.
86429         * tests/test-vasprintf-posix.c: Ditto.
86430         * tests/test-vasprintf.c: Ditto.
86432 2007-03-27  Bruno Haible  <bruno@clisp.org>
86434         Make vasnprintf multithread-safe.
86435         * lib/vasnprintf.c (decimal_point_char): New function.
86436         (VASNPRINTF): Use it.
86437         Suggested by Simon Josefsson.
86439 2007-03-27  Eric Blake  <ebb9@byu.net>
86441         Support sub-second birthtime on cygwin.
86442         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
86443         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
86444         (get_stat_birthtime): Also work with st_birthtim.
86446 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
86448         * lib/stat-time.h (USE_BIRTHTIME): Remove.
86449         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
86450         (get_stat_birthtime_ns): Do not try to use "spare" fields.
86451         (get_stat_birthtime_ns): Simplify compile-time tests.
86452         (get_stat_birthtime): Change the API to look like
86453         get_stat_mtime etc., except return a negative tv_nsec on error.
86454         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
86455         Don't check for "spare" fields.
86456         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
86457         or for struct stat.st_birthtime, as these tests aren't used.
86458         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
86460 2007-03-27  Bruno Haible  <bruno@clisp.org>
86462         * lib/stat-time.h: Include <sys/stat.h>.
86464 2007-03-27  James Youngman  <jay@gnu.org>
86466         * lib/stat-time.h (get_stat_birthtime): New function for
86467           retrieving st_birthtime as provided by UFS2 (hence *BSD).
86468         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
86469           and its variants.
86470         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
86471         * modules/stat-time-test: New file.
86472         * tests/test-stat-time.c: New test, devised by Bruno Haible.
86474 2007-03-26  Bruno Haible  <bruno@clisp.org>
86476         Better support of signalling NaNs.
86477         * lib/atanl.c: Include isnanl.h.
86478         (atanl): Perform test for NaN at the beginning of the function and
86479         through a call to isnanl.
86480         * lib/cosl.c: Include isnanl.h.
86481         (cosl): Perform test for NaN at the beginning of the function and
86482         through a call to isnanl.
86483         * lib/ldexpl.c: Include isnanl.h.
86484         (ldexpl): Perform test for NaN through a call to isnanl.
86485         * lib/logl.c: Include isnanl.h.
86486         (logl): Perform test for NaN at the beginning of the function and
86487         through a call to isnanl.
86488         * lib/sinl.c: Include isnanl.h.
86489         (sinl): Perform test for NaN at the beginning of the function and
86490         through a call to isnanl.
86491         * lib/sqrtl.c: Include isnanl.h.
86492         (sqrtl): Perform test for NaN at the beginning of the function and
86493         through a call to isnanl.
86494         * lib/tanl.c: Include isnanl.h.
86495         (tanl): Perform test for NaN at the beginning of the function and
86496         through a call to isnanl.
86497         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
86498         * modules/mathl (Depends-on): Add isnanl.
86500 2007-03-26  Eric Blake  <ebb9@byu.net>
86502         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
86503         regression in logic sense of previous patch.
86505 2007-03-26  Bruno Haible  <bruno@clisp.org>
86507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
86508         unportable shell command "if ! ...".
86509         Reported by Ralf Wildenhues.
86511 2007-03-25  Bruno Haible  <bruno@clisp.org>
86513         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
86514         <sysexits.h> file, and only add EX_CONFIG.
86515         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
86516         absolute file name and whether it is sufficient. Substitute also
86517         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
86518         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
86519         ABSOLUTE_SYSEXITS_H into sysexits.h.
86521 2007-03-25  Bruno Haible  <bruno@clisp.org>
86523         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
86524         hints is NULL.
86526 2007-03-25  Bruno Haible  <bruno@clisp.org>
86528         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
86529         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
86531 2007-03-25  Bruno Haible  <bruno@clisp.org>
86533         * lib/vasnprintf.c: Include langinfo.h.
86534         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
86535         multithread-safe.
86536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
86537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
86538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
86544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86545         Reported by Simon Josefsson.
86547 2007-03-25  Bruno Haible  <bruno@clisp.org>
86549         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
86550         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
86551         * modules/vasnprintf (Depends-on): Add stdint.
86553 2007-03-25  Bruno Haible  <bruno@clisp.org>
86555         * modules/fpieee: New file.
86556         * m4/fpieee.m4: New file.
86557         * modules/isnan-nolibm (Depends-on): Add fpieee.
86558         * modules/isnanl-nolibm (Depends-on): Add fpieee.
86559         * modules/isnanl (Depends-on): Add fpieee.
86561 2007-03-25  Bruno Haible  <bruno@clisp.org>
86563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
86565 2007-03-25  Bruno Haible  <bruno@clisp.org>
86567         Avoid test failures on IRIX 6.5.
86568         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
86569         (main): Use it.
86570         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
86571         macros.
86572         (main): Use them.
86574 2007-03-25  Bruno Haible  <bruno@clisp.org>
86576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
86577         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
86578         exists but doesn't work.
86579         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
86580         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
86581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
86582         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
86583         math.h.
86585 2007-03-25  Bruno Haible  <bruno@clisp.org>
86587         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
86588         returns inf. Needed on IRIX 6.5.
86590 2007-03-25  Bruno Haible  <bruno@clisp.org>
86592         * tests/test-frexpl.c: Include isnanl-nolibm.h.
86593         (main): Use isnanl instead of x != x idiom.
86594         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
86596         * tests/test-frexp.c: Include isnan.h.
86597         (main): Use isnan instead of x != x idiom.
86598         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
86600 2007-03-25  Bruno Haible  <bruno@clisp.org>
86602         * tests/test-frexp.c (NaN): New function/macro.
86603         (main): Use it instead of 0.0 / 0.0.
86604         * tests/test-isnan.c (NaN): New function/macro.
86605         (main): Use it instead of 0.0 / 0.0.
86606         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
86607         (test_function): Use it instead of 0.0 / 0.0.
86608         * tests/test-vasprintf-posix.c (NaN): New function/macro.
86609         (test_function): Use it instead of 0.0 / 0.0.
86610         * tests/test-snprintf-posix.h (NaN): New function/macro.
86611         (test_function): Use it instead of 0.0 / 0.0.
86612         * tests/test-sprintf-posix.h (NaN): New function/macro.
86613         (test_function): Use it instead of 0.0 / 0.0.
86614         * tests/test-fprintf-posix.h (NaN): New function/macro.
86615         (test_function): Use it instead of 0.0 / 0.0.
86616         * tests/test-printf-posix.h (NaN): New function/macro.
86617         (test_function): Use it instead of 0.0 / 0.0.
86619         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
86621 2007-03-25  Bruno Haible  <bruno@clisp.org>
86623         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
86625 2007-03-25  Bruno Haible  <bruno@clisp.org>
86627         * lib/regexec.c (merge_state_with_log): Make static.
86629 2007-03-25  Bruno Haible  <bruno@clisp.org>
86631         * lib/trigl.c (kernel_rem_pio2): Make static.
86633 2007-03-25  Bruno Haible  <bruno@clisp.org>
86635         * lib/sincosl.c (sincosl_table): Make static.
86637 2007-03-25  Bruno Haible  <bruno@clisp.org>
86639         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
86640         if the compiler does not support C99.
86642 2007-03-25  Bruno Haible  <bruno@clisp.org>
86644         * modules/time (Makefile.am): Ensure all rule action lines start with a
86645         tab.
86647 2007-03-24  Bruno Haible  <bruno@clisp.org>
86649         * modules/tsearch-tests: New file.
86650         * tests/test-tsearch.sh: New file.
86651         * tests/test-tsearch.c: New file, mostly copied from glibc.
86653         * modules/search-tests: New file.
86654         * tests/test-search.c: New file.
86656         * modules/search: New file.
86657         * lib/search_.h: New file, incorporating lib/tsearch.h.
86658         * m4/search_h.m4: New file.
86659         * lib/tsearch.h: Remove file.
86660         * lib/tsearch.c: Include search.h instead of tsearch.h.
86661         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
86662         HAVE_TSEARCH.
86663         * modules/tsearch (Files): Remove lib/tsearch.h.
86664         (Depends-on): Add search.
86665         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
86666         (Include): Change tsearch.h into search.h.
86668 2007-03-24  Bruno Haible  <bruno@clisp.org>
86670         * modules/fpucw: New file.
86671         * lib/fpucw.h: New file.
86672         * lib/frexp.c: Include fpucw.h.
86673         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86674         (FUNC): Use them.
86675         * lib/printf-frexp.c: Include fpucw.h.
86676         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86677         (FUNC): Use them.
86678         * lib/vasnprintf.c: Include fpucw.h.
86679         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
86680         'long double' calculations.
86681         * tests/test-frexpl.c: Include fpucw.h.
86682         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86683         * tests/test-printf-frexpl.c: Include fpucw.h.
86684         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86685         * modules/frexpl (Depends-on): Add fpucw.
86686         * modules/printf-frexpl (Depends-on): Likewise.
86687         * modules/fprintf-posix (Depends-on): Likewise.
86688         * modules/snprintf-posix (Depends-on): Likewise.
86689         * modules/sprintf-posix (Depends-on): Likewise.
86690         * modules/vasnprintf-posix (Depends-on): Likewise.
86691         * modules/vasprintf-posix (Depends-on): Likewise.
86692         * modules/vfprintf-posix (Depends-on): Likewise.
86693         * modules/vsnprintf-posix (Depends-on): Likewise.
86694         * modules/vsprintf-posix (Depends-on): Likewise.
86695         * modules/frexpl-tests (Depends-on): Likewise.
86696         * modules/printf-frexpl-tests (Depends-on): Likewise.
86698 2007-03-24  Bruno Haible  <bruno@clisp.org>
86700         * lib/float+.h: New file.
86701         * lib/isnan.c: Include float+.h.
86702         (SIZE): New macro.
86703         (FUNC): Compare only SIZE bytes of the value.
86704         * lib/vasnprintf.c: Include float+.h.
86705         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
86706         SIZEOF_LDBL or SIZEOF_DBL bytes.
86707         * modules/isnan-nolibm (Files): Add lib/float+.h.
86708         * modules/isnanl-nolibm (Files): Add lib/float+.h.
86709         * modules/isnanl (Files): Add lib/float+.h.
86710         * modules/vasnprintf (Files): Add lib/float+.h.
86712 2007-03-24  Bruno Haible  <bruno@clisp.org>
86714         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
86715         include isnanl-nolibm.h.
86717 2007-03-24  Bruno Haible  <bruno@clisp.org>
86719         * tests/test-read-file.c (main): Don't produce spurious output for
86720         expected situations. Make the test fail if it encountered unexpected
86721         results.
86723 2007-03-24  Bruno Haible  <bruno@clisp.org>
86725         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
86726         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
86728 2007-03-24  Bruno Haible  <bruno@clisp.org>
86730         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
86732 2007-03-24  Bruno Haible  <bruno@clisp.org>
86734         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
86735         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
86737         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
86738         * modules/utf8-ucs4: Turn into a symbolic link to module
86739         unistr/u8-mbtouc.
86741         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
86742         utf8-ucs4-unsafe.
86743         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
86744         unistr/u8-mbtouc-unsafe.
86746         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
86747         * modules/utf16-ucs4: Turn into a symbolic link to module
86748         unistr/u16-mbtouc.
86750         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
86751         utf16-ucs4-unsafe.
86752         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
86753         unistr/u16-mbtouc-unsafe.
86755         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
86756         * modules/ucs4-utf8: Turn into a symbolic link to module
86757         unistr/u8-ubtomb.
86759         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
86760         * modules/ucs4-utf16: Turn into a symbolic link to module
86761         unistr/u16-ubtomb.
86763 2007-03-24  Bruno Haible  <bruno@clisp.org>
86765         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
86766         Enable the function only if HAVE_INLINE.
86767         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
86768         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86769         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
86770         Enable the function only if HAVE_INLINE.
86771         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
86772         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86773         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
86774         Enable the function only if HAVE_INLINE.
86775         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
86776         Enable the function only if HAVE_INLINE.
86777         * modules/utf8-ucs4: Update.
86778         * modules/utf8-ucs4-unsafe: Update.
86779         * modules/utf16-ucs4: Update.
86780         * modules/utf16-ucs4-unsafe: Update.
86781         * modules/ucs4-utf8: Update.
86782         * modules/ucs4-utf16: Update.
86784 2007-03-24  Bruno Haible  <bruno@clisp.org>
86786         * lib/utf8-ucs4.h: Remove file.
86787         * lib/utf8-ucs4-unsafe.h: Remove file.
86788         * lib/utf16-ucs4.h: Remove file.
86789         * lib/utf16-ucs4-unsafe.h: Remove file.
86790         * lib/ucs4-utf8.h: Remove file.
86791         * lib/ucs4-utf16.h: Remove file.
86792         * lib/unistr.h: Include their previous contents.
86793         * m4/utf-ucs4.m4: Remove file.
86794         * m4/ucs4-utf.m4: Remove file.
86795         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
86796         (Depends-on): Add unistr/base.
86797         (configure.ac): Remove gl_UTF_UCS4.
86798         (Makefile.am): Update.
86799         (Include): Change to unistr.h.
86800         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
86801         (Depends-on): Add unistr/base.
86802         (configure.ac): Remove gl_UTF_UCS4.
86803         (Makefile.am): Update.
86804         (Include): Change to unistr.h.
86805         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
86806         (Depends-on): Add unistr/base.
86807         (configure.ac): Remove gl_UTF_UCS4.
86808         (Makefile.am): Update.
86809         (Include): Change to unistr.h.
86810         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
86811         (Depends-on): Add unistr/base.
86812         (configure.ac): Remove gl_UTF_UCS4.
86813         (Makefile.am): Update.
86814         (Include): Change to unistr.h.
86815         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
86816         (Depends-on): Add unistr/base.
86817         (configure.ac): Remove gl_UCS4_UTF.
86818         (Makefile.am): Update.
86819         (Include): Change to unistr.h.
86820         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
86821         (Depends-on): Add unistr/base.
86822         (configure.ac): Remove gl_UCS4_UTF.
86823         (Makefile.am): Update.
86824         (Include): Change to unistr.h.
86825         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
86826         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
86827         utf8-ucs4-unsafe.h.
86828         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
86829         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
86830         utf16-ucs4-unsafe.h.
86831         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
86832         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
86833         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
86834         * lib/unistr/u8-strchr.c: Likewise.
86835         * lib/unistr/u8-strrchr.c: Likewise.
86836         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
86837         * lib/unistr/u16-strchr.c: Likewise.
86838         * lib/unistr/u16-strrchr.c: Likewise.
86839         * lib/striconveh.c: Update.
86840         * lib/linebreak.c: Update.
86842 2007-03-24  Bruno Haible  <bruno@clisp.org>
86844         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
86845         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
86847 2007-03-22  Bruno Haible  <bruno@clisp.org>
86849         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
86851 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86853         * MODULES.html.sh (File system functions): New module write-any-file.
86854         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
86855         * m4/write-any-file.m4: New files.
86857 2007-03-23  Eric Blake  <ebb9@byu.net>
86859         * gnulib-tool: Rearrange space-tab sequences, since some editors
86860         like to eat them.
86862 2007-03-23  Eric Blake  <ebb9@byu.net>
86864         * lib/version-etc.c (version_etc_va): Update license wording to
86865         be more concise.  Recommended by Richard Stallman.
86867 2007-03-22  Bruno Haible  <bruno@clisp.org>
86869         * lib/poll.c (MSG_PEEK): New fallback definition.
86871 2007-03-22  Bruno Haible  <bruno@clisp.org>
86873         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
86874         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
86875         (main): Update.
86876         Fixes a compilation error on BeOS.
86878 2007-03-22  Bruno Haible  <bruno@clisp.org>
86880         * modules/frexpl-tests: New file.
86881         * tests/test-frexpl.c: New file.
86883         * modules/frexpl: New file.
86884         * m4/frexpl.m4: New file.
86885         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
86886         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
86887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
86888         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
86889         (Depends-on): Add frexpl. Remove isnanl-nolibm.
86890         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
86892 2007-03-22  Bruno Haible  <bruno@clisp.org>
86894         * lib/frexpl.c: Share code with lib/frexp.c.
86895         * modules/mathl (Files): Add lib/frexp.c.
86896         (Depends-on): Add isnanl-nolibm.
86898 2007-03-22  Bruno Haible  <bruno@clisp.org>
86900         * modules/printf-frexp (Files): Add m4/frexp.m4.
86901         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
86902         only if the found frexp function actually works.
86904 2007-03-22  Bruno Haible  <bruno@clisp.org>
86906         * lib/frexp.c: Remove older implementation that uses divisions.
86908 2007-03-21  Bruno Haible  <bruno@clisp.org>
86910         * modules/frexp-tests: New file.
86911         * tests/test-frexp.c: New file.
86913         * modules/frexp: New file.
86914         * lib/frexp.c: New file.
86915         * m4/frexp.m4: New file.
86916         * lib/math_.h (frexp): New declaration.
86917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
86918         REPLACE_FREXP.
86919         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
86921 2007-03-21  Bruno Haible  <bruno@clisp.org>
86923         * modules/isnanl-tests: New file.
86924         * tests/test-isnanl.c: New file.
86926         * modules/isnanl: New file.
86927         * lib/isnanl.h: New file.
86928         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
86929         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
86930         gl_FUNC_ISNANL_WORKS.
86931         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
86932         New macros.
86934 2007-03-21  Bruno Haible  <bruno@clisp.org>
86936         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
86937         lib/isnanl.h.
86938         (Include): Update.
86939         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
86940         * lib/vasnprintf.c: Update.
86941         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
86942         tests/test-isnanl.h, remove tests/test-isnanl.c.
86943         (Makefile.am): Update.
86944         * tests/test-isnanl-nolibm.c: New file.
86945         * tests/test-isnanl.h: New file.
86946         * tests/test-isnanl.c: Remove file.
86948 2007-03-21  Jim Meyering  <jim@meyering.net>
86950         When trying to open ".", treat ESTALE like EACCES.
86951         * lib/savewd.c (savewd_save): Resort to forking not just upon
86952         failure with EACCES, but also when errno is ESTALE.
86954 2007-03-20  Bruno Haible  <bruno@clisp.org>
86956         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
86957         Needed on AIX 5.1. Reported by Matthew Woehlke.
86959 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86961         Suggestions by Bruno Haible:
86962         * lib/acl-internal.h: Include "gettext.h" rather than rolling
86963         our own.
86964         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
86965         * modules/acl (Depends-on): Add gettext.
86967 2007-03-19  Bruno Haible  <bruno@clisp.org>
86969         * modules/iconvme: Remove file.
86970         * lib/iconvme.h: Remove file.
86971         * lib/iconvme.c: Remove file.
86972         * m4/iconvme.m4: Remove file.
86974 2007-03-19  Bruno Haible  <bruno@clisp.org>
86976         * doc/relocatable-maint.texi: Break long shell script line.
86977         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86979 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86981         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
86982         handle file_has_acl.
86983         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
86984         * lib/acl.c: Move header inclusions and related macro defns into
86985         lib/acl-internal.h.
86986         (S_ISLNK): Remove defn, since that's now done for us.
86987         (file_has_acl): Move to lib/file-has-acl.c.
86988         Call acl_trivial if available.  This is the crucial part of the fix.
86989         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
86990         shared within the library.  Rewrite a bit, partly to make it compatible
86991         with the GNU coding style.
86992         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
86993         Remove unnecessary double-quotes.
86994         Don't test for acl_to_text; the build will catch that.
86995         Replace acl_entries if it doesn't exist and it is needed.
86996         Check for -lsec and acl_trivial (as used on Solaris 10).
86997         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
86998         lib/file-has-acl.c.
86999         (Depends-on): Add sys_stat, for S_ISLNK.
87001 2007-03-19  Ben Pfaff  <blp@gnu.org>
87003         * doc/gnulib.texi: Fix typos.
87004         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87006 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87008         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
87009         If size is zero here, buf must be zero.
87011 2007-03-19  Simon Josefsson  <simon@josefsson.org>
87013         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
87014         <bruno@clisp.org>.
87016 2007-03-18  Bruno Haible  <bruno@clisp.org>
87018         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
87019         Suggested by Eric Blake.
87021 2007-03-18  Ben Pfaff  <blp@gnu.org>
87023         * doc/relocatable.texi: Recommend using as prefix a directory
87024         that does not exist and will never be created.  Based on
87025         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
87026         and others.
87028 2007-03-17  Bruno Haible  <bruno@clisp.org>
87030         * lib/fchownat.c: Include lchown.h.
87032 2007-03-17  Bruno Haible  <bruno@clisp.org>
87034         Fix endless loop when the given allocated size was > INT_MAX.
87035         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
87036         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
87037         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
87038         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
87039         * lib/sprintf.c (sprintf): Likewise.
87041 2007-03-17  Bruno Haible  <bruno@clisp.org>
87043         * tests/test-argp-2.sh (func_compare): Output a context diff.
87045 2007-03-17  Bruno Haible  <bruno@clisp.org>
87047         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
87048         locale's decimal-point character.
87050 2007-03-17  Bruno Haible  <bruno@clisp.org>
87052         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
87053         before comparing it. Needed because on some platforms (e.g. x86) a
87054         'long double' occupies less bytes than sizeof (long double).
87056 2007-03-17  Bruno Haible  <bruno@clisp.org>
87058         * tests/test-crc.c (main): Make printf statements 64-bit clean.
87059         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
87060         * tests/test-getaddrinfo.c (simple): Likewise.
87061         * tests/test-read-file.c (main): Likewise.
87063 2007-03-17  Bruno Haible  <bruno@clisp.org>
87065         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
87067 2007-03-17  Bruno Haible  <bruno@clisp.org>
87069         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
87070         unused variable.
87072 2007-03-17  Bruno Haible  <bruno@clisp.org>
87074         * tests/test-c-strcasecmp.c: Include c-strcase.h.
87075         * tests/test-c-strncasecmp.c: Likewise.
87077 2007-03-17  Bruno Haible  <bruno@clisp.org>
87079         * modules/stdlib (Depends-on): Add unistd.
87080         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
87081         Needed for MacOS X 10.3.
87083 2007-03-17  Bruno Haible  <bruno@clisp.org>
87085         * lib/unistr/u-strdup.h: Include <stdlib.h>.
87087 2007-03-17  Bruno Haible  <bruno@clisp.org>
87089         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
87091 2007-03-17  Bruno Haible  <bruno@clisp.org>
87093         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
87094         to reflect files copied from gnulib (with or without modifications).
87095         Suggested by Jim Meyering.
87097 2007-03-17  Eric Blake  <ebb9@byu.net>
87099         * NEWS: Document stdlib change from 2007-02-18.
87101 2007-03-17  Jim Meyering  <jim@meyering.net>
87103         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
87104         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
87105         someone uses a name containing shell meta-characters.
87106         Reported by Alfred M. Szmidt.
87108         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
87110 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87112         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
87113         and copy gettext configuration files only if configure.ac contains
87114         a use of AM_GNU_GETTEXT_VERSION.
87116 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87118         * build-aux/bootstrap (gnulib_name): New variable.
87119         (gnulib_tool_options): Use it.
87121 2007-03-13  Simon Josefsson  <simon@josefsson.org>
87123         * tests/test-des.c: Use new namespace.
87125 2007-03-15  Bruno Haible  <bruno@clisp.org>
87127         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
87128         Reported by James Youngman <jay@gnu.org>.
87130 2007-03-15  Bruno Haible  <bruno@clisp.org>
87132         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
87133         declared prototype. Needed with cc on OSF/1 5.1.
87135 2007-03-15  Bruno Haible  <bruno@clisp.org>
87137         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
87138         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
87139         (struct gl_list_implementation): Add dispose_fn argument to the
87140         'create_empty', 'create' methods.
87141         (struct gl_list_impl_base): Add field 'dispose_fn'.
87142         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
87143         argument.
87144         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
87145         dispose_fn argument.
87146         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
87147         dispose_fn on the dropped values.
87148         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
87149         dispose_fn argument.
87150         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
87151         dropped values.
87152         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
87153         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87154         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
87155         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87156         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
87157         argument.
87158         (gl_tree_list_free): Call dispose_fn on the dropped values.
87159         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
87160         the dropped values.
87161         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
87162         Add dispose_fn argument.
87163         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
87164         Call dispose_fn on the dropped values.
87165         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
87166         Add dispose_fn argument.
87167         (gl_sublist_create): Initialize the 'dispose_fn' field.
87168         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
87169         * tests/test-array_list.c (main): Update.
87170         * tests/test-carray_list.c (main): Update.
87171         * tests/test-avltree_list.c (main): Update.
87172         * tests/test-rbtree_list.c (main): Update.
87173         * tests/test-avltreehash_list.c (main): Update.
87174         * tests/test-rbtreehash_list.c (main): Update.
87175         * tests/test-linked_list.c (main): Update.
87176         * tests/test-linkedhash_list.c (main): Update.
87177         * tests/test-array_oset.c (main): Update.
87179 2007-03-15  Bruno Haible  <bruno@clisp.org>
87181         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
87182         (gl_oset_create_empty): Add dispose_fn argument.
87183         (struct gl_oset_implementation): Add dispose_fn argument to
87184         'create_empty' method.
87185         (struct gl_oset_impl_base): Add dispose_fn field.
87186         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
87187         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
87188         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
87189         values.
87190         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
87191         (gl_tree_oset_free): Call dispose_fn on the dropped values.
87192         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87193         dropped value.
87194         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87195         dropped value.
87196         * tests/test-array_oset.c (main): Update.
87197         * tests/test-avltree_oset.c (main): Update.
87198         * tests/test-rbtree_oset.c (main): Update.
87199         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
87201 2007-03-13  Bruno Haible  <bruno@clisp.org>
87203         * tests/test-stdbool.c (i): Update after last patch.
87205 2007-03-12  Bruno Haible  <bruno@clisp.org>
87207         * lib/quotearg.c: Include <wctype.h> early, before the definition of
87208         the iswprint macro. Needed on Solaris 2.5.1.
87210 2007-03-12  Bruno Haible  <bruno@clisp.org>
87212         * tests/test-printf-frexp.c (main): Declare x as volatile.
87214 2007-03-12  Simon Josefsson  <simon@josefsson.org>
87216         * doc/gnulib.texi (Build robot for gnulib): New section.
87218 2007-03-12  Jim Meyering  <jim@meyering.net>
87220         * build-aux/bootstrap: New file.
87221         * build-aux/bootstrap.conf: New file, from coreutils.
87223 2007-03-11  Bruno Haible  <bruno@clisp.org>
87225         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
87227 2007-03-12  Simon Josefsson  <simon@josefsson.org>
87229         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
87230         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
87231         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
87233 2007-03-11  Bruno Haible  <bruno@clisp.org>
87235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
87236         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
87238 2007-03-11  Bruno Haible  <bruno@clisp.org>
87240         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
87241         formula. Needed for SunPRO C 5.0.
87243 2007-03-11  Bruno Haible  <bruno@clisp.org>
87245         * modules/long-options (Depends-on): Add getopt.
87247 2007-03-11  Bruno Haible  <bruno@clisp.org>
87249         * modules/modechange (Depends-on): Add stdbool.
87251 2007-03-11  Bruno Haible  <bruno@clisp.org>
87253         * modules/i-ring (Depends-on): Add stdbool.
87255 2007-03-11  Bruno Haible  <bruno@clisp.org>
87257         * modules/gc-des (Depends-on): Add stdbool.
87259 2007-03-11  Bruno Haible  <bruno@clisp.org>
87261         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
87263 2007-03-11  Bruno Haible  <bruno@clisp.org>
87265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
87267 2007-03-11  Bruno Haible  <bruno@clisp.org>
87269         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
87271 2007-03-11  Bruno Haible  <bruno@clisp.org>
87273         * lib/vasnprintf.c (sprintf): Undefine.
87275 2007-03-11  Bruno Haible  <bruno@clisp.org>
87277         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
87278         initializers in SunPRO C and Compaq C compilers.
87280 2007-03-11  Bruno Haible  <bruno@clisp.org>
87282         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
87283         decrementing code ANSI C compliant.
87285 2007-03-11  Bruno Haible  <bruno@clisp.org>
87287         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
87288         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
87290 2007-03-11  Bruno Haible  <bruno@clisp.org>
87292         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
87293         <stdbool.h> substitute doesn't pass.
87295 2007-03-11  Bruno Haible  <bruno@clisp.org>
87297         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
87299 2007-03-11  Bruno Haible  <bruno@clisp.org>
87301         * gnulib-tool (func_create_megatestdir): Create also an autobuild
87302         script, for submission to autobuild.josefsson.org.
87304 2007-03-10  Bruno Haible  <bruno@clisp.org>
87306         * modules/canonicalize-lgpl-tests: New file.
87307         * tests/test-canonicalize-lgpl.sh: New file.
87308         * tests/test-canonicalize-lgpl.c: New file.
87310         * modules/c-strcase-tests: New file.
87311         * tests/test-c-strcase.sh: New file.
87312         * tests/test-c-strcasecmp.c: New file.
87313         * tests/test-c-strncasecmp.c: New file.
87315         * modules/atexit-tests: New file.
87316         * tests/test-atexit.sh: New file.
87317         * tests/test-atexit.c: New file.
87319 2007-03-10  Bruno Haible  <bruno@clisp.org>
87321         * tests/test-binary-io.sh: Use temporary filenames that are not so
87322         likely to clash with those of other tests (in a parallel make).
87323         * tests/test-binary-io.c: Likewise.
87325 2007-03-10  Bruno Haible  <bruno@clisp.org>
87327         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
87328         fallback; use #error instead.
87329         Suggested by Simon Josefsson.
87331 2007-03-10  Bruno Haible  <bruno@clisp.org>
87333         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
87334         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
87335         first and the last.
87337 2007-03-10  Bruno Haible  <bruno@clisp.org>
87339         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
87341 2007-03-10  Bruno Haible  <bruno@clisp.org>
87343         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
87344         "make distcheck".
87345         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
87346         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
87347         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
87349 2007-03-10  Bruno Haible  <bruno@clisp.org>
87351         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
87352         variable.
87353         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
87354         variable.
87356 2007-03-09  Eric Blake  <ebb9@byu.net>
87357         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
87359         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
87360         types are not being provided by gnulib.
87361         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
87362         types are supported.
87364 2007-03-10  Bruno Haible  <bruno@clisp.org>
87366         * lib/stdio_.h (__attribute__): New macro.
87367         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
87368         vsprintf): Specify __attribute__ __format__ for GCC.
87369         Suggested by Eric Blake.
87371 2007-03-09  Bruno Haible  <bruno@clisp.org>
87373         * modules/printf-posix-tests: New file.
87374         * tests/test-printf-posix.sh: New file.
87375         * tests/test-printf-posix.c: New file.
87377         * modules/printf-posix: New file.
87378         * lib/printf.c: New file.
87379         * m4/printf-posix-rpl.m4: New file.
87380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
87381         REPLACE_PRINTF.
87382         * lib/stdio_.h (printf): New declaration.
87383         (format, __format__, ____printf____, ____scanf____, ____strftime____,
87384         ____strfmon____): New macros.
87385         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
87386         REPLACE_PRINTF.
87388 2007-03-09  Bruno Haible  <bruno@clisp.org>
87390         * tests/test-vasnprintf-posix2.sh: New file.
87391         * tests/test-vasnprintf-posix2.c: New file.
87392         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
87393         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87394         (Makefile.am): Activate test-vasnprintf-posix2.sh.
87396         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
87397         a locale dependent decimal point, rather than always '.'.
87399 2007-03-09  Eric Blake  <ebb9@byu.net>
87401         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
87402         spite of platforms like Tandem/NSK that define it to -1.
87404 2007-03-08  Bruno Haible  <bruno@clisp.org>
87406         * modules/vprintf-posix-tests: New file.
87407         * tests/test-vprintf-posix.sh: New file.
87408         * tests/test-vprintf-posix.c: New file.
87409         * tests/test-printf-posix.h: New file.
87411         * modules/vprintf-posix: New file.
87412         * lib/vprintf.c: New file.
87413         * m4/vprintf-posix.m4: New file.
87414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
87415         REPLACE_VPRINTF.
87416         * lib/stdio_.h (vprintf): New declaration.
87417         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
87418         REPLACE_VPRINTF.
87420 2007-03-08  Bruno Haible  <bruno@clisp.org>
87422         * modules/fprintf-posix-tests: New file.
87423         * tests/test-fprintf-posix.sh: New file.
87424         * tests/test-fprintf-posix.c: New file.
87426         * modules/fprintf-posix: New file.
87427         * lib/fprintf.c: New file.
87428         * m4/fprintf-posix.m4: New file.
87429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
87430         REPLACE_FPRINTF.
87431         * lib/stdio_.h (fprintf): New declaration.
87432         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
87433         REPLACE_FPRINTF.
87435 2007-03-08  Bruno Haible  <bruno@clisp.org>
87437         * modules/vfprintf-posix-tests: New file.
87438         * tests/test-vfprintf-posix.sh: New file.
87439         * tests/test-vfprintf-posix.c: New file.
87440         * tests/test-fprintf-posix.h: New file.
87441         * tests/test-fprintf-posix.out: New file.
87443         * modules/vfprintf-posix: New file.
87444         * lib/vfprintf.c: New file.
87445         * m4/vfprintf-posix.m4: New file.
87446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
87447         REPLACE_VFPRINTF.
87448         * lib/stdio_.h (vfprintf): New declaration.
87449         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
87450         REPLACE_VFPRINTF.
87452 2007-03-08  Bruno Haible  <bruno@clisp.org>
87454         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
87456 2007-03-08  Bruno Haible  <bruno@clisp.org>
87458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
87459         instead of 'expr' invocations.
87460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87463         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87464         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87465         Suggested by Paul Eggert.
87467 2007-03-08  Bruno Haible  <bruno@clisp.org>
87469         * modules/fseterr-tests: New file.
87470         * tests/test-fseterr.c: New file.
87472         * modules/fseterr: New file.
87473         * lib/fseterr.h: New file.
87474         * lib/fseterr.c: New file.
87476 2007-03-08  Bruno Haible  <bruno@clisp.org>
87478         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
87479         * lib/getopt_.h: Likewise.
87480         * lib/mbswidth.h: Likewise.
87481         * lib/setenv.h: Likewise.
87482         * lib/vasnprintf.h: Likewise.
87483         * lib/vasprintf.h: Likewise.
87484         * lib/verror.h: Likewise.
87485         * lib/xsetenv.h: Likewise.
87486         * lib/xvasprintf.h: Likewise.
87488 2007-03-08  Jim Meyering  <jim@meyering.net>
87490         * users.txt: Add parted.
87492         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
87494 2007-03-07  Bruno Haible  <bruno@clisp.org>
87496         * m4/printf.m4: Make the shell script snippets copy&pastable.
87498 2007-03-02  Bruno Haible  <bruno@clisp.org>
87500         * lib/netinet_in_.h: New file.
87501         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
87502         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
87503         * modules/netinet_in (Files): Add lib/netinet_in_.h.
87504         (Depends-on): Add absolute-header.
87505         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
87506         into netinet/in.h.
87508 2007-03-03  Bruno Haible  <bruno@clisp.org>
87510         * lib/sys_select_.h: New file.
87511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
87512         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
87513         * modules/sys_select (Files): Add lib/sys_select_.h.
87514         (Depends-on): Add absolute-header.
87515         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
87516         into sys/select.h.
87518 2007-03-02  Bruno Haible  <bruno@clisp.org>
87520         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
87521         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
87522         values.
87523         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
87524         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
87525         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
87526         * modules/sys_socket (Depends-on): Add absolute-header.
87527         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
87528         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
87529         (Include): Remove requirement of inclusion of <sys/types.h>.
87531 2007-03-02  Bruno Haible  <bruno@clisp.org>
87533         * lib/byteswap_.h (bswap_32): Fix formula.
87535 2007-03-06  Bruno Haible  <bruno@clisp.org>
87537         * modules/sprintf-posix-tests: New file.
87538         * tests/test-sprintf-posix.c: New file.
87540         * modules/sprintf-posix: New file.
87541         * lib/sprintf.c: New file.
87542         * m4/sprintf-posix.m4: New file.
87543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
87544         REPLACE_SPRINTF.
87545         * lib/stdio_.h (sprintf): New declaration.
87546         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
87547         REPLACE_SPRINTF.
87549 2007-03-06  Bruno Haible  <bruno@clisp.org>
87551         * modules/vsprintf-posix-tests: New file.
87552         * tests/test-vsprintf-posix.c: New file.
87553         * tests/test-sprintf-posix.h: New file.
87555         * modules/vsprintf-posix: New file.
87556         * lib/vsprintf.c: New file.
87557         * m4/vsprintf-posix.m4: New file.
87558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
87559         REPLACE_VSPRINTF.
87560         * lib/stdio_.h (vsprintf): New declaration.
87561         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
87562         REPLACE_VSPRINTF.
87564 2007-03-06  Bruno Haible  <bruno@clisp.org>
87566         * modules/vsnprintf (Depend-on): Remove minmax.
87568 2007-03-06  Bruno Haible  <bruno@clisp.org>
87570         * modules/snprintf-posix-tests: New file.
87571         * tests/test-snprintf-posix.c: New file.
87573         * modules/snprintf-posix: New file.
87574         * m4/snprintf-posix.m4: New file.
87575         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
87576         gl_FUNC_SNPRINTF.
87577         (gl_FUNC_SNPRINTF): Invoke it.
87578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
87579         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
87580         is set.
87581         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
87583 2007-03-06  Bruno Haible  <bruno@clisp.org>
87585         * modules/vsnprintf-posix-tests: New file.
87586         * tests/test-vsnprintf-posix.c: New file.
87587         * tests/test-snprintf-posix.h: New file.
87589         * modules/vsnprintf-posix: New file.
87590         * m4/vsnprintf-posix.m4: New file.
87591         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
87592         gl_FUNC_VSNPRINTF.
87593         (gl_FUNC_VSNPRINTF): Invoke it.
87594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
87595         * lib/stdio_.h (vsnprintf): Define as a replacement if
87596         REPLACE_VSNPRINTF is set.
87597         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
87599 2007-03-06  Bruno Haible  <bruno@clisp.org>
87601         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
87602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
87604 2007-03-06  Bruno Haible  <bruno@clisp.org>
87606         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
87607         (asinl): Declare also if HAVE_DECL_ASINL is set.
87608         (atanl): Declare also if HAVE_DECL_ATANL is set.
87609         (ceill): Declare also if HAVE_DECL_CEILL is set.
87610         (cosl): Declare also if HAVE_DECL_COSL is set.
87611         (expl): Declare also if HAVE_DECL_EXPL is set.
87612         (floorl): Declare also if HAVE_DECL_FLOORL is set.
87613         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
87614         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
87615         (logl): Declare also if HAVE_DECL_LOGL is set.
87616         (sinl): Declare also if HAVE_DECL_SINL is set.
87617         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
87618         (tanl): Declare also if HAVE_DECL_TANL is set.
87619         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
87620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
87621         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
87622         declaration of frexpl, ldexpl.
87623         * modules/printf-frexpl (Depends-on): Add math.
87624         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
87626 2007-03-05  Bruno Haible  <bruno@clisp.org>
87628         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
87629         frexpl and ldexpl are declared.
87630         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
87632 2007-03-05  Bruno Haible  <bruno@clisp.org>
87634         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
87635         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
87637 2007-03-05  Bruno Haible  <bruno@clisp.org>
87639         * lib/stdio_.h: Include <stddef.h>.
87641 2007-03-05  Bruno Haible  <bruno@clisp.org>
87643         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
87645 2007-03-05  Bruno Haible  <bruno@clisp.org>
87647         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
87648         NetBSD 4, from Ralf Wildenhues.
87650 2007-03-04  Bruno Haible  <bruno@clisp.org>
87652         * lib/vasprintf.h: Update #if logic for the case when the functions
87653         exist but are overridden.
87655 2007-03-04  Bruno Haible  <bruno@clisp.org>
87657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
87658         implementations: glibc-2.4 and MacOS X 10.3.
87659         * tests/test-vasnprintf-posix.c (test_function): Test also the case
87660         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
87661         * tests/test-vasprintf-posix.c (test_function): Likewise.
87663 2007-03-04  Bruno Haible  <bruno@clisp.org>
87665         * modules/vasprintf-posix-tests: New file.
87666         * tests/test-vasprintf-posix.c: New file.
87668         * modules/vasprintf-posix: New file.
87669         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
87670         defined.
87671         * m4/vasprintf-posix.m4: New file.
87672         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
87673         gl_FUNC_VASPRINTF.
87674         (gl_FUNC_VASPRINTF): Invoke it.
87675         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
87676         here.
87677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
87679 2007-03-04  Bruno Haible  <bruno@clisp.org>
87681         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
87682         REPLACE_GETTIMEOFDAY.
87683         * modules/sys_time (Makefile.am): Likewise.
87684         * m4/sys_time_h.m4: Likewise.
87685         * m4/gettimeofday.m4: Likewise.
87687 2007-03-04  Bruno Haible  <bruno@clisp.org>
87689         * modules/vasnprintf-posix-tests: New file.
87690         * tests/test-vasnprintf-posix.c: New file.
87692         * modules/vasnprintf-posix: New file.
87693         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
87694         printf-frexpl.h.
87695         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
87696         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
87697         REPLACE_VASNPRINTF is defined.
87698         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
87699         gl_FUNC_VASNPRINTF.
87700         (gl_FUNC_VASNPRINTF): Invoke it.
87701         * m4/vasnprintf-posix.m4: New file.
87702         * m4/printf.m4: New file.
87704 2007-03-04  Bruno Haible  <bruno@clisp.org>
87706         Compile progreloc.c only if --enable-relocatable is specified.
87707         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
87708         if --enable-relocatable was specified.
87709         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
87710         lib_SOURCES.
87712 2007-03-04  Jim Meyering  <jim@meyering.net>
87714         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
87715         Use it consistently, rather than enumerating errno constants.
87717 2007-03-04  Bruno Haible  <bruno@clisp.org>
87719         * modules/xvasprintf-tests: New file.
87720         * tests/test-xvasprintf.c: New file.
87722         * modules/vasprintf-tests: New file.
87723         * tests/test-vasprintf.c: New file.
87725         * modules/vasnprintf-tests: New file.
87726         * tests/test-vasnprintf.c: New file.
87728         * modules/vsnprintf-tests: New file.
87729         * tests/test-vsnprintf.c: New file.
87731         * modules/snprintf-tests: New file.
87732         * tests/test-snprintf.c: New file.
87734 2007-03-04  Bruno Haible  <bruno@clisp.org>
87736         Compile relocatable.c only if --enable-relocatable is specified.
87737         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
87738         gl_RELOCATABLE_LIBRARY.
87739         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
87740         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
87741         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
87742         gl_RELOCATABLE_LIBRARY.
87743         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
87744         (Makefile.am): Remove lib_SOURCES.
87745         * modules/relocatable-lib-lgpl (configure.ac): Invoke
87746         gl_RELOCATABLE_LIBRARY.
87747         (Makefile.am): Remove lib_SOURCES.
87748         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
87749         always.
87750         * modules/relocatable-prog-wrapper (configure.ac): Invoke
87751         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
87753 2007-03-04  Bruno Haible  <bruno@clisp.org>
87755         * modules/argmatch-tests: New file.
87756         * tests/test-argmatch.c: New file.
87758         * tests/test-allocsa.c (main): Halve the number of loop runs.
87760         * modules/alloca-opt-tests: New file.
87761         * tests/test-alloca-opt.c: New file.
87763 2007-03-04  Jim Meyering  <jim@meyering.net>
87765         Work around difference between Linux ACLs and Solaris 10 ZFS.
87766         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
87767         for EINVAL.
87769 2007-03-03  Bruno Haible  <bruno@clisp.org>
87771         * modules/relocatable-prog (Depends-on): Add back progreloc's
87772         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
87774 2007-03-03  Bruno Haible  <bruno@clisp.org>
87776         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
87777         * modules/relocatable-lib: New file.
87779 2007-03-03  Bruno Haible  <bruno@clisp.org>
87781         * modules/relocatable-prog: Renamed from modules/relocatable.
87782         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
87784 2007-03-03  Bruno Haible  <bruno@clisp.org>
87786         * modules/relocatable-script (Files): Add doc/relocatable.texi,
87787         m4/relocatable-lib.m4.
87788         (Depends-on): Remove 'relocatable'.
87789         (configure.ac): Add gl_RELOCATABLE_NOP.
87791 2007-03-03  Bruno Haible  <bruno@clisp.org>
87793         * modules/relocatable-prog-wrapper: New file.
87794         * modules/relocatable (Depends-on): Add it. Remove all other
87795         dependencies except progname.
87796         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
87798         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
87799         (gl_FUNC_STRERROR): Nop.
87800         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
87802         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
87803         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
87805         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
87806         (gl_FUNC_READLINK): Update.
87808         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
87810 2007-03-03  Bruno Haible  <bruno@clisp.org>
87812         * lib/xreadlink.c: Include <unistd.h> unconditionally.
87813         * modules/xreadlink (Depends-on): Add unistd.
87814         * modules/xreadlink-with-size (Depends-on): Likewise.
87816 2007-03-03  Bruno Haible  <bruno@clisp.org>
87818         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
87819         extracted from gt_FUNC_SETENV.
87820         (gt_FUNC_SETENV): Remove macro.
87821         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
87822         remove gt_FUNC_SETENV.
87824 2007-03-03  Bruno Haible  <bruno@clisp.org>
87826         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
87827         ENABLE_RELOCATABLE here.
87828         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
87830 2007-03-03  Bruno Haible  <bruno@clisp.org>
87832         * modules/rbtreehash-list-tests (Depends-on): Add progname.
87833         * tests/test-rbtreehash_list.c: Include progname.h.
87834         (main): Call set_program_name.
87836         * modules/rbtree-oset-tests (Depends-on): Add progname.
87837         * tests/test-rbtree_oset.c: Include progname.h.
87838         (main): Call set_program_name.
87840         * modules/rbtree-list-tests (Depends-on): Add progname.
87841         * tests/test-rbtree_list.c: Include progname.h.
87842         (main): Call set_program_name.
87844         * modules/linked-list-tests (Depends-on): Add progname.
87845         * tests/test-linked_list.c: Include progname.h.
87846         (main): Call set_program_name.
87848 2007-03-03  Bruno Haible  <bruno@clisp.org>
87850         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
87851         All uses of __restrict changed to _Restrict_.
87852         * lib/glob_.h (__restrict): Remove macro.
87854 2007-03-02  Bruno Haible  <bruno@clisp.org>
87856         * modules/gettext (configure.ac): Require gettext infrastructure
87857         from version 0.16.1.
87859 2007-03-02  Bruno Haible  <bruno@clisp.org>
87861         * modules/linkedhash-list-tests (Depends-on): Add progname.
87862         * tests/test-linkedhash_list.c: Include progname.h.
87863         (main): Call set_program_name.
87865         * modules/carray-list-tests (Depends-on): Add progname.
87866         * tests/test-carray_list.c: Include progname.h.
87867         (main): Call set_program_name.
87869         * modules/avltreehash-list-tests (Depends-on): Add progname.
87870         * tests/test-avltreehash_list.c: Include progname.h.
87871         (main): Call set_program_name.
87873         * modules/avltree-oset-tests (Depends-on): Add progname.
87874         * tests/test-avltree_oset.c: Include progname.h.
87875         (main): Call set_program_name.
87877         * modules/avltree-list-tests (Depends-on): Add progname.
87878         * tests/test-avltree_list.c: Include progname.h.
87879         (main): Call set_program_name.
87881         * modules/array-oset-tests (Depends-on): Add progname.
87882         * tests/test-array_oset.c: Include progname.h.
87883         (main): Call set_program_name.
87885         * modules/array-list-tests (Depends-on): Add progname.
87886         * tests/test-array_list.c: Include progname.h.
87887         (main): Call set_program_name.
87889         * modules/argp-tests (Depends-on): Add progname.
87890         * tests/test-argp.c: Include argp.h first. Include progname.h.
87891         (main): Call set_program_name.
87893 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
87895         * doc/gnulib-tool.texi (Initial import): Reword description of
87896         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
87897         limited effect even if defined after the first system include.
87899 2007-03-01  Bruno Haible  <bruno@clisp.org>
87901         * build-aux/config.libpath: Update to libtool-1.5.22.
87902         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87904 2007-03-01  Bruno Haible  <bruno@clisp.org>
87906         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
87907         foo_CFLAGS.
87908         Reported by Ralf Wildenhues.
87910 2007-03-01  Bruno Haible  <bruno@clisp.org>
87912         * build-aux/install-reloc: Remove object files left over by some
87913         compilers.
87914         Reported by Ralf Wildenhues.
87916 2007-03-01  Bruno Haible  <bruno@clisp.org>
87918         * build-aux/install-reloc: Break long lines.
87920 2007-03-01  Bruno Haible  <bruno@clisp.org>
87922         * doc/relocatable.texi: Document that it may not work on OpenBSD.
87923         Reported by Ralf Wildenhues.
87925 2007-03-01  Bruno Haible  <bruno@clisp.org>
87927         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
87928         include ordering constraints.
87930 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87932         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
87933         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
87934         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
87935         as another example.
87936         * lib/time_.h: Fix misspelling.
87937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87938         Require gl_HEADER_TIME_H_DEFAULTS.
87939         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
87940         * m4/time_r.m4 (gl_TIME_R): Likewise.
87941         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
87943 2007-03-01  Bruno Haible  <bruno@clisp.org>
87945         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
87946         * m4/utimens.m4 (gl_UTIMENS): Likewise.
87948 2007-03-01  Jim Meyering  <jim@meyering.net>
87950         * modules/xreadlink (Maintainer): Add my name.
87951         * modules/xreadlink-with-size (Depends-on): Alphabetize.
87953 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
87954             Bruno Haible  <bruno@clisp.org>
87956         * build-aux/install-reloc: Compile also c-ctype.c.
87957         * build-aux/relocatable.sh.in: New file.
87958         * doc/relocatable.texi: New file.
87959         * doc/relocatable-maint.texi: New file.
87960         * doc/gnulib.texi: Include relocatable-maint.texi.
87961         * lib/progreloc.c: Include unistd.h unconditionally.
87962         * lib/relocwrapper.c: Include unistd.h unconditionally.
87963         Include c-ctype.h.
87964         (add_dotbin): Use c_tolower.
87965         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
87966         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
87967         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
87968         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
87969         to m4/relocatable-lib.m4.
87970         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
87971         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
87972         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
87973         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
87974         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
87975         * modules/relocatable: New file.
87976         * modules/relocatable-lib: New file.
87977         * modules/relocatable-script: New file.
87979 2007-02-28  Bruno Haible  <bruno@clisp.org>
87981         Import --enable-relocatable infrastructure.
87982         * build-aux/config.libpath: New file, from GNU gettext.
87983         * build-aux/install-reloc: New file, from GNU gettext.
87984         * build-aux/reloc-ldflags: New file, from GNU gettext.
87985         * lib/relocatable.h: New file, from GNU gettext.
87986         * lib/relocatable.c: New file, from GNU gettext.
87987         * lib/relocwrapper.c: New file, from GNU gettext.
87988         * m4/relocatable.m4: New file, from GNU gettext.
87990 2007-02-28  Bruno Haible  <bruno@clisp.org>
87992         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
87994         * modules/xreadlink: New file, from GNU gettext with modifications.
87995         * lib/xreadlink.c: New file, from GNU gettext.
87996         * lib/xreadlink.h: Add comments.
87997         (xreadlink): New declaration.
87999         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
88000         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
88001         lib/xreadlink-with-size.c.
88002         (configure.ac): Remove gl_XREADLINK invocation.
88003         (Makefile.am): Augment lib_SOURCES.
88004         * m4/xreadlink.m4: Remove file.
88005         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
88006         (xreadlink_with_size): Renamed from xreadink.
88007         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
88008         * modules/canonicalize (Depends-on): Replace xreadlink with
88009         xreadlink-with-size.
88010         * lib/canonicalize.c (canonicalize_filename_mode): Update.
88012 2007-02-25  Jim Meyering  <jim@meyering.net>
88014         * build-aux/announce-gen: When complaining about excess arguments,
88015         list them.
88017 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88019         * README: Document signed integer overflow situation more
88020         accurately.
88022 2007-02-25  Bruno Haible  <bruno@clisp.org>
88024         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
88025         'a' or 'A' conversion.
88027 2007-02-25  Bruno Haible  <bruno@clisp.org>
88029         * modules/filename: Renamed from modules/pathname.
88030         (Files): Replace lib/pathname.h with lib/filename.h. Replace
88031         lib/concatpath.c with lib/concat-filename.c.
88032         (Makefile.am): Update.
88033         (Include): Replace pathname.h with filename.h.
88034         * lib/filename.h: Renamed from lib/pathname.h.
88035         (concatenated_filename): Renamed from concatenated_pathname.
88036         * lib/concat-filename.c: Renamed from lib/concatpath.c.
88037         (concatenated_filename): Renamed from concatenated_pathname.
88038         * lib/findprog.c: Include filename.h instead of pathname.h.
88039         (find_in_path): Update.
88040         * lib/javacomp.c: Include filename.h instead of pathname.h.
88041         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88042         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88043         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88044         is_oldgcj_14_13_usable, is_javac_usable): Update.
88045         * lib/javaexec.c: Include filename.h instead of pathname.h.
88046         (execute_java_class): Update.
88047         * modules/findprog: Update.
88048         * modules/javacomp: Update.
88049         * modules/javaexec: Update.
88050         * MODULES.html.sh (File system functions): Add 'filename', remove
88051         'pathname'.
88053 2007-02-25  Bruno Haible  <bruno@clisp.org>
88055         * modules/printf-frexpl-tests: New file.
88056         * tests/test-printf-frexpl.c: New file.
88058         * modules/printf-frexpl: New file.
88059         * lib/printf-frexpl.h: New file.
88060         * lib/printf-frexpl.c: New file.
88061         * m4/printf-frexpl.m4: New file.
88063 2007-02-25  Bruno Haible  <bruno@clisp.org>
88065         * modules/printf-frexp-tests: New file.
88066         * tests/test-printf-frexp.c: New file.
88068         * modules/printf-frexp: New file.
88069         * lib/printf-frexp.h: New file.
88070         * lib/printf-frexp.c: New file.
88071         * m4/printf-frexp.m4: New file.
88073 2007-02-25  Bruno Haible  <bruno@clisp.org>
88075         Assume automake >= 1.10 for the tests.
88076         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
88077         * modules/arctwo-tests: Likewise.
88078         * modules/argp-tests: Likewise.
88079         * modules/avltree-list-tests: Likewise.
88080         * modules/avltree-oset-tests: Likewise.
88081         * modules/avltreehash-list-tests: Likewise.
88082         * modules/carray-list-tests: Likewise.
88083         * modules/crc-tests: Likewise.
88084         * modules/des-tests: Likewise.
88085         * modules/gc-arcfour-tests: Likewise.
88086         * modules/gc-arctwo-tests: Likewise.
88087         * modules/gc-des-tests: Likewise.
88088         * modules/gc-hmac-md5-tests: Likewise.
88089         * modules/gc-hmac-sha1-tests: Likewise.
88090         * modules/gc-md2-tests: Likewise.
88091         * modules/gc-md4-tests: Likewise.
88092         * modules/gc-md5-tests: Likewise.
88093         * modules/gc-pbkdf2-sha1-tests: Likewise.
88094         * modules/gc-rijndael-tests: Likewise.
88095         * modules/gc-sha1-tests: Likewise.
88096         * modules/gc-tests: Likewise.
88097         * modules/getaddrinfo-tests: Likewise.
88098         * modules/hmac-md5-tests: Likewise.
88099         * modules/hmac-sha1-tests: Likewise.
88100         * modules/linked-list-tests: Likewise.
88101         * modules/linkedhash-list-tests: Likewise.
88102         * modules/lock-tests: Likewise.
88103         * modules/md2-tests: Likewise.
88104         * modules/md4-tests: Likewise.
88105         * modules/md5-tests: Likewise.
88106         * modules/rbtree-list-tests: Likewise.
88107         * modules/rbtree-oset-tests: Likewise.
88108         * modules/rbtreehash-list-tests: Likewise.
88109         * modules/read-file-tests: Likewise.
88110         * modules/rijndael-tests: Likewise.
88111         * modules/stdint-tests: Likewise.
88112         * modules/tls-tests: Likewise.
88114 2007-02-24  Bruno Haible  <bruno@clisp.org>
88116         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
88117         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
88118         function; instead check whether isnan with a double argument links.
88119         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
88120         function; instead check whether isnan with a 'long double' argument
88121         links.
88122         Reported by Eric Blake <ebb9@byu.net>.
88124 2007-02-24  Bruno Haible  <bruno@clisp.org>
88126         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
88127         defined.
88128         * lib/isnanl.c: Remove all code. Just include isnan.c.
88129         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
88131 2007-02-25  Jim Meyering  <jim@meyering.net>
88133         Avoid conflicting types for 'unsetenv' on FreeBSD.
88134         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
88135         conflicting with FreeBSD's (5.0 and 6.1) function declaration
88136         in stdlib.h.
88138 2007-02-24  Bruno Haible  <bruno@clisp.org>
88140         * modules/isnanl-nolibm-tests: New file.
88141         * tests/test-isnanl.c: New file.
88143         * modules/isnanl-nolibm: New file.
88144         * lib/isnanl.h: New file.
88145         * lib/isnanl.c: New file.
88146         * m4/isnanl.m4: New file.
88148 2007-02-24  Bruno Haible  <bruno@clisp.org>
88150         * modules/isnan-nolibm-tests: New file.
88151         * tests/test-isnan.c: New file.
88153         * modules/isnan-nolibm: New file.
88154         * lib/isnan.h: New file.
88155         * lib/isnan.c: New file.
88156         * m4/isnan.m4: New file.
88158 2007-02-24  Bruno Haible  <bruno@clisp.org>
88160         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
88161         assume that an exponent fits in 20 bits.
88163 2007-02-24  Jim Meyering  <jim@meyering.net>
88165         * m4/regex.m4: Update the description of the configure-time option,
88166         --without-included-regex, to state accurately what the defaults are,
88167         and perhaps to give people an idea why using this option is risky.
88169 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
88171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
88172         loops on small arguments.  This attempts to avoid the problem
88173         Bruno Haible reported for AIX 4.3.2 in
88174         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
88176 2007-02-23  Bruno Haible  <bruno@clisp.org>
88178         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
88179         Needed for help2man.
88181 2007-02-23  Karl Berry  <karl@gnu.org>
88183         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
88184         exists, foo.h should be cvs-ignored, not committed.
88186 2007-02-23  Eric Blake  <ebb9@byu.net>
88188         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
88189         * lib/stat-time.h (includes): Likewise.
88190         * lib/utimecmp.c (includes): Likewise.
88191         * lib/utimens.h (includes): Likewise.
88192         * lib/getdate.y (includes): Also include "timespec.h" for use
88193         internal to the module.
88194         * modules/utimens (Depends-on): Revert yesterday's patch.
88195         * modules/nanosleep (Depends-on): Add missing dependency.
88197 2007-02-22  Bruno Haible  <bruno@clisp.org>
88199         * lib/glob.c: Don't include getlogin_r.h.
88201 2007-02-22  Jim Meyering  <jim@meyering.net>
88203         * modules/utimens (Depends-on): Add timespec, required for
88204         utimens.h's inclusion of timespec.h.
88206 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
88208         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
88209         long unreadable paths in GNU/Linux.  Problem reported by Andreas
88210         Schwab in
88211         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
88212         I'll try to think of a better way to fix the Solaris problem.
88214         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
88215         like glibc; on Solaris 10, it fails with errno == EINVAL.
88216         POSIX says the behavior is unspecified if the first argument is NULL,
88217         so play it safe and never pass NULL to the system getcwd.
88219 2007-02-21  Jim Meyering  <jim@meyering.net>
88221         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
88222         of gettimeofday.  It would conflict with the one now always
88223         provided via sys_time_.h.  Reported by Matthew Woehlke, as
88224         an IRIX 6.5 build failure.
88226 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
88228         Minor fixups to port to Solaris 10 with Sun C 5.8.
88229         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
88230         * modules/getcwd (Depends-on): Add dirfd.
88231         * lib/putenv.c (putenv): #undef it.
88232         (rpl_putenv): New decl.
88233         (malloc, free): Include <stdlib.h> rather than prototyping separately.
88235 2007-02-20  Bruno Haible  <bruno@clisp.org>
88237         * modules/stdio-tests: New file.
88238         * tests/test-stdio.c: New file.
88240         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
88241         (Depends-on): Add stdio.
88242         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
88243         (Include): Use <stdio.h> instead of vsnprintf.h.
88244         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
88245         HAVE_DECL_VSNPRINTF.
88246         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
88248         * modules/snprintf (Files): Remove lib/snprintf.h.
88249         (Depends-on): Add stdio.
88250         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
88251         (Include): Use <stdio.h> instead of snprintf.h.
88252         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
88253         HAVE_DECL_SNPRINTF.
88254         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
88255         * lib/getaddrinfo.c: Likewise.
88257         * modules/stdio: New file.
88258         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
88259         * lib/snprintf.h: Remove file.
88260         * lib/vsnprintf.h: Remove file.
88261         * lib/.cppi-disable: Remove snprintf.h.
88262         * m4/stdio_h.m4: New file.
88263         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
88265 2007-02-20  Jim Meyering  <jim@meyering.net>
88267         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
88268         used by e.g., mingw.  From Bruno Haible.
88270 2007-02-19  Bruno Haible  <bruno@clisp.org>
88272         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
88273         warnings.
88274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
88276 2007-02-19  Bruno Haible  <bruno@clisp.org>
88278         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
88279         from mingw users.
88281 2007-02-19  Bruno Haible  <bruno@clisp.org>
88283         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
88284         warnings.
88285         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
88287 2007-02-19  Jim Meyering  <jim@meyering.net>
88289         Don't use FD after a successful "fdopendir (fd)".
88290         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
88291         Reset it by calling dirfd on the just-obtained DIR*.
88293         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
88294         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
88296 2007-02-18  Bruno Haible  <bruno@clisp.org>
88298         * lib/readlink.c: Include <unistd.h>.
88299         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
88300         HAVE_READLINK.
88301         * modules/readlink (Depends-on): Add unistd.
88302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88303         (Include): Add <unistd.h>.
88305         * lib/getlogin_r.h: Remove file.
88306         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
88307         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
88308         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
88309         HAVE_DECL_GETLOGIN_R.
88310         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
88311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88312         (Include): Use <unistd.h> instead of getlogin_r.h.
88314         * lib/getcwd.h: Remove file.
88315         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
88316         * lib/xgetcwd.c: Likewise.
88317         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
88318         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
88319         * modules/getcwd (Files): Remove lib/getcwd.h.
88320         (Depends-on): Add unistd.
88321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88322         (Include): Use <unistd.h> instad of getcwd.h.
88324         * lib/ftruncate.c: Include <unistd.h> first.
88325         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
88326         Set HAVE_FTRUNCATE.
88327         * modules/ftruncate (Depends-on): Add unistd.
88328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88330         * lib/fchdir.c: Include <unistd.h> first.
88331         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
88332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
88333         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
88334         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88335         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
88337         * lib/dup2.c: Include <unistd.h> first.
88338         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
88339         HAVE_DUP2.
88340         * modules/dup2 (Depends-on): Add unistd.
88341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88343         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
88344         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
88345         REPLACE_CHOWN. Don't define chown as a macro here.
88346         * modules/chown (Depends-on): Add unistd.
88347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88349         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
88350         Add definition for GL_LINK_WARNING.
88351         (chown, dup2): New declarations.
88352         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
88353         link warning.
88354         (ftruncate): New declaration.
88355         (getcwd): New declaration, taken from old getcwd.h.
88356         (getlogin_r): New declaration, taken from old getlogin_r.h.
88357         (readlink): New declaration.
88358         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
88359         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
88360         (gl_PREREQ_UNISTD): Remove macro.
88361         (gl_UNISTD_MODULE_INDICATOR): New macro.
88362         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
88363         many new variables. Don't set UNISTD_H.
88364         * modules/unistd (Description): Change.
88365         (Depends-on): Add link-warning.
88366         (configure.ac): Update.
88367         (Makefile.am): Create unistd.h always. Substitute many new variables
88368         into it.
88370 2007-02-18  Bruno Haible  <bruno@clisp.org>
88372         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
88373         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
88374         HAVE_GETSUBOPT.
88375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
88376         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
88377         * lib/getsubopt.h: Remove file.
88378         * modules/getsubopt (Files): Remove lib/getsubopt.h.
88379         (Depends-on): Add stdlib.
88380         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88381         (Includes): Use <stdlib.h> instead of getsubopt.h.
88382         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
88383         Set HAVE_GETSUBOPT.
88384         * lib/getsubopt.c: Don't include getsubopt.h.
88386 2007-02-18  Bruno Haible  <bruno@clisp.org>
88388         * modules/fchdir (Depends-on): Add dup2.
88390 2007-02-18  Bruno Haible  <bruno@clisp.org>
88392         * lib/stdlib_.h: Handle glibc's special invocation convention
88393         specially.
88395 2007-02-18  Bruno Haible  <bruno@clisp.org>
88397         * modules/stdlib-tests: New file.
88398         * tests/test-stdlib.c: New file.
88400         * modules/mkstemp (Files): Remove lib/mkstemp.h.
88401         (Depends-on): Add stdlib.
88402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88403         (Includes): Use <stdlib.h> instead of mkstemp.h.
88404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88405         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
88406         * lib/mkstemp.c: Don't include mkstemp.h.
88407         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
88408         * lib/stdlib--.h: Don't include mkstemp.h.
88410         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
88411         (Depends-on): Add stdlib.
88412         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88413         (Includes): Use <stdlib.h> instead of mkdtemp.h.
88414         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88415         HAVE_MKDTEMP.
88416         * lib/mkdtemp.c: Don't include mkdtemp.h.
88417         * lib/clean-temp.c: Don't include mkdtemp.h.
88419         * modules/exit (Files): Remove lib/exit.h.
88420         (Depends-on): Add stdlib.
88421         (Makefile.am): Remove lib_SOURCES.
88422         (Include): Use <stdlib.h> instead of exit.h.
88423         * lib/argmatch.c: Don't include exit.h.
88424         * lib/execute.c: Likewise.
88425         * lib/pagealign_alloc.c: Likewise.
88426         * lib/pipe.c: Likewise.
88427         * lib/wait-process.c: Likewise.
88428         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
88429         * lib/exitfail.c: Likewise.
88430         * lib/savewd.c: Likewise.
88431         * lib/xsetenv.c: Likewise.
88433         * modules/stdlib: New file.
88434         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
88435         and extra comments about mkstemp().
88436         * lib/exit.h: Remove file.
88437         * lib/mkdtemp.h: Remove file.
88438         * lib/mkstemp.h: Remove file.
88439         * m4/stdlib_h.m4: New file.
88440         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
88442 2007-02-18  Bruno Haible  <bruno@clisp.org>
88444         * modules/math-tests: New file.
88445         * tests/test-math.c: New file.
88447         * modules/math: New file.
88448         * modules/mathl (Files): Remove lib/mathl.h.
88449         (Depends-on): Add math.
88450         (Makefile.am): Don't mention mathl.h.
88451         (Include): Use <math.h> instead of mathl.h.
88452         * lib/math_.h: New file.
88453         * lib/mathl.h: Remove file.
88454         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
88455         mathl.h.
88456         * lib/asinl.c: Likewise.
88457         * lib/atanl.c: Likewise.
88458         * lib/ceill.c: Likewise.
88459         * lib/cosl.c: Likewise.
88460         * lib/expl.c: Likewise.
88461         * lib/floorl.c: Likewise.
88462         * lib/frexpl.c: Likewise.
88463         * lib/ldexpl.c: Likewise.
88464         * lib/logl.c: Likewise.
88465         * lib/sincosl.c: Likewise.
88466         * lib/sinl.c: Likewise.
88467         * lib/sqrtl.c: Likewise.
88468         * lib/tanl.c: Likewise.
88469         * lib/trigl.c: Likewise.
88470         * m4/math_h.m4: New file.
88471         * MODULES.html.sh (Mathematics): Add math.
88473 2007-02-17  Bruno Haible  <bruno@clisp.org>
88475         * modules/wctype-tests: New file.
88476         * tests/test-wctype.c: New file.
88478         * modules/wchar-tests: New file.
88479         * tests/test-wchar.c: New file.
88481         * modules/unistd-tests: New file.
88482         * tests/test-unistd.c: New file.
88484         * modules/time-tests: New file.
88485         * tests/test-time.c: New file.
88487         * modules/sysexits-tests: New file.
88488         * tests/test-sysexits.c: New file.
88490         * modules/sys_time-tests: New file.
88491         * tests/test-sys_time.c: New file.
88493         * modules/sys_stat-tests: New file.
88494         * tests/test-sys_stat.c: New file.
88496         * modules/sys_socket-tests: New file.
88497         * tests/test-sys_socket.c: New file.
88499         * modules/sys_select-tests: New file.
88500         * tests/test-sys_select.c: New file.
88502         * modules/string-tests: New file.
88503         * tests/test-string.c: New file.
88505         * modules/stdbool-tests: New file.
88506         * tests/test-stdbool.c: New file.
88508         * modules/netinet_in-tests: New file.
88509         * tests/test-netinet_in.c: New file.
88511         * modules/inttypes-tests: New file.
88512         * tests/test-inttypes.c: New file.
88514         * modules/fcntl-tests: New file.
88515         * tests/test-fcntl.c: New file.
88517         * modules/byteswap-tests: New file.
88518         * tests/test-byteswap.c: New file.
88520         * modules/arpa_inet-tests: New file.
88521         * tests/test-arpa_inet.c: New file.
88523 2007-02-17  Bruno Haible  <bruno@clisp.org>
88525         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
88526         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
88527         if the corresponding module is not enabled. Emit link warnings if
88528         the function is used nevertheless.
88529         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
88530         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
88531         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
88532         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
88533         * modules/inttypes (Depends-on): Add link-warning.
88534         (Makefile.am): Copy the contents of build-aux/link-warning.h into
88535         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
88536         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
88537         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
88538         * modules/imaxdiv (configure.ac): Likewise.
88539         * modules/strtoimax (configure.ac): Likewise.
88540         * modules/strtoumax (configure.ac): Likewise.
88542 2007-02-17  Bruno Haible  <bruno@clisp.org>
88544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
88545         gl_STRING_MODULE_INDICATOR_DEFAULTS.
88546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
88547         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
88549 2007-02-17  Bruno Haible  <bruno@clisp.org>
88551         * modules/link-warning: New file.
88552         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
88553         * lib/string_.h (GL_LINK_WARNING): Remove definition.
88554         * modules/string (Depends-on): Add link-warning.
88555         (Makefile.am): Copy the contents of build-aux/link-warning.h into
88556         string.h.
88557         * MODULES.html.sh (Support for building libraries and executables): Add
88558         link-warning.
88560 2007-02-17  Bruno Haible  <bruno@clisp.org>
88562         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
88563         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
88564         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
88565         long lines.
88567 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
88568             Bruno Haible  <bruno@clisp.org>
88570         * modules/tmpfile: New file.
88571         * lib/tmpfile.c: New file.
88572         * m4/tmpfile.m4: New file.
88573         * MODULES.html.sh (func_all_modules): New section "Input/output".
88575 2007-02-15  Bruno Haible  <bruno@clisp.org>
88577         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
88578         (supports_delete_on_close): New function.
88579         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
88581 2007-02-14  Bruno Haible  <bruno@clisp.org>
88583         * modules/mbspcasecmp-tests: New file.
88584         * tests/test-mbspcasecmp.sh: New file.
88585         * tests/test-mbspcasecmp.c: New file.
88587         New module mbspcasecmp.
88588         * modules/mbspcasecmp: New file.
88589         * lib/mbspcasecmp.c: New file.
88590         * lib/string_.h (strncasecmp): Change warning message.
88591         (mbspcasecmp): New declaration.
88592         * m4/mbspcasecmp.m4: New file.
88593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88594         GNULIB_MBSPCASECMP.
88595         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
88596         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
88598 2007-02-14  Bruno Haible  <bruno@clisp.org>
88600         * modules/mbsncasecmp-tests: New file.
88601         * tests/test-mbsncasecmp.sh: New file.
88602         * tests/test-mbsncasecmp.c: New file.
88604         New module mbsncasecmp.
88605         * modules/mbsncasecmp: New file.
88606         * lib/mbsncasecmp.c: New file.
88607         * lib/string_.h (mbsncasecmp): New declaration.
88608         * m4/mbsncasecmp.m4: New file.
88609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88610         GNULIB_MBSNCASECMP.
88611         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
88612         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
88614 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
88616         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
88617         Verify that it doesn't overlap with our flags.
88618         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
88619         do not have the desired effect in multibyte locales; instead, use
88620         mbscasecmp.
88621         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
88622         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
88623         we don't require GNU fnmatch ourselves (if our users require it, they
88624         should do so explicitly).
88626         Fix regex code so it doesn't rely on strcasecmp.
88627         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
88628         Otherwise, include gnulib's langinfo.h.
88629         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
88630         undesirable behavior in non-C locales.  Instead, rely on localecharset.
88631         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
88632         * modules/regex (FILES): Remove m4/codeset.m4.
88633         (Depends-on): Add localcharset.  Remove strcase.
88635 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88637         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
88638         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
88640 2007-02-13  Bruno Haible  <bruno@clisp.org>
88642         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
88643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88645 2007-02-12  Bruno Haible  <bruno@clisp.org>
88647         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88648         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
88649         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
88650         time warning rather than a link error.
88652 2007-02-12  Bruno Haible  <bruno@clisp.org>
88654         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
88655         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
88656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88658 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88660         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
88661         args, not 2.
88663 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88665         New module 'time', so that apps can include <time.h> as per
88666         POSIX and GNU instead of separate include files like time_r.h
88667         and timegm.h.  This implementation tries out a simpler approach
88668         for replacing decls in standard include files (as compared to
88669         the string module), somewhat as an experiment.
88671         * config/srclist.txt: Comment out mktime.c for now.
88672         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
88673         since it doesn't apply any more.  Use generic wording instead.
88674         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
88675         'time'.
88676         * lib/time_.h, m4/time_h.m4, modules/time: New files.
88677         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
88678         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
88679         Don't include <sys/types.h>; no longer needed since we assume C89.
88680         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
88681         * lib/strftime.c: Likewise.
88682         * lib/time_r.c: Likewise.
88683         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
88684         * lib/nanosleep.c: Include <time.h> first, to check interface.
88685         * lib/strptime.c: Likewise.
88686         * lib/time_r.c: Likewise.
88687         * lib/timegm.c: Likewise.
88688         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
88689         needed.
88690         * lib/timegm.c: Don't include timegm.h; no longer needed.
88691         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
88692         time.h now handles any problems in that area.
88693         (struct timespec, nanosleep): Remove; time.h now arranges for these.
88694         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
88695         that time.h defines struct timespec.
88696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
88697         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
88698         handles that.
88699         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
88700         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
88701         needed.  Set REPLACE_LOCALTIME.
88702         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
88703         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
88704         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
88705         nanosleep; time_h.m4 now does that.  Don't require
88706         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
88707         module handles this now.
88708         * modules/getdate (Depends-on): Remove timespec.  Add time.
88709         * modules/nanosleep (Depends-on): Likewise.
88710         * modules/stat-time (Depends-on): Likewise.
88711         * modules/nanosleep (Include): Include time.h, not timespec.h.
88712         * modules/strptime (Files): Remove lib/strptime.h.
88713         (Depends-on): Add extensions, time.
88714         (Include): Include time.h, not strptime.h.
88715         * modules/time_r (Files): Remove lib/time_r.h.
88716         (Depends-on): Add time.
88717         (Include): Include time.h, not time_r.h.
88718         * modules/timegm: Likewise.
88719         * modules/timespec (Description): Now does timespec-related decls
88720         of our own, instead of struct timespec itself.
88721         (Depends-on): Add time; remove extensions.
88722         (Maintainer): Add self.
88723         * modules/utimecmp (Depends-on): Add time; remove timespec.
88724         * modules/utimens (Depends-on): Likewise.
88725         * modules/xnanosleep (Depends-on): Likewise.
88727 2007-02-11  Bruno Haible  <bruno@clisp.org>
88729         * lib/c-strstr.c: Include allocsa.h.
88730         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88731         * lib/c-strcasestr.c: Include allocsa.h.
88732         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88733         * lib/strcasestr.c: Include allocsa.h.
88734         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88735         * lib/mbsstr.c: Include allocsa.h.
88736         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88737         allocsa/freesa instead of malloc/free.
88738         * lib/mbscasestr.c: Include allocsa.h.
88739         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88740         allocsa/freesa instead of malloc/free.
88741         * modules/c-strstr (Depends-on): Add allocsa.
88742         * modules/c-strcasestr (Depends-on): Likewise.
88743         * modules/strcasestr (Depends-on): Likewise.
88744         * modules/mbsstr (Depends-on): Likewise.
88745         * modules/mbscasestr (Depends-on): Likewise.
88747 2007-02-11  Bruno Haible  <bruno@clisp.org>
88749         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
88751         * modules/mbsspn-tests: New file.
88752         * tests/test-mbsspn.sh: New file.
88753         * tests/test-mbsspn.c: New file.
88755 2007-02-11  Bruno Haible  <bruno@clisp.org>
88757         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
88759         * modules/mbspbrk-tests: New file.
88760         * tests/test-mbspbrk.sh: New file.
88761         * tests/test-mbspbrk.c: New file.
88763 2007-02-11  Bruno Haible  <bruno@clisp.org>
88765         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
88766         unneeded cast.
88768         * modules/mbscspn-tests: New file.
88769         * tests/test-mbscspn.sh: New file.
88770         * tests/test-mbscspn.c: New file.
88772 2007-02-11  Bruno Haible  <bruno@clisp.org>
88774         * modules/mbscasecmp-tests: New file.
88775         * tests/test-mbscasecmp.sh: New file.
88776         * tests/test-mbscasecmp.c: New file.
88778 2007-02-11  Bruno Haible  <bruno@clisp.org>
88780         Ensure O(n) worst-case complexity of mbscasestr.
88781         * lib/mbscasestr.c: Include stdbool.h.
88782         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88783         functions.
88784         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
88785         the bookkeeping indicates that it's worth it.
88786         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
88788         * modules/mbscasestr-tests: New file.
88789         * tests/test-mbscasestr1.c: New file.
88790         * tests/test-mbscasestr2.sh: New file.
88791         * tests/test-mbscasestr2.c: New file.
88792         * tests/test-mbscasestr3.sh: New file.
88793         * tests/test-mbscasestr3.c: New file.
88794         * tests/test-mbscasestr4.sh: New file.
88795         * tests/test-mbscasestr4.c: New file.
88796         * m4/locale-tr.m4: New file.
88798 2007-02-11  Bruno Haible  <bruno@clisp.org>
88800         Ensure O(n) worst-case complexity of mbsstr.
88801         * lib/mbsstr.c: Include stdbool.h.
88802         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88803         functions.
88804         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
88805         bookkeeping indicates that it's worth it.
88806         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
88808         * modules/mbsstr-tests: New file.
88809         * tests/test-mbsstr1.c: New file.
88810         * tests/test-mbsstr2.sh: New file.
88811         * tests/test-mbsstr2.c: New file.
88812         * tests/test-mbsstr3.sh: New file.
88813         * tests/test-mbsstr3.c: New file.
88814         * m4/locale-fr.m4: New file.
88816 2007-02-11  Bruno Haible  <bruno@clisp.org>
88818         * lib/mbsrchr.c (mbsrchr): Fix bug.
88820         * modules/mbsrchr-tests: New file.
88821         * tests/test-mbsrchr.sh: New file.
88822         * tests/test-mbsrchr.c: New file.
88824 2007-02-11  Bruno Haible  <bruno@clisp.org>
88826         * lib/mbschr.c (mbschr): Fix bug.
88828         * modules/mbschr-tests: New file.
88829         * tests/test-mbschr.sh: New file.
88830         * tests/test-mbschr.c: New file.
88831         * m4/locale-zh.m4: New file.
88833 2007-02-11  Bruno Haible  <bruno@clisp.org>
88835         Support for copying multibyte string iterators.
88836         * lib/mbiter.h: Include <string.h>.
88837         (mbiter_multi_copy): New function.
88838         (mbi_copy): New macro.
88839         * lib/mbuiter.h: Include <string.h>.
88840         (mbuiter_multi_copy): New function.
88841         (mbui_copy): New macro.
88843 2007-02-11  Bruno Haible  <bruno@clisp.org>
88845         New module mbslen.
88846         * modules/mbslen: New file.
88847         * lib/mbslen.c: New file.
88848         * lib/string_.h (mbslen): New declaration.
88849         * m4/mbslen.m4: New file.
88850         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88851         GNULIB_MBSLEN.
88852         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
88853         * MODULES.html.sh (Internationalization functions): Add mbslen.
88855 2007-02-11  Bruno Haible  <bruno@clisp.org>
88857         Ensure O(n) worst-case complexity of strcasestr substitute.
88858         * lib/strcasestr.c: Include stdbool.h.
88859         (knuth_morris_pratt): New function.
88860         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88861         bookkeeping indicates that it's worth it.
88862         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
88864         * modules/strcasestr-tests: New file.
88865         * tests/test-strcasestr.c: New file.
88867 2007-02-11  Bruno Haible  <bruno@clisp.org>
88869         Ensure O(n) worst-case complexity of c_strcasestr.
88870         * lib/c-strcasestr.c: Include stdbool.h, string.h.
88871         (knuth_morris_pratt): New function.
88872         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
88873         the bookkeeping indicates that it's worth it.
88874         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
88876         * modules/c-strcasestr-tests: New file.
88877         * tests/test-c-strcasestr.c: New file.
88879 2007-02-11  Bruno Haible  <bruno@clisp.org>
88881         Ensure O(n) worst-case complexity of c_strstr.
88882         * lib/c-strstr.c: Include stdbool.h, string.h.
88883         (knuth_morris_pratt): New function.
88884         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88885         bookkeeping indicates that it's worth it.
88886         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
88888         * lib/c-strstr.c: Complete rewrite for maintainability.
88890         * modules/c-strstr-tests: New file.
88891         * tests/test-c-strstr.c: New file.
88893 2007-02-11  Bruno Haible  <bruno@clisp.org>
88895         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
88896         5.2.1 and earlier, whereby \055 was treated just like the range
88897         delimiter '-'.
88898         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88900 2007-02-08  Bruno Haible  <bruno@clisp.org>
88902         * modules/regex (Depends-on): Add stdbool.
88903         Reported by Dalibor Topic <robilad@kaffe.org>.
88905 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
88907         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
88908         Prefer returning from main to exiting from it.
88909         Remove unnecessary parens after sizeof.
88911 2007-02-05  Bruno Haible  <bruno@clisp.org>
88913         New module mbssep.
88914         * modules/mbssep: New file.
88915         * lib/mbssep.c: New file.
88916         * lib/string_.h (strsep): Add a conditional link warning.
88917         (mbssep): New declaration.
88918         * m4/mbssep.m4: New file.
88919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88920         GNULIB_MBSSEP.
88921         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
88922         * MODULES.html.sh (Internationalization functions): Add mbssep.
88924 2007-02-05  Bruno Haible  <bruno@clisp.org>
88926         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
88927         Optimize search in case of 1 delimiter.
88929 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
88931         * lib/acl.h: Include sys/types.h before sys/acl.h.
88933 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
88935         Merge upstream fix for glibc bugzilla #3957:
88937         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
88939         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
88940         bit for RE_HAT_LISTS_NOT_NEWLINE.
88941         (build_charclass_op): Remove bogus comment.
88943 2007-02-05  Simon Josefsson  <simon@josefsson.org>
88945         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
88947 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88949         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
88950         * lib/memmem.c [!defined _LIBC]: Include config.h.
88952 2007-02-04  Bruno Haible  <bruno@clisp.org>
88954         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
88955         warning message.
88957 2007-02-04  Bruno Haible  <bruno@clisp.org>
88959         New module mbstok_r.
88960         * modules/mbstok_r: New file.
88961         * lib/mbstok_r.c: New file.
88962         * lib/string_.h (strtok_r): Change argument names to match the
88963         comments. Add a conditional link warning.
88964         (mbstok_r): New declaration.
88965         * m4/mbstok_r.m4: New file.
88966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88967         GNULIB_MBSTOK_R.
88968         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
88969         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
88971 2007-02-04  Bruno Haible  <bruno@clisp.org>
88973         New module mbsspn.
88974         * modules/mbsspn: New file.
88975         * lib/mbsspn.c: New file.
88976         * lib/string_.h (strspn): Add a conditional link warning.
88977         (mbsspn): New declaration.
88978         * m4/mbsspn.m4: New file.
88979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88980         GNULIB_MBSSPN.
88981         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
88982         * MODULES.html.sh (Internationalization functions): Add mbsspn.
88984 2007-02-04  Bruno Haible  <bruno@clisp.org>
88986         New module mbspbrk.
88987         * modules/mbspbrk: New file.
88988         * lib/mbspbrk.c: New file.
88989         * lib/string_.h (strpbrk): Add a conditional link warning.
88990         (mbspbrk): New declaration.
88991         * m4/mbspbrk.m4: New file.
88992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88993         GNULIB_MBSPBRK.
88994         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
88995         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
88997 2007-02-04  Bruno Haible  <bruno@clisp.org>
88999         New module mbscspn.
89000         * modules/mbscspn: New file.
89001         * lib/mbscspn.c: New file.
89002         * lib/string_.h (strcspn): Add a conditional link warning.
89003         (mbscspn): New declaration.
89004         * m4/mbscspn.m4: New file.
89005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89006         GNULIB_MBSCSPN.
89007         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
89008         * MODULES.html.sh (Internationalization functions): Add mbscspn.
89010 2007-02-04  Bruno Haible  <bruno@clisp.org>
89012         New module mbscasestr, reduced goal of strcasestr.
89013         * modules/mbscasestr: New file.
89014         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
89015         (mbscasestr): Renamed from strcasestr.
89016         * lib/strcasestr.c: Don't include mbuiter.h.
89017         (strcasestr): Remove support for multibyte locales.
89018         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
89019         Change the conditional link warning.
89020         (mbscasestr): New declaration.
89021         * m4/mbscasestr.m4: New file.
89022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
89023         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
89024         REPLACE_STRCASESTR.
89025         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
89026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89027         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89028         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
89029         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
89030         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89031         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
89032         (Depends-on): Remove mbuiter.
89033         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
89035 2007-02-04  Bruno Haible  <bruno@clisp.org>
89037         Simplify handling of strncasecmp.
89038         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
89039         the conditional link warning.
89040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89041         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
89042         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
89043         * modules/strcase (configure.ac): Don't invoke
89044         gl_STRING_MODULE_INDICATOR.
89045         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
89047 2007-02-04  Bruno Haible  <bruno@clisp.org>
89049         New module mbscasecmp, reduced goal of strcasecmp.
89050         * modules/mbscasecmp: New file.
89051         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
89052         (mbscasecmp): Renamed from strcasecmp.
89053         * lib/strcasecmp.c: Don't include mbuiter.h.
89054         (strcasecmp): Remove support for multibyte locales.
89055         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
89056         Change the conditional link warning.
89057         (mbscasecmp): New declaration.
89058         * m4/mbscasecmp.m4: New file.
89059         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
89060         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
89061         REPLACE_STRCASECMP.
89062         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
89063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89064         GNULIB_MBSCASECMP.
89065         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
89066         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
89067         * modules/strcase (Files): Remove m4/mbrtowc.m4.
89068         (Depends-on): Remove mbuiter.
89069         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
89071 2007-02-04  Bruno Haible  <bruno@clisp.org>
89073         New module mbsstr. Remove module strstr.
89074         * modules/mbsstr: New file.
89075         * modules/strstr: Remove file.
89076         * lib/mbsstr.c: Renamed from lib/strstr.c.
89077         (mbsstr): Renamed from strstr.
89078         * lib/string_.h (strstr): Remove declaration. Change the conditional
89079         link warning.
89080         (mbsstr): New declaration.
89081         * m4/mbsstr.m4: New file.
89082         * m4/strstr.m4: Remove file.
89083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
89084         REPLACE_STRSTR.
89085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
89086         Don't initialize GNULIB_STRSTR.
89087         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
89088         substitute GNULIB_STRSTR and REPLACE_STRSTR.
89089         * MODULES.html.sh (Internationalization functions): Add mbsstr.
89090         (Support for systems lacking ANSI C 89): Remove strstr.
89092 2007-02-04  Bruno Haible  <bruno@clisp.org>
89094         New module mbsrchr.
89095         * modules/mbsrchr: New file.
89096         * lib/mbsrchr.c: New file.
89097         * lib/string_.h (strrchr): Add a conditional link warning.
89098         (mbsrchr): New declaration.
89099         * m4/mbsrchr.m4: New file.
89100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89101         GNULIB_MBSRCHR.
89102         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
89103         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
89105 2007-02-04  Bruno Haible  <bruno@clisp.org>
89107         New module mbschr.
89108         * modules/mbschr: New file.
89109         * lib/mbschr.c: New file.
89110         * lib/string_.h (strchr): Add a conditional link warning.
89111         (mbschr): New declaration.
89112         * m4/mbschr.m4: New file.
89113         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89114         GNULIB_MBSCHR.
89115         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
89116         * MODULES.html.sh (Internationalization functions): Add mbschr.
89118 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89120         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
89122         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
89124 2007-02-04  Bruno Haible  <bruno@clisp.org>
89126         New module description section 'configure.ac-early'.
89127         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
89128         (func_get_autoconf_early_snippet): New function.
89129         (func_import, func_create_testdir): Use it. Remove special cases for
89130         modules 'extensions' and 'lock'.
89131         * modules/extensions (configure.ac-early): Require
89132         gl_USE_SYSTEM_EXTENSIONS.
89133         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
89135 2007-02-04  Bruno Haible  <bruno@clisp.org>
89137         Make use of gcj-4.3's -fsource and -ftarget option.
89138         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
89139         and if so try the options -fsource and -ftarget.
89140         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
89141         source_version, ftarget_option, target_version arguments.
89142         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
89143         (is_envjavac_oldgcj_14_14_usable): Renamed from
89144         is_envjavac_gcj_14_14_usable.
89145         (is_envjavac_oldgcj_14_13_usable): Renamed from
89146         is_envjavac_gcj_14_13_usable.
89147         (is_gcj_present): Update.
89148         (is_gcj_43, is_gcj43_usable): New functions.
89149         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
89150         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
89151         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
89152         try the options -fsource and -ftarget.
89154 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89156         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
89157         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
89158         larger value.
89160 2007-02-03  Jim Meyering  <jim@meyering.net>
89162         Give tools a better chance to allocate space for very large buffers.
89163         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
89165         Make pwd and readlink work also when run with an unreadable parent dir
89166         on systems with openat support.
89167         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
89168         provided getcwd function, even when we have openat support.
89169         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
89171 2007-02-02  Bruno Haible  <bruno@clisp.org>
89173         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89174         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
89175         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
89176         portability problems if one of these functions is only used on specific
89177         platforms.
89178         Reported by Paul Eggert.
89180 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
89182         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
89183         is causing more trouble than it's curing.
89184         * lib/regex_internal.h (__mempcpy): Remove.
89185         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
89186         (and make the code a tad smaller to boot).
89187         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
89189 2007-02-02  Jim Meyering  <jim@meyering.net>
89191         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
89192         section, not in the Makefile.am: one.
89194 2007-02-02  Eric Blake  <ebb9@byu.net>
89196         * lib/strchrnul.c: Always include config.h first.
89198         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
89199         gnulib strstr is not necessary here.
89201 2007-02-02  Simon Josefsson  <simon@josefsson.org>
89203         * m4/socklen.m4: Fix typo.
89205 2007-02-02  Eric Blake  <ebb9@byu.net>
89207         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
89208         * modules/netinet_in (Makefile.am): Likewise.
89210 2007-02-01  Bruno Haible  <bruno@clisp.org>
89212         * lib/string_.h (GL_LINK_WARNING): New macro.
89213         (strcasecmp, strstr, strcasestr): If provided by the system,
89214         conditionally define as a macro that leads to a warning instead of to
89215         an error.
89216         (strncasecmp): Conditionally define as a macro that leads to a warning.
89218 2007-02-01  Karl Berry  <karl@gnu.org>
89220         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
89222 2007-02-01  Bruno Haible  <bruno@clisp.org>
89224         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
89225         renamings.
89227 2007-02-01  Eric Blake  <ebb9@byu.net>
89229         * modules/regex (Depends-on): Revert dependence on mempcpy.
89230         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
89231         module's definition of mempcpy.
89232         Reported by Paul Eggert.
89234 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89236         * lib/string_.h: If the gnulib module XYZ is not present, undefine
89237         the symbol XYZ before redefining it.  This fixes a problem with
89238         programs that don't use XYZ, when compiled on systems that define
89239         XYZ to something else.
89241 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
89243         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
89244         occurs when "mkdir -m foo" creates a setgid directory that is (1)
89245         writeable to group or other and (2) is intended to have a special
89246         mode bit that is set or cleared.  In such a case, the directory
89247         should be neither group- nor other-writeable until the special
89248         mode bits are right.
89250 2007-01-31  Eric Blake  <ebb9@byu.net>
89252         * modules/mountlist (Depends-on): Add strstr.
89254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
89255         bug.
89256         * modules/string (Makefile.am): Remove redundant replacement.
89257         * modules/regex (Depends-on): Add mempcpy.
89259 2007-01-31  Bruno Haible  <bruno@clisp.org>
89261         New module description field 'Link'.
89262         * gnulib-tool (func_usage): Document --extract-link-directive.
89263         (sed_extract_prog): Recognize 'Link' directive.
89264         (func_get_link_directive): New function.
89265         (func_import): Show summary of link directives.
89266         Handle --extract-link-directive option.
89267         * modules/acl (Link): New section.
89268         * modules/clock-time (Link): New section.
89269         * modules/euidaccess (Link): New section.
89270         * modules/gettext (Link): New section.
89271         * modules/iconv (Link): New section.
89272         * modules/lock (Link): New section.
89273         * modules/nanosleep (Link): New section.
89274         * modules/readline (Link): New section.
89276 2007-01-27  Bruno Haible  <bruno@clisp.org>
89278         Enforce the use of gnulib modules for unportable <string.h> functions.
89279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
89280         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
89281         (gl_HEADER_STRING_H_BODY): Require it.
89282         * lib/string_.h: If the gnulib module XYZ is not present, redefine
89283         the symbol XYZ to one that gives a link error.
89284         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
89285         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
89286         * modules/mempcpy (configure.ac): Likewise.
89287         * modules/memrchr (configure.ac): Likewise.
89288         * modules/stpcpy (configure.ac): Likewise.
89289         * modules/stpncpy (configure.ac): Likewise.
89290         * modules/strcase (configure.ac): Likewise.
89291         * modules/strcasestr (configure.ac): Likewise.
89292         * modules/strchrnul (configure.ac): Likewise.
89293         * modules/strdup (configure.ac): Likewise.
89294         * modules/strndup (configure.ac): Likewise.
89295         * modules/strnlen (configure.ac): Likewise.
89296         * modules/strpbrk (configure.ac): Likewise.
89297         * modules/strsep (configure.ac): Likewise.
89298         * modules/strstr (configure.ac): Likewise.
89299         * modules/strtok_r (configure.ac): Likewise.
89301 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
89303         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
89305 2007-01-30  Jim Meyering  <jim@meyering.net>
89307         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
89309 2007-01-29  Bruno Haible  <bruno@clisp.org>
89311         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
89312         * lib/execute.c: Likewise.
89313         * lib/pipe.c: Likewise.
89314         * lib/printf-args.h: Likewise.
89315         * lib/printf-args.c: Likewise.
89316         * lib/printf-parse.c: Likewise.
89317         * lib/vasnprintf.c: Likewise.
89319 2007-01-29  Eric Blake  <ebb9@byu.net>
89321         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
89322         declaration.
89324 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
89326         * lib/strptime.h (strptime): Use 'restrict' for args where
89327         POSIX requires this.
89328         * lib/strptime.c (strptime): Likewise.
89329         Change license notice from LGPL to GPL, since gnulib-tool will
89330         change this as needed.
89331         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
89332         defined.
89333         Include "strptime.h" first, to check interface.
89334         Do not #undef _LIBC and _NL_CURRENT.
89335         Do not include <stdlib.h>; no longer needed.
89336         Include "time_r.h" and declare ptime_locale_status
89337         only if _LIBC is not defined.
89338         (__P): Remove unused macro.
89339         (match_string): Bring back glibc version, but use it only if _LIBC
89340         is defined.
89341         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
89342         Remove unnecessary assertion and abort() call.
89343         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
89344         * m4/strptime.m4: Fix serial number comment.
89345         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
89346         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
89347         (Depends-on): Add time_r.
89349 2007-01-29  Bruno Haible  <bruno@clisp.org>
89351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89352         strptime.
89353         * modules/strptime (Depends-on): Add stdbool.
89354         * lib/strptime.h: Include <time.h> always. Add comments.
89356 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89358         * modules/strptime: New file.
89359         * lib/strptime.h: New file.
89360         * lib/strptime.c: New file.
89361         * m4/strptime.m4: New file.
89363 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89365         * MODULES.html.sh: New module mpsort.
89366         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
89368         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
89369         a circularity problem with HP-UX ia64 reported by Bob Proulx in
89370         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
89371         All uses changed.
89372         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
89373         All uses changed.
89374         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
89375         to _Restrict_.
89376         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
89377         the parameter matches the prototype.
89379 2007-01-28  Jim Meyering  <jim@meyering.net>
89381         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
89382         sys/time.h here, reverting that part of the previous patch:
89383         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
89385 2007-01-28  Bruno Haible  <bruno@clisp.org>
89387         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
89388         value of $(SYS_TIME_H).
89389         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
89390         remove it conditionally, too. [added by Jim Meyering]
89391         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
89392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
89393         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
89394         GETTIMEOFDAY_REPLACEMENT to 1.
89396 2007-01-28  Bruno Haible  <bruno@clisp.org>
89398         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
89399         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
89400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
89401         Set UNISTD_H instead of UNISTD_H2.
89402         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
89404 2007-01-28  Bruno Haible  <bruno@clisp.org>
89406         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
89407         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
89409 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89411         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
89412         (func_create_testdir): Ensure C locale for `grep' and `tr'
89413         character ranges.
89414         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
89415         ACLOCAL_AMFLAGS parsing state machine.
89417 2007-01-27  Bruno Haible  <bruno@clisp.org>
89419         * modules/unistr/base: Update.
89421 2007-01-27  Bruno Haible  <bruno@clisp.org>
89423         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
89424         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
89425         * modules/unistr/u32-mbtouc-unsafe: Renamed from
89426         modules/unistr/u32-mbtouc.
89427         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
89428         * lib/unistr.h: Update.
89429         * lib/linebreak.c: Update.
89430         * modules/unistr/u32-mbtouc: Renamed from
89431         modules/unistr/u32-mbtouc-safe.
89432         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
89433         * lib/unistr.h: Update.
89434         * lib/unistr/u32-to-u8.c: Update.
89435         * lib/unistr/u32-to-u16.c: Update.
89437 2007-01-27  Bruno Haible  <bruno@clisp.org>
89439         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
89440         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
89441         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
89442         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
89443         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
89444         * modules/unistr/u16-mbtouc-unsafe: Renamed from
89445         modules/unistr/u16-mbtouc.
89446         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
89447         * lib/unistr.h: Update.
89448         * lib/linebreak.c: Update.
89449         * modules/linebreak: Update.
89450         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
89451         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
89452         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
89453         * modules/unistr/u16-mbtouc: Renamed from
89454         modules/unistr/u16-mbtouc-safe.
89455         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
89456         * lib/unistr.h: Update.
89457         * lib/unistr/u16-to-u8.c: Update.
89458         * modules/unistr/u16-to-u8: Update.
89459         * lib/unistr/u16-to-u32.c: Update.
89460         * modules/unistr/u16-to-u32: Update.
89462 2007-01-27  Bruno Haible  <bruno@clisp.org>
89464         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
89465         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
89466         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
89467         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
89468         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
89469         * modules/unistr/u8-mbtouc-unsafe: Renamed from
89470         modules/unistr/u8-mbtouc.
89471         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
89472         * lib/unistr.h: Update.
89473         * lib/striconveh.c: Update.
89474         * modules/striconveh: Update.
89475         * lib/linebreak.c: Update.
89476         * modules/linebreak: Update.
89477         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
89478         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
89479         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
89480         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
89481         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
89482         * lib/unistr.h: Update.
89483         * lib/striconveh.c: Update.
89484         * modules/striconveh: Update.
89485         * lib/unistr/u8-to-u16.c: Update.
89486         * modules/unistr/u8-to-u16: Update.
89487         * lib/unistr/u8-to-u32.c: Update.
89488         * modules/unistr/u8-to-u32: Update.
89490 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89492         Sync from Libtool.
89493         * lib/argz.c: Do not include strings.h nor memory.h, include
89494         string.h unconditionally.  Patch by Simon Josefsson.
89496 2007-01-27  Bruno Haible  <bruno@clisp.org>
89498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
89499         from gl_HEADER_STRING_H_BODY.
89500         (gl_HEADER_STRING_H_BODY): Require it.
89501         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
89502         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
89503         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
89504         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
89505         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
89506         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
89507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89508         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
89509         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
89510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
89511         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
89512         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
89513         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
89514         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
89517 2007-01-27  Bruno Haible  <bruno@clisp.org>
89519         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
89520         check_PROGRAMS into noinst_PROGRAMS.
89521         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
89522         check_PROGRAMS in this case.
89523         (func_import): Set for_test to false.
89524         (func_create_testdir): Set for_test to true.
89526 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89527             Bruno Haible  <bruno@clisp.org>
89529         * modules/strcasestr (Files): Remove lib/strcasestr.h.
89530         (Depends-on): Add string.
89531         (Includes): Use <string.h> instead of strcasestr.h.
89532         * modules/string (Makefile.am): Also substitute the value of
89533         REPLACE_STRCASESTR.
89534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
89535         assume strcasestr is declared in <string.h> not <strings.h>. Also
89536         set REPLACE_STRCASESTR.
89537         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
89538         REPLACE_STRCASESTR.
89539         * lib/strcasestr.h: Remove file.
89540         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
89541         * lib/string_.h (strcasestr): New declaration.
89543 2007-01-27  Bruno Haible  <bruno@clisp.org>
89545         * lib/string_.h: Use 'extern'.
89547 2007-01-27  Jim Meyering  <jim@meyering.net>
89549         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
89550         of set-but-not-used local, "q".
89552         * lib/mempcpy.c: Include <config.h> before <string.h>.
89553         This fixes a compilation error on HP-UX, due to the system's
89554         "restrict"-using mempcpy prototype.
89556 2007-01-26  Bruno Haible  <bruno@clisp.org>
89558         Small optimization.
89559         * lib/javacomp.c: Include c-strstr.h.
89560          (is_envjavac_gcj): Use c_strstr instead of strstr.
89561         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
89563 2007-01-26  Bruno Haible  <bruno@clisp.org>
89565         * MODULES.html.sh (Unicode string functions): Add the new modules.
89567         * modules/uniconv/u32-strconv-to-locale: New file.
89568         * lib/uniconv/u32-strconv-to-locale.c: New file.
89570         * modules/uniconv/u16-strconv-to-locale: New file.
89571         * lib/uniconv/u16-strconv-to-locale.c: New file.
89573         * modules/uniconv/u8-strconv-to-locale: New file.
89574         * lib/uniconv/u8-strconv-to-locale.c: New file.
89576         * modules/uniconv/u32-strconv-from-locale: New file.
89577         * lib/uniconv/u32-strconv-from-locale.c: New file.
89579         * modules/uniconv/u16-strconv-from-locale: New file.
89580         * lib/uniconv/u16-strconv-from-locale.c: New file.
89582         * modules/uniconv/u8-strconv-from-locale: New file.
89583         * lib/uniconv/u8-strconv-from-locale.c: New file.
89585         * modules/uniconv/u32-strconv-to-enc: New file.
89586         * lib/uniconv/u32-strconv-to-enc.c: New file.
89587         * modules/uniconv/u32-strconv-to-enc-tests: New file.
89588         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
89590         * modules/uniconv/u16-strconv-to-enc: New file.
89591         * lib/uniconv/u16-strconv-to-enc.c: New file.
89592         * lib/uniconv/u-strconv-to-enc.h: New file.
89593         * modules/uniconv/u16-strconv-to-enc-tests: New file.
89594         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
89596         * modules/uniconv/u8-strconv-to-enc: New file.
89597         * lib/uniconv/u8-strconv-to-enc.c: New file.
89598         * modules/uniconv/u8-strconv-to-enc-tests: New file.
89599         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
89601         * modules/uniconv/u32-strconv-from-enc: New file.
89602         * lib/uniconv/u32-strconv-from-enc.c: New file.
89603         * modules/uniconv/u32-strconv-from-enc-tests: New file.
89604         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
89606         * modules/uniconv/u16-strconv-from-enc: New file.
89607         * lib/uniconv/u16-strconv-from-enc.c: New file.
89608         * modules/uniconv/u16-strconv-from-enc-tests: New file.
89609         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
89611         * modules/uniconv/u8-strconv-from-enc: New file.
89612         * lib/uniconv/u8-strconv-from-enc.c: New file.
89613         * lib/uniconv/u-strconv-from-enc.h: New file.
89614         * modules/uniconv/u8-strconv-from-enc-tests: New file.
89615         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
89617         * modules/uniconv/u32-conv-from-enc: New file.
89618         * lib/uniconv/u32-conv-from-enc.c: New file.
89619         * modules/uniconv/u32-conv-from-enc-tests: New file.
89620         * tests/uniconv/test-u32-conv-from-enc.c: New file.
89622         * modules/uniconv/u16-conv-from-enc: New file.
89623         * lib/uniconv/u16-conv-from-enc.c: New file.
89624         * lib/uniconv/u-conv-from-enc.h: New file.
89625         * modules/uniconv/u16-conv-from-enc-tests: New file.
89626         * tests/uniconv/test-u16-conv-from-enc.c: New file.
89628         * modules/uniconv/u8-conv-from-enc: New file.
89629         * lib/uniconv/u8-conv-from-enc.c: New file.
89630         * modules/uniconv/u8-conv-from-enc-tests: New file.
89631         * tests/uniconv/test-u8-conv-from-enc.c: New file.
89633         * modules/uniconv/base: New file.
89634         * lib/uniconv.h: New file.
89636 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
89638         * doc/gnulib-tool.texi (Initial import): Update to match current
89639         behavior with strdup module.
89640         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
89641         * lib/memmem.h: Remove; all uses removed.  This is now done
89642         by <string.h>.
89643         * lib/mempcpy.h: Likewise.
89644         * lib/memrchr.h: Likewise.
89645         * lib/stpcpy.h: Likewise.
89646         * lib/stpncpy.h: Likewise.
89647         * lib/strcase.h: Likewise.
89648         * lib/strchrnul.h: Likewise.
89649         * lib/strdup.h: Likewise.
89650         * lib/strndup.h: Likewise.
89651         * lib/strnlen.h: Likewise.
89652         * lib/strpbrk.h: Likewise.
89653         * lib/strsep.h: Likewise.
89654         * lib/strstr.h: Likewise.
89655         * lib/strtok_r.h: Likewise.
89656         * lib/string_.h: New file.
89657         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
89658         Rely on <string.h> instead.
89659         * lib/canon-host.c: Likewise.
89660         * lib/chdir-long.c: Likewise.
89661         * lib/concatpath.c: Likewise.
89662         * lib/exclude.c: Likewise.
89663         * lib/fchdir.c: Likewise.
89664         * lib/getaddrinfo.c: Likewise.
89665         * lib/getcwd.c: Likewise.
89666         * lib/getsubopt.c: Likewise.
89667         * lib/glob.c: Likewise.
89668         * lib/hard-locale.c: Likewise.
89669         * lib/iconvme.c: Likewise.
89670         * lib/javacomp.c: Likewise.
89671         * lib/mempcpy.c: Likewise.
89672         * lib/memrchr.c: Likewise.
89673         * lib/regex_internal.h: Likewise.
89674         * lib/stpncpy.c: Likewise.
89675         * lib/strcasecmp.c: Likewise.
89676         * lib/strchrnul.c: Likewise.
89677         * lib/strdup.c: Likewise.
89678         * lib/striconv.c: Likewise.
89679         * lib/striconveh.c: Likewise.
89680         * lib/striconveha.c: Likewise.
89681         * lib/strncasecmp.c: Likewise.
89682         * lib/strndup.c: Likewise.
89683         * lib/strnlen.c: Likewise.
89684         * lib/strsep.c: Likewise.
89685         * lib/strstr.c: Likewise.
89686         * lib/strtok_r.c: Likewise.
89687         * lib/userspec.c: Likewise.
89688         * lib/w32spawn.h: Likewise.
89689         * lib/xstrndup.c: Likewise.
89690         * lib/mountlist.c (strstr): Remove decl.
89691         * m4/string_h.m4: New file.
89692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
89693         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
89694         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
89695         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
89696         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
89697         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
89698         Set REPLACE_STRCASECMP if necessary.
89699         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
89700         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
89701         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
89702         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
89703         HAVE_DECL_STRDUP if necessary.
89704         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
89705         since gl_FUNC_STRNDUP does that now.
89706         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
89707         Check for decl here...
89708         (gl_PREREQ_STRNLEN): ... not here.
89709         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
89710         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
89711         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
89712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
89713         necessary.
89714         * modules/string: New file.
89715         * modules/memmem (Files): Remove special-purpose include file.
89716         (Depends-on): Add string.
89717         (Include): Include <string.h>, not the removed file.
89718         * modules/mempcpy: Likewise.
89719         * modules/memrchr: Likewise.
89720         * modules/stpcpy: Likewise.
89721         * modules/stpncpy: Likewise.
89722         * modules/strcase: Likewise.
89723         * modules/strchrnul: Likewise.
89724         * modules/strdup: Likewise.
89725         * modules/strndup: Likewise.
89726         * modules/strnlen: Likewise.
89727         * modules/strpbrk: Likewise.
89728         * modules/strsep: Likewise.
89729         * modules/strstr: Likewise.
89730         * modules/strtok_r: Likewise.
89731         * tests/test-dirname.c: Don't include "strdup.h", since
89732         <string.h> now suffices.
89733         * tests/test-memmem.c: Don't include "memmem.h", since
89734         <string.h> now suffices.
89736 2007-01-25  Bruno Haible  <bruno@clisp.org>
89738         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
89739         *resultp is 0.
89741         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
89742         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
89743         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
89744         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
89746         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
89747         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
89748         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
89749         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
89750         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
89751         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
89753 2007-01-24  Bruno Haible  <bruno@clisp.org>
89755         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
89756         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
89757         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
89758         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
89759         gl_FUNC_FTS_CORE.
89760         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
89761         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
89762         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89763         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
89764         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
89765         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
89766         gl_FUNC_FCHOWNAT.
89767         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
89768         gl_FUNC_STRFTIME.
89769         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
89770         Reported by Ralf Wildenhues.
89772 2007-01-24  Bruno Haible  <bruno@clisp.org>
89774         Drop AC_REQUIRE calls that are redundant with the module dependencies.
89775         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
89776         gl_GETADDRINFO.
89777         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
89778         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
89779         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
89781 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
89783         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
89784         Don't use 'exit'; just return from 'main'.
89785         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
89787         * lib/fnmatch_.h: Readjust white space and comments to match
89788         glibc, to avoid spurious diffs.
89790 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89792         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
89793         2004-12-01 change by Jakub Jelinek, since this code won't compile
89794         if !LIBC.  Problem reported by Bob Proulx.
89796 2007-01-23  Bruno Haible  <bruno@clisp.org>
89798         * lib/striconveh.c: Include c-strcaseeq.h.
89799         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
89800         * modules/striconveh (Depends-on): Add c-strcaseeq.
89802 2007-01-23  Bruno Haible  <bruno@clisp.org>
89804         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
89806         * modules/c-strcaseeq: New file.
89807         * lib/c-strcaseeq.h: New file.
89809         * modules/streq: New file.
89810         * lib/streq.h: New file.
89812 2007-01-23  Bruno Haible  <bruno@clisp.org>
89814         * modules/striconveha-tests: New file.
89815         * tests/test-striconveha.c: New file.
89817         * lib/striconveha.h: Include <stdbool.h>.
89818         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
89819         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
89820         (mem_iconveha_notranslit): Renamed from mem_iconveha.
89821         (mem_iconveha): New function.
89822         (str_iconveha_notranslit): Renamed from str_iconveha.
89823         (str_iconveha): New function.
89824         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
89825         c-strcase.
89827 2007-01-23  Bruno Haible  <bruno@clisp.org>
89829         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
89830         encodings without forgiving before trying any encoding with handler.
89831         (str_iconveha): Try all encodings without forgiving before trying any
89832         encoding with handler.
89834 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89836         Import the following changes from libc.
89838         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
89840         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
89842         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89844         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
89845         normal_bracket label.
89847         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
89849         [BZ #361]
89850         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
89851         to normal_bracket after fetching the next character.
89853 2007-01-22  Bruno Haible  <bruno@clisp.org>
89855         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
89856         argument.
89857         * lib/striconveh.c (iconv_carefully_1): New function.
89858         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
89859         argument.
89860         (str_cd_iconveh): Update.
89861         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
89862         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
89863         * tests/test-striconveh.c (MAGIC): New macro.
89864         (new_offsets): New function.
89865         (main): Test call with and without offsets.
89867 2007-01-22  Bruno Haible  <bruno@clisp.org>
89869         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
89870         * modules/sys_select (Makefile.am): Likewise.
89871         * modules/sys_socket (Makefile.am): Likewise.
89872         * modules/sys_time (Makefile.am): Likewise.
89874 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
89876         * modules/gettimeofday (License): Change from GPL to LGPL, since
89877         gettimeofday is a library function.
89879 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89881         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
89883 2007-01-21  Bruno Haible  <bruno@clisp.org>
89885         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
89887 2007-01-21  Bruno Haible  <bruno@clisp.org>
89889         * modules/striconveha: New file.
89890         * lib/striconveha.h: New file.
89891         * lib/striconveha.c: New file.
89892         * MODULES.html.sh (Internationalization functions): Add striconveha.
89893         * lib/striconv.c (str_iconv): Optimize the case of an empty input
89894         string.
89895         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
89897 2007-01-21  Bruno Haible  <bruno@clisp.org>
89899         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
89900         * lib/striconveh.c (str_iconveh): Likewise.
89902 2007-01-21  Bruno Haible  <bruno@clisp.org>
89904         * lib/striconveh.h (mem_iconveh): New declaration.
89905         * lib/striconveh.c (mem_iconveh): New function.
89906         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
89908 2007-01-21  Bruno Haible  <bruno@clisp.org>
89910         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
89912         * lib/striconveh.h (mem_cd_iconveh): Change specification.
89913         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
89914         original result buffer.
89915         (str_cd_iconveh): Update.
89916         * tests/test-striconveh.c (main): Update.
89918         * lib/striconv.h (mem_cd_iconv): Change specification.
89919         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
89920         result buffer.
89921         (str_cd_iconv): Update.
89922         * tests/test-striconv.c (main): Update.
89924 2007-01-21  Bruno Haible  <bruno@clisp.org>
89926         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
89928 2007-01-20  Jim Meyering  <jim@meyering.net>
89930         * lib/userspec.c (parse_with_separator): If a user or group string
89931         starts with "+", skip the corresponding name-to-ID look-up, since
89932         such a look-up must fail: user and group names may not include "+".
89934 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89936         * lib/poll.c: Include sys/time.h and time.h unconditionally,
89937         since we now assume the sys_time module.
89938         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
89939         check for sys/time.h; no longer needed.
89940         * modules/poll (Depends-on): Depend on sys_time.
89942 2007-01-18  Bruno Haible  <bruno@clisp.org>
89944         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
89945         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89947         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
89948         gettimeofday.
89950         * tests/test-gettimeofday.c: Include <time.h>.
89951         (dummy): Remove variable.
89953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
89954         gl_HEADER_SYS_TIME_H.
89955         (gl_HEADER_SYS_TIME_H): New macro.
89957         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
89958         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89959         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
89960         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
89961         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89962         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
89963         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
89964         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89965         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
89966         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
89967         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89969         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
89970         last change; it caused a compilation error when cross-compiling to
89971         Cygwin.
89973 2007-01-18  Jim Meyering  <jim@meyering.net>
89975         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
89976         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
89977         than the race-prone "test -d sys || mkdir sys".
89978         (configure.ac): Use AC_PROG_MKDIR_P.
89979         * modules/sys_select: Likewise.
89980         * modules/sys_socket: Likewise.
89981         * modules/sys_time: Likewise.
89983 2007-01-18  Eric Blake  <ebb9@byu.net>
89985         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
89986         replace gettimeofday.
89987         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
89988         name, to avoid infinite recursion.
89990 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
89992         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
89993         module sys_time.
89994         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
89995         assume timespec.h defines struct timeval.
89996         * lib/settime.c: Likewise.
89997         * lib/utimens.c: Likewise.
89998         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
89999         since we now assume the gettimeofday module.
90000         * lib/tempname.c (__gen_tempname): Likewise.
90001         * lib/gettimeofday.h: Remove.
90002         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
90003         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
90004         Include <time.h>, for 'time()'.
90005         (localtime_buffer_addr): Also use this workaround if
90006         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
90007         to simplify the uses.  All uses changed.
90008         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
90009         that #undef is inside {}, and 'const' follows type name consistently.
90010         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
90011         (gettimeofday): Do not use the maximum possible value for
90012         tv->tv_usec, since that might break usages other than ls.c.
90013         Instead, we'll leave ls.c alone.  This undoes today's patch
90014         by Bruno.  Add a compile-time warning for 1s-clock resolution;
90015         we've never observed the problem but might as well keep the
90016         canary.
90017         * lib/nanosleep.c: Include timespec.h first, for interface check.
90018         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
90019         now assume the sys_time module.
90020         * lib/tempname.c: Likewise.
90021         * lib/timespec.h: Likewise.
90022         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
90023         needed.
90024         * lib/strftime.c: Likewise.
90025         * lib/timespec.h: Likewise.
90026         * lib/posixtm.c: Include posixtm.h first, for interface check.
90027         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
90028         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
90029         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
90030         * lib/sys_time_.h: New file.
90031         * lib/timespec.h (struct timespec): Use long int, not long.
90032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90033         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
90034         Remove obsolescent call to AC_HEADER_TIME.
90035         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
90036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
90037         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90038         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
90039         Likewise.
90040         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
90041         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
90042         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
90043         into the sys_time module.  Check for gettimeofday just once.
90044         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
90045         for gettimeofday signature to just check the signature.  Merely
90046         compile it, since linking doesn't test signature.  Improve test for
90047         whether gettimeofday.o is actually needed.
90048         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
90049         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
90050         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
90051         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90052         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
90053         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
90054         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
90055         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
90056         than worrying about sys/time.h.
90057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90058         Don't bother worrying about TIME_WITH_SYS_TIME.
90059         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
90060         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
90061         * m4/sys_time_h.m4: New file.
90062         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
90063         Don't include sys/time.h.  Return from main rather than exiting.
90064         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
90065         all uses changed.
90066         * modules/gethrxtime (Depends-on): Add sys_time.
90067         * modules/gettime (Depends-on): Likewise.
90068         * modules/gettimeofday (Depends-on): Likewise.
90069         * modules/nanosleep (Depends-on): Likewise.
90070         * modules/settime (Depends-on): Likewise.
90071         * modules/tempname (Depends-on): Likewise.
90072         * modules/utimens (Depends-on): Likewise.
90073         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
90074         (Include): Change back to <sys/time.h>.
90075         (Maintainer): Add self.
90076         * modules/sys_time: New file.
90077         * modules/tempname (Depends-on): Add gettimeofday.
90078         * tests/test-gettimeofday.c: Include <sys/time.h>
90079         rather than gettimeofday.h.
90081 2007-01-17  Bruno Haible  <bruno@clisp.org>
90083         * gnulib-tool (func_get_license): Revert last patch. Instead, let
90084         the license default to GPL.
90085         (func_create_testdir): Don't complain if a module is LGPL and its
90086         tests module depends on GPLed modules.
90088 2007-01-17  Bruno Haible  <bruno@clisp.org>
90090         * lib/gettimeofday.c (gettimeofday): Add code for the case
90091         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
90092         maximum possible value for tv->tv_usec, rather than the minimum one.
90094 2005-10-08  Martin Lambers  <marlam@marlam.de>
90095 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90096 2007-01-16  Bruno Haible  <bruno@clisp.org>
90098         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
90099         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
90100         gl_FUNC_GETTIMEOFDAY.
90101         (Include): Add gettimeofday.h.
90102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
90103         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
90104         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
90105         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
90106         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
90107         * lib/gettimeofday.h: New file.
90108         * lib/gettimeofday.c: Include <sys/timeb.h>.
90109         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
90110         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90111         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
90112         fall back on time().
90114         * tests/test-gettimeofday.c: New file.
90115         * modules/gettimeofday-tests: New file.
90117 2007-01-16  Eric Blake  <ebb9@byu.net>
90119         * modules/fnmatch (Depends-on): Depend on wchar.
90120         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
90121         * m4/fnmatch.m4: Likewise.
90122         * modules/mbchar (Makefile.am): Assume <wchar.h>.
90123         * m4/mbchar.m4: Likewise.
90124         * modules/mbswidth (Depends-on): Depend on wchar.
90125         * lib/mbswidth.c: Assume <wchar.h>.
90126         * m4/mbswidth.m4: Likewise.
90127         * modules/quotearg (Depends-on): Depend on wchar.
90128         * lib/quotearg.c: Assume <wchar.h>.
90129         * m4/quotearg.m4: Likewise.
90130         * modules/regex (Depends-on): Depend on wchar.
90131         * lib/regex_internal.h: Assume <wchar.h>.
90132         * m4/regex.m4: Likewise.
90133         * modules/stdint (Depends-on): Depend on wchar.
90134         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
90135         * m4/stdint.m4: Likewise.
90136         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
90137         * modules/strftime (Depends-on): Depend on wchar.
90138         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
90139         * modules/strtol (Depends-on): Depend on wchar.
90140         * lib/strtol.c: Assume <wchar.h>.
90141         * modules/wcwidth (Depends-on): Depend on wchar.
90142         * lib/wcwidth.h: Assume <wchar.h>.
90143         * m4/wcwidth.m4: Likewise.
90145 2007-01-16  Bruno Haible  <bruno@clisp.org>
90147         * modules/csharpexec-script: New, created from...
90148         * modules/csharpexec: ... this.
90150 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
90152         * modules/javaexec-script: New, created from...
90153         * modules/javaexec: ... this.
90155 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90157         * modules/poll (Dependencies): Add sys_select.
90159 2007-01-15  Jim Meyering  <jim@meyering.net>
90161         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
90162         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
90163         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
90164         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
90166 2007-01-15  Bruno Haible  <bruno@clisp.org>
90168         * modules/striconveh: New file.
90169         * lib/striconveh.h: New file.
90170         * lib/striconveh.c: New file.
90171         * MODULES.html.sh (Internationalization functions): Add striconveh.
90173         * modules/striconveh-tests: New file.
90174         * tests/test-striconveh.c: New file.
90176 2007-01-15  Bruno Haible  <bruno@clisp.org>
90178         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
90179         not from GNU libiconv or GNU libc.
90181 2007-01-15  Bruno Haible  <bruno@clisp.org>
90183         * doc/gnulib-intro.texi (Copyright): Explain the different license
90184         terms for module descriptions, autoconf macros, tests, documentation.
90186 2007-01-14  Bruno Haible  <bruno@clisp.org>
90188         * modules/striconv-tests: New file.
90189         * tests/test-striconv.c: New file.
90191 2007-01-14  Bruno Haible  <bruno@clisp.org>
90193         * modules/iconv-tests: New file.
90194         * tests/test-iconv.c: New file.
90196 2007-01-14  Bruno Haible  <bruno@clisp.org>
90198         * gnulib-tool (func_get_license): For test modules, use the license of
90199         the main module.
90201 2007-01-14  Bruno Haible  <bruno@clisp.org>
90203         * modules/iconv (Include): Clarify that <iconv.h> can only be included
90204         if iconv is found to exist.
90206 2007-01-14  Bruno Haible  <bruno@clisp.org>
90208         * modules/c-ctype-tests: New file.
90209         * tests/test-c-ctype.c: New file.
90211 2007-01-14  Bruno Haible  <bruno@clisp.org>
90213         * modules/binary-io-tests: New file.
90214         * tests/test-binary-io.sh: New file.
90215         * tests/test-binary-io.c: New file.
90217 2007-01-14  Bruno Haible  <bruno@clisp.org>
90219         * modules/array-oset-tests: New file.
90220         * tests/test-array_oset.c: New file.
90222 2007-01-14  Bruno Haible  <bruno@clisp.org>
90224         * modules/array-list-tests: New file.
90225         * tests/test-array_list.c: New file.
90227 2007-01-14  Bruno Haible  <bruno@clisp.org>
90229         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
90230         and make.
90231         Reported by Simon Josefsson in
90232         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
90234 2007-01-14  Bruno Haible  <bruno@clisp.org>
90236         * modules/allocsa-tests: New file.
90237         * tests/test-allocsa.c: New file.
90239 2007-01-14  Bruno Haible  <bruno@clisp.org>
90241         * modules/fchdir (Depends-on): Add absolute-header.
90242         * modules/unistd (Depends-on): Likewise.
90244 2006-12-30  Bruno Haible  <bruno@clisp.org>
90246         * modules/fchdir: New file.
90247         * modules/unistd (Files): Add lib/unistd_.h.
90248         (Makefile.am): Generate unistd.h from unistd_.h.
90249         * lib/fchdir.c: New file.
90250         * lib/dirent_.h: New file.
90251         * lib/unistd_.h: New file.
90252         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
90253         * m4/fchdir.m4: New file.
90254         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
90255         (gl_HEADER_UNISTD): Invoke it.
90256         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
90257         function.
90258         * lib/backupfile.c (opendir, closedir): Undefine.
90259         * lib/chown.c (open, close): Undefine.
90260         * lib/clean-temp.c (open, close): Undefine.
90261         * lib/copy-file.c (open, close): Undefine.
90262         * lib/execute.c (open, close): Undefine.
90263         * lib/fsusage.c (open, close): Undefine.
90264         * lib/gc-gnulib.c (open, close): Undefine.
90265         * lib/getcwd.c (opendir, closedir): Undefine.
90266         * lib/glob.c (opendir, closedir): Undefine.
90267         * lib/javacomp.c (open, close): Undefine.
90268         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
90269         * lib/openat-proc.c (open, close): Undefine.
90270         * lib/pagealign_alloc.c (open, close): Undefine.
90271         * lib/pipe.c (open, close): Undefine.
90272         * lib/progreloc.c (open, close): Undefine.
90273         * lib/savedir.c (opendir, closedir): Undefine.
90274         * lib/utime.c (open, close): Undefine.
90275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
90277 2007-01-10  Bruno Haible  <bruno@clisp.org>
90279         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
90281 2007-01-12  Eric Blake  <ebb9@byu.net>
90283         Provide a robust <wchar.h>.  Further simplifications are now
90284         possible in other modules, but not included here.
90285         * modules/wchar: New module.
90286         * m4/wchar.m4: New file.
90287         * lib/wchar_.h: Likewise.
90288         * modules/mbchar (Depends-on): Depend on wchar, as the first use
90289         of the new module.
90290         * MODULES.html.sh (Extended multibyte and wide character utilities):
90291         New section.
90293 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
90295         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
90296         to a reasonable default for memory allocation.
90297         (xreadlink): Don't allocate a huge buffer, to work around a buggy
90298         file system that reports garbage st_size values for symlinks.
90299         Problem reported by Liyang Hu.
90301 2007-01-11  Simon Josefsson  <simon@josefsson.org>
90303         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
90304         Emacs .#* auto-save files).
90306 2007-01-11  Bruno Haible  <bruno@clisp.org>
90308         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
90309         directory.
90311 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
90313         Use @...@ consistently in lib/wctype_.h.
90314         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
90315         on it being set to 1 or 0.
90316         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
90317         go back to AC_SUBSTing it.
90318         * modules/wctype (Makefile.am): Undo previous change.
90320 2007-01-10  Eric Blake  <ebb9@byu.net>
90322         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
90323         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
90324         * modules/wctype (Makefile.am): Likewise.
90325         Reported by Chris McGuire.
90327 2007-01-10  Jim Meyering  <jim@meyering.net>
90329         fts.c: a small readability/maintainability improvement
90330         * lib/fts.c (fts_read): Make this code slightly more readable and
90331         maintainable by hoisting the "sp->fts_cur = p" assignments to
90332         immediately follow the statements that set P.  Derived from
90333         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
90335 2007-01-10  Eric Blake  <ebb9@byu.net>
90337         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
90338         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
90339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90340         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
90341         Reported by Chris McGuire.
90343 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90345         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
90346         in sed script.
90348 2007-01-09  Bruno Haible  <bruno@clisp.org>
90350         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
90351         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
90352         variables.
90353         (func_module): Use them.
90355 2007-01-09  Bruno Haible  <bruno@clisp.org>
90357         * modules/unistr/base: New file.
90358         * lib/unistr.h: New file.
90360         * modules/unistr/u8-to-u16: New file.
90361         * lib/unistr/u8-to-u16.c: New file.
90363         * modules/unistr/u8-to-u32: New file.
90364         * lib/unistr/u8-to-u32.c: New file.
90366         * modules/unistr/u16-to-u8: New file.
90367         * lib/unistr/u16-to-u8.c: New file.
90369         * modules/unistr/u16-to-u32: New file.
90370         * lib/unistr/u16-to-u32.c: New file.
90372         * modules/unistr/u32-to-u8: New file.
90373         * lib/unistr/u32-to-u8.c: New file.
90375         * modules/unistr/u32-to-u16: New file.
90376         * lib/unistr/u32-to-u16.c: New file.
90378         * modules/unistr/u8-check: New file.
90379         * modules/unistr/u16-check: New file.
90380         * modules/unistr/u32-check: New file.
90381         * lib/unistr/u8-check.c: New file.
90382         * lib/unistr/u16-check.c: New file.
90383         * lib/unistr/u32-check.c: New file.
90385         * modules/unistr/u8-chr: New file.
90386         * modules/unistr/u16-chr: New file.
90387         * modules/unistr/u32-chr: New file.
90388         * lib/unistr/u8-chr.c: New file.
90389         * lib/unistr/u16-chr.c: New file.
90390         * lib/unistr/u32-chr.c: New file.
90392         * modules/unistr/u8-cmp: New file.
90393         * modules/unistr/u16-cmp: New file.
90394         * modules/unistr/u32-cmp: New file.
90395         * lib/unistr/u8-cmp.c: New file.
90396         * lib/unistr/u16-cmp.c: New file.
90397         * lib/unistr/u32-cmp.c: New file.
90399         * modules/unistr/u8-cpy: New file.
90400         * modules/unistr/u16-cpy: New file.
90401         * modules/unistr/u32-cpy: New file.
90402         * lib/unistr/u8-cpy.c: New file.
90403         * lib/unistr/u16-cpy.c: New file.
90404         * lib/unistr/u32-cpy.c: New file.
90405         * lib/unistr/u-cpy.h: New file.
90407         * modules/unistr/u8-cpy-alloc: New file.
90408         * modules/unistr/u16-cpy-alloc: New file.
90409         * modules/unistr/u32-cpy-alloc: New file.
90410         * lib/unistr/u8-cpy-alloc.c: New file.
90411         * lib/unistr/u16-cpy-alloc.c: New file.
90412         * lib/unistr/u32-cpy-alloc.c: New file.
90413         * lib/unistr/u-cpy-alloc.h: New file.
90415         * modules/unistr/u8-endswith: New file.
90416         * modules/unistr/u16-endswith: New file.
90417         * modules/unistr/u32-endswith: New file.
90418         * lib/unistr/u8-endswith.c: New file.
90419         * lib/unistr/u16-endswith.c: New file.
90420         * lib/unistr/u32-endswith.c: New file.
90421         * lib/unistr/u-endswith.h: New file.
90423         * modules/unistr/u8-mblen: New file.
90424         * modules/unistr/u16-mblen: New file.
90425         * modules/unistr/u32-mblen: New file.
90426         * lib/unistr/u8-mblen.c: New file.
90427         * lib/unistr/u16-mblen.c: New file.
90428         * lib/unistr/u32-mblen.c: New file.
90430         * modules/unistr/u8-mbtouc: New file.
90431         * modules/unistr/u16-mbtouc: New file.
90432         * modules/unistr/u32-mbtouc: New file.
90433         * lib/unistr/u8-mbtouc.c: New file.
90434         * lib/unistr/u16-mbtouc.c: New file.
90435         * lib/unistr/u32-mbtouc.c: New file.
90437         * modules/unistr/u8-mbtouc-safe: New file.
90438         * modules/unistr/u16-mbtouc-safe: New file.
90439         * modules/unistr/u32-mbtouc-safe: New file.
90440         * lib/unistr/u8-mbtouc-safe.c: New file.
90441         * lib/unistr/u16-mbtouc-safe.c: New file.
90442         * lib/unistr/u32-mbtouc-safe.c: New file.
90444         * modules/unistr/u8-move: New file.
90445         * modules/unistr/u16-move: New file.
90446         * modules/unistr/u32-move: New file.
90447         * lib/unistr/u8-move.c: New file.
90448         * lib/unistr/u16-move.c: New file.
90449         * lib/unistr/u32-move.c: New file.
90450         * lib/unistr/u-move.h: New file.
90452         * modules/unistr/u8-next: New file.
90453         * modules/unistr/u16-next: New file.
90454         * modules/unistr/u32-next: New file.
90455         * lib/unistr/u8-next.c: New file.
90456         * lib/unistr/u16-next.c: New file.
90457         * lib/unistr/u32-next.c: New file.
90459         * modules/unistr/u8-prev: New file.
90460         * modules/unistr/u16-prev: New file.
90461         * modules/unistr/u32-prev: New file.
90462         * lib/unistr/u8-prev.c: New file.
90463         * lib/unistr/u16-prev.c: New file.
90464         * lib/unistr/u32-prev.c: New file.
90466         * modules/unistr/u8-set: New file.
90467         * modules/unistr/u16-set: New file.
90468         * modules/unistr/u32-set: New file.
90469         * lib/unistr/u8-set.c: New file.
90470         * lib/unistr/u16-set.c: New file.
90471         * lib/unistr/u32-set.c: New file.
90472         * lib/unistr/u-set.h: New file.
90474         * modules/unistr/u8-startswith: New file.
90475         * modules/unistr/u16-startswith: New file.
90476         * modules/unistr/u32-startswith: New file.
90477         * lib/unistr/u8-startswith.c: New file.
90478         * lib/unistr/u16-startswith.c: New file.
90479         * lib/unistr/u32-startswith.c: New file.
90480         * lib/unistr/u-startswith.h: New file.
90482         * modules/unistr/u8-stpcpy: New file.
90483         * modules/unistr/u16-stpcpy: New file.
90484         * modules/unistr/u32-stpcpy: New file.
90485         * lib/unistr/u8-stpcpy.c: New file.
90486         * lib/unistr/u16-stpcpy.c: New file.
90487         * lib/unistr/u32-stpcpy.c: New file.
90488         * lib/unistr/u-stpcpy.h: New file.
90490         * modules/unistr/u8-stpncpy: New file.
90491         * modules/unistr/u16-stpncpy: New file.
90492         * modules/unistr/u32-stpncpy: New file.
90493         * lib/unistr/u8-stpncpy.c: New file.
90494         * lib/unistr/u16-stpncpy.c: New file.
90495         * lib/unistr/u32-stpncpy.c: New file.
90496         * lib/unistr/u-stpncpy.h: New file.
90498         * modules/unistr/u8-strcat: New file.
90499         * modules/unistr/u16-strcat: New file.
90500         * modules/unistr/u32-strcat: New file.
90501         * lib/unistr/u8-strcat.c: New file.
90502         * lib/unistr/u16-strcat.c: New file.
90503         * lib/unistr/u32-strcat.c: New file.
90504         * lib/unistr/u-strcat.h: New file.
90506         * modules/unistr/u8-strchr: New file.
90507         * modules/unistr/u16-strchr: New file.
90508         * modules/unistr/u32-strchr: New file.
90509         * lib/unistr/u8-strchr.c: New file.
90510         * lib/unistr/u16-strchr.c: New file.
90511         * lib/unistr/u32-strchr.c: New file.
90513         * modules/unistr/u8-strcmp: New file.
90514         * modules/unistr/u16-strcmp: New file.
90515         * modules/unistr/u32-strcmp: New file.
90516         * lib/unistr/u8-strcmp.c: New file.
90517         * lib/unistr/u16-strcmp.c: New file.
90518         * lib/unistr/u32-strcmp.c: New file.
90520         * modules/unistr/u8-strcpy: New file.
90521         * modules/unistr/u16-strcpy: New file.
90522         * modules/unistr/u32-strcpy: New file.
90523         * lib/unistr/u8-strcpy.c: New file.
90524         * lib/unistr/u16-strcpy.c: New file.
90525         * lib/unistr/u32-strcpy.c: New file.
90526         * lib/unistr/u-strcpy.h: New file.
90528         * modules/unistr/u8-strcspn: New file.
90529         * modules/unistr/u16-strcspn: New file.
90530         * modules/unistr/u32-strcspn: New file.
90531         * lib/unistr/u8-strcspn.c: New file.
90532         * lib/unistr/u16-strcspn.c: New file.
90533         * lib/unistr/u32-strcspn.c: New file.
90534         * lib/unistr/u-strcspn.h: New file.
90536         * modules/unistr/u8-strdup: New file.
90537         * modules/unistr/u16-strdup: New file.
90538         * modules/unistr/u32-strdup: New file.
90539         * lib/unistr/u8-strdup.c: New file.
90540         * lib/unistr/u16-strdup.c: New file.
90541         * lib/unistr/u32-strdup.c: New file.
90542         * lib/unistr/u-strdup.h: New file.
90544         * modules/unistr/u8-strlen: New file.
90545         * modules/unistr/u16-strlen: New file.
90546         * modules/unistr/u32-strlen: New file.
90547         * lib/unistr/u8-strlen.c: New file.
90548         * lib/unistr/u16-strlen.c: New file.
90549         * lib/unistr/u32-strlen.c: New file.
90550         * lib/unistr/u-strlen.h: New file.
90552         * modules/unistr/u8-strmblen: New file.
90553         * modules/unistr/u16-strmblen: New file.
90554         * modules/unistr/u32-strmblen: New file.
90555         * lib/unistr/u8-strmblen.c: New file.
90556         * lib/unistr/u16-strmblen.c: New file.
90557         * lib/unistr/u32-strmblen.c: New file.
90559         * modules/unistr/u8-strmbtouc: New file.
90560         * modules/unistr/u16-strmbtouc: New file.
90561         * modules/unistr/u32-strmbtouc: New file.
90562         * lib/unistr/u8-strmbtouc.c: New file.
90563         * lib/unistr/u16-strmbtouc.c: New file.
90564         * lib/unistr/u32-strmbtouc.c: New file.
90566         * modules/unistr/u8-strncat: New file.
90567         * modules/unistr/u16-strncat: New file.
90568         * modules/unistr/u32-strncat: New file.
90569         * lib/unistr/u8-strncat.c: New file.
90570         * lib/unistr/u16-strncat.c: New file.
90571         * lib/unistr/u32-strncat.c: New file.
90572         * lib/unistr/u-strncat.h: New file.
90574         * modules/unistr/u8-strncmp: New file.
90575         * modules/unistr/u16-strncmp: New file.
90576         * modules/unistr/u32-strncmp: New file.
90577         * lib/unistr/u8-strncmp.c: New file.
90578         * lib/unistr/u16-strncmp.c: New file.
90579         * lib/unistr/u32-strncmp.c: New file.
90581         * modules/unistr/u8-strncpy: New file.
90582         * modules/unistr/u16-strncpy: New file.
90583         * modules/unistr/u32-strncpy: New file.
90584         * lib/unistr/u8-strncpy.c: New file.
90585         * lib/unistr/u16-strncpy.c: New file.
90586         * lib/unistr/u32-strncpy.c: New file.
90587         * lib/unistr/u-strncpy.h: New file.
90589         * modules/unistr/u8-strnlen: New file.
90590         * modules/unistr/u16-strnlen: New file.
90591         * modules/unistr/u32-strnlen: New file.
90592         * lib/unistr/u8-strnlen.c: New file.
90593         * lib/unistr/u16-strnlen.c: New file.
90594         * lib/unistr/u32-strnlen.c: New file.
90595         * lib/unistr/u-strnlen.h: New file.
90597         * modules/unistr/u8-strpbrk: New file.
90598         * modules/unistr/u16-strpbrk: New file.
90599         * modules/unistr/u32-strpbrk: New file.
90600         * lib/unistr/u8-strpbrk.c: New file.
90601         * lib/unistr/u16-strpbrk.c: New file.
90602         * lib/unistr/u32-strpbrk.c: New file.
90603         * lib/unistr/u-strpbrk.h: New file.
90605         * modules/unistr/u8-strrchr: New file.
90606         * modules/unistr/u16-strrchr: New file.
90607         * modules/unistr/u32-strrchr: New file.
90608         * lib/unistr/u8-strrchr.c: New file.
90609         * lib/unistr/u16-strrchr.c: New file.
90610         * lib/unistr/u32-strrchr.c: New file.
90612         * modules/unistr/u8-strspn: New file.
90613         * modules/unistr/u16-strspn: New file.
90614         * modules/unistr/u32-strspn: New file.
90615         * lib/unistr/u8-strspn.c: New file.
90616         * lib/unistr/u16-strspn.c: New file.
90617         * lib/unistr/u32-strspn.c: New file.
90618         * lib/unistr/u-strspn.h: New file.
90620         * modules/unistr/u8-strstr: New file.
90621         * modules/unistr/u16-strstr: New file.
90622         * modules/unistr/u32-strstr: New file.
90623         * lib/unistr/u8-strstr.c: New file.
90624         * lib/unistr/u16-strstr.c: New file.
90625         * lib/unistr/u32-strstr.c: New file.
90626         * lib/unistr/u-strstr.h: New file.
90628         * modules/unistr/u8-strtok: New file.
90629         * modules/unistr/u16-strtok: New file.
90630         * modules/unistr/u32-strtok: New file.
90631         * lib/unistr/u8-strtok.c: New file.
90632         * lib/unistr/u16-strtok.c: New file.
90633         * lib/unistr/u32-strtok.c: New file.
90634         * lib/unistr/u-strtok.h: New file.
90636         * modules/unistr/u8-uctomb: New file.
90637         * modules/unistr/u16-uctomb: New file.
90638         * modules/unistr/u32-uctomb: New file.
90639         * lib/unistr/u8-uctomb.c: New file.
90640         * lib/unistr/u16-uctomb.c: New file.
90641         * lib/unistr/u32-uctomb.c: New file.
90643         * MODULES.html.sh (Unicode string functions): Add the new modules.
90645 2007-01-08  Bruno Haible  <bruno@clisp.org>
90647         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
90648         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
90649         subdirectories.
90651 2007-01-08  Karl Berry  <karl@gnu.org>
90653         * doc/error.texi: mention that main() fns must set program_name
90654         when progname is used.
90656 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
90658         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
90659         WCTYPE_H is empty, for the benefit of builds from non-distclean
90660         directories.  Problem reported by Eric Blake in
90661         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
90663 2007-01-08  Bruno Haible  <bruno@clisp.org>
90665         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
90666         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
90667         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
90668         PROVIDE_CANONICALIZE_FILENAME_MODE.
90669         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
90671 2007-01-08  Bruno Haible  <bruno@clisp.org>
90673         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
90674         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
90675         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
90676         * lib/fts.c: Likewise.
90677         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
90679 2006-12-25  Bruno Haible  <bruno@clisp.org>
90681         * modules/utf8-ucs4-safe: New file.
90682         * lib/utf8-ucs4-safe.h: New file.
90683         * lib/unistr/utf8-ucs4-safe.c: New file.
90685         * modules/utf16-ucs4-safe: New file.
90686         * lib/utf16-ucs4-safe.h: New file.
90687         * lib/unistr/utf16-ucs4-safe.c: New file.
90689         * MODULES.html.sh (Unicode string functions): Add the new modules.
90691 2007-01-08  Bruno Haible  <bruno@clisp.org>
90693         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
90694         (Depends-on): Add unitypes.
90695         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90696         (u8_mbtouc_aux): Move out to separate file.
90697         (u8_mbtouc): Use ucs4_t, uint8_t types.
90698         * lib/unistr/utf8-ucs4.c: New file.
90700         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
90701         (Depends-on): Add unitypes.
90702         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90703         (u16_mbtouc_aux): Move out to separate file.
90704         (u16_mbtouc): Use ucs4_t, uint16_t types.
90705         * lib/unistr/utf16-ucs4.c: New file.
90707         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
90708         (Depends-on): Add unitypes.
90709         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
90710         (u8_uctomb_aux): Move out to separate file.
90711         (u8_uctomb): Use ucs4_t, uint8_t types.
90712         * lib/unistr/ucs4-utf8.c: New file.
90714         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
90715         (Depends-on): Add unitypes.
90716         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
90717         (u16_uctomb_aux): Move out to separate file.
90718         (u16_uctomb): Use ucs4_t, uint16_t types.
90719         * lib/unistr/ucs4-utf16.c: New file.
90721 2006-12-25  Bruno Haible  <bruno@clisp.org>
90723         * modules/unitypes: New file.
90724         * lib/unitypes.h: New file.
90725         * MODULES.html.sh (func_all_modules): New section "Unicode string
90726         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
90727         this section. Add unitypes.
90729 2007-01-08  Bruno Haible  <bruno@clisp.org>
90731         Avoid variable names that conflict with those from libtool.
90732         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
90733         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
90734         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
90735         library_names_spec to acl_library_names_spec, hardcode_* to
90736         acl_hardcode_*.
90737         Reported by Ralf Wildenhues.
90739 2007-01-08  Bruno Haible  <bruno@clisp.org>
90741         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
90742         definition.
90743         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
90744         definition.
90745         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
90746         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
90747         definition.
90748         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
90749         definition.
90750         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
90751         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
90752         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
90753         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
90754         definition.
90755         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
90756         definition.
90757         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
90758         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
90759         GC_USE_<algorithm>.
90760         * lib/gc-libgcrypt.c: Likewise.
90761         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
90762         * modules/gc-arctwo (configure.ac): Likewise.
90763         * modules/gc-des (configure.ac): Likewise.
90764         * modules/gc-hmac-md5 (configure.ac): Likewise.
90765         * modules/gc-hmac-sha1 (configure.ac): Likewise.
90766         * modules/gc-md2 (configure.ac): Likewise.
90767         * modules/gc-md4 (configure.ac): Likewise.
90768         * modules/gc-md5 (configure.ac): Likewise.
90769         * modules/gc-random (configure.ac): Likewise.
90770         * modules/gc-rijndael (configure.ac): Likewise.
90771         * modules/gc-sha1 (configure.ac): Likewise.
90773 2007-01-08  Bruno Haible  <bruno@clisp.org>
90775         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
90776         macro definition.
90777         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
90778         definition.
90779         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
90780         definition.
90781         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
90782         * modules/fcntl-safer (configure.ac): Likewise.
90783         * modules/fopen-safer (configure.ac): Likewise.
90784         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
90785         GNULIB_FWRITEERROR macro definition.
90787 2007-01-08  Bruno Haible  <bruno@clisp.org>
90789         * m4/gnulib-common.m4: New file.
90790         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
90791         (func_get_filelist): Add m4/gnulib-common.m4.
90793 2007-01-08  Bruno Haible  <bruno@clisp.org>
90795         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
90796         command.
90798 2007-01-08  Jim Meyering  <jim@meyering.net>
90800         Use a more robust test for a "can't happen" condition.
90801         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
90802         narrowed the st_size value.  Presuming the "can't happen" condition
90803         is true, that narrowing could conceivably convert an invalid st_size
90804         value into a valid one.  Instead, use a change based on Matthew
90805         Woehlke's original patch.
90807         Slight readability improvement: use an assert-like macro
90808         in place of literal "abort ()" uses.
90809         * lib/fts.c (fts_assert): Define.
90810         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
90811         Use this macro instead of a bare 'abort'.
90813 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
90815         Don't worry about using IRIX 5.3's wctype.h broken definitions;
90816         simply work around them.
90817         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
90818         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
90819         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
90820         declaring.
90821         Don't bother to define as macros, since the standard doesn't require it.
90822         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
90823         longer worry about IRIX 5.3.
90824         (HAVE_WCTYPE_CTMP_BUG): Remove.
90826 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
90828         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
90829         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
90830         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
90831         Problems reported by Georg Schwarz for IRIX 5.3.
90833         * gnulib-tool (autoconf_minversion): Take the maximum version number
90834         found, not the minimum.  Problem reported by James Youngman.
90836 2007-01-03  Karl Berry  <karl@gnu.org>
90838         * doc/error.texi: new file, explaining interaction with progname.
90839         * doc/gnulib.texi: include it.  Update copyright.
90841 2007-01-03  Simon Josefsson  <simon@josefsson.org>
90843         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
90844         AC_CANONICAL_HOST, to improve autobuild outputs.
90846 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
90847             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
90849         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
90850         sockets, server sockets, and other file descriptors.  Count errors
90851         to compute the return value.  Reorder the code a bit to be easier
90852         to follow.  Don't set event bits that were not requested (except
90853         POLLERR and POLLHUP).
90855 2007-01-01  Bruno Haible  <bruno@clisp.org>
90857         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
90859 2007-01-03  Jim Meyering  <jim@meyering.net>
90861         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
90863 2007-01-02  Bruno Haible  <bruno@clisp.org>
90865         * modules/settime (Include): Require timespec.h.
90866         * modules/nanosleep (Include): Likewise.
90868 2007-01-01  Bruno Haible  <bruno@clisp.org>
90870         * gnulib-tool (func_emit_copyright_notice): Bump year.
90871         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
90873 2007-01-01  Bruno Haible  <bruno@clisp.org>
90875         Improve support for OpenBSD.
90876         * build-aux/config.rpath (libname_spec): Export.
90877         (library_names_spec): New variable. Export.
90878         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
90879         library_names_spec from the config.rpath output. Locate shared library
90880         through the name pattern in library_names_spec.
90882 2007-01-01  Eric Blake  <ebb9@byu.net>
90884         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
90886 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
90888         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
90889         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
90890         assume the C locale, and avoid an "eval" that could cause trouble.
90891         Problem with SORT reported by Bob Proulx.
90893         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
90894         Define.  Trivial patch from Henning Nielsen Lund, originally
90895         sent to bug-grep@gnu.org today.
90897 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
90899         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
90900         struct stat.  Problem reported by Henning Nielsen Lund.
90901         * lib/acl.c: Include acl.h first, to check interface.  Don't
90902         bother to include sys/types.h and sys/stat.h again.
90904 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
90906         Import the following change from libc; problem reported by
90907         Sven Verdoolaege.
90909         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
90911         [BZ #1373]
90912         * lib/argp.h: Remove __NTH for __argp_usage inline function.
90914 2006-12-28  Jim Meyering  <jim@meyering.net>
90916         * build-aux/announce-gen: Do not assume that the package
90917         builds any of tar.gz, tar.bz2, and .xdelta files.
90918         Suggestion from Simon Josefsson.
90920 2006-12-28  Simon Josefsson  <simon@josefsson.org>
90922         * modules/announce-gen: New file.
90924 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
90926         * lib/mbchar.h: Just include <wctype.h>; the wctype module
90927         handles its gotchas now.
90928         * lib/mbswidth.c: Likewise.
90929         * lib/wcwidth.h: Likewise.
90930         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
90931         and iswcntrl; the wctype module does this stuff now.
90932         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
90933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90934         * modules/mbchar (Depends-on): Add wctype.
90935         * modules/mbswidth (Depends-on): Likewise.
90936         * modules/wcwidth (Depends-on): Likewise.
90938 2006-12-27  Eric Blake  <ebb9@byu.net>
90940         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
90941         module uses more than what <wctype.h> is required to provide.
90943 2006-12-26  Eric Blake  <ebb9@byu.net>
90945         * gnulib-tool (sed_extract_prog): Avoid space-tab.
90947 2006-12-26  Eric Blake  <ebb9@byu.net>
90949         * modules/absolute-header: New module.
90950         * modules/fcntl (Depends-on): Depend on it.
90951         * modules/inttypes (Depends-on): Likewise.
90952         * modules/stdint (Depends-on): Likewise.
90953         * modules/sys_stat (Depends-on): Likewise.
90954         * modules/wctype (Depends-on): Likewise.
90955         * MODULES.html.sh (Support for building libraries and
90956         executables): Document it.
90958 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
90960         * gnulib-tool (SED): Remove, undoing previous change.
90961         The problem was that it broke coreutils on Solaris, because
90962         "sed --posix" leaked into a makefile.
90963         (sed): New alias, if 'alias' and GNU sed.
90965 2006-12-24  Jim Meyering  <jim@meyering.net>
90967         Work around an fchownat bug in glibc-2.4:
90968         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
90969         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
90970         in spite of the -P option.
90971         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
90972         New macros.
90973         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
90974         * modules/openat (Files): Add lib/fchownat.c.
90975         * lib/openat.c (fchownat): Don't define here.  Move to...
90976         * lib/fchownat.c: ...this new file.
90978 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
90980         Fix bug reported by Bruno Haible in
90981         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
90982         where quotearg.c didn't compile on Mac OS X 10.2 because it
90983         lacks <wchar.h> and wint_t.
90984         * lib/wctype_.h (__wctype_wint_t): New type.
90985         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
90986         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
90987         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
90988         Arg is now of type __wctype_wint_t, not wint_t.
90989         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
90990         substitute HAVE_WINT_T.
90991         * modules/wctype (Files): Add m4/wint_t.m4.
90992         (wctype.h): Substitute HAVE_WINT_T.
90994 2006-12-23  Bruno Haible  <bruno@clisp.org>
90996         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
90998 2006-12-23  Bruno Haible  <bruno@clisp.org>
91000         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
91001         S_ISLNK.
91002         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
91003         mingw.
91005 2006-12-22  Bruno Haible  <bruno@clisp.org>
91007         * lib/copy-file.c: Include acl.h.
91008         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
91009         Close the file descriptors only after being done with copy_acl.
91010         * modules/copy-file (Depends-on): Add acl.
91012 2006-12-22  Bruno Haible  <bruno@clisp.org>
91014         * gnulib-tool (SED): New variable.
91015         Use $SED instead of sed everywhere.
91017 2006-12-22  Bruno Haible  <bruno@clisp.org>
91019         * modules/no-c++: New file.
91020         * m4/no-c++.m4: New file.
91021         * MODULES.html.sh (Support for building libraries and executables):
91022         Add no-c++.
91024 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
91026         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91027         Include <limits.h>, and use its INT_MAX to rewrite the
91028         j loop so that it does not overflow 'int'.  Problem reported by
91029         Ralf Wildenhues in
91030         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
91031         Play it safe by shifting left by 1 rather than multiplying by 2,
91032         as GCC is less likely to optimize this away when the value
91033         is signed (when it assumes overflow leads to undefined behavior).
91034         Also, don't assume time_t uses two's complement.
91036 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
91038         * MODULES.html.sh: New module wctype.
91039         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
91040         * lib/fnmatch.c: Don't bother to include <wchar.h> before
91041         <wctype.h>, since the new wctype module should fix this.
91042         * lib/quotearg.c: Include <wctype.h> unconditionally, since
91043         the wctype module should arrange for it.
91044         * lib/regex_internal.h: Likewise.
91045         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
91046         since the wctype module should handle this now.
91047         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
91048         * modules/fnmatch (Depends-on): Add wctype.
91049         * modules/quotearg (Depends-on): Likewise.
91050         * modules/regex (Depends-on): Likewise.
91052 2006-12-19  Bruno Haible  <bruno@clisp.org>
91054         * lib/strdup.h [C++]: Wrap definitions in extern "C".
91055         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
91057 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91059         * modules/savewd (Depends-on): Fix dependency on fcntl.
91061 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91063         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
91064         conforms to C99, rather than relying on the user's environment
91065         setting of STDINT_H.
91067 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91068         and Eric Blake  <ebb9@byu.net>
91070         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
91071         This is more consistent with the other defines here.
91072         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
91073         Port to z/OS.  Problem reported by Paul Gilmartin.
91074         Change local vars to use gl_ prefix rather than ac_.
91075         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
91076         with other defines.
91077         * modules/double-slash-root: New module.
91078         * modules/dirname (Files): Remove m4/double-slash-root.m4.
91079         (Depends-on): Add double-slash-root.
91080         * MODULES.html.sh (File system functions): Mention new module.
91082 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
91084         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
91085         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
91086         This is for the benefit of gzip, which doesn't do i18n.
91088 2006-12-12  Jim Meyering  <jim@meyering.net>
91090         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
91091         Reported by Andreas Schwab <schwab@suse.de>.
91093 2006-12-12  Bruno Haible  <bruno@clisp.org>
91095         Merge these changes.
91096         2006-09-05  Bruno Haible  <bruno@clisp.org>
91097         * lib/iconvme.c (iconv_string): No need to save and restore errno when
91098         iconv_alloc succeeded.
91099         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
91100         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
91101         test for " && dest " at the end - dest is always != NULL there. Call
91102         iconv with 4xNULL arguments initially, to reset the state. Call iconv
91103         with 2xNULL arguments, also to flush the state storage. Handle the
91104         IRIX iconv behaviour. Realloc the final result, to throw away unused
91105         memory.
91107 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
91109         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
91110         and fchmodat unconditionally, since glibc 2.4 has them.
91111         Problem reported by Arkadiusz Miskiewicz.
91113 2006-12-10  Bruno Haible  <bruno@clisp.org>
91115         * gnulib-tool (func_import): Show the include files only for those
91116         modules that are copied and specified.
91117         Reported by Karl Berry.
91119 2006-12-08  Jim Meyering  <jim@meyering.net>
91121         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
91122         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
91124         * build-aux/announce-gen: Add two new options, both optional:
91125         --bootstrap-tools=TOOL_LIST
91126               a comma-separated list of tools, e.g.,
91127               autoconf,automake,bison,gnulib
91128         --gnulib-snapshot-date=DATE
91129               if gnulib is in the bootstrap tool list,
91130               then report this as the snapshot date.
91131               If not specified, use the current date/time.
91132               If you specify a date here, be sure it's UTC.
91134 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91136         * tests/test-argp-2.sh: Fix test to match actual output.
91137         (func_compare): Fix sed script to be portable.
91139 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
91141         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
91142         workaround for this case.  It is not autoconfigured now; offhand
91143         it's hard to see how to autoconfigure it.
91145 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
91147         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
91148         a directory that is about to be chowned.  Such a directory's
91149         initial file permissions should permit the owner only and this
91150         should not be changed until after the chown, since the group and
91151         other bits would be incorrect if they granted permission before
91152         the chown.
91154         Fix porting problem for iswctype reported by Georg Schwarz in:
91155         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
91156         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
91157         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
91158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
91159         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
91161 2006-12-03  Jim Meyering  <jim@meyering.net>
91163         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
91164         p->fts_statp may not yet be defined.
91165         (fts_read): Instead, set it in the caller, once p->fts_statp is
91166         sure to be defined, and corresponds to a top-level directory.
91167         This bug made du -x fail.  Here's the coreutils test case:
91168         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
91169         Reported by Mike Frysinger.
91171 2006-12-01  Jim Meyering  <jim@meyering.net>
91173         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
91174         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
91175         Reported by Simon Josefsson.
91177 2006-11-30  Jim Meyering  <jim@meyering.net>
91179         * m4/warning.m4: Use the all-permissive copyright notice
91180         recommended by RMS (rather than LGPL).
91181         * m4/vararrays.m4: Likewise.
91182         * m4/flexmember.m4: Likewise.
91184 2006-11-29  Bruno Haible  <bruno@clisp.org>
91186         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91187         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
91188         using +=.
91189         Reported by Simon Josefsson <simon@josefsson.org>.
91191 2006-11-28  James Youngman  <jay@gnu.org>
91193         * README: Advise users that they might find the bug-gnulib@gnu.org
91194         and autotools-announce@gnu.org mailing lists useful.
91196 2006-11-28  Bruno Haible  <bruno@clisp.org>
91198         * m4/ptrdiff_max.m4: Remove file.
91200 2006-11-21  Bruno Haible  <bruno@clisp.org>
91202         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
91203         _AC_COMPUTE_INT.
91204         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91205         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
91206         _AC_COMPUTE_INT.
91207         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91208         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
91209         _AC_COMPUTE_INT.
91210         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91212 2006-11-28  Jim Meyering  <jim@meyering.net>
91214         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
91215         warning from "gcc -Wshadow" about shadowing the builtin.
91217 2006-11-27  Bruno Haible  <bruno@clisp.org>
91219         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
91220         _AC_COMPUTE_INT.
91221         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91223 2006-11-27  Bruno Haible  <bruno@clisp.org>
91224             Paul Eggert  <eggert@cs.ucla.edu>
91226         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
91228 2006-11-26  Bruno Haible  <bruno@clisp.org>
91230         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91231         noinst_LTLIBRARIES.
91233 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
91234             Bruno Haible  <bruno@clisp.org>
91236         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
91237         if compiling with "gcc -ansi".
91239 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
91241         Fix some incompatibilities with gcc -ansi -pedantic.
91242         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
91243         if compiling pedantically with GCC, unless it's C99 or later.
91244         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
91245         it mishandles gcc -ansi -pedantic as well.
91246         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
91247         if gcc -pedantic.
91248         * lib/regexec.c (check_node_accept_bytes): Don't use auto
91249         initializers for struct if -pedantic, unless it's C99 or later.
91251 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
91253         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
91254         Don't close an fd more than once. Identical atimes indicate
91255         success, not failure.
91257 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
91259         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
91261 2006-11-23  Jim Meyering  <jim@meyering.net>
91263         * build-aux/announce-gen: New file.  From coreutils.
91265 2006-11-22  Jim Meyering  <jim@meyering.net>
91267         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
91268         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
91269         (fts_read): Use a temporary to narrow the overused st_size member
91270         before using it in a switch statement.  Reported by Matthew Woehlke.
91272         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
91273         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
91275 2006-11-20  Bruno Haible  <bruno@clisp.org>
91277         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
91278         changequote instead of pairs of brackets.
91279         Reported by Andreas Schwab <schwab@suse.de>.
91281 2006-11-21  Jim Meyering  <jim@meyering.net>
91283         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
91284         so as to remain compatible with older compilers.
91285         Patch from Michael Deutschmann.
91287 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
91289         * MODULES.html.sh (File system functions): Add openat.
91291         * lib/openat.h (rpl_fstatat): New macro, if
91292         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
91293         (fstatat): Define to rpl_fstatat under the same conditions,
91294         unless COMPILING_FSTATAT.
91295         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
91296         seems to have the bug.
91297         * lib/fstatat.c: New file.
91298         * modules/openat (Files): Add it.
91300 2006-11-20  Bruno Haible  <bruno@clisp.org>
91302         * Makefile: New file.
91304 2006-11-20  Jim Meyering  <jim@meyering.net>
91306         The beginnings of syntax-related checks for gnulib.
91307         * lib/Makefile: New file.
91308         * lib/t-idcache: New script.  Ensure that the two halves of
91309         idcache.c stay in sync.
91311         * lib/idcache.c: Adjust comments in user- and group- portions to
91312         be more accurate, and to be consistent with one another.
91314 2006-11-20  Jim Meyering  <jim@meyering.net>
91316         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
91317         continue using the flexible array member (thus, this module performs
91318         half as many malloc calls), with the addition that...
91319         (getgroup, getuser): Consistently record a non-match via an empty
91320         "name" string, and map an empty string match to a NULL return value.
91321         * modules/idcache (Depends-on): Re-add flexmember.
91323         * lib/idcache.c (getuser): Remove all uses of the register keyword.
91324         (getuidbyname, getgroup, getgidbyname): Likewise.
91326         Use cleaner syntax: NULL rather than 0.
91327         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
91329 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
91331         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
91332         It mishandled the case where the group was missing.
91333         Problem reported by Greg Schafer.
91334         * modules/idcache: Likewise.
91336 2006-11-18  Jim Meyering  <jim@meyering.net>
91338         * check-module (%exempt_header): Add exception for some
91339         conditionally-included headers.
91341         * modules/i-ring (Depends-on): Add verify.
91342         (License): Change to LGPL.
91344 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
91346         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
91347         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
91348         and inttostr.h.  Use snprintf rather than uinttostr, so that
91349         LGPLed code doesn't depend on GPLed.
91351 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
91353         * modules/inline (License): Change from GPL to LGPL.
91355 2006-11-17  Jim Meyering  <jim@meyering.net>
91357         * modules/d-type (License): Switch to LGPL.
91359 2006-11-15  Bruno Haible  <bruno@clisp.org>
91361         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
91363 2006-11-15  Eric Blake  <ebb9@byu.net>
91365         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
91366         the module dependency.
91368 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91369             Bruno Haible  <bruno@clisp.org>
91371         * gnulib-tool (func_create_testdir): Add license consistency check.
91373 2006-11-15  Eric Blake  <ebb9@byu.net>
91375         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
91376         random "(cached)" in configure output.
91378 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91380         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
91381         test for conforming inttypes.h is both announced and cached.
91383         * MODULES.html.sh (seen_modules, seen_files): New variables.
91384         (func_module): Rewrite to use a few less gnulib-tool and sed
91385         invocations.  Avoid a couple of quadratic algorithms for ...
91386         (missed_modules, missed_files): ... these, with ...
91387         (func_append, func_tmpdir): ... these new functions, from
91388         gnulib-tool.  Analogously, install traps for cleanup.
91390         * tests/test-gc.c (main): Remove unused variables.
91391         * tests/test-read-file.c: Include stdlib.h, for 'free'.
91393 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
91395         * modules/inttostr (License): Change to LGPL.
91397 2006-11-14  Eric Blake  <ebb9@byu.net>
91399         * modules/tempname (License): Change to LGPL.
91401 2006-11-14  Eric Blake  <ebb9@byu.net>
91403         * doc/functions.texi (Function Portability): *printf functions on
91404         Cygwin now understand all POSIX size specifiers.
91406 2006-11-14  Bruno Haible  <bruno@clisp.org>
91408         * modules/c-ctype (License): Change to LGPL.
91410 2006-11-12  Bruno Haible  <bruno@clisp.org>
91412         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
91413         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
91414         for GNOME libraries, for which the include files are installed in
91415         subdirectories of $prefix/include.
91417 2006-11-12  Bruno Haible  <bruno@clisp.org>
91419         * m4/lib-link.m4: Require at least autoconf-2.54.
91420         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
91421         name to underscores for the --with option.
91423 2006-11-13  Bruno Haible  <bruno@clisp.org>
91425         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
91426         the tests directory.
91427         Reported by Ralf Wildenhues.
91429 2006-11-13  Bruno Haible  <bruno@clisp.org>
91431         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
91432         (func_emit_initmacro_end): Undo the override here.
91433         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
91434         Works around the famous automake error in coreutils.
91436 2006-11-13  Eric Blake  <ebb9@byu.net>
91438         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
91439         element, not its node.
91441 2006-11-12  Bruno Haible  <bruno@clisp.org>
91443         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
91444         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
91446 2006-11-12  Bruno Haible  <bruno@clisp.org>
91448         * gnulib-tool: New option --local-symlink.
91449         (func_usage): Document it.
91450         (lsymbolic): New variable.
91451         (func_import, func_create_testdir): If --symlink was not specified,
91452         test whether --local-symlink was specified and the file comes from
91453         the local_gnulib_dir.
91455 2006-11-12  Bruno Haible  <bruno@clisp.org>
91457         * gnulib-tool (func_ln): New function.
91458         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
91460 2006-11-12  Bruno Haible  <bruno@clisp.org>
91462         Finish support for source files in subdirectories.
91463         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
91464         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
91465         AUTOMAKE_OPTIONS.
91466         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
91468 2006-11-12  Bruno Haible  <bruno@clisp.org>
91470         * gnulib-tool (func_get_automake_snippet): Synthesize also an
91471         EXTRA_lib_SOURCES augmentation.
91472         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
91474 2006-11-12  Jim Meyering  <jim@meyering.net>
91476         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
91477         file descriptors.  This also averts a failure on systems with
91478         native openat support when a traversed directory lacks "x" access.
91479         * lib/fts_.h: Include "i-ring.h"
91480         (struct FTS) [fts_fd_ring]: New member.
91481         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
91482         (FCHDIR): Add parentheses.
91483         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
91484         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
91485         When descending, rather than simply closing the previous
91486         fts_cwd_fd value, push that file descriptor onto the ring.
91487         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
91488         (fts_open): Initialize the new fd_ring member.
91489         (fts_close): Clear the ring.
91490         (fts_safe_changedir): When possible, use our new fd_ring to skip
91491         the diropen and fstat and dev/ino comparison that would normally
91492         accompany a virtual `chdir ("..")'.
91494         * modules/fts (Depends-on): Add i-ring.
91495         * modules/i-ring: New module.
91496         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
91497         * m4/i-ring.m4: New file.
91499 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91501         * gnulib-tool (func_create_testdir): Fix replacement of
91502         `build-aux' in configure.ac.  Run autotools in gltests
91503         subdirectory.
91504         (func_create_testdir, func_create_megatestdir, test): There is
91505         no need for '--force' in most autotool invocations in a new
91506         tree.  Actually fail the whole test if any of the tools, or the
91507         configure or make stages fail.
91509         Sync from Automake.
91510         * build-aux/gnupload: Revert last change.  Add pointer to upload
91511         instructions of the GNU Maintenance Instructions.
91512         Suggestion by Karl Berry.
91514 2006-11-10  Jim Meyering  <jim@meyering.net>
91516         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
91518 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
91520         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
91521         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
91522         (bind_textdomain_codeset) [! ENABLE_NLS]:
91523         Evaluate all the arguments.  That way, callers get compatible behavior
91524         if the arguments have side effects.  Also, it avoids some GCC
91525         diagnostics in some cases; Joel E. Denny reported problems when Bison
91526         was configured with --enable-gcc-warnigs.
91528 2006-11-10  Jim Meyering  <jim@meyering.net>
91530         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
91531         relevant options in CFLAGS (like -O, -fno-inline) are taken into
91532         account.
91534 2006-11-10  Jim Meyering  <jim@meyering.net>
91536         * modules/inline: New file/module.
91537         * modules/xalloc (Files): Remove m4/inline.m4.
91538         (Depends-on): Add inline, instead.
91539         * modules/oset: Likewise.
91540         * modules/list: Likewise.
91542 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
91544         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
91545         Problem reported by Matthew Woehlke.
91547 2006-11-09  Bruno Haible  <bruno@clisp.org>
91549         * lib/tempname.c (gen_tempname): Remove variant that invokes
91550         __gen_tempname.
91551         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
91552         __gen_tempname.
91554 2006-11-08  Bruno Haible  <bruno@clisp.org>
91556         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
91557         to 'yes' instead of 'cross-compiling'.
91559 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
91561         * lib/quotearg.h (quotearg_free): New decl.
91562         * lib/quotearg.c (quotearg_free): New function.
91563         (slot0, nslots, slotvec0, slotvec):
91564         Now file-scope so that quotearg_free can get at them.
91566 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91568         Sync from Automake.
91569         * build-aux/gnupload: Add missing 'gnu' to example URL.
91570         Report by Karl Berry.
91572 2006-11-08  Bruno Haible  <bruno@clisp.org>
91574         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
91575         Suggested by Paul Eggert.
91577 2006-11-08  Jim Meyering  <jim@meyering.net>
91579         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
91580         It's already included if !_LIBC.
91581         (fts_safe_changedir): Add a comment.
91583 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91585         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
91586         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
91587         Matthew Woehlke.
91589         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
91590         definitions up, to avoid colliding with change below.
91591         (static_inline) [HAVE_INLINE]: New macro.
91592         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
91593         Provide extern decls when !HAVE_INLINE.  Do not define unless
91594         static_inline is defined, either by us or by xmalloc.c.  Use
91595         static_inline rather than static inline.
91596         (XCALLOC): Optimize sizeof(T) = 1 case.
91597         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
91599 2006-11-07  Bruno Haible  <bruno@clisp.org>
91601         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
91602         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
91603         AC_C_INLINE.
91604         * modules/xalloc (Files): Add m4/inline.m4.
91606 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91608         * README: Fix typo.
91609         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
91610         (Miscellanous Notes): ...from this.
91612 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91614         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
91615         Mention that offsetof should be used instead of sizeof.
91616         From Bruno Haible.
91618 2006-11-07  Bruno Haible  <bruno@clisp.org>
91620         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
91622 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91624         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91625         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
91626         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91627         (gl_tree_add_before, gl_tree_add_after):
91628         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
91629         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
91630         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
91631         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
91632         (gl_linked_add_after, gl_linked_add_at): Likewise.
91633         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
91634         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91635         (gl_tree_add_before, gl_tree_add_after): Likewise.
91636         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
91637         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
91638         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
91640 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91642         * lib/gl_oset.h: Use C comment style, not C++ comment style.
91644 2006-11-06  Bruno Haible  <bruno@clisp.org>
91646         * m4/inline.m4: New file.
91647         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
91648         * modules/list (Files): Add m4/inline.m4.
91649         * modules/oset (Files): Likewise.
91651 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91653         * lib/idcache.c: Include <stddef.h>, for offsetof.
91654         (struct userid.name): Change from char * to a flexible array member.
91655         All uses changed.
91656         * modules/idcache (Depends-on): Add flexmember.
91658         * MODULES.html.sh (Core language properties): New module flexmember.
91659         * modules/flexmember, m4/flexmember.m4: New files.
91661         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
91662         inline functions that are identical with the old xnmalloc_inline,
91663         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
91664         that we can avoid some unnecessary integer multiplications and
91665         divisions in the common case where the element size is known at
91666         compile time.
91667         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
91668         needed.
91669         (xnboundedmalloc): Remove.
91670         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
91671         arguments, for consistency with rest of this header.
91672         (xcharalloc): Rewrite using XNMALLOC.
91673         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
91674         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
91675         versions have been moved to lib/xalloc.h and renamed to be the
91676         non-*_inline versions.
91677         (xmalloc, xrealloc): Implement without reference to the xnmalloc
91678         and xnrealloc functions, since those functions are now inline and
91679         now call us.
91680         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
91681         renaming described above.
91682         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
91683         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
91684         captures the dependency in AC_C_INLINE.
91686         New module canonicalize-lgpl, proposed by Charles Wilson in
91687         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
91688         with a few small changes afterwards.
91689         * MODULES.html.sh (File system functions): New module
91690         canonicalize-lgpl.
91691         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
91692         and canonicalize_file_name.
91693         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
91694         * modules/canonicalize-lgpl: New files.
91696 2006-11-05  Bruno Haible  <bruno@clisp.org>
91698         * gnulib-tool (func_import, func_create_testdir): Create directories
91699         also for files in subdirectories of lib/.
91701 2006-11-05  Bruno Haible  <bruno@clisp.org>
91703         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
91704         ANSI C compliant.
91706 2006-11-03  Bruno Haible  <bruno@clisp.org>
91708         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91709         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
91710         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
91711         (xnboundedmalloc): New inline function.
91712         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
91713         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
91714         xmalloc.
91715         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
91716         xmalloc.
91717         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
91718         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
91719         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
91720         xmalloc.
91721         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91722         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
91723         xmalloc.
91724         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
91725         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91726         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
91727         xmalloc.
91728         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91729         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
91730         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91731         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
91732         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
91733         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
91734         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
91736 2006-11-03  Bruno Haible  <bruno@clisp.org>
91738         * lib/c-ctype.h [C++]: Define functions without name mangling.
91739         * lib/fwriteerror.h [C++]: Likewise.
91740         * lib/gcd.h [C++]: Likewise.
91741         * lib/linebreak.h [C++]: Likewise.
91743 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
91745         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
91746         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
91747         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
91748         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
91749         Check for functions and headers just once.
91750         Check for declaration of canonicalize_file_name.
91751         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
91753 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91755         * gnulib-tool (func_import): Fix typo in actioncmd.
91757 2006-11-02  Bruno Haible  <bruno@clisp.org>
91759         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
91760         newline sequence in the Makefile.am snippet as a space, like "make"
91761         does.
91762         Reported by Roger Persson <perrog@gmail.com>.
91764 2006-11-01  Bruno Haible  <bruno@clisp.org>
91766         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
91767         already declared in <string.h>.
91768         * lib/strcase.h (strncasecmp): Don't declare it if yes.
91770 2006-11-01  Bruno Haible  <bruno@clisp.org>
91772         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
91773         * lib/strcase.h: Include <string.h>.
91774         (strcasecmp): Define to rpl_strcasecmp here.
91776 2006-11-01  Bruno Haible  <bruno@clisp.org>
91778         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
91780 2006-11-01  Eric Blake  <ebb9@byu.net>
91782         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
91784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
91786 2006-10-29  Bruno Haible  <bruno@clisp.org>
91788         Make it compile in C++ mode.
91789         * lib/full-write.c (full_rw): Add a cast.
91791 2006-11-01  Bruno Haible  <bruno@clisp.org>
91793         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
91794         be POSIX compliant.
91795         Reported by Roger Persson <perrog@gmail.com>.
91797 2006-11-01  Eric Blake  <ebb9@byu.net>
91799         * lib/getopt_.h: Fix comments.
91801 2006-10-31  Eric Blake  <ebb9@byu.net>
91803         * modules/tmpdir (Depends-on): Add sys_stat.
91804         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
91805         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
91806         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
91807         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
91808         tempname.
91810 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
91812         Avoid some C++ diagnostics reported by Bruno Haible.
91813         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
91814         xmalloc.
91815         (quotearg_alloc): Use xcharalloc rather than xmalloc.
91816         (struct slotvec): Move to top level.
91817         (quotearg_n_options): Rewrite to avoid xmalloc.
91818         * lib/xalloc.h (xcharalloc): New function.
91819         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
91820         [defined __cplusplus]: Add function template that provides result
91821         type propagation.  This part of the change is from Bruno Haible.
91823 2006-10-29  Bruno Haible  <bruno@clisp.org>
91825         Make it compile in C++ mode.
91826         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
91827         * lib/strnlen1.c (strnlen1): Cast memchr result.
91828         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
91829         * lib/clean-temp.c (string_equals, string_hash): Add casts.
91830         (create_temp_dir): Rename local variable 'template'.
91831         (compile_csharp_using_sscli): Add cast.
91832         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
91833         * lib/findprog.c (find_in_path): Likewise.
91834         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
91835         * lib/wait-process.c (register_slave_subprocess): Likewise.
91837 2006-10-22  Bruno Haible  <bruno@clisp.org>
91839         * modules/tsearch: New file.
91840         * lib/tsearch.h: New file.
91841         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
91842         * m4/tsearch.m4: New file.
91843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
91845 2006-10-29  Eric Blake  <ebb9@byu.net>
91847         * lib/arcfour.c: Assume config.h.
91848         * lib/arctwo.c: Likewise.
91849         * lib/base64.c: Likewise.
91850         * lib/check-version.c: Likewise.
91851         * lib/crc.c: Likewise.
91852         * lib/des.c: Likewise.
91853         * lib/gc-gnulib.c: Likewise.
91854         * lib/gc-libgcrypt.c: Likewise.
91855         * lib/gc-pbkdf2-sha1.c: Likewise.
91856         * lib/getaddrinfo.c: Likewise.
91857         * lib/getdelim.c: Likewise.
91858         * lib/getline.c: Likewise.
91859         * lib/hmac-md5.c: Likewise.
91860         * lib/hmac-sha1.c: Likewise.
91861         * lib/iconvme.c: Likewise.
91862         * lib/md2.c: Likewise.
91863         * lib/md4.c: Likewise.
91864         * lib/memxor.c: Likewise.
91865         * lib/read-file.c: Likewise.
91866         * lib/readline.c: Likewise.
91867         * lib/rijndael-alg-fst.c: Likewise.
91868         * lib/rijndael-api-fst.c: Likewise.
91869         * lib/xgetdomainname.c: Likewise.
91871 2006-10-28  Eric Blake  <ebb9@byu.net>
91873         * lib/xstrndup.c: Assume config.h.
91875 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
91877         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
91878         stat-macros.h is now for our own macros, whereas stat_h is for
91879         macros in the <sys/stat.h> name space.
91880         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
91881         (STAT_MACROS_H): Remove.
91882         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
91883         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
91884         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
91885         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
91886         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
91887         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
91888         Move these macros to ...
91889         * lib/stat_.h: here.  Don't include stat-macros.h.
91890         * lib/canonicalize.c: Don't include stat-macros.h.
91891         * lib/chown.c: Likewise.
91892         * lib/euidaccess.c: Likewise.
91893         * lib/file-type.c: Likewise.
91894         * lib/filemode.c: Likewise.
91895         * lib/glob.c: Likewise.
91896         * lib/isapipe.c: Likewise.
91897         * lib/lchown.c: Likewise.
91898         * lib/lstat.c: Likewise.
91899         * lib/mkdir-p.c: Likewise.
91900         * lib/rmdir.c: Likewise.
91901         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
91902         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
91903         unless mkdir isn't declared, to speed up 'configure'.
91904         Always create sys/stat.h, since it's unlikely any real sys/stat.h
91905         would define all the S_* symbols.
91906         * modules/canonicalize (Depends-on):
91907         Depend on sys_stat, not stat-macros.
91908         * modules/chown: Likewise.
91909         * modules/euidaccess: Likewise.
91910         * modules/filemode: Likewise.
91911         * modules/file-type: Likewise.
91912         * modules/glob: Likewise.
91913         * modules/isapipe: Likewise.
91914         * modules/lchown: Likewise.
91915         * modules/lstat: Likewise.
91916         * modules/mkancesdirs: Likewise.
91917         * modules/rmdir: Likewise.
91918         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
91919         * modules/modechange: Likewise.
91920         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
91921         (configure.ac): Remove gl_STAT_MACROS.
91922         * modules/sys_stat (Depends-on): Remove stat-macros.
91924 2006-10-27  Bruno Haible  <bruno@clisp.org>
91926         * m4/signed.m4: Remove file.
91927         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
91928         invocation.
91929         * modules/vasnprintf (Files): Remove m4/signed.m4.
91931 2006-10-27  Bruno Haible  <bruno@clisp.org>
91933         Update to GNU gettext 0.16.
91934         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
91935         m4/inttypes-h.m4, m4/signed.m4.
91936         * m4/gettext.m4: Update to GNU gettext 0.16.
91937         * m4/intl.m4: New file, from GNU gettext.
91938         * m4/intldir.m4: New file, from GNU gettext.
91939         * config/srclist.txt: Update
91941 2006-10-27  Eric Blake  <ebb9@byu.net>
91943         * MODULES.html.sh: Document tempname.
91944         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
91945         dependencies.
91946         (Files): Move lib/tempname.c...
91947         * modules/tempname: ...to this new module.
91948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
91949         (gl_PREREQ_TEMPNAME): Move...
91950         * m4/tempname.m4: ...to this new file.
91951         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
91952         * modules/sys_stat (Depends-on): Add stat-macros.
91953         * lib/stat_.h (includes): Pick up stat macros.
91954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
91955         if stat macros are broken.
91956         * lib/tempname.c (includes): No need to include "stat-macros.h".
91957         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
91958         (direxists, __path_search) [!_LIBC]: Don't compile these in
91959         gnulib; the tmpdir module covers that.
91960         * lib/tempname.h: New file.
91962 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
91964         * COPYING: Explain how gnulib-tool converts licence headers.
91965         Almost all wording by Eric Blake.
91967 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
91969         * lib/mbchar.h (is_basic_table): Make read-only.
91970         * lib/mbchar.c (is_basic_table): Likewise.
91971         Reported by John Darrington.
91973 2006-10-25  Bruno Haible  <bruno@clisp.org>
91975         * lib/progname.h (set_program_name): Undefine before defining.
91977 2006-10-25  Bruno Haible  <bruno@clisp.org>
91979         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
91980         false for non-gcc C++ compilers.
91981         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91983 2006-10-24  Bruno Haible  <bruno@clisp.org>
91985         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
91986         iconv implementations like Irix iconv.
91988 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91990         * modules/vararrays: New file.
91991         * m4/vararrays.m4: New file, taken from diffutils.
91992         * MODULES.html.sh: New module vararrays.
91994 2006-10-24  Karl Berry  <karl@gnu.org>
91996         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
91997         Don't call GNU Unix.
91999 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92001         * users.txt: Add Libtool.
92003         Sync from Libtool:
92005         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92007         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
92008         to gnulib's policy of including config.h unconditionally.
92010 2006-10-24  Bruno Haible  <bruno@clisp.org>
92012         * modules/wcwidth (Files): Add m4/wint_t.m4.
92013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
92014         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
92016 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92018         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
92019         to pacify GCC with some -W flags enabled.  Problem reported by
92020         Bruno Haible.
92022 2006-10-24  Jim Meyering  <jim@meyering.net>
92024         * MODULES.html.sh: Remove uinttostr.  It's not a module.
92025         Reported by Karl Berry.
92027 2006-10-23  Bruno Haible  <bruno@clisp.org>
92029         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
92031 2006-10-24  Bruno Haible  <bruno@clisp.org>
92033         * lib/gl_list.h: Use C comment style, not C++ comment style.
92035 2006-10-23  Eric Blake  <ebb9@byu.net>
92037         * lib/getaddrinfo.c (includes): Add missing include.
92039 2006-10-23  Bruno Haible  <bruno@clisp.org>
92040             Paul Eggert  <eggert@cs.ucla.edu>
92042         Ability to rename obstack_free.
92043         * lib/obstack.h (__obstack_free): New macro. Declare instead of
92044         obstack_free.
92045         (obstack_free): Invoke the __obstack_free macro.
92046         * lib/obstack.c (obstack_free): Use __obstack_free macro.
92048 2006-10-23  Bruno Haible  <bruno@clisp.org>
92049             Paul Eggert  <eggert@cs.ucla.edu>
92051         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
92052         __argc, __argv from the declaration. (They are defined as macros on
92053         mingw.)
92055 2006-10-22  Bruno Haible  <bruno@clisp.org>
92057         * doc/gnulib-intro.texi: New file.
92058         * doc/gnulib.texi: Include it.
92060 2006-10-21  Bruno Haible  <bruno@clisp.org>
92062         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
92063         "Introduction", "Miscellanous Notes", "Particular Modules".
92065 2006-10-21  Bruno Haible  <bruno@clisp.org>
92067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92068         Change mostlyclean-local rule to avoid sh syntax error from bash
92069         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
92071 2006-10-23  Jim Meyering  <jim@meyering.net>
92073         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
92074         in place of snprintf.
92076         * modules/inttostr (Files): Add lib/uinttostr.c.
92077         * lib/uinttostr.c (inttostr): New file/function.
92078         * lib/inttostr.h (uinttostr): Declare.
92079         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
92080         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92081         Add uinttostr.
92082         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
92084 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92086         * lib/canonicalize.c (ELOOP): Define if not already defined.
92087         Problem reported by Bruno Haible in
92088         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
92090 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92092         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
92093         Problem reported by Perry Smith and Ville Laurikari.
92095         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
92096         uses.
92098 2006-10-19  Bruno Haible  <bruno@clisp.org>
92100         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
92101         for mingw.
92103 2006-10-19  Bruno Haible  <bruno@clisp.org>
92105         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
92106         Needed for mingw.
92108 2006-10-19  Bruno Haible  <bruno@clisp.org>
92110         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
92112 2006-10-19  Bruno Haible  <bruno@clisp.org>
92114         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
92115         it.
92117 2006-10-19  Bruno Haible  <bruno@clisp.org>
92119         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
92120         invocation.
92122 2006-10-19  Bruno Haible  <bruno@clisp.org>
92124         * gnulib-tool (func_create_testdir): Don't include ftruncate and
92125         mountlist by default.
92127 2006-10-16  Bruno Haible  <bruno@clisp.org>
92129         * lib/c-strstr.c: Include c-strstr.h.
92131 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92133         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
92134         in a slash.
92136 2006-10-18  Bruno Haible  <bruno@clisp.org>
92138         * lib/lock.h [C++]: Wrap definitions in extern "C".
92140 2006-10-18  Bruno Haible  <bruno@clisp.org>
92142         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
92143         gl_LIBOBJS list.
92145 2006-10-18  Bruno Haible  <bruno@clisp.org>
92147         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
92149 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
92151         * lib/xstrtol.h: Include gettext.h.
92152         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
92153         Problem reported by Eric Blake.
92154         * modules/xstrtol (Depends-on): Add gettext-h.
92156 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
92158         * lib/strftime.c (advance): New macro.
92159         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
92160         incomplete type, so you can't add 0 to it.  Problem and patch
92161         reported by Eelco Dolstra for dietlibc.
92163 2006-10-18  Jim Meyering  <jim@meyering.net>
92165         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
92166         type for a local, and rename it: s/up/user_proc/.
92168 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
92170         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
92171         READ_UTMP_USER_PROCESS.
92172         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
92174 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
92176         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
92177         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
92179 2006-10-17  Eric Blake  <ebb9@byu.net>
92181         * lib/sigprocmask.c (sigprocmask): Fix typo.
92183         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
92185         * modules/clean-temp (Makefile.am): Don't add to make output...
92186         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
92187         config.h.
92189 2006-10-17  Bruno Haible  <bruno@clisp.org>
92191         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
92192         differently if DEFAULT_TEXT_DOMAIN is set.
92194 2006-10-16  Bruno Haible  <bruno@clisp.org>
92196         * lib/clean-temp.c: Include fwriteerror.h.
92198 2006-10-16  Bruno Haible  <bruno@clisp.org>
92200         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
92202 2006-10-16  Bruno Haible  <bruno@clisp.org>
92204         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
92205         * lib/sigprocmask.h: Include <sys/types.h>.
92206         (sigset_t): Use the system's definition if present.
92208 2006-10-17  Eric Blake  <ebb9@byu.net>
92210         * lib/xvasprintf.c (includes): Assume config.h.
92211         * lib/xasprintf.c (includes): Likewise.
92213 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
92215         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
92216         at least as wide as intmax_t.
92218 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
92220         (Imported from Automake.)
92221         * build-aux/gnupload: Update to version 1.1 of directive file.
92223 2006-10-16  Eric Blake  <ebb9@byu.net>
92225         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
92226         match Automake 1.10a.
92228 2006-10-14  Bruno Haible  <bruno@clisp.org>
92230         * modules/sigprocmask: New file.
92231         * lib/sigprocmask.h: New file.
92232         * lib/sigprocmask.c: New file.
92233         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
92234         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
92235         request sigprocmask.o.
92236         (gl_PREREQ_SIGPROCMASK): New macro.
92237         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
92238         (Depends-on): Add sigprocmask.
92239         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
92240         gt_SIGNALBLOCKING. Test for 'raise' only once.
92241         * lib/fatal-signal.c: Include sigprocmask.h.
92242         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
92243         unblock_fatal_signals): Define always.
92244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92245         sigprocmask.
92247 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
92249         Sync from Automake.
92250         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
92251         which incorrectly sets the mode of an existing destination
92252         directory.  In some cases the unpatched install-sh could do the
92253         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
92254         system.  We hope this is rare in practice, but it's clearly worth
92255         fixing.  Problem reported by Alex Unleashed in
92256         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
92257         Also, don't bother to check for -m bugs unless we're using -m;
92258         suggested by Stepan Kasal.
92260 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92262         Sync from Automake.
92263         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
92264         `-c' flag, so they appear at the same position as in %FASTDEP%
92265         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
92266         which ignores unknown options only after the first non-option.
92267         Bug report against M4 by Nelson H. F. Beebe.
92269 2006-10-13  Jim Meyering  <jim@meyering.net>
92271         Fix a bug in yesterday's change.
92272         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
92273         p->fts_statp->st_dev would be used uninitialized.
92274         Ensures that we always call fts_stat on the very first entry.
92275         Miklos Szeredi reported that find -xdev stopped working.
92277 2006-10-12  Bruno Haible  <bruno@clisp.org>
92279         * gnulib-tool (func_get_automake_snippet): Append an automatically
92280         computed EXTRA_DIST augmentation.
92281         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
92282         * modules/alloca-opt (Makefile.am): Likewise.
92283         * modules/allocsa (Makefile.am): Likewise.
92284         * modules/arcfour (Makefile.am): Likewise.
92285         * modules/arctwo (Makefile.am): Likewise.
92286         * modules/argmatch (Makefile.am): Likewise.
92287         * modules/argz (Makefile.am): Likewise.
92288         * modules/atexit (Makefile.am): Likewise.
92289         * modules/backupfile (Makefile.am): Likewise.
92290         * modules/byteswap (Makefile.am): Likewise.
92291         * modules/c-strtod (Makefile.am): Likewise.
92292         * modules/c-strtold (Makefile.am): Likewise.
92293         * modules/calloc (Makefile.am): Likewise.
92294         * modules/canon-host (Makefile.am): Likewise.
92295         * modules/canonicalize (Makefile.am): Likewise.
92296         * modules/chdir-long (Makefile.am): Likewise.
92297         * modules/chdir-safer (Makefile.am): Likewise.
92298         * modules/check-version (Makefile.am): Likewise.
92299         * modules/chown (Makefile.am): Likewise.
92300         * modules/cloexec (Makefile.am): Likewise.
92301         * modules/close-stream (Makefile.am): Likewise.
92302         * modules/closeout (Makefile.am): Likewise.
92303         * modules/crc (Makefile.am): Likewise.
92304         * modules/csharpexec (Makefile.am): Likewise.
92305         * modules/cycle-check (Makefile.am): Likewise.
92306         * modules/des (Makefile.am): Likewise.
92307         * modules/dev-ino (Makefile.am): Likewise.
92308         * modules/dirfd (Makefile.am): Likewise.
92309         * modules/dirname (Makefile.am): Likewise.
92310         * modules/dup2 (Makefile.am): Likewise.
92311         * modules/eealloc (Makefile.am): Likewise.
92312         * modules/error (Makefile.am): Likewise.
92313         * modules/euidaccess (Makefile.am): Likewise.
92314         * modules/exclude (Makefile.am): Likewise.
92315         * modules/exitfail (Makefile.am): Likewise.
92316         * modules/fcntl-safer (Makefile.am): Likewise.
92317         * modules/fcntl (Makefile.am): Likewise.
92318         * modules/file-type (Makefile.am): Likewise.
92319         * modules/fileblocks (Makefile.am): Likewise.
92320         * modules/filemode (Makefile.am): Likewise.
92321         * modules/filenamecat (Makefile.am): Likewise.
92322         * modules/fnmatch (Makefile.am): Likewise.
92323         * modules/fopen-safer (Makefile.am): Likewise.
92324         * modules/fpending (Makefile.am): Likewise.
92325         * modules/fprintftime (Makefile.am): Likewise.
92326         * modules/free (Makefile.am): Likewise.
92327         * modules/fsusage (Makefile.am): Likewise.
92328         * modules/ftruncate (Makefile.am): Likewise.
92329         * modules/fts (Makefile.am): Likewise.
92330         * modules/gc-arcfour (Makefile.am): Likewise.
92331         * modules/gc-des (Makefile.am): Likewise.
92332         * modules/gc-hmac-md5 (Makefile.am): Likewise.
92333         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
92334         * modules/gc-md4 (Makefile.am): Likewise.
92335         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
92336         * modules/gc-sha1 (Makefile.am): Likewise.
92337         * modules/gc (Makefile.am): Likewise.
92338         * modules/getaddrinfo (Makefile.am): Likewise.
92339         * modules/getcwd (Makefile.am): Likewise.
92340         * modules/getdelim (Makefile.am): Likewise.
92341         * modules/getdomainname (Makefile.am): Likewise.
92342         * modules/getgroups (Makefile.am): Likewise.
92343         * modules/gethostname (Makefile.am): Likewise.
92344         * modules/gethrxtime (Makefile.am): Likewise.
92345         * modules/getline (Makefile.am): Likewise.
92346         * modules/getloadavg (Makefile.am): Likewise.
92347         * modules/getlogin_r (Makefile.am): Likewise.
92348         * modules/getndelim2 (Makefile.am): Likewise.
92349         * modules/getopt (Makefile.am): Likewise.
92350         * modules/getpagesize (Makefile.am): Likewise.
92351         * modules/getpass-gnu (Makefile.am): Likewise.
92352         * modules/getpass (Makefile.am): Likewise.
92353         * modules/getsubopt (Makefile.am): Likewise.
92354         * modules/gettime (Makefile.am): Likewise.
92355         * modules/gettimeofday (Makefile.am): Likewise.
92356         * modules/getugroups (Makefile.am): Likewise.
92357         * modules/getusershell (Makefile.am): Likewise.
92358         * modules/glob (Makefile.am): Likewise.
92359         * modules/group-member (Makefile.am): Likewise.
92360         * modules/hard-locale (Makefile.am): Likewise.
92361         * modules/hash (Makefile.am): Likewise.
92362         * modules/hmac-md5 (Makefile.am): Likewise.
92363         * modules/hmac-sha1 (Makefile.am): Likewise.
92364         * modules/human (Makefile.am): Likewise.
92365         * modules/idcache (Makefile.am): Likewise.
92366         * modules/imaxabs (Makefile.am): Likewise.
92367         * modules/imaxdiv (Makefile.am): Likewise.
92368         * modules/inet_ntop (Makefile.am): Likewise.
92369         * modules/inet_pton (Makefile.am): Likewise.
92370         * modules/intprops (Makefile.am): Likewise.
92371         * modules/inttostr (Makefile.am): Likewise.
92372         * modules/inttypes (Makefile.am): Likewise.
92373         * modules/isapipe (Makefile.am): Likewise.
92374         * modules/javaversion (Makefile.am): Likewise.
92375         * modules/lchmod (Makefile.am): Likewise.
92376         * modules/lchown (Makefile.am): Likewise.
92377         * modules/localcharset (Makefile.am): Likewise.
92378         * modules/long-options (Makefile.am): Likewise.
92379         * modules/lstat (Makefile.am): Likewise.
92380         * modules/malloc (Makefile.am): Likewise.
92381         * modules/mathl (Makefile.am): Likewise.
92382         * modules/mbchar (Makefile.am): Likewise.
92383         * modules/md2 (Makefile.am): Likewise.
92384         * modules/md4 (Makefile.am): Likewise.
92385         * modules/md5 (Makefile.am): Likewise.
92386         * modules/memcasecmp (Makefile.am): Likewise.
92387         * modules/memchr (Makefile.am): Likewise.
92388         * modules/memcmp (Makefile.am): Likewise.
92389         * modules/memcoll (Makefile.am): Likewise.
92390         * modules/memcpy (Makefile.am): Likewise.
92391         * modules/memmem (Makefile.am): Likewise.
92392         * modules/memmove (Makefile.am): Likewise.
92393         * modules/mempcpy (Makefile.am): Likewise.
92394         * modules/memrchr (Makefile.am): Likewise.
92395         * modules/memset (Makefile.am): Likewise.
92396         * modules/memxor (Makefile.am): Likewise.
92397         * modules/mkancesdirs (Makefile.am): Likewise.
92398         * modules/mkdir-p (Makefile.am): Likewise.
92399         * modules/mkdir (Makefile.am): Likewise.
92400         * modules/mkdtemp (Makefile.am): Likewise.
92401         * modules/mkstemp (Makefile.am): Likewise.
92402         * modules/mktime (Makefile.am): Likewise.
92403         * modules/modechange (Makefile.am): Likewise.
92404         * modules/mountlist (Makefile.am): Likewise.
92405         * modules/nanosleep (Makefile.am): Likewise.
92406         * modules/obstack (Makefile.am): Likewise.
92407         * modules/openat (Makefile.am): Likewise.
92408         * modules/pagealign_alloc (Makefile.am): Likewise.
92409         * modules/pathmax (Makefile.am): Likewise.
92410         * modules/physmem (Makefile.am): Likewise.
92411         * modules/poll (Makefile.am): Likewise.
92412         * modules/posixtm (Makefile.am): Likewise.
92413         * modules/posixver (Makefile.am): Likewise.
92414         * modules/putenv (Makefile.am): Likewise.
92415         * modules/quote (Makefile.am): Likewise.
92416         * modules/quotearg (Makefile.am): Likewise.
92417         * modules/raise (Makefile.am): Likewise.
92418         * modules/read-file (Makefile.am): Likewise.
92419         * modules/readline (Makefile.am): Likewise.
92420         * modules/readlink (Makefile.am): Likewise.
92421         * modules/readtokens (Makefile.am): Likewise.
92422         * modules/readutmp (Makefile.am): Likewise.
92423         * modules/realloc (Makefile.am): Likewise.
92424         * modules/regex (Makefile.am): Likewise.
92425         * modules/rename-dest-slash (Makefile.am): Likewise.
92426         * modules/rename (Makefile.am): Likewise.
92427         * modules/rijndael (Makefile.am): Likewise.
92428         * modules/rmdir (Makefile.am): Likewise.
92429         * modules/rpmatch (Makefile.am): Likewise.
92430         * modules/safe-read (Makefile.am): Likewise.
92431         * modules/safe-write (Makefile.am): Likewise.
92432         * modules/same-inode (Makefile.am): Likewise.
92433         * modules/same (Makefile.am): Likewise.
92434         * modules/save-cwd (Makefile.am): Likewise.
92435         * modules/savedir (Makefile.am): Likewise.
92436         * modules/setenv (Makefile.am): Likewise.
92437         * modules/settime (Makefile.am): Likewise.
92438         * modules/sha1 (Makefile.am): Likewise.
92439         * modules/sig2str (Makefile.am): Likewise.
92440         * modules/snprintf (Makefile.am): Likewise.
92441         * modules/stat-macros (Makefile.am): Likewise.
92442         * modules/stat-time (Makefile.am): Likewise.
92443         * modules/stdbool (Makefile.am): Likewise.
92444         * modules/stdint (Makefile.am): Likewise.
92445         * modules/stdlib-safer (Makefile.am): Likewise.
92446         * modules/stpcpy (Makefile.am): Likewise.
92447         * modules/stpncpy (Makefile.am): Likewise.
92448         * modules/strcase (Makefile.am): Likewise.
92449         * modules/strcasestr (Makefile.am): Likewise.
92450         * modules/strchrnul (Makefile.am): Likewise.
92451         * modules/strcspn (Makefile.am): Likewise.
92452         * modules/strdup (Makefile.am): Likewise.
92453         * modules/strerror (Makefile.am): Likewise.
92454         * modules/strftime (Makefile.am): Likewise.
92455         * modules/strndup (Makefile.am): Likewise.
92456         * modules/strnlen (Makefile.am): Likewise.
92457         * modules/strpbrk (Makefile.am): Likewise.
92458         * modules/strsep (Makefile.am): Likewise.
92459         * modules/strstr (Makefile.am): Likewise.
92460         * modules/strtod (Makefile.am): Likewise.
92461         * modules/strtoimax (Makefile.am): Likewise.
92462         * modules/strtok_r (Makefile.am): Likewise.
92463         * modules/strtol (Makefile.am): Likewise.
92464         * modules/strtoll (Makefile.am): Likewise.
92465         * modules/strtoul (Makefile.am): Likewise.
92466         * modules/strtoull (Makefile.am): Likewise.
92467         * modules/strtoumax (Makefile.am): Likewise.
92468         * modules/strverscmp (Makefile.am): Likewise.
92469         * modules/sys_socket (Makefile.am): Likewise.
92470         * modules/sys_stat (Makefile.am): Likewise.
92471         * modules/sysexits (Makefile.am): Likewise.
92472         * modules/time_r (Makefile.am): Likewise.
92473         * modules/timegm (Makefile.am): Likewise.
92474         * modules/timespec (Makefile.am): Likewise.
92475         * modules/tmpfile-safer (Makefile.am): Likewise.
92476         * modules/trim (Makefile.am): Likewise.
92477         * modules/unistd-safer (Makefile.am): Likewise.
92478         * modules/unlinkdir (Makefile.am): Likewise.
92479         * modules/unlocked-io (Makefile.am): Likewise.
92480         * modules/userspec (Makefile.am): Likewise.
92481         * modules/utime (Makefile.am): Likewise.
92482         * modules/utimecmp (Makefile.am): Likewise.
92483         * modules/utimens (Makefile.am): Likewise.
92484         * modules/vasnprintf (Makefile.am): Likewise.
92485         * modules/vasprintf (Makefile.am): Likewise.
92486         * modules/vsnprintf (Makefile.am): Likewise.
92487         * modules/xalloc (Makefile.am): Likewise.
92488         * modules/xgetcwd (Makefile.am): Likewise.
92489         * modules/xnanosleep (Makefile.am): Likewise.
92490         * modules/xreadlink (Makefile.am): Likewise.
92491         * modules/xstrtod (Makefile.am): Likewise.
92492         * modules/xstrtol (Makefile.am): Likewise.
92493         * modules/xstrtold (Makefile.am): Likewise.
92494         * modules/yesno (Makefile.am): Likewise.
92495         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
92497 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92499         * modules/error (Makefile.am): Distribute files through
92500         EXTRA_DIST, not lib_SOURCES.
92502 2006-10-12  Eric Blake  <ebb9@byu.net>
92504         * modules/error (Makefile.am): Distribute files in /lib.
92505         * modules/obstack (Makefile.am): Likewise.
92507 2006-10-12  Bruno Haible  <bruno@clisp.org>
92509         * modules/acl (Makefile.am): Distribute all files in lib/ through
92510         EXTRA_DIST.
92511         * modules/arcfour (Makefile.am): Likewise.
92512         * modules/arctwo (Makefile.am): Likewise.
92513         * modules/argmatch (Makefile.am): Likewise.
92514         * modules/argz (Makefile.am): Likewise.
92515         * modules/atexit (Makefile.am): Likewise.
92516         * modules/backupfile (Makefile.am): Likewise.
92517         * modules/c-strtod (Makefile.am): Likewise.
92518         * modules/c-strtold (Makefile.am): Likewise.
92519         * modules/calloc (Makefile.am): Likewise.
92520         * modules/canon-host (Makefile.am): Likewise.
92521         * modules/canonicalize (Makefile.am): Likewise.
92522         * modules/chdir-long (Makefile.am): Likewise.
92523         * modules/chdir-safer (Makefile.am): Likewise.
92524         * modules/check-version (Makefile.am): Likewise.
92525         * modules/chown (Makefile.am): Likewise.
92526         * modules/cloexec (Makefile.am): Likewise.
92527         * modules/close-stream (Makefile.am): Likewise.
92528         * modules/closeout (Makefile.am): Likewise.
92529         * modules/crc (Makefile.am): Likewise.
92530         * modules/cycle-check (Makefile.am): Likewise.
92531         * modules/des (Makefile.am): Likewise.
92532         * modules/dirfd (Makefile.am): Likewise.
92533         * modules/dirname (Makefile.am): Likewise.
92534         * modules/dup2 (Makefile.am): Likewise.
92535         * modules/euidaccess (Makefile.am): Likewise.
92536         * modules/exclude (Makefile.am): Likewise.
92537         * modules/exitfail (Makefile.am): Likewise.
92538         * modules/fcntl-safer (Makefile.am): Likewise.
92539         * modules/file-type (Makefile.am): Likewise.
92540         * modules/fileblocks (Makefile.am): Likewise.
92541         * modules/filemode (Makefile.am): Likewise.
92542         * modules/filenamecat (Makefile.am): Likewise.
92543         * modules/fnmatch (Makefile.am): Likewise.
92544         * modules/fopen-safer (Makefile.am): Likewise.
92545         * modules/fpending (Makefile.am): Likewise.
92546         * modules/fprintftime (Makefile.am): Likewise.
92547         * modules/free (Makefile.am): Likewise.
92548         * modules/fsusage (Makefile.am): Likewise.
92549         * modules/ftruncate (Makefile.am): Likewise.
92550         * modules/fts (Makefile.am): Likewise.
92551         * modules/gc (Makefile.am): Likewise.
92552         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
92553         * modules/getaddrinfo (Makefile.am): Likewise.
92554         * modules/getcwd (Makefile.am): Likewise.
92555         * modules/getdelim (Makefile.am): Likewise.
92556         * modules/getdomainname (Makefile.am): Likewise.
92557         * modules/getgroups (Makefile.am): Likewise.
92558         * modules/gethostname (Makefile.am): Likewise.
92559         * modules/gethrxtime (Makefile.am): Likewise.
92560         * modules/getline (Makefile.am): Likewise.
92561         * modules/getloadavg (Makefile.am): Likewise.
92562         * modules/getlogin_r (Makefile.am): Likewise.
92563         * modules/getopt (Makefile.am): Likewise.
92564         * modules/getpass (Makefile.am): Likewise.
92565         * modules/getpass-gnu (Makefile.am): Likewise.
92566         * modules/getsubopt (Makefile.am): Likewise.
92567         * modules/gettime (Makefile.am): Likewise.
92568         * modules/gettimeofday (Makefile.am): Likewise.
92569         * modules/getugroups (Makefile.am): Likewise.
92570         * modules/getusershell (Makefile.am): Likewise.
92571         * modules/glob (Makefile.am): Likewise.
92572         * modules/group-member (Makefile.am): Likewise.
92573         * modules/hard-locale (Makefile.am): Likewise.
92574         * modules/hash (Makefile.am): Likewise.
92575         * modules/hmac-md5 (Makefile.am): Likewise.
92576         * modules/hmac-sha1 (Makefile.am): Likewise.
92577         * modules/human (Makefile.am): Likewise.
92578         * modules/idcache (Makefile.am): Likewise.
92579         * modules/imaxabs (Makefile.am): Likewise.
92580         * modules/imaxdiv (Makefile.am): Likewise.
92581         * modules/inet_ntop (Makefile.am): Likewise.
92582         * modules/inet_pton (Makefile.am): Likewise.
92583         * modules/inttostr (Makefile.am): Likewise.
92584         * modules/isapipe (Makefile.am): Likewise.
92585         * modules/lchown (Makefile.am): Likewise.
92586         * modules/long-options (Makefile.am): Likewise.
92587         * modules/lstat (Makefile.am): Likewise.
92588         * modules/malloc (Makefile.am): Likewise.
92589         * modules/mathl (Makefile.am): Likewise.
92590         * modules/mbchar (Makefile.am): Likewise.
92591         * modules/md2 (Makefile.am): Likewise.
92592         * modules/md4 (Makefile.am): Likewise.
92593         * modules/md5 (Makefile.am): Likewise.
92594         * modules/memcasecmp (Makefile.am): Likewise.
92595         * modules/memchr (Makefile.am): Likewise.
92596         * modules/memcmp (Makefile.am): Likewise.
92597         * modules/memcoll (Makefile.am): Likewise.
92598         * modules/memcpy (Makefile.am): Likewise.
92599         * modules/memmem (Makefile.am): Likewise.
92600         * modules/memmove (Makefile.am): Likewise.
92601         * modules/mempcpy (Makefile.am): Likewise.
92602         * modules/memrchr (Makefile.am): Likewise.
92603         * modules/memset (Makefile.am): Likewise.
92604         * modules/memxor (Makefile.am): Likewise.
92605         * modules/mkancesdirs (Makefile.am): Likewise.
92606         * modules/mkdir (Makefile.am): Likewise.
92607         * modules/mkdir-p (Makefile.am): Likewise.
92608         * modules/mkdtemp (Makefile.am): Likewise.
92609         * modules/mkstemp (Makefile.am): Likewise.
92610         * modules/mktime (Makefile.am): Likewise.
92611         * modules/modechange (Makefile.am): Likewise.
92612         * modules/mountlist (Makefile.am): Likewise.
92613         * modules/nanosleep (Makefile.am): Likewise.
92614         * modules/openat (Makefile.am): Likewise.
92615         * modules/pagealign_alloc (Makefile.am): Likewise.
92616         * modules/physmem (Makefile.am): Likewise.
92617         * modules/poll (Makefile.am): Likewise.
92618         * modules/posixtm (Makefile.am): Likewise.
92619         * modules/posixver (Makefile.am): Likewise.
92620         * modules/putenv (Makefile.am): Likewise.
92621         * modules/quote (Makefile.am): Likewise.
92622         * modules/quotearg (Makefile.am): Likewise.
92623         * modules/raise (Makefile.am): Likewise.
92624         * modules/read-file (Makefile.am): Likewise.
92625         * modules/readline (Makefile.am): Likewise.
92626         * modules/readlink (Makefile.am): Likewise.
92627         * modules/readtokens (Makefile.am): Likewise.
92628         * modules/readutmp (Makefile.am): Likewise.
92629         * modules/realloc (Makefile.am): Likewise.
92630         * modules/regex (Makefile.am): Likewise.
92631         * modules/rename (Makefile.am): Likewise.
92632         * modules/rename-dest-slash (Makefile.am): Likewise.
92633         * modules/rijndael (Makefile.am): Likewise.
92634         * modules/rmdir (Makefile.am): Likewise.
92635         * modules/rpmatch (Makefile.am): Likewise.
92636         * modules/safe-read (Makefile.am): Likewise.
92637         * modules/safe-write (Makefile.am): Likewise.
92638         * modules/same (Makefile.am): Likewise.
92639         * modules/save-cwd (Makefile.am): Likewise.
92640         * modules/savedir (Makefile.am): Likewise.
92641         * modules/setenv (Makefile.am): Likewise.
92642         * modules/settime (Makefile.am): Likewise.
92643         * modules/sha1 (Makefile.am): Likewise.
92644         * modules/sig2str (Makefile.am): Likewise.
92645         * modules/snprintf (Makefile.am): Likewise.
92646         * modules/stdlib-safer (Makefile.am): Likewise.
92647         * modules/stpcpy (Makefile.am): Likewise.
92648         * modules/stpncpy (Makefile.am): Likewise.
92649         * modules/strcase (Makefile.am): Likewise.
92650         * modules/strcasestr (Makefile.am): Likewise.
92651         * modules/strchrnul (Makefile.am): Likewise.
92652         * modules/strcspn (Makefile.am): Likewise.
92653         * modules/strdup (Makefile.am): Likewise.
92654         * modules/strerror (Makefile.am): Likewise.
92655         * modules/strftime (Makefile.am): Likewise.
92656         * modules/strndup (Makefile.am): Likewise.
92657         * modules/strnlen (Makefile.am): Likewise.
92658         * modules/strpbrk (Makefile.am): Likewise.
92659         * modules/strsep (Makefile.am): Likewise.
92660         * modules/strstr (Makefile.am): Likewise.
92661         * modules/strtod (Makefile.am): Likewise.
92662         * modules/strtoimax (Makefile.am): Likewise.
92663         * modules/strtok_r (Makefile.am): Likewise.
92664         * modules/strtol (Makefile.am): Likewise.
92665         * modules/strtoll (Makefile.am): Likewise.
92666         * modules/strtoul (Makefile.am): Likewise.
92667         * modules/strtoull (Makefile.am): Likewise.
92668         * modules/strtoumax (Makefile.am): Likewise.
92669         * modules/strverscmp (Makefile.am): Likewise.
92670         * modules/time_r (Makefile.am): Likewise.
92671         * modules/timegm (Makefile.am): Likewise.
92672         * modules/tmpfile-safer (Makefile.am): Likewise.
92673         * modules/unistd-safer (Makefile.am): Likewise.
92674         * modules/unlinkdir (Makefile.am): Likewise.
92675         * modules/userspec (Makefile.am): Likewise.
92676         * modules/utime (Makefile.am): Likewise.
92677         * modules/utimecmp (Makefile.am): Likewise.
92678         * modules/utimens (Makefile.am): Likewise.
92679         * modules/vasnprintf (Makefile.am): Likewise.
92680         * modules/vasprintf (Makefile.am): Likewise.
92681         * modules/vsnprintf (Makefile.am): Likewise.
92682         * modules/xalloc (Makefile.am): Likewise.
92683         * modules/xgetcwd (Makefile.am): Likewise.
92684         * modules/xnanosleep (Makefile.am): Likewise.
92685         * modules/xreadlink (Makefile.am): Likewise.
92686         * modules/xstrtod (Makefile.am): Likewise.
92687         * modules/xstrtol (Makefile.am): Likewise.
92688         * modules/xstrtold (Makefile.am): Likewise.
92689         * modules/yesno (Makefile.am): Likewise.
92691 2006-10-12  Jim Meyering  <jim@meyering.net>
92693         * m4/getloadavg.m4: Revert the change below.
92695         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
92696         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
92697         fail with a symlink, which is what coreutils' ./bootstrap now
92698         creates by default.
92700 2006-10-12  Bruno Haible  <bruno@clisp.org>
92702         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
92703         mingw.
92704         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
92705         MSVC and mingw explicitly.
92707 2006-10-11  Simon Josefsson  <jas@extundo.com>
92708             Bruno Haible  <bruno@clisp.org>
92710         Add support for multiple gnulib-tool invocations in the scope of a
92711         single configure.ac file.
92712         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
92713         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
92714         with the same contents as the _LIBADD variable.
92715         (func_emit_initmacro_start, func_emit_initmacro_end,
92716         func_emit_initmacro_done): New functions.
92717         (func_import, func_create_testdir): Invoke them. Allow the identifiers
92718         gl_LIBOBJS and gl_LTLIBOBJS.
92720 2006-10-11  Bruno Haible  <bruno@clisp.org>
92722         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
92723         (func_create_testdir): Don't create po/Makefile.am, don't invoke
92724         autoreconf. Instead, invoke autopoint explicitly but move back the
92725         *.m4 files from gnulib.
92727 2006-10-11  Bruno Haible  <bruno@clisp.org>
92729         * gnulib-tool (func_usage): Make module names after --create-testdir
92730         optional.
92731         (func_create_testdir): If no module was specified, use nearly all
92732         modules.
92734 2006-10-12  Jim Meyering  <jim@meyering.net>
92736         Big performance improvement for fts-based tools that use FTS_NOSTAT.
92737         Avoid spurious inode-mismatch problems on non-POSIX file systems.
92738         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
92739         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
92740         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
92741         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
92742         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
92743         (fts_set_stat_required): New function.
92744         (fts_open): Defer the calls to fts_stat, if possible or requested.
92745         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
92746         into fts_stat itself.
92747         (fts_read): Perform any required (deferred) fts_stat call.
92748         (fts_build): Likewise, for the directory we're about to open and read.
92749         In the readdir loop, carefully decide whether each entry will require
92750         an eventual call to fts_stat, using dirent.d_type info if available.
92751         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
92752         a command line argument into this function.  Update all callers.
92753         Map a return value of FTS_DOT to FTS_D for a command line argument.
92754         * modules/fts (Depends-on): Add d-type.  Alphabetize.
92755         Thanks to Miklos Szeredi for his tenacity and for the initial
92756         bug report about "find" failing on a FUSE-based file system.
92758         * lib/fts.c (fts_open): Use consistent indentation.
92760 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92762         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
92763         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
92764         reported by Jim Meyering.  All uses of cache variables renamed
92765         to match Autoconf's.
92766         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
92767         the other one.
92769         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
92770         Fix misspelling in diagnostic.
92772 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92774         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
92775         defined.  Problem reported by Matthew Woehlke.
92777         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
92778         Add support for Tandem NonStop R series.
92779         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
92780         Use new macro.
92782         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
92783         (has_trailing_slash): Omit size arg; all callers changed.
92784         Omit 'inline', since it doesn't help performance and we'd
92785         need to configure it.
92786         Don't count //, ///, etc. as having a trailing slash.
92787         As a side effect, this removes a C99ism reported by Matthew Woehlke.
92788         (rpl_rename_dest_slash): On failure, use rename's errno rather
92789         than (in some cases) an incorrect or junk errno.
92790         Simplify code by removing need to compute length; this does
92791         cause it to make two passes instead of one over the file name,
92792         but it's worth it.
92794         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
92795         change, since Autoconf's version may no longer be appropriate now
92796         that we are using CVS Autoconf's version.  Add support for Tandem.
92798 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92799             Bruno Haible  <bruno@clisp.org>
92801         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
92802         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
92803         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
92804         gl_AC_TYPE_LONG_LONG.
92806         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
92807         instead of HAVE_LONG_LONG.
92808         * lib/printf-args.c (printf_fetchargs): Likewise.
92809         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
92810         * lib/vasnprintf.c (VASNPRINTF): Likewise.
92811         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
92812         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
92813         gl_AC_TYPE_LONG_LONG.
92815 2006-10-11  Bruno Haible  <bruno@clisp.org>
92817         * m4/longlong.m4: Add comments.
92818         * m4/ulonglong.m4: Likewise.
92820 2006-10-10  Bruno Haible  <bruno@clisp.org>
92822         Make it possible to #define stpcpy, strdup to aliases.
92823         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
92824         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
92826 2006-10-10  Bruno Haible  <bruno@clisp.org>
92828         Make it possible to #define gcd to an alias.
92829         * lib/gcd.c: Include config.h.
92831 2006-10-10  Bruno Haible  <bruno@clisp.org>
92833         Make it possible to #define c_isascii to an alias.
92834         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
92835         defined. Undefine the macros before defining them, to avoid gcc
92836         warnings.
92837         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
92838         define NO_C_CTYPE_MACROS early.
92840 2006-10-10  Bruno Haible  <bruno@clisp.org>
92842         Make it possible to #define set_program_name to an alias.
92843         * lib/progname.c: Don't undefine set_program_name; instead, undefine
92844         ENABLE_RELOCATABLE early.
92846 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
92848         Port to Tandem NSK OSS, which has 64-bit signed int but at most
92849         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
92850         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
92851         More generally, don't assume that 64-bit signed int is available
92852         if unsigned int is, and vice versa.
92853         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
92854         unsigned symbols, not on their signed counterparts.
92855         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
92856         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
92857         (UINT64_C, UINTMAX_C):
92858         Likewise.
92859         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
92860         unsigned counterparts.
92861         (Have_long_long, Unsigned): New macros.
92862         (Int): Renamed from INT.
92863         (strtoimax): Use the new macros.
92864         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
92865         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
92866         * modules/inttypes (inttypes.h): Substitute
92867         HAVE_UNSIGNED_LONG_LONG_INT.
92868         * modules/stdint (stdint.h): Likewise.
92869         (Files): Add m4/ulonglong.m4.
92871 2006-10-10  Bruno Haible  <bruno@clisp.org>
92873         Fix a gcc -Wshadow warning.
92874         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
92875         to 'bucket'.
92876         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
92877         gl_linked_indexof_from_to): Likewise.
92878         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
92879         Likewise.
92880         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
92881         Likewise.
92882         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
92883         Reported by Eric Blake.
92885 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
92887         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
92888         for NetBSD.  Problem reported by Bruno Haible.
92890 2006-10-09  Jim Meyering  <jim@meyering.net>
92892         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
92893         Patch from Bruno Haible.
92895 2006-10-09  Jim Meyering  <jim@meyering.net>
92897         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
92898         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
92899         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
92901 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92903         Don't include <config.h> twice; this doesn't work in some cases,
92904         e.g., when config.h has "#define intmax_t long long int" and
92905         we include <config.h>, <inttypes.h>, <config.h> in that order.
92906         Problem reported by Matthew Woehlke in:
92907         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
92908         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
92909         * lib/fts-cycle.c: Don't include config.h.
92910         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
92911         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
92912         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
92913         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
92914         inttypes.h.
92915         * lib/xstrtoumax.c: Likewise.
92916         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
92917         __strtol and the like, so that this module is more like its siblings.
92918         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
92919         Remove; no longer needed now that we assume gnulib inttypes.h.
92921 2006-10-08  Bruno Haible  <bruno@clisp.org>
92923         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
92924         option.
92926 2006-10-07  Jim Meyering  <jim@meyering.net>
92928         * modules/inttypes (inttypes.h): Revert what seems to have been
92929         an inadvertent part of today's change: use "|", not "/" in the
92930         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
92932 2006-10-07  Bruno Haible  <bruno@clisp.org>
92934         * modules/sublist: New file.
92936 2006-10-07  Bruno Haible  <bruno@clisp.org>
92938         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
92939         * modules/argz (argz.h): Likewise.
92940         * modules/arpa_inet (arpa/inet.h): Likewise.
92941         * modules/byteswap (byteswap.h): Likewise.
92942         * modules/configmake (configmake.h): Likewise.
92943         * modules/fcntl (fcntl.h): Likewise.
92944         * modules/fnmatch (fnmatch.h): Likewise.
92945         * modules/getopt (getopt.h): Likewise.
92946         * modules/glob (glob.h): Likewise.
92947         * modules/inttypes (inttypes.h): Likewise.
92948         * modules/netinet_in (netinet/in.h): Likewise.
92949         * modules/poll (poll.h): Likewise.
92950         * modules/stdbool (stdbool.h): Likewise.
92951         * modules/stdint (stdint.h): Likewise.
92952         * modules/sys_select (sys/select.h): Likewise.
92953         * modules/sys_socket (sys/socket.h): Likewise.
92954         * modules/sys_stat (sys/stat.h): Likewise.
92955         * modules/sysexits (sysexits.h): Likewise.
92956         * modules/unistd (unistd.h): Likewise.
92957         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92958         Add a "DO NOT EDIT" comment to the generated file.
92959         (func_import): Likewise for gnulib-comp.m4.
92961 2006-10-07  Bruno Haible  <bruno@clisp.org>
92963         * lib/gl_sublist.h: New file.
92964         * lib/gl_sublist.c: New file.
92966 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
92968         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
92969         name (relative to the original working directory) and the file
92970         name component (relative to the temporary working directory).  All
92971         callers changed.
92972         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
92973         * lib/mkdir-p.c (make_dir_parents): Likewise.
92974         * lib/mkdir-p.h (make_dir_parents): Likewise.
92976 2006-10-06  Eric Blake  <ebb9@byu.net>
92978         Define several macros for use by the clean-temp module.
92979         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
92980         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
92981         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
92983         * lib/clean-temp.h (close_stream_temp): New declaration.
92984         * lib/clean-temp.c (includes): Pull in headers according to what
92985         other modules are in use.
92986         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
92988 2006-10-06  Bruno Haible  <bruno@clisp.org>
92990         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
92991         instead of fopen, fwriteerror.
92993 2006-10-06  Bruno Haible  <bruno@clisp.org>
92995         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
92996         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
92997         int.
92998         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
92999         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
93000         Return an error indicator.
93001         Suggested by Eric Blake.
93003 2006-10-06  Bruno Haible  <bruno@clisp.org>
93005         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
93006         Reported by Eric Blake.
93008 2006-10-06  Bruno Haible  <bruno@clisp.org>
93010         * modules/closeout (Description): Mention stderr too.
93012 2006-10-06  Bruno Haible  <bruno@clisp.org>
93013         and Paul Eggert  <eggert@cs.ucla.edu>
93015         * lib/closeout.c (close_stdout): Also close stderr.
93016         * lib/closeout.h: Update comment.
93018 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
93020         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
93021         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
93022         * lib/dirchownmod.c: Include lchown.h.
93023         * lib/lchown.c: Don't include files that lchown.h now includes.
93024         Don't declare chown, since lchown.h now does that.
93025         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
93026         (lchown): Define to rpl_chown if lchown is declared but
93027         does not exist.  Declare using a prototype if lchown is not
93028         declared.  Add a copyright notice.
93029         * lib/mkstemp.h: Include <unistd.h>.
93030         * lib/openat.c: Include lchown.h.
93032         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
93033         we now test for that separately.
93034         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
93035         rather than O_NOFOLLOW, when testing whether it's possible to
93036         avoid a race condition reliably.
93037         * lib/savewd.c (savewd_chdir): Likewise.
93039         Remove macros that are no longer needed now that stdint.h is
93040         reliable.
93041         * lib/fsusage.c (UINTMAX_MAX): Remove.
93042         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
93043         * lib/utimecmp.c (SIZE_MAX): Remove.
93045         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
93047         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
93048         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
93049         O_NOATIME works.
93051 2006-10-05  Bruno Haible  <bruno@clisp.org>
93053         * lib/gl_list.h (gl_sortedlist_search_from_to,
93054         gl_sortedlist_indexof_from_to): New declarations.
93055         (gl_list_implementation): New fields sortedlist_search_from_to,
93056         sortedlist_indexof_from_to.
93057         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
93058         inline functions.
93059         * lib/gl_list.c (gl_sortedlist_search_from_to,
93060         gl_sortedlist_indexof_from_to): New functions.
93061         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
93062         function.
93063         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
93064         (gl_array_sortedlist_search_from_to): New function.
93065         (gl_array_list_implementation): Update.
93066         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
93067         function.
93068         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
93069         (gl_carray_sortedlist_search_from_to): New function.
93070         (gl_carray_list_implementation): Update.
93071         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
93072         gl_linked_sortedlist_indexof_from_to): New functions.
93073         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93074         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93075         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
93076         gl_tree_sortedlist_indexof_from_to): New functions.
93077         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93078         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93079         Update.
93080         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93081         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
93082         Update.
93084 2006-10-05  Bruno Haible  <bruno@clisp.org>
93086         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
93087         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
93088         (struct gl_list_implementation): Add fields search_from_to,
93089         indexof_from_to. Remove fields search, indexof.
93090         (gl_list_search): Use the search_from_to method.
93091         (gl_list_search_from, gl_list_search_from_to): New functions.
93092         (gl_list_indexof): Use the indexof_from_to method.
93093         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93094         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
93095         (gl_list_search_from, gl_list_search_from_to): New functions.
93096         (gl_list_indexof): Use the indexof_from_to method.
93097         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93098         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
93099         gl_array_indexof. Add start_index, end_index arguments.
93100         (gl_array_search_from_to): Renamed from gl_array_search. Add
93101         start_index, end_index arguments.
93102         (gl_array_remove, gl_array_list_implementation): Update.
93103         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
93104         gl_carray_indexof. Add start_index, end_index arguments.
93105         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
93106         start_index, end_index arguments.
93107         (gl_carray_remove, gl_carray_list_implementation): Update.
93108         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
93109         gl_linked_search. Add start_index, end_index arguments.
93110         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
93111         start_index, end_index arguments.
93112         (gl_linked_remove): Update.
93113         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93114         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93115         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
93116         field to 'size_t'.
93117         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
93118         gl_tree_search. Add start_index, end_index arguments.
93119         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93120         start_index, end_index arguments.
93121         (gl_tree_remove): Update.
93122         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93123         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93124         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
93125         function.
93126         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
93127         gl_tree_search. Add start_index, end_index arguments.
93128         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93129         start_index, end_index arguments.
93130         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93131         Update.
93132         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93134 2006-10-05  Bruno Haible  <bruno@clisp.org>
93136         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
93138         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
93139         fwriteerror_temp): New declarations.
93140         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
93141         (descriptors): New variable.
93142         (cleanup): First, close the descriptors.
93143         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
93144         fclose_temp, fwriteerror_temp): New functions.
93146 2006-10-04  Jim Meyering  <jim@meyering.net>
93148         * lib/fts.c (fts_open): Tiny comment change.
93150 2006-10-04  Bruno Haible  <bruno@clisp.org>
93152         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
93153         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
93154         gl_LOCK_BODY.
93155         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
93156         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
93157         gl_LOCK_EARLY_BODY.
93158         (gl_LOCK): Require gl_LOCK_BODY.
93160 2006-10-04  Bruno Haible  <bruno@clisp.org>
93162         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
93163         (gl_oset_search_atleast): New declaration.
93164         (struct gl_oset_implementation): Add field 'search_atleast'.
93165         (gl_oset_search_atleast): New inline function.
93166         * lib/gl_oset.c (gl_oset_search_atleast): New function.
93167         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
93168         (gl_array_oset_implementation): Update.
93169         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
93170         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
93171         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
93173 2006-10-04  Bruno Haible  <bruno@clisp.org>
93175         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
93177 2006-10-03  Bruno Haible  <bruno@clisp.org>
93179         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
93180         from gl_avltreehash_list_implementation.
93182 2006-10-03  Bruno Haible  <bruno@clisp.org>
93184         * lib/gl_oset.c (gl_oset_add): Fix return type.
93186 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
93188         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
93190 2006-10-02  Eric Blake  <ebb9@byu.net>
93192         * modules/strnlen (Depends-on): Add extensions.
93194 2006-10-02  Eric Blake  <ebb9@byu.net>
93196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
93197         definition in 2.60+.
93199 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
93201         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
93202         checks.
93204 2006-10-02  Bruno Haible  <bruno@clisp.org>
93206         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
93207         to the AUTOMAKE_OPTIONS.
93208         Reported by Jim Meyering.
93210 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
93212         Work around bug in Solaris 10 /proc file system:
93213         /proc/self/fd/NNN/.. isn't the parent directory of
93214         the directory whose file descriptor is NNN.  This needs to
93215         be worked around at run time, not compile time, since a
93216         program might be built on Solaris 8, where things work, and
93217         run on Solaris 10.
93218         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
93219         to use the following interface instead:
93220         (OPENAT_BUFFER_SIZE): New macro.
93221         (openat_proc_name): New function.
93222         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
93223         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
93224         Likewise.
93225         * lib/openat-proc.c: New file.
93226         * modules/openat (Files): Add lib/openat-proc.c.
93227         (Depends-on): Add same-inode, stdbool.
93228         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
93230 2006-09-29  Bruno Haible  <bruno@clisp.org>
93232         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
93233         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
93234         argument. Set stdout_closed before testing for ferror, not after.
93235         (fwriteerror, fwriteerror_no_ebadf): New functions.
93237 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93239         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
93241 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
93243         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
93244         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
93246 2006-09-28  Jim Meyering  <jim@meyering.net>
93248         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
93249         Include <unistd.h>.
93251 2006-09-28  Bruno Haible  <bruno@clisp.org>
93253         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
93254         * modules/linkedhash-list (Depends-on): Likewise.
93255         * modules/rbtreehash-list (Depends-on): Likewise.
93257 2006-09-28  Bruno Haible  <bruno@clisp.org>
93259         * lib/strndup.h: Simplify the redefinition of strndup.
93260         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
93261         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
93263 2006-09-28  Bruno Haible  <bruno@clisp.org>
93265         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
93266         * lib/gl_linkedhash_list.c: Likewise.
93267         * lib/gl_rbtreehash_list.c: Likewise.
93269 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
93271         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
93272         getaddrinfo.
93274         * lib/__fpending.h: Don't include <stdio_ext.h> unless
93275         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
93276         it causes <stdio_ext.h> to cause a compile-time error.
93277         Problem reported by Nelson H. F. Beebe.
93278         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
93279         of HAVE_DECL___PENDING.
93281         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
93282         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
93283         declaration.
93285 2006-09-27  Jim Meyering  <jim@meyering.net>
93287         This file could end up with a definition for a function
93288         named __strndup, rather than rpl_strndup on a system with
93289         incomplete weak_alias support.
93290         * lib/strndup.c (strndup): Rename from __strndup.
93291         Remove #defines that used to map __strndup to strndup.
93292         Don't use K&R prototypes.
93293         Remove LIBC-related code, since this file is not sync'd with glibc.
93294         * lib/strndup.h: Revamp, accordingly.
93295         * m4/strndup.m4: Modernize.
93297 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
93299         * modules/savewd (Depends-on): Add 'raise'.
93300         * lib/savewd.c: Include <signal.h>, for 'raise'.
93302 2006-09-26  Jim Meyering  <jim@meyering.net>
93304         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
93305         when we detect Darwin 8.7.0's acl_get_file bug.
93306         Rearrange to perform the new (below) run-test while $LIBS
93307         contains any acl-related library.  Set USE_ACL at the end.
93308         (gl_ACL_GET_FILE): New function.
93310 2006-09-26  Eric Blake  <ebb9@byu.net>
93312         * lib/verror.c: Include <config.h> unconditionally.
93314 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
93316         * modules/clock-time (Maintainer): Add self.
93317         * modules/getlogin_r (Depends-on): Add extensions.
93319 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93321         * modules/clock-time: New module.
93322         * modules/nanosleep (Depends-on): Add clock-time.
93323         * modules/gethrxtime (Depends-on): Likewise.
93324         * modules/gettime (Depends-on): Likewise.
93325         * modules/settime (Depends-on): Likewise.
93327         * modules/fts-lgpl: Depend on openat.
93328         * modules/mkancesdirs: Depend on savewd.
93329         * modules/mkdir-p: Likewise.
93331 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93333         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
93335         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
93336         `gl_have_arbitrary_file_name_length_limit' to
93337         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
93338         actually works between configure runs.
93340 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93341             Bruno Haible  <bruno@clisp.org>
93343         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
93345 2006-09-25  Jim Meyering  <jim@meyering.net>
93347         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
93348         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
93350 2006-09-25  Eric Blake  <ebb9@byu.net>
93352         * gnulib-tool (func_import, func_create_testdir): Fix typos in
93353         exec's in 2006-09-18 patch when shuffling fds.
93355 2006-09-25  Bruno Haible  <bruno@clisp.org>
93357         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
93358         Reported by Jim Meyering.
93360 2006-09-24  Jim Meyering  <jim@meyering.net>
93362         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
93363         compare a pointer against a literal "0".  That caused failures with
93364         at least HP-UX's hpcc.
93366 2006-09-22  Simon Josefsson  <jas@extundo.com>
93368         * modules/gc-sha1:
93369         * modules/gc-md4:
93370         * modules/gc-hmac-sha1:
93371         * modules/gc-hmac-md5:
93372         * modules/gc-des:
93373         * modules/gc-arcfour: Distribute more files.
93375 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93377         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
93378         (gl_linked_iterator_from_to): Initialize struct completely.
93379         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
93380         (gl_tree_iterator_from_to): Likewise
93381         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
93382         * lib/gl_array_list.c [lint] (gl_array_iterator)
93383         (gl_array_iterator_from_to): Likewise.
93384         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
93385         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
93386         (gl_carray_iterator_from_to): Likewise.
93388         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
93389         * lib/md4.c (md4_process_block): Remove unused variable.
93390         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
93391         parentheses for clarity.
93393 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93395         * modules/bison-i18n (Depends-on): Add gettext.
93397 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93399         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
93400         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
93401         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
93402         also add missing comma that caused broken test.
93403         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
93404         stdlib.h, for `abort'.
93405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
93406         variables.
93407         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
93408         include unistd.h if present, for `rmdir'.
93409         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
93410         variables.
93411         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
93412         in the process include standard headers for prototypes.
93413         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
93414         gets declared on GNU/Linux.
93415         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
93416         unistd.h, for `rmdir'.
93417         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
93419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
93420         always true.
93421         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
93423         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
93425 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93427         * gnulib-tool (func_version): Create output all at once.  This
93428         may help avoid triggering unnecessary SIGPIPEs, and at any
93429         rate it doesn't hurt.
93431 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93432             Bruno Haible  <bruno@clisp.org>
93434         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
93435         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
93436         * m4/signed.m4 (bh_C_SIGNED): Likewise.
93438         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
93439         (gl_FUNC_VASPRINTF): Invoke it.
93441 2006-09-22  Bruno Haible  <bruno@clisp.org>
93443         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
93444         getloadavg.c as first argument.
93446 2006-09-22  Bruno Haible  <bruno@clisp.org>
93448         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
93449         at the beginning of the gl_INIT macro.
93450         * modules/getloadavg (configure.ac): Pass $gl_source_base to
93451         gl_GETLOADAVG.
93453 2006-09-22  Bruno Haible  <bruno@clisp.org>
93455         * gnulib-tool (func_create_megatestdir): Don't include the config-h
93456         module.
93457         Suggested by Ralf Wildenhues.
93459 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
93461         Import this patch from libc:
93463         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
93465         * lib/regex_internal.c (re_string_reconstruct): Handle
93466         offset < pstr->valid_raw_len && pstr->offsets_needed case.
93467         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
93468         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
93469         re_string_context_at.
93471         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
93472         now requires it.
93473         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
93474         gl_REGEX now does it for us.
93475         (gl_REGEX): Add test taken from
93476         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
93478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
93479         Check that large offsets work.  Modernize Autoconf usages.
93480         Prefer "yes" to mean a good thing rather than a bad.
93481         Don't put "#define mkstemp" in config.h, as this might interfere
93482         with standard system headers that "#define mkstemp mkstemp64".
93484         * modules/mkstemp (Depends-on): Add extensions, so that
93485         mkstemp is visible on some platforms.
93486         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
93487         (Include): Change to "mkstemp.h" from <stdlib.h>.
93488         (Files): Add mkstemp.h.
93490         * lib/mkstemp.h: New file, since some standard headers
93491         #define mkstemp.
93492         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
93493         Include "mkstemp.h".
93494         Make the _LIBC code resemble glibc original more,
93495         e.g., use K&R style.
93496         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
93497         (mkstemp): Remove, since mkstemp.h does this for us.
93498         * lib/stdlib--.h: Include mkstemp.h.
93500         Import this patch from libc:
93502         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
93504         * lib/tempname.c (__gen_tempname): Change attempts_min
93505         into a macro.  Use preprocessor to decide how to initialize
93506         attempts [Coverity CID 67].
93508 2006-09-20  Bruno Haible  <bruno@clisp.org>
93510         * lib/mkdtemp.c: Import from libc.
93511         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
93512                 * sysdeps/posix/tempname.c (__gen_tempname): Change
93513                 attempts_min into a macro.  Use preprocessor to decide how to
93514                 initialize attempts [Coverity CID 67].
93515         2001-11-27  Paul Eggert  <eggert@twinsun.com>
93516                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
93517                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
93519 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93521         * gnulib-tool (func_exit): New function, to allow to pass the
93522         exit status portably through the trap.  Use everywhere.
93523         (--help, --version): Signal a write error.
93524         (trap): catch SIGPIPE, for write errors.
93525         Exit at the end of the trap, with the correct exit status.
93527 2006-09-19  Karl Berry  <karl@gnu.org>
93529         * doc/gnulib.texi: note about the license texinfo files.
93531 2006-09-19  Eric Blake  <ebb9@byu.net>
93533         * gnulib-tool: Avoid space-tab.
93535 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
93537         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
93538         that prevented coreutils 6.1 from building.  Problem reported
93539         by Petter Reinholdtsen.
93541 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
93543         * gnulib-tool (avoidlist): Fix typo that broke options like
93544         --avoid=lock that are used by coreutils bootstrap.
93546 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
93548         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
93549         more systematically.
93551 2006-09-18  Jim Meyering  <jim@meyering.net>
93553         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
93555 2006-09-18  Bruno Haible  <bruno@clisp.org>
93557         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
93559 2006-09-18  Bruno Haible  <bruno@clisp.org>
93561         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
93562         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
93563         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
93564         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
93565         * m4/gettext.m4: Require autoconf >= 2.52.
93566         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
93567         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
93568         of gl_cv_header_inttypes_h.
93570 2006-09-18  Bruno Haible  <bruno@clisp.org>
93572         * lib/javaversion.c: Include configmake.h.
93574 2006-09-18  Bruno Haible  <bruno@clisp.org>
93576         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
93577         avoid that the while loops be executed in a subshell.
93579 2006-09-18  Bruno Haible  <bruno@clisp.org>
93581         * MODULES.html.sh (func_module): Break long lines.
93582         Suggested by Bruce Korb <bkorb@gnu.org>.
93584 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93586         Speed up by a factor of 1.12.
93587         * gnulib-tool (nl): New variable.
93588         (func_import): Rewrite include directive extraction to only read each
93589         directive once.
93591 2006-09-17  Bruno Haible  <bruno@clisp.org>
93593         * modules/javaversion (Makefile.am): Remove DEFS setting.
93594         (Depends-on): Add configmake, for PKGDATADIR definition.
93596 2006-09-17  Bruno Haible  <bruno@clisp.org>
93598         * gnulib-tool (func_create_testdir): Rewrite all files at once.
93600 2006-09-17  Bruno Haible  <bruno@clisp.org>
93602         * gnulib-tool (func_append): New function, stolen from libtool.m4.
93603         (func_modules_transitive_closure, func_modules_add_dummy,
93604         func_modules_to_filelist, func_import, func_create_testdir,
93605         func_create_megatestdir, ...): Use it wherever possible.
93606         Suggested by Ralf Wildenhues.
93608 2006-09-16  Karl Berry  <karl@gnu.org>
93610         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
93611         to avoid sectioning errors.
93612         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
93613         [ifinfo]: blank line after @center-ed titles.
93614         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
93615         Spell FSF address consistently with others.
93616         (These changes approved by rms.)
93618 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93620         Speed up by a factor of 1.61.
93621         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
93622         already checked module names again.
93624 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93626         Speed up by a factor of 1.13.
93627         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
93628         for new_files, and the input to func_add_or_update.
93630 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93632         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
93633         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
93635 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93637         * modules/mkancesdirs (Depends-on): Add fcntl.
93638         * modules/savewd: New file.
93639         * MODULES.html.sh (File system functions): Add savewd.
93641         * modules/configmake (Makefile.am): Add support for the
93642         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
93644 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93646         * m4/savewd.m4: New file.
93648 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93650         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
93651         (dirchownmod): New arg FD.  All callers changed.
93652         Use FD rather than opening the directory ourself, as opening is
93653         now the caller's responsibility.
93654         * lib/dirchownmod.h: Likewise.
93655         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
93656         hosts that require <sys/types.h> before <sys/stat.h>.  Include
93657         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
93658         (test_dir): Remove.
93659         (mkancesdirs): Return length of prefix of FILE that has already
93660         been made, or -2 if there is a child doing the work.  Redo
93661         algorithm so that it is O(N) rather than O(N**2).  Optimize away
93662         ".", and treat ".." specially since it might stray back into
93663         already-created areas.  Use a subprocess if necessary.  New arg
93664         WD; all users changed.  MAKE_DIR function should now return 1
93665         if it creates a directory that is not readable.  Return -2 if
93666         a child process is spun off.
93667         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
93668         Adjust signature to match code.
93669         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
93670         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
93671         all users changed.
93672         * lib/savewd.c, lib/savewd.h: New files.
93674 2006-09-15  Jim Meyering  <jim@meyering.net>
93676         * modules/rename-dest-slash: New module.
93677         * MODULES.html.sh (posix_compat): Add it here.
93679         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
93681 2006-09-15  Jim Meyering  <jim@meyering.net>
93683         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
93684         file.
93686         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
93688 2006-09-15  Jim Meyering  <jim@meyering.net>
93690         * lib/rename-dest-slash.c (has_trailing_slash): Use
93691         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
93692         (rpl_rename_dest_slash): Perform the cheaper trailing slash
93693         test before testing whether SRC is a directory.
93694         Suggestions from Bruno Haible.
93696         Avoid a warning about an unused variable.
93697         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
93698         into the #ifdef block where it's used.
93700         * lib/rename-dest-slash.c: New file.
93702 2006-09-14  Bruno Haible  <bruno@clisp.org>
93704         * lib/allocsa.c: Include <config.h> unconditionally.
93705         * lib/asnprintf.c: Likewise.
93706         * lib/asprintf.c: Likewise.
93707         * lib/c-strcasecmp.c: Likewise.
93708         * lib/c-strcasestr.c: Likewise.
93709         * lib/c-strncasecmp.c: Likewise.
93710         * lib/c-strstr.c: Likewise.
93711         * lib/classpath.c: Likewise.
93712         * lib/clean-temp.c: Likewise.
93713         * lib/concatpath.c: Likewise.
93714         * lib/copy-file.c: Likewise.
93715         * lib/csharpcomp.c: Likewise.
93716         * lib/csharpexec.c: Likewise.
93717         * lib/execute.c: Likewise.
93718         * lib/fatal-signal.c: Likewise.
93719         * lib/findprog.c: Likewise.
93720         * lib/fwriteerror.c: Likewise.
93721         * lib/gl_array_list.c: Likewise.
93722         * lib/gl_array_oset.c: Likewise.
93723         * lib/gl_avltree_list.c: Likewise.
93724         * lib/gl_avltree_oset.c: Likewise.
93725         * lib/gl_avltreehash_list.c: Likewise.
93726         * lib/gl_carray_list.c: Likewise.
93727         * lib/gl_linked_list.c: Likewise.
93728         * lib/gl_linkedhash_list.c: Likewise.
93729         * lib/gl_list.c: Likewise.
93730         * lib/gl_oset.c: Likewise.
93731         * lib/gl_rbtree_list.c: Likewise.
93732         * lib/gl_rbtree_oset.c: Likewise.
93733         * lib/gl_rbtreehash_list.c: Likewise.
93734         * lib/imaxabs.c: Likewise.
93735         * lib/imaxdiv.c: Likewise.
93736         * lib/javacomp.c: Likewise.
93737         * lib/javaexec.c: Likewise.
93738         * lib/javaversion.c: Likewise.
93739         * lib/linebreak.c: Likewise.
93740         * lib/localcharset.c: Likewise.
93741         * lib/lock.c: Likewise.
93742         * lib/mbchar.c: Likewise.
93743         * lib/mbswidth.c: Likewise.
93744         * lib/mkdtemp.c: Likewise.
93745         * lib/pipe.c: Likewise.
93746         * lib/printf-args.c: Likewise.
93747         * lib/printf-parse.c: Likewise.
93748         * lib/progname.c: Likewise.
93749         * lib/progreloc.c: Likewise.
93750         * lib/readlink.c: Likewise.
93751         * lib/sh-quote.c: Likewise.
93752         * lib/stpcpy.c: Likewise.
93753         * lib/stpncpy.c: Likewise.
93754         * lib/strcasecmp.c: Likewise.
93755         * lib/strcasestr.c: Likewise.
93756         * lib/strcspn.c: Likewise.
93757         * lib/striconv.c: Likewise.
93758         * lib/strncasecmp.c: Likewise.
93759         * lib/strnlen1.c: Likewise.
93760         * lib/strstr.c: Likewise.
93761         * lib/strtok_r.c: Likewise.
93762         * lib/tls.c: Likewise.
93763         * lib/tmpdir.c: Likewise.
93764         * lib/unicodeio.c: Likewise.
93765         * lib/unsetenv.c: Likewise.
93766         * lib/vasnprintf.c: Likewise.
93767         * lib/vasprintf.c: Likewise.
93768         * lib/wait-process.c: Likewise.
93769         * lib/xallocsa.c: Likewise.
93770         * lib/xsetenv.c: Likewise.
93771         * lib/xstriconv.c: Likewise.
93773 2006-09-13  Simon Josefsson  <jas@extundo.com>
93775         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
93776         that internally, suggested by Ralf Wildenhues
93777         <Ralf.Wildenhues@gmx.de>.
93779 2006-09-13  Simon Josefsson  <jas@extundo.com>
93781         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
93782         @LIBOBJS@.
93783         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93785 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
93787         * lib/_fpending.c: Include <config.h> unconditionally, since we no
93788         longer worry about uses that don't define HAVE_CONFIG_H.
93789         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
93790         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
93791         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
93792         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
93793         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
93794         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
93795         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
93796         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
93797         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
93798         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
93799         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
93800         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
93801         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
93802         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
93803         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
93804         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
93805         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
93806         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
93807         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
93808         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
93809         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
93810         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
93811         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
93812         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
93813         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
93814         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
93815         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
93816         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
93817         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
93818         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
93819         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
93820         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
93821         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
93822         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
93823         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
93824         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
93825         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
93826         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
93827         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
93828         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
93829         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
93830         Likewise.
93832 2006-09-13  Eric Blake  <ebb9@byu.net>
93834         * lib/getopt.c: Fix typo in last commit.
93836 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93838         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
93839         dgettext.
93841 2006-09-12  Jim Meyering  <jim@meyering.net>
93843         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
93844         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
93845         Reported by Nelson H. F. Beebe.
93847 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93849         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
93850         program_invocation_name and program_invocation_short_name are
93851         initialized.
93852         * lib/argp-namefrob.h: Move declarations of program_invocation_name
93853         and program_invocation_short_name to argp.h, so they are visible
93854         to user programs.
93855         * lib/argp.h: Likewise
93857 2006-09-10  Bruno Haible  <bruno@clisp.org>
93859         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
93860         m4/inttypes_h.m4, m4/uintmax_t.m4.
93862 2006-09-10  Bruno Haible  <bruno@clisp.org>
93864         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
93865         gl_AC_TYPE_UINTMAX_T.
93867 2006-09-10  Bruno Haible  <bruno@clisp.org>
93869         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
93871 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93873         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
93874         convention.  Text proposed by Bruno Haible.
93875         (struct argp_option): Document the use of N_() wrappers.
93877         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
93878         '\v', and translate the two parts separately, instead of feeding
93879         the whole string to gettext.  This allows to exclude
93880         '\v' from the strings visible to the translator by writing doc
93881         strings as N_("..") "\v" N_("..").
93883 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
93885         * config/srclist.txt: Undo latest change; the bug was fixed.
93887 2006-09-09  Bruno Haible  <bruno@clisp.org>
93889         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
93890         assignments if building a library without libtool.
93891         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
93892         in func_emit_lib_Makefile_am.
93893         (func_import): When building a static library libfoo.a, arrange to
93894         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
93895         (func_create_testdir): Likewise.
93896         * modules/gc (configure.ac, Makefile.am): If building statically,
93897         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
93898         * modules/iconvme (configure.ac, Makefile.am): Likewise.
93899         * modules/striconv (configure.ac, Makefile.am): Likewise.
93900         Based on a suggestion by Ralf Wildenhues.
93902 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93904         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
93905         Check for unistd.h too, since Autoconf doesn't assume POSIX.
93906         Also:
93908         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93909         Add year_2050_test to catch glibc bug 2821
93910         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
93912         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93913         Prefer #ifdef to #if.
93915         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
93916         Return from 'main' instead of calling 'exit'.
93918 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93920         * lib/mktime.c (guess_time_tm): Fix bug where mktime
93921         returned the maximum time_t value rather than (time_t) -1.
93922         Problem originally reported by William Bardwell
93923         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
93925         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
93926         Moved to here ...
93927         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
93928         ... from here.
93930 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
93932         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
93933         2821 is fixed.
93935 2006-09-08  Jim Meyering  <jim@meyering.net>
93937         Don't make generated files read-only.  That would bother too many
93938         people.  However, do retain the ability to work when targets are
93939         read-only: remove the destination and temporary files before writing
93940         them (when generated via sed or echo), or by using the -f option for
93941         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
93942         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93943         * modules/byteswap, modules/configmake, modules/fcntl:
93944         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93945         * modules/localcharset, modules/netinet_in, modules/poll:
93946         * modules/stdbool, modules/stdint, modules/sys_select:
93947         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93949 2006-09-08  Jim Meyering  <jim@meyering.net>
93951         Avoid new build failure on FreeBSD 6.0.
93952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
93953         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
93954         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
93956 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93958         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
93960 2006-09-07  Jim Meyering  <jim@meyering.net>
93962         Fix global typo in last change: use chmod u-w, not chmod u-x.
93963         Spotted by Paul Eggert and Bruce Korb.
93964         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93965         * modules/byteswap, modules/configmake, modules/fcntl:
93966         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93967         * modules/localcharset, modules/netinet_in, modules/poll:
93968         * modules/stdbool, modules/stdint, modules/sys_select:
93969         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93971 2006-09-06  Jim Meyering  <jim@meyering.net>
93973         Make generated files be read-only.
93974         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
93975         Ensure that each generated file is now read-only.
93976         * modules/argz: Likewise.
93977         * modules/arpa_inet: Likewise.
93978         * modules/byteswap: Likewise.
93979         * modules/configmake: Likewise.
93980         * modules/fcntl: Likewise.
93981         * modules/fnmatch: Likewise.
93982         * modules/getopt: Likewise.
93983         * modules/glob: Likewise.
93984         * modules/inttypes: Likewise.
93985         * modules/netinet_in: Likewise.
93986         * modules/poll: Likewise.
93987         * modules/stdbool: Likewise.
93988         * modules/stdint: Likewise.
93989         * modules/sys_select: Likewise.
93990         * modules/sys_socket: Likewise.
93991         * modules/sys_stat: Likewise.
93992         * modules/sysexits: Likewise.
93993         * modules/localcharset: Same as above, but continue using temporary
93994         file named "t-$@" (why different?) rather than the "$@-t" used
93995         everywhere else.
93997         * modules/sysexits (Makefile.am): Replace literal occurrences
93998         of "sysexit.h" more readable, and more consistent, "$@".
94000 2006-09-06  Bruno Haible  <bruno@clisp.org>
94002         * modules/striconv: New file.
94003         * modules/xstriconv: New file.
94004         * MODULES.html.sh (Internationalization functions): Add striconv,
94005         xstriconv.
94007 2006-09-06  Bruno Haible  <bruno@clisp.org>
94009         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
94010         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
94011         not using libtool correctly.
94013 2006-09-06  Bruno Haible  <bruno@clisp.org>
94015         * lib/striconv.h: New file.
94016         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
94017         iconvstring.c.
94018         * lib/xstriconv.h: New file.
94019         * lib/xstriconv.c: New file.
94021 2006-09-06  Bruno Haible  <bruno@clisp.org>
94023         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94024         lib_..._LDFLAGS.
94026 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94028         * lib/argz_.h: Sync from Libtool.
94030         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
94031                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94033         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
94035 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94037         * modules/trim: New file.
94039 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94041         * lib/trim.h: New file.
94042         * lib/trim.c: New file.
94044 2006-09-05  Bruno Haible  <bruno@clisp.org>
94046         * MODULES.html.sh (String handling): Add trim.
94048 2006-09-04  Karl Berry  <karl@gnu.org>
94050         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
94051         until next release.
94053 2006-09-03  Bruno Haible  <bruno@clisp.org>
94055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
94056         correctly.
94058 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94060         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
94061         not gl_GETLOADAVG.  Omit unneeded semicolons.
94062         Problems reported by Ralf Wildenhues in
94063         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94064         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
94065         at the end, which is the usual gnulib style.
94067         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
94068         of doing all the work ourselves.
94069         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
94070         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
94072 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94074         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
94075         Problem reported by Ralf Wildenhues in
94076         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94078         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
94079         HAVE_STRUCT_STATFS_F_FSTYPENAME.
94081 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94083         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
94084         yesterday's patch by changing test -n to test -z.
94086 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94088         * modules/getloadavg (Files): Add m4/getloadavg.m4.
94089         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
94090         the former is now obsolescent.
94092         * modules/chdir-long (Depends-on): Add fcntl.
94094 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94096         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
94097         obsolescent, and programs should use gnulib instead.
94098         * m4/getloadavg.m4: New file, with contents taken from Autoconf
94099         but with prefixes changed.
94101 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94103         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
94104         or stdbool.h, because they might not exist while configuring.
94106         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
94107         Don't include unistd.h or limits.h; not needed, since chdir-long.h
94108         does that for us.
94109         (O_DIRECTORY): Remove.
94111 2006-08-31  Eric Blake  <ebb9@byu.net>
94113         * gnulib-tool: Don't let emacs change spaces to TAB.
94115 2006-08-31  Bruno Haible  <bruno@clisp.org>
94117         * gnulib-tool: When calling func_import more than once, do it in a
94118         subshell.
94119         Reported by Eric Blake <ebb9@byu.net>.
94121 2006-08-31  Bruno Haible  <bruno@clisp.org>
94123         * gnulib-tool (nl): Remove variable.
94124         (sed_transform_lib_file): Use more robust test for config-h module.
94125         (func_import): Fix typo in 2006-08-25 patch.
94127 2006-08-31  Bruno Haible  <bruno@clisp.org>
94129         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
94130         specified, augment Makefile.am variables instead of assigning them.
94132 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94134         Work around a bug in both the Linux and SunOS 64-bit kernels:
94135         nanosleep mishandles sleeps for longer than 2**31 seconds.
94136         Problem reported by Frank v Waveren in
94137         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
94139         Check for nanosleep bug.
94140         (LIB_NANOSLEEP): Append clock_gettime library if needed.
94142 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94144         Work around a bug in both the Linux and SunOS 64-bit kernels:
94145         nanosleep mishandles sleeps for longer than 2**31 seconds.
94146         Problem reported by Frank v Waveren in
94147         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94148         * lib/nanosleep.c (BILLION): New constant.
94149         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
94150         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
94151         implementation.
94153 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94155         * modules/nanosleep (Depends-on): Add gettime.
94157 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94158         and Simon Josefsson  <jas@extundo.com>
94159         and Oskar Liljeblad  <oskar@osk.mine.nu>
94161         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
94162         * gnulib-tool (func_import): New license type 'unmodifiable license
94163         text'.
94164         * modules/fdl: Use it.  Longer description.
94165         * module/gpl, module/lgpl: New files.
94167 2006-08-30  Jim Meyering  <jim@meyering.net>
94169         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
94170         shadowing the parameter.
94172 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94174         Sync from Libtool:
94176         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94178         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
94179         sharing with gnulib.  Report by Eric Blake.
94181 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94183         * modules/isapipe: New file.
94184         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
94186 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94188         * modules/configmake (Makefile.am): Add a comment, and omit
94189         the CONFIGMAKE_ prefix from generated macro names.  Suggested
94190         by Bruno Haible.
94192 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94194         * m4/isapipe.m4: New file.
94196 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94198         * lib/isapipe.c, lib/isapipe.h: New files.
94200 2006-08-29  Jim Meyering  <jim@meyering.net>
94202         * modules/configmake (Makefile.am): Make configmake.h depend on
94203         Makefile.  Otherwise, a stale configmake.h could hang around.
94205 2006-08-29  Eric Blake  <ebb9@byu.net>
94207         * lib/error.c (error_at_line, print_errno_message): Match libc, after
94208         resolution of upstream bug 3044.
94210 2006-08-29  Bruno Haible  <bruno@clisp.org>
94212         * modules/localcharset (Depends-on): Add configmake.
94213         (Makefile.am): Remove setting of LIBDIR through DEFS.
94215 2006-08-29  Bruno Haible  <bruno@clisp.org>
94217         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
94218         defined.
94220 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94222         * modules/fcntl: New file.
94223         * modules/chdir-safer (Depends-on): Add fcntl.
94224         * modules/fts: Likewise.
94225         * modules/mkdir-p: Likewise.
94227         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
94228         This undoes the most recent change, since we're now addressing the
94229         problem in a different way.
94231         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
94232         into output, since the output might be called Makefile.am even
94233         if $makefile_name is something different.
94234         (func_import): Use $makefile_am rather than
94235         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
94236         empty.
94238         * modules/inttypes (Files): Add m4/inttypes-h.m4.
94240 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94242         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
94243         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
94244         recent change to stdint.m4, since we're now addressing the problem in a
94245         different way.
94247 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94249         * m4/fcntl_h.m4: New file.
94251 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94253         * lib/fcntl_.h: New file.
94254         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
94255         the fcntl module.
94256         * lib/dirchownmod.c: Likewise.
94257         * lib/fts.c: Likewise.
94259         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
94260         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
94261         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
94262         just before including <inttypes.h>, to avoid circular inclusion.
94264 2006-08-28  Jim Meyering  <jim@meyering.net>
94266         * doc/visibility.texi: Actually read and correct the grammar of the
94267         sentence affected by yesterday's change.
94269 2006-08-28  Eric Blake  <ebb9@byu.net>
94271         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
94272         needs wrapper.
94274 2006-08-28  Eric Blake  <ebb9@byu.net>
94276         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
94278 2006-08-28  Eric Blake  <ebb9@byu.net>
94280         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
94282 2006-08-28  Bruno Haible  <bruno@clisp.org>
94284         * modules/c-strstr: New file, from GNU gettext.
94285         * MODULES.html.sh (String handling): Add c-strstr.
94287 2006-08-28  Bruno Haible  <bruno@clisp.org>
94289         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
94290         macros.
94291         Reported by Eric Blake.
94293 2006-08-28  Bruno Haible  <bruno@clisp.org>
94295         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
94296         (VASNPRINTF): Return a string of length > INT_MAX without failing.
94297         * lib/vasprintf.c: Include errno.h, limits.h.
94298         (EOVERFLOW): New fallback definition.
94299         (vasprintf): Test here whether the string length is > INT_MAX.
94300         * lib/vsnprintf.c: Include errno.h, limits.h.
94301         (EOVERFLOW): New fallback definition.
94302         (vsnprintf): Fix bug when generated string was too long for the buffer.
94303         Test here whether the string length is > INT_MAX.
94305 2006-08-28  Bruno Haible  <bruno@clisp.org>
94307         * lib/inttypes_.h (SCNX*): Remove definitions.
94308         Reported by Eric Blake.
94310 2006-08-28  Bruno Haible  <bruno@clisp.org>
94312         * lib/c-strstr.h: New file, from GNU gettext.
94313         * lib/c-strstr.c: New file, from GNU gettext.
94315 2006-08-28  Bruno Haible  <bruno@clisp.org>
94317         * gnulib-tool: Reorder some statements.
94319 2006-08-28  Bruno Haible  <bruno@clisp.org>
94321         * gnulib-tool: New option --makefile-name.
94322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
94323         $makefile_name.
94324         (func_import): Write $makefile_name to the cache file, and read it from
94325         there unless explicitly specified. Use $makefile_name as file name
94326         instead of Makefile.am. Adjust the recommendations accordingly.
94328 2006-08-28  Bruno Haible  <bruno@clisp.org>
94330         * gnulib-tool (func_verify_module): Check against misapplying patch.
94332 2006-08-28  Bruno Haible  <bruno@clisp.org>
94334         * gnulib-tool (func_relativize, func_relconcat): New functions.
94335         Give an error if --local-dir is given with --update.
94336         Remove trailing slashes from $local_gnulib_dir.
94337         (func_import): Store the relativized $local_gnulib_dir in
94338         gnulib-cache.m4, and read it from there if not specified explicitly.
94340 2006-08-28  Bruno Haible  <bruno@clisp.org>
94342         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
94343         is the current directory. Respect also $local_gnulib_dir.
94345 2006-08-28  Bruno Haible  <bruno@clisp.org>
94346             Simon Josefsson  <jas@extundo.com>
94348         BeOS portability.
94349         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
94351 2006-08-27  Jim Meyering  <jim@meyering.net>
94353         * doc/visibility.texi: Remove duplicate word: "pointer".
94355 2006-08-26  Bruno Haible  <bruno@clisp.org>
94357         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
94358         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
94359         (Makefile.am): Create inttypes.h from inttypes_.h.
94360         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
94362         * modules/imaxabs: New file.
94364         * modules/imaxdiv: New file.
94366 2006-08-26  Bruno Haible  <bruno@clisp.org>
94368         * m4/inttypes.m4: New file.
94369         * m4/_inttypes_h.m4: Remove file.
94370         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
94371         PRI_MACROS_BROKEN.
94372         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
94374         * m4/imaxabs.m4: New file.
94376         * m4/imaxdiv.m4: New file.
94378 2006-08-26  Bruno Haible  <bruno@clisp.org>
94380         * lib/inttypes_.h: New file.
94381         * lib/inttypes.h: Remove file.
94382         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
94384         * lib/imaxabs.c: New file.
94386         * lib/imaxdiv.c: New file.
94388 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
94390         New config-h module, so that "make" output needn't be cluttered
94391         by -DHAVE_CONFIG_H.
94392         * MODULES.html.sh (Support for building libraries and executables):
94393         Add config-h.
94394         * modules/config-h: New file.
94395         * gnulib-tool (nl, sed_transform_lib_file): New vars.
94396         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
94397         the config-h module is used.
94399         New configmake module, so that "make" output needn't be cluttered
94400         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
94401         * MODULES.html.sh (Support for building libraries and executables):
94402         Add configmake.
94403         * modules/configmake: New file.
94405 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
94407         * m4/config-h.m4: New file.
94409 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94411         * config/srclist.txt: Add elisp-comp.
94413 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94415         * MODULES.html.sh (Support for building libraries and executables):
94416         Add elisp-comp.
94417         * build-aux/elisp-comp: New file.
94418         * modules/elisp-comp: New file.
94420 2006-08-24  Bruno Haible  <bruno@clisp.org>
94422         * gnulib-tool (func_create_testdir): Use non-default values of
94423         sourcebase and m4base.
94425 2006-08-24  Bruno Haible  <bruno@clisp.org>
94427         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
94428         HTML structure.
94430 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
94432         * modules/openat (Depends-on): Add lchown.
94434 2006-08-23  Bruno Haible  <bruno@clisp.org>
94436         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
94437         of gl_LOCK_EARLY instead of gl_LOCK.
94439 2006-08-23  Bruno Haible  <bruno@clisp.org>
94441         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
94442         on OSF/1 to no.
94443         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
94445 2006-08-23  Bruno Haible  <bruno@clisp.org>
94447         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
94448         as unusable.
94450         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
94451         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
94452         (gl_LOCK): New macro.
94454 2006-08-22  Simon Josefsson  <jas@extundo.com>
94456         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
94457         to md5 module.
94459 2006-08-22  Simon Josefsson  <jas@extundo.com>
94461         * MODULES.html.sh: Add "Support for maintaining and release
94462         projects".
94464         * build-aux/gnupload: New file, from coreutils.
94466 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94468         Avoid the need for AC_LIBSOURCES in m4 macros.
94469         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
94470         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
94471         * modules/check-version (EXTRA_DIST): Add check-version.h.
94472         * modules/crc (EXTRA_DIST): Add crc.h.
94473         * modules/des (EXTRA_DIST): Add des.h.
94474         * modules/gc (EXTRA_DIST): Add gc.h.
94475         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
94476         * modules/getline (EXTRA_DIST): Add getline.h.
94477         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
94478         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
94479         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
94480         * modules/md2 (EXTRA_DIST): Add md2.h.
94481         * modules/md4 (EXTRA_DIST): Add md4.h.
94482         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
94483         * modules/read-file (EXTRA_DIST): Add read-file.h.
94484         * modules/readline (EXTRA_DIST): Add readline.h.
94485         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
94486         rijndael-api-fst.h.
94488 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94490         * m4/rijndael.m4 (gl_ARCFOUR):
94491         * m4/arctwo.m4 (gl_ARCTWO):
94492         * m4/check-version.m4 (gl_CHECK_VERSION):
94493         * m4/crc.m4 (gl_CRC):
94494         * m4/des.m4 (gl_DES):
94495         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
94496         * m4/gc.m4 (gl_GC):
94497         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
94498         * m4/getline.m4 (gl_FUNC_GETLINE):
94499         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
94500         * m4/hmac-md5.m4 (gl_HMAC_MD5):
94501         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
94502         * m4/md2.m4 (gl_MD2):
94503         * m4/md4.m4 (gl_MD4):
94504         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
94505         * m4/read-file.m4 (gl_FUNC_READ_FILE):
94506         * m4/readline.m4 (gl_FUNC_READLINE):
94507         * m4/rijndael.m4 (gl_RIJNDAEL):
94508         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94509         to get the necessary .h files and whatnot.
94511 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94513         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
94514         gnulib rather than the other way around.
94515         * config/srclistvars.sh (COREUTILS): Remove.
94517 2006-08-22  Jim Meyering  <jim@meyering.net>
94519         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
94521         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
94523 2006-08-22  Eric Blake  <ebb9@byu.net>
94525         * modules/regexprops-generic: New file.
94526         * MODULES.html.sh (Support for building documentation): List it.
94528 2006-08-22  Eric Blake  <ebb9@byu.net>
94530         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
94531         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
94532         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
94533         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
94535 2006-08-22  Bruno Haible  <bruno@clisp.org>
94537         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
94538         and lib_LTLIBRARIES like the other lib_* variables.
94540 2006-08-22  Bruno Haible  <bruno@clisp.org>
94542         * build-aux/x-to-1.in: New file, from GNU gettext.
94544 2006-08-22  Bruno Haible  <bruno@clisp.org>
94546         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
94547         <utmpx.h> exists.
94549 2006-08-22  Bruno Haible  <bruno@clisp.org>
94551         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
94552         <utmpx.h> exists.
94554 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94556         BeOS portability.
94557         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
94558         exist.
94559         Problem reported by Bruno Haible.
94561 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94563         Avoid the need for AC_LIBSOURCES in m4 macros.
94564         * modules/acl (EXTRA_DIST): Add acl.h.
94565         * modules/argmatch (Files): Add m4/argmatch.m4.
94566         (configure.ac): Add gl_ARGMATCH.
94567         (EXTRA_DIST): Renamed from lib_SOURCES, for
94568         consistency with the other modules.  Remove argmatch.c.
94569         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
94570         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
94571         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
94572         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
94573         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
94574         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
94575         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
94576         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
94577         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
94578         * modules/closeout (EXTRA_DIST): Add closeout.h.
94579         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
94580         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
94581         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
94582         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
94583         dirname.h; remove basename.c and stripslash.c.
94584         * modules/exclude (EXTRA_DIST): Add exclude.h.
94585         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
94586         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
94587         * modules/file-type (EXTRA_DIST): Add file-type.h.
94588         * modules/filemode (EXTRA_DIST): Add filemode.h.
94589         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
94590         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94591         * modules/fpending (EXTRA_DIST): Add __fpending.h.
94592         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
94593         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
94594         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
94595         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
94596         * modules/getdate (EXTRA_DIST): Add getdate.c.
94597         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
94598         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
94599         * modules/getpass (EXTRA_DIST): Add getpass.h.
94600         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
94601         * modules/group-member (EXTRA_DIST): Add group-member.h.
94602         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
94603         * modules/hash (EXTRA_DIST): Add hash.h.
94604         * modules/human (EXTRA_DIST): Add human.h.
94605         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
94606         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
94607         * modules/lchown (EXTRA_DIST): Add lchown.h.
94608         * modules/long-options (EXTRA_DIST): Add long-options.h.
94609         * modules/lstat (EXTRA_DIST): Add lstat.h.
94610         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
94611         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
94612         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
94613         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
94614         * modules/memxor (EXTRA_DIST): Add memxor.h.
94615         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
94616         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
94617         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
94618         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
94619         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
94620         * modules/physmem (EXTRA_DIST): Add physmem.h.
94621         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
94622         * modules/posixver (EXTRA_DIST): Add posixver.h.
94623         * modules/quote (EXTRA_DIST): Add quote.h.
94624         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
94625         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
94626         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
94627         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
94628         regex_internal.h regexec.c.
94629         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
94630         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
94631         * modules/same (EXTRA_DIST): Add same.h.
94632         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
94633         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
94634         * modules/savedir (EXTRA_DIST): Add savedir.h.
94635         * modules/sha1 (EXTRA_DIST): Add sha1.h.
94636         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
94637         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
94638         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
94639         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
94640         * modules/strdup (EXTRA_DIST): Add strdup.h.
94641         * modules/strftime (EXTRA_DIST): Add strftime.h.
94642         * modules/strndup (EXTRA_DIST): Add strndup.h.
94643         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
94644         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
94645         * modules/time_r (EXTRA_DIST): Add time_r.h.
94646         * modules/timespec (EXTRA_DIST): Add timespec.h.
94647         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94648         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
94649         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
94650         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
94651         * modules/userspec (EXTRA_DIST): Add userspec.h.
94652         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
94653         * modules/utimens (EXTRA_DIST): Add utimens.h.
94654         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
94655         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
94656         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
94657         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
94658         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
94659         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
94660         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
94661         * modules/yesno (EXTRA_DIST): Add yesno.h.
94663 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94665         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
94667         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
94668         * m4/dev-ino.m4, same-inode.m4: Remove.
94670         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
94671         * m4/acl.m4 (AC_FUNC_ACL):
94672         * m4/backupfile.m4 (gl_BACKUPFILE):
94673         * m4/c-strtod.m4 (gl_C99_STRTOLD):
94674         * m4/canon-host.m4 (gl_CANON_HOST):
94675         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94676         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
94677         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
94678         * m4/cloexec.m4 (gl_CLOEXEC):
94679         * m4/close-stream.m4 (gl_CLOSE_STREAM):
94680         * m4/closeout.m4 (gl_CLOSEOUT):
94681         * m4/dirfd.m4 (gl_FUNC_DIRFD):
94682         * m4/dirname.m4 (gl_DIRNAME):
94683         * m4/exclude.m4 (gl_EXCLUDE):
94684         * m4/exitfail.m4 (gl_EXITFAIL):
94685         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
94686         * m4/file-type.m4 (gl_FILE_TYPE):
94687         * m4/filemode.m4 (gl_FILEMODE):
94688         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
94689         * m4/fpending.m4 (gl_FUNC_FPENDING):
94690         * m4/fprintftime.m4 (gl_FPRINTFTIME):
94691         * m4/fts.m4 (gl_FUNC_FTS):
94692         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
94693         * m4/getdate.m4 (gl_GETDATE):
94694         * m4/gethrxtime.m4 (gl_GETHRXTIME):
94695         * m4/getpagesize.m4 (gl_GETPAGESIZE):
94696         * m4/getpass.m4 (gl_FUNC_GETPASS):
94697         * m4/gettime.m4 (gl_GETTIME):
94698         * m4/getugroups.m4 (gl_GETUGROUPS):
94699         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
94700         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
94701         * m4/hard-locale.m4 (gl_HARD_LOCALE):
94702         * m4/hash.m4 (gl_HASH):
94703         * m4/idcache.m4 (gl_IDCACHE):
94704         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
94705         * m4/lchown.m4 (gl_FUNC_LCHOWN):
94706         * m4/long-options.m4 (gl_LONG_OPTIONS):
94707         * m4/lstat.m4 (gl_FUNC_LSTAT):
94708         * m4/md5.m4 (gl_MD5):
94709         * m4/memcasecmp.m4 (gl_MEMCASECMP):
94710         * m4/memcoll.m4 (gl_MEMCOLL):
94711         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
94712         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
94713         * m4/memxor.m4 (gl_MEMXOR):
94714         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
94715         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
94716         * m4/modechange.m4 (gl_MODECHANGE):
94717         * m4/mountlist.m4 (gl_MOUNTLIST):
94718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
94719         * m4/openat.m4 (gl_FUNC_OPENAT):
94720         * m4/pathmax.m4 (gl_PATHMAX):
94721         * m4/physmem.m4 (gl_PHYSMEM):
94722         * m4/posixtm.m4 (gl_POSIXTM):
94723         * m4/posixver.m4 (gl_POSIXVER):
94724         * m4/quote.m4 (gl_QUOTE):
94725         * m4/quotearg.m4 (gl_QUOTEARG):
94726         * m4/readtokens.m4 (gl_READTOKENS):
94727         * m4/readutmp.m4 (gl_READUTMP):
94728         * m4/regex.m4 (gl_REGEX):
94729         * m4/safe-read.m4 (gl_SAFE_READ):
94730         * m4/safe-write.m4 (gl_SAFE_WRITE):
94731         * m4/same.m4 (gl_SAME):
94732         * m4/save-cwd.m4 (gl_SAVE_CWD):
94733         * m4/savedir.m4 (gl_SAVEDIR):
94734         * m4/settime.m4 (gl_SETTIME):
94735         * m4/sha1.m4 (gl_SHA1):
94736         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
94737         * m4/stat-macros.m4 (gl_STAT_MACROS):
94738         * m4/stat-time.m4 (gl_STAT_TIME):
94739         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
94740         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
94741         * m4/strdup.m4 (gl_FUNC_STRDUP):
94742         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
94743         * m4/strndup.m4 (gl_FUNC_STRNDUP):
94744         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
94745         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
94746         * m4/time_r.m4 (gl_TIME_R):
94747         * m4/timespec.m4 (gl_TIMESPEC):
94748         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
94749         * m4/unlinkdir.m4 (gl_UNLINKDIR):
94750         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
94751         * m4/userspec.m4 (gl_USERSPEC):
94752         * m4/utimecmp.m4 (gl_UTIMECMP):
94753         * m4/utimens.m4 (gl_UTIMENS):
94754         * m4/xalloc.m4 (gl_XALLOC):
94755         * m4/xgetcwd.m4 (gl_XGETCWD):
94756         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
94757         * m4/xreadlink.m4 (gl_XREADLINK):
94758         * m4/xstrtod.m4 (gl_XSTRTOD):
94759         * m4/yesno.m4 (gl_YESNO):
94760         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94761         to get the necessary .h files and whatnot.
94763 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
94764             Bruno Haible  <bruno@clisp.org>
94766         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
94767         /bin/sh understanding of '!' conditional negation.
94769 2006-08-21  Jim Meyering  <jim@meyering.net>
94771         * modules/openat (Depends-on): Really alphabetize.
94773         * modules/acl (Depends-on): Add error and quote.
94775         * check-module (find_included_lib_files): Add at-func.c to the
94776         ok-to-include-more-than-once white list.
94778         * modules/openat (Depends-on): Add lstat.  Alphabetize.
94780 2006-08-21  Bruno Haible  <bruno@clisp.org>
94782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94783         Emit a pkgdata_DATA variable only if some snippets add contents to it.
94784         Reported by Martin Lambers <marlam@marlam.de>.
94786 2006-08-21  Bruno Haible  <bruno@clisp.org>
94788         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
94789         specify an installation location, don't emit a noinst_LIBRARIES or
94790         noinst_LTLIBRARIES assignment.
94792 2006-08-21  Bruno Haible  <bruno@clisp.org>
94794         BeOS portability.
94795         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
94796         BeOS has mbrtowc() but no <wctype.h>.
94798 2006-08-21  Bruno Haible  <bruno@clisp.org>
94800         BeOS portability.
94801         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
94802         exist.
94804 2006-08-21  Bruno Haible  <bruno@clisp.org>
94806         BeOS portability.
94807         * lib/mbchar.h: Include <wctype.h> only if it exists.
94809 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94811         Remove files that are no longer needed by their respective modules.
94812         * m4/obstack.m4: Remove.
94813         * m4/strerror_r.m4: Remove.
94814         * m4/uint32_t.m4: Remove.
94815         * m4/uintptr_t.m4: Remove.
94816         * m4/ullong_max.m4: Remove.
94817         * m4/xstrtoimax.m4: Remove.
94818         * m4/xstrtoumax.m4: Remove.
94820         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
94821         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
94822         dependencies now capture this.
94824         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
94825         Do not use AC_LIBSOURCES, since gnulib modules now do this.
94826         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
94827         * m4/human.m4 (gl_HUMAN): Likewise.
94828         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
94829         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
94831         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
94833         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
94834         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
94835         stdint.
94836         * m4/human.m4 (gl_HUMAN): Likewise.
94837         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
94838         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
94839         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94840         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94841         * m4/xstrtol (gl_XSTRTOL): Likewise.
94843         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
94844         AC_TYPE_LONG_LONG_INT.
94845         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94846         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
94847         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
94848         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94850         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
94851         on stdbool.
94853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
94854         (gl_PREREQ_XSTRTOUL): Remove.
94856         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
94858         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
94859         mode.
94861 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94863         Add and change modules to make it easier for coreutils to use
94864         gnulib-tool.
94865         * modules/backupfile (Files): Remove m4/d-ino.m4.
94866         (Depends-on): Add d-ino.
94867         * modules/cycle-check (Depends-on): Add stdint.
94868         (lib_SOURCES): Add cycle-check.h.
94869         * modules/d-ino: New module.
94870         * modules/d-type: New module.
94871         * modules/error (Files): Remove m4/strerror_r.m4.
94872         * modules/filemode (Files): Add m4/st_dm_mode.m4.
94873         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94874         m4/inttypes_h.m4, m4/uintmax_t.m4.
94875         (Depends-on): Add stdint.
94876         (lib_SOURCES): Add fsusage.h.
94877         * modules/getcwd (Files): Remove d-ino.m4.
94878         (Depends-on): Add d-ino.
94879         * modules/getndelim2 (Depends-on): Add stdint.
94880         * modules/glob (Files): Remove m4/d-type.m4.
94881         (Depends-on): Add d-type.
94882         * modules/host-os: New module.
94883         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
94884         m4/inttypes_h.m4, m4/uintmax_t.m4.
94885         * Depends-on: Add stdint.
94886         (lib_SOURCES): Add human.h.
94887         * modules/inttostr (Files): Remove m4/intmax_t.m4,
94888         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
94889         m4/uintmax_t.m4, m4/ulonglong.m4.
94890         (Depends-on): Add stdint.
94891         (EXTRA_DIST): Add inttostr.h.
94892         * modules/lchmod: New module.
94893         * modules/link-follow: New module.
94894         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
94895         (Depends-on): Add lchmod.
94896         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
94897         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
94898         (Depends-on): Add stdint.
94899         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
94900         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
94901         (Depends-on): Add stdint.
94902         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
94903         * modules/perl: New module.
94904         * modules/regex (Depends-on): Add stdint.
94905         * modules/rmdir-errno: New module.
94906         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
94907         m4/intmax_t.m4.
94908         (Depends-on): Add stdint.
94909         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
94910         m4/uintmax_t.m4.
94911         (Depends-on): Add stdint.
94912         * modules/unlink-busy: New module.
94913         * modules/utimecmp (Depends-on): Add stdint.
94914         * modules/uptime: New module.
94915         * modules/winsz-ioctl: New module.
94916         * modules/winsz-termios: New module.
94917         * modules/xnanosleep (Depends-on): Add nanosleep.
94918         * modules/ullong_max: Remove.
94919         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
94920         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
94921         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
94922         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
94923         (Depends-on): Add inttypes.
94924         (lib_SOURCES): Add xstrtol.h.
94925         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
94926         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
94927         * MODULES.html.sh: Move 'assert' into the assert section.
94928         Move 'dummy' into the linking section.
94929         Remove ullong_max.
94930         Add section for compatibility checks for POSIX:2001 functions,
94931         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
94932         winsz-ioctl, and winsz-termios into it.
94933         Add lchmod.
94934         Add top-level Misc section and put host-os, perl, and uptime
94935         into it.
94937 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94939         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
94940         now assume the stdint module.  Do not include inttypes.h.
94941         * lib/fsusage.h: Likewise.
94942         * lib/getndelim2.c: Likewise.
94943         * lib/human.h: Likewise.
94944         * lib/inttostr.h: Likewise.
94945         * lib/obstack.c: Likewise.
94946         * lib/regex_internal.h: Likewise.
94947         * lib/tempname.c: Likewise.
94948         * lib/utimecmp.c: Likewise.
94949         * lib/xstrtol.h: Likewise.
94951         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
94953         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
94954         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
94955         * lib/xtime.h: Likewise.
94957 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94959         * modules/openat (Files): Add lib/fchmodat.c.
94960         Fixes problem reported by Jay Youngman.
94962 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94964         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
94965         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
94967 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
94968             Bruno Haible  <bruno@clisp.org>
94970         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
94971         and is a script that invokes bison. Tighten the code. Add comments.
94973 2006-08-18  Jim Meyering  <jim@meyering.net>
94975         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
94976         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
94977         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
94978         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
94980 2006-08-18  Bruno Haible  <bruno@clisp.org>
94982         * modules/bison-i18n: New file.
94983         * MODULES.html.sh (Internationalization functions): Add it.
94985 2006-08-18  Bruno Haible  <bruno@clisp.org>
94987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
94988         sys/statvfs.h. When getmntinfo was found, check its declaration and
94989         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
94991 2006-08-18  Bruno Haible  <bruno@clisp.org>
94993         * m4/bison-i18n.m4: New file, from bison.
94995 2006-08-18  Bruno Haible  <bruno@clisp.org>
94997         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
94998         (ME_DUMMY): Treat "kernfs" as a dummy.
94999         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
95001 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95003         Update from coreutils.
95005         2006-08-15  Jim Meyering  <jim@meyering.net>
95007         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
95009         2006-01-17  Jim Meyering  <jim@meyering.net>
95011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
95013         2006-01-11  Jim Meyering  <jim@meyering.net>
95015         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
95016         Check for the lchmod function.
95018 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95020         Update from coreutils.
95022         * lib/__fpending.h: Add copyright notice.
95023         * lib/fprintftime.h: Likewise.
95024         * lib/savedir.c: Use (C) in copyright notice.
95025         * lib/savedir.h: Likewise.
95027         2006-08-15  Jim Meyering  <jim@meyering.net>
95029         * lib/at-func.c: New file, with the logic of all emulated at-functions.
95030         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
95031         in support of the EXPECTED_ERRNO macro.
95032         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
95033         definitions.  Instead, define the appropriate symbols and include
95034         "at-func.c".
95035         * lib/mkdirat.c (mkdirat): Likewise.
95036         * lib/fchmodat.c (fchmodat): Likewise.
95037         (ENOSYS): Remove definition.
95038         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
95039         it.  Don't include "unistd--.h" -- it wasn't ever used.
95041         2006-01-17  Jim Meyering  <jim@meyering.net>
95043         Rewrite fts.c not to change the current working directory,
95044         by using openat, fstatat, fdopendir, etc..
95046         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
95047         (HAVE_OPENAT_SUPPORT): Define.
95048         [_LIBC] (fchdir): Don't undef or define; no longer used.
95049         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
95050         Now, this `function' always succeeds, and consumes its file descriptor
95051         parameter -- so callers must not close such FDs.  Update callers.
95052         (diropen_fd, opendirat, cwd_advance_fd): New functions.
95053         (diropen): Add parameter, SP.  Adjust all callers.
95054         Implement using diropen_fd, rather than open.
95055         (fts_open): Initialize new member, fts_cwd_fd.
95056         Remove fts_rft-setting code.
95057         (fts_close): Close fts_cwd_fd, if necessary.
95058         (__opendir2): Define in terms of opendir or opendirat,
95059         depending on whether the FST_NOCHDIR flag is set.
95060         (fts_build): Since fts_safe_changedir consumes its FD, and since
95061         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
95062         and close the dup'd file descriptor upon failure.
95063         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
95064         (fts_safe_changedir): Tweak semantics to reflect that this function
95065         now calls cwd_advance_fd and hence consumes its FD argument.
95066         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
95067         [struct FTS] (fts_rft): Remove now-unused member.
95068         [struct FTS] (fts_cycle.state): Improve comment.
95070         * lib/openat.c (openat_needs_fchdir): New function.
95071         * lib/openat.h (openat_needs_fchdir): Declare it.
95073 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
95075         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
95076         Problem and fix reported by Pádraig Brady in
95077         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
95079 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95081         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
95083 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95085         * lib/memcoll.c (memcoll): Optimize for the common case where the
95086         arguments are bytewise equal.
95088 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95090         * doc/regexprops-generic.texi: Add a copyright notice.
95092 2006-08-15  Bruno Haible  <bruno@clisp.org>
95094         * modules/tmpdir (License): Change to LGPL.
95096 2006-08-15  Bruno Haible  <bruno@clisp.org>
95098         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
95099         module.
95101 2006-08-14  Simon Josefsson  <jas@extundo.com>
95103         * config/srclist.txt: Add gnupload.
95105 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95107         Change copyright notice from LGPL 2 to GPL 2, since that's the
95108         standard form used in the gnulib repository.
95109         * tests/test-lock.c: Likewise.
95110         * tests/test-stdint.c: Likewise.
95111         * tests/test-tls.c: Likewise.
95113         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
95114         prelude-manager.  User shorter URLs for GNU projects, without '?'.
95115         Add copyright notice.
95117         * check-module: Add copyright notice.  Output a copyright
95118         notice if "--version" is specified.
95119         * modules/COPYING: New file.
95120         * tests/test-getaddrinfo.c: Add copyright notice.
95121         * tests/test-verify.c: Likewise.
95123 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95125         Change copyright notice from LGPL 2 to GPL 2, since that's the
95126         standard form used in the gnulib repository.
95127         * lib/lock.c: LGPL -> GPL.
95128         * lib/lock.h: Likewise.
95129         * lib/strnlen1.c: Likewise.
95130         * lib/strnlen1.h: Likewise.
95131         * lib/tls.c: Likewise.
95132         * lib/tls.h: Likewise.
95133         * lib/tmpdir.c: Likewise.
95135         * lib/TODO: Remove; this belongs only in coreutils.
95137 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95139         Add copyright notices to long-enough files that lack them, since
95140         otherwise the files aren't clearly free.  Use the same notice that
95141         getdate.texi already uses.
95142         * doc/alloca-opt.texi: Add copyright notice.
95143         * doc/alloca.texi: Likewise.
95144         * doc/ctime.texi: Likewise.
95145         * doc/functions.texi: Likewise.
95146         * doc/gcd.texi: Likewise.
95147         * doc/gnulib-tool.texi: Likewise.
95148         * doc/inet_ntoa.texi: Likewise.
95149         * doc/visibility.texi: Likewise.
95151         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
95152         * doc/quote.texi: Add copyright notice.
95154         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
95155         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
95156         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
95157         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
95158         is now obsolete, and give a pointer to the Sun list.
95159         Add copyright notice.
95161 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95163         * config/srclistvars.sh: Add copyright notice.
95165 2006-08-14  Eric Blake  <ebb9@byu.net>
95167         Import the following change from libc:
95169         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
95171         Upstream bug 2997.
95172         * lib/misc/error.c: Add space between program name and message if file
95173         name is missing.
95175 2006-08-12  Karl Berry  <karl@gnu.org>
95177         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
95178         remove, these originate in gnulib now.
95180 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95182         * doc/Makefile (standards.info standards.html standards.dvi):
95183         Also depend on make-stds.texi.
95185 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
95187         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
95188         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
95190         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
95191         in wchar_t.  Problem reported by Eric Blake.
95193         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
95194         LEN is smaller than SIZE.  Suggested by Bruno Haible.
95195         Also, help the compiler to keep LEN in a register.
95197 2006-08-11  Eric Blake  <ebb9@byu.net>
95199         * users.txt: Sort.  Add tar.
95201 2006-08-11  Bruno Haible  <bruno@clisp.org>
95203         * users.txt: New file.
95205 2006-08-11  Bruno Haible  <bruno@clisp.org>
95207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
95208         before <wchar.h>. Needed for OSF/1 and BSD/OS.
95210 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95212         * modules/snprintf (Depends-on): Remove minmax.
95213         (Maintainer): Add self and Bruno.
95215 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95217         * lib/.cppi-disable: Add snprintf.h, socket_.h.
95218         * lib/snprintf.c: Include <errno.h> and <limits.h>.
95219         (EOVERFLOW): Define if the system does not.
95220         Do not include "minmax.h"; it wasn't used.
95221         (snprintf): Don't assume size_t promotes to an unsigned type.
95222         Fix bug when generated string was too long for the buffer: the
95223         buffer's contents are supposed to be the initial prefix of the
95224         output.  Don't assume vasnprintf returns EOVERFLOW if the size
95225         exceeds INT_MAX; do the check ourselves.
95227         Import the following changes from libc:
95229         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
95231         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
95232         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
95233         set wc to the byte which couldn't be converted.
95234         (re_string_reconstruct): Don't clear valid_raw_len before calling
95235         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
95236         tip_context using re_string_context_at.
95238         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
95240         * lib/posix/regex.h: g++ still cannot handled [restrict].
95242         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
95244         * lib/posix/regex.h: Remove special handling for VMS.
95246 2006-08-10  Jim Meyering  <jim@meyering.net>
95248         * modules/same-inode: New module.
95249         * modules/dev-ino: New module.
95250         * modules/cycle-check: Depend on these modules, rather than simply
95251         including their .h files.
95252         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
95253         required via m4/cycle-check.m4.
95254         * modules/same: Depend on new same-inode module, rather than
95255         including same-inode.h.
95256         * modules/chdir-safer: New file.
95258         * modules/chown (Depends-on): Add stat-macros.
95260 2006-08-10  Jim Meyering  <jim@meyering.net>
95262         * m4/cycle-check.m4: New file.
95263         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
95264         * m4/dev-ino.m4, m4/same-inode.m4: New files.
95266 2006-08-10  Eric Blake  <ebb9@byu.net>
95268         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
95269         in from original proposal.
95271 2006-08-10  Eric Blake  <ebb9@byu.net>
95272         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95274         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
95275         namespace.
95277 2006-08-10  Bruno Haible  <bruno@clisp.org>
95279         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
95280         as well.
95282 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95284         Sync from coreutils.
95286         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
95288         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
95289         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
95291 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95293         * modules/restrict: Remove; no longer needed now that we assume
95294         Autoconf 2.59 or later.
95295         * MODULES.html.sh: Remove 'restrict'.
95296         * modules/argp (Depends-on): Remove 'restrict'.
95297         * modules/base64 (Depends-on): Likewise.
95298         * modules/gc (Depends-on): Likewise.
95299         * modules/getaddrinfo (Depends-on): Likewise.
95300         * modules/glob (Depends-on): Likewise.
95301         * modules/inet_ntop (Depends-on): Likewise.
95302         * modules/inet_pton (Depends-on): Likewise.
95303         * modules/memxor (Depends-on): Likewise.
95304         * modules/regex (Depends-on): Likewise.
95305         * modules/strtok_r (Depends-on): Likewise.
95306         * modules/time_r (Depends-on): Likewise.
95308 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95310         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
95311         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
95312         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95313         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
95314         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
95315         * m4/memxor.m4 (gl_MEMXOR): Likewise.
95316         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
95317         gl_C_RESTRICT replaced by AC_C_RESTRICT.
95319         Merge from coreutils.
95320         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
95321         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
95322         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
95323         * m4/time_r.m4 (gl_TIME_R): Likewise.
95325 2006-08-09  Karl Berry  <karl@gnu.org>
95327         * config/srclist.txt: no more gettext-tools, per Bruno.
95329 2006-08-08  Eric Blake  <ebb9@byu.net>
95331         * modules/verror: New module.
95332         * MODULES.html.sh: Document it.
95334 2006-08-08  Eric Blake  <ebb9@byu.net>
95336         * lib/verror.h, lib/verror.c: New files.
95338 2006-08-08  Eric Blake  <ebb9@byu.net>
95340         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
95341         verror_at_line output complies with GNU Coding Standards even when
95342         file is NULL.
95344 2006-08-07  Bruno Haible  <bruno@clisp.org>
95346         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
95347         versions of AIX.
95348         Reported by Ralf Wildenhues.
95350 2006-08-07  Bruno Haible  <bruno@clisp.org>
95352         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
95353         in an AC_DEFUN. Needed so that the autoconf snippets can use
95354         AC_REQUIRE.
95356 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95359         Initialize pkgdata_DATA.
95360         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
95361         overriding it.
95363 2006-08-06  Eric Blake  <ebb9@byu.net>
95365         * lib/error.h: Fold in some upstream changes from glibc.
95366         * lib/error.c: Likewise.
95368 2006-08-04  Bruno Haible  <bruno@clisp.org>
95370         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95371         Make the mostlyclean-local rule depend on mostlyclean-generic.
95372         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
95374 2006-07-31  Bruno Haible  <bruno@clisp.org>
95376         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
95377         <stdlib.h>, <string.h>.
95379 2006-07-30  Bruno Haible  <bruno@clisp.org>
95381         * modules/readlink (License): Change to LGPL.
95383 2006-07-30  Bruno Haible  <bruno@clisp.org>
95385         * modules/javaversion (Makefile.am): Distribute javaversion.java and
95386         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
95387         set PKGDATADIR to point to it.
95389 2006-07-30  Bruno Haible  <bruno@clisp.org>
95391         * modules/csharpexec (configure.ac): Comment out macro invocation.
95392         * modules/javaexec (configure.ac): Likewise.
95393         * modules/javacomp-script (configure.ac): Likewise.
95395         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
95397 2006-07-30  Bruno Haible  <bruno@clisp.org>
95399         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
95400         linked-list.
95402 2006-07-30  Bruno Haible  <bruno@clisp.org>
95404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
95406 2006-07-30  Bruno Haible  <bruno@clisp.org>
95408         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95409         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
95410         get removed.
95412 2006-07-29  Bruno Haible  <bruno@clisp.org>
95414         Make it possible for gnulib-tool to work with locally modified or
95415         augmented gnulib repositories.
95416         * gnulib-tool (func_usage): Document --local-dir option.
95417         (local_gnulib_dir): New variable.
95418         Handle --local-dir option.
95419         (func_lookup_file): New function.
95420         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
95421         (func_get_description, func_get_filelist, func_get_description,
95422         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
95423         func_get_automake_snippet, func_get_include_directive,
95424         func_get_license, func_get_maintainer): Use func_lookup_file.
95425         (func_import, func_create_testdir): Use func_lookup_file.
95427 2006-07-29  Bruno Haible  <bruno@clisp.org>
95429         * modules/setenv (Depends-on): Add unistd.
95431 2006-07-29  Bruno Haible  <bruno@clisp.org>
95433         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
95435 2006-07-29  Bruno Haible  <bruno@clisp.org>
95437         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
95439 2006-07-29  Bruno Haible  <bruno@clisp.org>
95441         * gnulib-tool (import, update): If there is no Makefile.am, look at
95442         aclocal.m4, instead of bailing out.
95444 2006-07-29  Bruno Haible  <bruno@clisp.org>
95446         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
95447         Categorize the options by when they are useful.
95449 2006-07-29  Bruno Haible  <bruno@clisp.org>
95451         * gnulib-tool (func_usage): Document option --no-libtool.
95452         Handle option --no-libtool.
95453         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
95454         for changed semantics of $libtool variable.
95455         (func_import): Likewise. If libtool is not used, show this through
95456         an option --no-libtool.
95457         (func_create_testdir): Update.
95459 2006-07-29  Bruno Haible  <bruno@clisp.org>
95461         * gnulib-tool (func_import): Extend error message about missing
95462         --doc-base.
95464 2006-07-29  Bruno Haible  <bruno@clisp.org>
95466         * gnulib-tool (func_import): Don't create the $docbase directory if
95467         there is no file to store there.
95469 2006-07-29  Bruno Haible  <bruno@clisp.org>
95471         * gnulib-tool (autoconf_minversion): If a --dir option is given and
95472         relevant, look for configure.ac there, not in the current directory.
95473         Also use a simple search for AC_PREREQ, not "autoconf --trace".
95475 2006-07-29  Bruno Haible  <bruno@clisp.org>
95477         * gnulib-tool (SORT): New variable.
95478         (func_usage): Undocument --assume-autoconf option.
95479         Remove --assume-autoconf option handling.
95480         (autoconf_minversion): Determine from the contents of configure.ac.
95481         (func_import): Remove autoconf_minversion handling.
95482         Suggested by Eric Blake.
95484 2006-07-29  Bruno Haible  <bruno@clisp.org>
95486         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
95488 2006-07-29  Bruno Haible  <bruno@clisp.org>
95490         * config/srclist.txt (*setenv.[ch]): Remove rules.
95492 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95494         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
95496 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95498         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
95499         arpa/inet.h.
95501 2006-07-28  Simon Josefsson  <jas@extundo.com>
95503         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
95504         * modules/inet_pton (Depends-on): Likewise.
95506 2006-07-28  Simon Josefsson  <jas@extundo.com>
95508         * m4/netinet_in_h.m4: New file.
95510 2006-07-28  Simon Josefsson  <jas@extundo.com>
95512         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
95513         #include's.
95515 2006-07-28  Simon Josefsson  <jas@extundo.com>
95517         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
95518         #include's.
95520 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
95522         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
95523         setgid on directories only if they set these bits.
95524         * lib/modechange.h: Remove obsolete comment about masks.
95526 2006-07-28  Eric Blake  <ebb9@byu.net>
95528         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
95529         macro expansion.
95531 2006-07-28  Bruno Haible  <bruno@clisp.org>
95533         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
95535 2006-07-28  Bruno Haible  <bruno@clisp.org>
95537         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
95539 2006-07-28  Bruno Haible  <bruno@clisp.org>
95541         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95542         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95543         Define fallbacks.
95544         Avoids link error on FreeBSD 4.x.
95545         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95547         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
95548         encoding.
95549         * lib/mbswidth.c (iswcntrl): Likewise.
95551 2006-07-27  Bruno Haible  <bruno@clisp.org>
95553         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
95554         test.
95556 2006-07-27  Bruno Haible  <bruno@clisp.org>
95558         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
95559         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
95560         defined.
95562 2006-07-26  Eric Blake  <ebb9@byu.net>
95564         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
95566 2006-07-26  Eric Blake  <ebb9@byu.net>
95568         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
95569         like mingw that lack mkstemp.
95570         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
95571         avoid compilation warning on mingw.
95573 2006-07-26  Bruno Haible  <bruno@clisp.org>
95575         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
95576         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
95577         INT_FAST*_MIN, INTPTR_MIN.
95579 2006-07-25  Bruno Haible  <bruno@clisp.org>
95581         * modules/version-etc (Depends-on): Add stdarg.
95583 2006-07-25  Bruno Haible  <bruno@clisp.org>
95585         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
95586         complex commands.
95588 2006-07-25  Bruno Haible  <bruno@clisp.org>
95590         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
95591         defined in <stdarg.h> or config.h.
95593 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95595         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
95596         (gl_STDIO_SAFER): Remove.
95598 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95600         * MODULES.html.sh (File stream based Input/Output):
95601         Add fopen-safer, tmpfile-safer; remove stdio-safer.
95602         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
95603         * modules/fopen-safer, modules/tmpfile-safer: New files.
95604         * modules/stdio-safer: Remove.
95606 2006-07-24  Bruno Haible  <bruno@clisp.org>
95608         * modules/tmpdir: New file.
95609         * MODULES.html.sh (File system functions): Add it.
95611 2006-07-24  Bruno Haible  <bruno@clisp.org>
95613         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
95614         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
95616 2006-07-24  Bruno Haible  <bruno@clisp.org>
95618         * modules/clean-temp: New file.
95620 2006-07-24  Bruno Haible  <bruno@clisp.org>
95622         * m4/tmpdir.m4: New file, from GNU gettext.
95624 2006-07-24  Bruno Haible  <bruno@clisp.org>
95626         * lib/tmpdir.h: New file, from GNU gettext.
95627         * lib/tmpdir.c: New file, from GNU gettext.
95629 2006-07-24  Bruno Haible  <bruno@clisp.org>
95631         * lib/clean-temp.h: New file, from GNU gettext.
95632         * lib/clean-temp.c: New file, from GNU gettext.
95634 2006-07-23  Eric Blake  <ebb9@byu.net>
95636         * modules/stdio-safer (Files): Add tmpfile-safer.c.
95637         (Depends-on): Add binary-io.
95639 2006-07-23  Eric Blake  <ebb9@byu.net>
95641         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
95643 2006-07-23  Eric Blake  <ebb9@byu.net>
95645         * lib/tmpfile-safer.c: New file.
95646         * lib/stdio-safer.h (fopen_safer): Add prototype.
95647         * lib/stdio--.h (tmpfile): Make safer.
95649 2006-07-23  Bruno Haible  <bruno@clisp.org>
95651         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
95652         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
95653         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
95654         gl_linked_remove_at): Use it.
95656 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95657         and Simon Josefsson <jas@extundo.com>
95659         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
95661         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
95663 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95665         * modules/close-stream: New file.
95666         * modules/closeout (Description): Make it clear that it exits
95667         with a diagnostic on error.
95668         (Depends-on): Add close-stream.  Remove fpending, stdbool.
95669         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
95671 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95673         * m4/close-stream.m4: New file.
95675 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95677         * lib/close-stream.c, lib/close-stream.h: New files.
95679 2006-07-22  Bruno Haible  <bruno@clisp.org>
95681         Merge from GNU gettext 0.15.
95683         2006-05-01  Bruno Haible  <bruno@clisp.org>
95685                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
95687         2006-07-22  Bruno Haible  <bruno@clisp.org>
95689                 * modules/javaversion: New file.
95690                 * MODULES.html.sh (Java): Add javaversion.
95692         2006-03-12  Bruno Haible  <bruno@clisp.org>
95694                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
95696         2005-12-04  Bruno Haible  <bruno@clisp.org>
95698                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
95699                 (untested).
95701         2006-06-21  Bruno Haible  <bruno@clisp.org>
95703                 Avoid warnings from recent versions of mcs.
95704                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
95705                 -o, -L, -r any more. Use options documented since mcs-1.0
95706                 instead. Similarly for -g.
95708         2005-12-04  Bruno Haible  <bruno@clisp.org>
95710                 * build-aux/csharpcomp.sh.in: Suffix for resources is
95711                 .resources, not .resource.
95713         2005-07-09  Bruno Haible  <bruno@clisp.org>
95715                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
95716                 add a .dll suffix.
95717                 Reported by Mark Junker <mjscod@gmx.de>.
95719         2006-07-22  Bruno Haible  <bruno@clisp.org>
95721                 * modules/gettext: Upgrade to gettext-0.15.
95722                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
95723                 m4/visibility.m4.
95724                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
95726 2006-07-22  Bruno Haible  <bruno@clisp.org>
95728         Merge from GNU gettext 0.15.
95730         2006-03-25  Bruno Haible  <bruno@clisp.org>
95732                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
95734         2006-07-21  Bruno Haible  <bruno@clisp.org>
95736                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
95737                 "1.1".
95739         2006-05-09  Bruno Haible  <bruno@clisp.org>
95741                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
95742                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
95743                 for the conftestver execution.
95745         2006-05-01  Bruno Haible  <bruno@clisp.org>
95747                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
95748                 optional target-version argument. Verify that the compiler
95749                 groks source of the specified source-version, or add -source
95750                 option as necessary. Verify that the compiler produces
95751                 bytecode in the specified target-version, or add -target and
95752                 -source options as necessary. Make the result of the test
95753                 available as variable CONF_JAVAC. Also log error output in
95754                 config.log.
95756         2006-03-11  Bruno Haible  <bruno@clisp.org>
95758                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
95760         2006-05-09  Bruno Haible  <bruno@clisp.org>
95762                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
95763                 CLASSPATH_SEPARATOR to a semicolon.
95765         2006-03-12  Bruno Haible  <bruno@clisp.org>
95767                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
95768                 available as variable CONF_JAVA, for subsequent autoconf
95769                 tests. Also log error output in config.log.
95771         2006-07-19  Bruno Haible  <bruno@clisp.org>
95773                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
95774                 that getline works on glibc2 systems. Needed to avoid trouble
95775                 in relocatable.c.
95776                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
95778         2005-12-04  Bruno Haible  <bruno@clisp.org>
95780                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
95781                 launcher (untested).
95783         2005-12-04  Bruno Haible  <bruno@clisp.org>
95785                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
95787         2006-07-22  Bruno Haible  <bruno@clisp.org>
95789                 * gettext.m4: Update from GNU gettext-0.15.
95790                 * nls.m4: Likewise.
95791                 * po.m4: Likewise.
95792                 * inttypes-pri.m4: Likewise.
95793                 * inttypes-h.m4: Renamed from inttypes.m4.
95794                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
95796 2006-07-22  Bruno Haible  <bruno@clisp.org>
95798         Merge from GNU gettext 0.15.
95800         2005-07-05  Bruno Haible  <bruno@clisp.org>
95802                 * printf-args.c (printf_fetchargs): Work around broken
95803                 definition of wint_t on mingw.
95805         2005-02-12  Bruno Haible  <bruno@clisp.org>
95807                 * xallocsa.h: Add extern "C" for C++.
95809         2006-05-17  Bruno Haible  <bruno@clisp.org>
95811                 Cygwin portability.
95812                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
95814         2006-04-30  Bruno Haible  <bruno@clisp.org>
95816                 * progreloc.c: Include <mach-o/dyld.h> if available.
95817                 (find_executable): Use _NSGetExecutablePath when possible.
95819         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95821                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
95822                 function.
95824         2005-12-29  Bruno Haible  <bruno@clisp.org>
95826                 * progreloc.c (set_program_name_and_installdir): Fix
95827                 compilation error.
95829         2005-12-04  Bruno Haible  <bruno@clisp.org>
95831                 Cygwin portability.
95832                 * progreloc.c: Include <windows.h> also on Cygwin.
95833                 (find_executable): Add support for Cygwin.
95834                 (set_program_name_and_installdir): Handle also platforms with
95835                 nonempty EXEEXT.
95837         2006-07-11  Bruno Haible  <bruno@clisp.org>
95839                 * javacomp.c: Fix a comment.
95840                 Reported by Jim Meyering.
95842         2006-04-30  Bruno Haible  <bruno@clisp.org>
95844                 * javacomp.h (compile_java_class): Add source_version,
95845                 target_version arguments.
95846                 * javacomp.c: Rewritten to choose only a compiler that
95847                 respects the specified source_version and target_version.
95849         2006-06-27  Bruno Haible  <bruno@clisp.org>
95851                 Assume correct S_ISDIR macro.
95852                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
95854         2006-07-22  Bruno Haible  <bruno@clisp.org>
95856                 * javaversion.h: New file, from GNU gettext.
95857                 * javaversion.c: New file, from GNU gettext.
95858                 * javaversion.java: New file, from GNU gettext.
95859                 * javaversion.class: New file, from GNU gettext.
95861         2006-05-17  Bruno Haible  <bruno@clisp.org>
95863                 Cygwin portability.
95864                 * javaexec.c (execute_java_class): Test for jview program
95865                 also on Cygwin.
95867         2006-04-09  Bruno Haible  <bruno@clisp.org>
95869                 * fatal-signal.c: Don't include string.h.
95870                 (at_fatal_signal): Use a copying loop instead of memcpy.
95872         2005-12-04  Bruno Haible  <bruno@clisp.org>
95874                 * csharpexec.c: Add support for 'clix' launcher (untested).
95875                 (execute_csharp_using_sscli): New function.
95876                 (execute_csharp_program): Call it.
95878         2006-06-21  Bruno Haible  <bruno@clisp.org>
95880                 Avoid warnings from recent versions of mcs.
95881                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
95882                 -o, -L, -r any more. Use options documented since mcs-1.0
95883                 instead. Similarly for -g.
95885         2005-07-09  Bruno Haible  <bruno@clisp.org>
95887                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
95888                 add a .dll suffix.
95889                 Reported by Mark Junker <mjscod@gmx.de>.
95891         2006-06-17  Bruno Haible  <bruno@clisp.org>
95893                 * config.charset: Update for NetBSD 3.0.
95895         2006-05-17  Bruno Haible  <bruno@clisp.org>
95897                 Cygwin portability.
95898                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
95900         2006-05-16  Bruno Haible  <bruno@clisp.org>
95902                 * localcharset.c [CYGWIN]: Include <windows.h>.
95903                 (get_charset_aliases): For Cygwin, return the same CPxxx
95904                 aliases list as under WIN32.
95905                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
95906                 the environment variables. Fall back to GetACP().
95908         2006-04-05  Bruno Haible  <bruno@clisp.org>
95910                 * config.charset: Update Juan Manuel Guerrero's address.
95912         2005-02-12  Bruno Haible  <bruno@clisp.org>
95914                 * allocsa.h: Add extern "C" for C++.
95916         2005-02-10  Bruno Haible  <bruno@clisp.org>
95918                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
95919                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
95921         2006-07-22  Bruno Haible  <bruno@clisp.org>
95923                 * gettext.h: Update to GNU gettext-0.15.
95925 2006-07-22  Bruno Haible  <bruno@clisp.org>
95927         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
95928         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
95929         lib-prefix.m4, longdouble.m4, ssize_t.m4.
95931 2006-07-21  Eric Blake  <ebb9@byu.net>
95933         * modules/stdlib-safer: New file.
95934         * MODULES.html.sh (File stream based Input/Output): Add
95935         stdlib-safer.
95937 2006-07-21  Eric Blake  <ebb9@byu.net>
95939         * lib/stdlib-safer.h: New file from coreutils, required by
95940         stdlib--.h.
95942 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
95944         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
95946 2006-07-20  Bruno Haible  <bruno@clisp.org>
95948         * gnulib-tool: Recognize new option --assume-autoconf.
95949         (autoconf_minversion): New variable.
95950         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
95952 2006-07-20  Bruno Haible  <bruno@clisp.org>
95954         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
95956 2006-07-19  Derek R. Price  <derek@ximbiot.com>
95958         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
95959         Reindent and repaginate.
95961 2006-07-19  Derek Price  <derek@ximbiot.com>
95963         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
95964         Correct grammar.
95966 2006-07-17  Bruno Haible  <bruno@clisp.org>
95968         * modules/list: New file.
95969         * modules/array-list: New file.
95970         * modules/carray-list, modules/carray-list-tests: New files.
95971         * modules/linked-list, modules/linked-list-tests: New files.
95972         * modules/avltree-list, modules/avltree-list-tests: New files.
95973         * modules/rbtree-list, modules/rbtree-list-tests: New files.
95974         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
95975         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
95976         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
95977         * modules/oset: New file.
95978         * modules/array-oset: New file.
95979         * modules/avltree-oset, modules/avltree-oset-tests: New files.
95980         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
95981         * tests/test-carray_list.c: New file.
95982         * tests/test-linked_list.c: New file.
95983         * tests/test-avltree_list.c: New file.
95984         * tests/test-rbtree_list.c: New file.
95985         * tests/test-linkedhash_list.c: New file.
95986         * tests/test-avltreehash_list.c: New file.
95987         * tests/test-rbtreehash_list.c: New file.
95988         * tests/test-avltree_oset.c: New file.
95989         * tests/test-rbtree_oset.c: New file.
95990         * MODULES.html.sh (Container data structures): New section.
95992 2006-07-17  Bruno Haible  <bruno@clisp.org>
95994         * m4/gl_list.m4: New file.
95996 2006-07-17  Bruno Haible  <bruno@clisp.org>
95998         * lib/gl_list.h: New file.
95999         * lib/gl_list.c: New file.
96000         * lib/gl_array_list.h: New file.
96001         * lib/gl_array_list.c: New file.
96002         * lib/gl_carray_list.h: New file.
96003         * lib/gl_carray_list.c: New file.
96004         * lib/gl_linked_list.h: New file.
96005         * lib/gl_linked_list.c: New file.
96006         * lib/gl_anylinked_list1.h: New file.
96007         * lib/gl_anylinked_list2.h: New file.
96008         * lib/gl_avltree_list.h: New file.
96009         * lib/gl_avltree_list.c: New file.
96010         * lib/gl_anyavltree_list1.h: New file.
96011         * lib/gl_anyavltree_list2.h: New file.
96012         * lib/gl_rbtree_list.h: New file.
96013         * lib/gl_rbtree_list.c: New file.
96014         * lib/gl_anyrbtree_list1.h: New file.
96015         * lib/gl_anyrbtree_list2.h: New file.
96016         * lib/gl_anytree_list1.h: New file.
96017         * lib/gl_anytree_list2.h: New file.
96018         * lib/gl_linkedhash_list.h: New file.
96019         * lib/gl_linkedhash_list.c: New file.
96020         * lib/gl_anyhash_list1.h: New file.
96021         * lib/gl_anyhash_list2.h: New file.
96022         * lib/gl_avltreehash_list.h: New file.
96023         * lib/gl_avltreehash_list.c: New file.
96024         * lib/gl_rbtreehash_list.h: New file.
96025         * lib/gl_rbtreehash_list.c: New file.
96026         * lib/gl_anytreehash_list1.h: New file.
96027         * lib/gl_anytreehash_list2.h: New file.
96029         * lib/gl_oset.h: New file.
96030         * lib/gl_oset.c: New file.
96031         * lib/gl_array_oset.h: New file.
96032         * lib/gl_array_oset.c: New file.
96033         * lib/gl_avltree_oset.h: New file.
96034         * lib/gl_avltree_oset.c: New file.
96035         * lib/gl_rbtree_oset.h: New file.
96036         * lib/gl_rbtree_oset.c: New file.
96037         * lib/gl_anytree_oset.h: New file.
96039 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96041         * m4/mkancesdirs.m4: New file.
96042         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
96043         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
96044         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
96045         it.
96047 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96049         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
96050         * lib/mkancesdirs.h: New files.
96051         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
96052         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
96053         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
96054         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
96055         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
96056         callers changed.  Revamp internals significantly, by not
96057         attempting to create directories that are temporarily more
96058         permissive than the final results.  Do not attempt to use
96059         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
96060         This removes some race conditions, fixes some bugs, and simplifies
96061         things.  Use new dirchownmod function to do owner and mode changes.
96062         * lib/mkdir-p.h: Likewise.
96063         * lib/modechange.c (octal_to_mode): New function.
96064         (struct mode_change): New member mentioned.
96065         (make_node_op_equals): New arg mentioned.  All callers changed.
96066         (mode_compile): Keep track of which mode bits the user has explicitly
96067         mentioned.
96068         (mode_adjust): New arg DIR, so that we implement the X op correctly.
96069         New arg PMODE_BITS, to keep track of which mode bits the user
96070         mentioned; it treats S_ISUID and S_ISGID speciall.
96071         All callers changed.
96072         * lib/modechange.h: Likewise.
96074 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96076         * MODULES.html.sh: Add mkancestors.
96077         * modules/mkancesdirs: New module.
96078         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
96079         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
96080         The chdir-safer and afs files are now orphans; I'll remove them
96081         unless someone speaks up.
96082         Add lib/dirchownmod.c, lib/dirchownmod.h.
96083         (Depends-on): Remove alloca, chown, save-cwd, dirname.
96084         Add lchown, mkancesdirs.
96085         (Maintainer): Add self.
96087 2006-07-15  Karl Berry  <karl@gnu.org>
96089         * gnulib-tool: help message wording/arrangement.
96091 2006-07-14  Simon Josefsson  <jas@extundo.com>
96093         * doc/gnulib.texi (Libtool and Windows): New section.
96095 2006-07-12  Simon Josefsson  <jas@extundo.com>
96097         * modules/gendocs (License): Fix license, approved by Karl.
96099 2006-07-12  Eric Blake  <ebb9@byu.net>
96101         * MODULES.html.sh: Add gendocs.
96103 2006-07-11  Eric Blake  <ebb9@byu.net>
96105         * modules/fdl: New module, to install doc/fdl.texi.
96106         * MODULES.html.sh: Add new section for documentation modules.
96107         * gnulib-tool: Avoid space-tab.
96108         (--doc-base): New option, to manage files from doc.
96110 2006-07-11  Eric Blake  <ebb9@byu.net>
96112         * m4/absolute-header.m4: Fix comments to match recent change.
96114 2006-07-11  Eric Blake  <ebb9@byu.net>
96116         * gnulib-tool: List --doc-base before --tests-base.
96118 2006-07-11  Derek R. Price  <derek@ximbiot.com>
96120         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
96122 2006-07-11  Bruno Haible  <bruno@clisp.org>
96124         * README: Mention where to put documentation.
96126 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96128         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
96130 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
96133         to stdint.m4.
96135 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96137         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
96138         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
96139         "no/such/file/stdint.h" when there is no such file, so that
96140         the resulting C code can be parsed by dodgy compilers.
96141         Problems reported by Bob Proulx.
96143 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96145         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
96146         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96147         macros into the GNU _D_EXACT_NAMLEN.
96148         * lib/savedir.c:  Likewise.
96149         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
96151 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96152         and Paul Eggert  <eggert@cs.ucla.edu>
96154         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
96155         * m4/savedir.m4:
96156         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96157         macros into the GNU _D_EXACT_NAMLEN.
96159 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96161         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
96162         around the absolute name, to work around a problem with the HP-UX
96163         11.23 native C compiler, reported by Bob Proulx.
96165 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96167         * doc/maintain.texi, make-stds.texi: Sync from
96168         <http://savannah.gnu.org/projects/gnustandards>.
96170 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96172         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
96174 2006-07-09  Jim Meyering  <jim@meyering.net>
96176         * m4/glob.m4: Remove a doubled word in a comment.
96178 2006-07-09  Jim Meyering  <jim@meyering.net>
96180         * lib/argp-pv.c: Remove a doubled word in a comment.
96181         * lib/check-version.c (check_version): Likewise.
96182         * lib/javacomp.c (compile_java_class): Likewise.
96184 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
96186         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
96187         for the benefit of people using Autoconf 2.60.  If you want to
96188         support older Autoconf versions you can copy m4/onceonly_2_57.m4
96189         (or m4/onceonly.m4, if pre-2.57) manually.
96191 2006-07-08  Jim Meyering  <jim@meyering.net>
96193         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
96194         comment.
96195         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
96196         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
96197         comment.
96199 2006-07-08  Jim Meyering  <jim@meyering.net>
96201         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
96203 2006-07-07  Simon Josefsson  <jas@extundo.com>
96205         * tests/test-crc.c: Change expected crc value, the test vector
96206         were probably computed using the old broken crc.c?
96208 2006-07-06  Simon Josefsson  <jas@extundo.com>
96210         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
96211         now the canonical place for the M4 file).
96213         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
96214         from the sys_socket dependency now.
96216         * modules/inet_pton (Files): Ditto.
96218         * modules/inet_ntop (Files): Ditto.
96220 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96222         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
96223         not gl_PREREQ_GETUSERSHELL.
96225 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96227         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
96228         with only one argument, for Autoconf 2.60.
96229         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
96230         expand to nothing, so add a shell command to avoid syntax error.
96231         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
96233 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96235         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
96237 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96239         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
96240         no longer needed.  Check for isblank decl.
96241         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
96242         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
96243         of existence.
96245 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96247         * lib/getloadavg.c: Use __VMS, not VMS.
96248         * lib/getopt.c: Likewise.
96249         * lib/getpagesize.h: Likewise.
96250         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
96251         and probably does not work.
96253 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96255         * lib/.cppi-disable: Add wcwidth.
96256         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
96257         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
96258         (ISGRAPH): Remove.  All uses changed to isgraph.
96259         (FOLD) [!defined _LIBC]: Remove special case.
96260         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
96261         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
96262         HAVE_ISBLANK.
96263         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
96264         case.
96266 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96268         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
96269         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
96270         brackets.  Other minor changes to suppress some compiler
96271         warnings.
96273 2006-07-06  Derek R. Price  <derek@ximbiot.com>
96274         and Paul Eggert  <eggert@cs.ucla.edu>
96276         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
96277         of invoking obsolescent AC_HEADER_DIRENT macro.
96278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
96279         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
96280         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
96281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
96282         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
96283         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96284         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
96285         * m4/readdir.m4: Remove; no longer needed.
96287 2006-07-06  Derek R. Price  <derek@ximbiot.com>
96288         and Paul Eggert  <eggert@cs.ucla.edu>
96290         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
96291         Don't worry about this obsolete case any more.
96292         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
96293         directories.
96294         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
96295         worry about this obsolete case any more.
96296         * lib/fts.c: Likewise.
96297         * lib/getcwd.c: Likewise.
96298         * lib/glob.h: Likewise.
96299         * lib/savedir.c: Likewise.
96301 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96303         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
96304         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
96305         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
96306         needed.
96307         All uses removed.
96308         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96309         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
96310         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
96311         needed.
96312         * m4/getdate.m4 (gl_GETDATE): Likewise.
96313         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
96314         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
96315         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
96316         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96317         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
96318         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
96319         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
96320         needed.
96322 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96324         * lib/memcasecmp.c: Include <limits.h>.
96325         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
96326         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
96327         Don't assume isdigit succeeds only on '0' through '9'.
96329 2006-07-05  Eric Blake  <ebb9@byu.net>
96331         * modules/getaddrinfo (Depends-on): Add snprintf.
96333 2006-07-05  Eric Blake  <ebb9@byu.net>
96335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
96336         to avoid 'header present but could not be compiled' on cygwin.
96338 2006-07-05  Eric Blake  <ebb9@byu.net>
96340         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
96341         missing from netdb.h.
96342         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
96344 2006-07-05  Derek R. Price  <derek@ximbiot.com>
96346         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
96347         no longer needed.
96348         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
96349         * m4/getdate.m4 (gl_GETDATE): Likewise.
96350         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
96351         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
96352         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
96353         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96354         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
96356 2006-07-05  Derek R. Price  <derek@ximbiot.com>
96358         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
96359         All uses of is_space replaced by isspace.
96360         * lib/exit.h: Don't talk about STDC_HEADERS.
96361         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
96362         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
96363         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
96364         replaced by isprint etc.
96365         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
96366         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
96367         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
96368         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
96369         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
96370         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
96372 2006-07-05  Bruno Haible  <bruno@clisp.org>
96374         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
96375         the function exists, before testing against AIX.
96376         Reported by Martin Lambers <marlam@marlam.de>.
96378 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
96380         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
96381         From Mark D. Baushke.
96383 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
96385         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
96386         to the absolute name, not just one, to bypass Sun C 5.8's
96387         "warning: #include of /usr/include/... may be non-portable".
96389 2006-07-04  Eric Blake  <ebb9@byu.net>
96391         * modules/dirname-tests: New test module.
96392         * tests/test-dirname.c: New file, replacing dirname.c
96393         TEST_DIRNAME section that was recently deleted.
96395 2006-07-04  Bruno Haible  <bruno@clisp.org>
96397         Assume ANSI C header files and <ctype.h> functions.
96398         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
96399         (mbsnwidth): Use isprint, iscntrl instead.
96401 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96403         Merge from coreutils.
96404         * MODULES.html.sh: Add xstrtold.
96405         * modules/xstrtold: New file.
96406         * modules/cycle-check (Files): Add lib/same-inode.h.
96407         * modules/dirname (Files): Add m4/double-slash-root.m4.
96408         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
96409         * modules/mkdir-p (Files): Add lib/same-inode.h.
96410         * modules/same (Files): Add lib/same-inode.h.
96412 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96414         * m4/absolute-header.m4: Renamed from full-header-path.m4.
96415         This is to keep the terminology clean; POSIX talks about
96416         "absolute pathnames", not "full pathnames", but the GNU
96417         Coding Standards say to use "path" for something else;
96418         so use "absolute" to keep both sides happy.
96419         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
96420         Set gl_absolute_header, not gl_full_header_path.
96421         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
96422         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
96423         All uses changed.
96425         Merge from coreutils.
96427         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96429         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
96430         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
96431         want to require the building of c-strtod.o.
96432         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
96433         needs -lm directly.
96434         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
96436         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96438         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
96439         --as-needed option if available.  Problem reported by Albert Chin in
96440         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
96441         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
96442         cc merely issues a bunch of annoying warnings for --as-needed
96443         (this problem was reported by Bob Proulx).  Also, try linking with
96444         -lm to detect a bug in binutils 2.16 (this problem was reported
96445         by Ralf Wildenhues).
96447         2006-06-18  Jim Meyering  <jim@meyering.net>
96449         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
96450         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
96451         macro.
96452         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
96453         also check for glibc-2.4's abort-inducing bug.
96455         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
96456         Low-probability clean-up should be to use rmdir to get rid of
96457         the just-created directory, not unlink.
96459         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
96460         configure fail, and request a bug report to inform us about it.
96461         Add a comment that, barring reports to the contrary, in 2007 we'll
96462         assume ftruncate is universally available.
96464         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96466         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
96468         2006-03-12  Jim Meyering  <jim@meyering.net>
96470         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
96471         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
96472         * m4/same.m4 (gl_SAME): Likewise.
96473         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
96475         2006-03-11  Eric Blake  <ebb9@byu.net>
96477         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
96478         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
96479         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
96480         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
96482 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96484         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
96485         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
96486         reported by Mark D. Baushke, one in
96487         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
96489         Merge from coreutils.
96491         * lib/.cppi-disable: Add stdint_.h.
96492         * lib/.cvsignore: Add stdint.h.
96494         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96496         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
96497         both double and long double versions.
96498         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
96499         * lib/xstrtold.c: New file.
96500         * lib/xstrtod.h (xstrtold): New decl.
96502         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
96504         * lib/filemode.c (setst): Remove.
96505         (strmode): Rewrite to avoid setst.  This makes the code shorter,
96506         (arguably) clearer, and the generated code is a bit smaller on my
96507         Debian GNU/Linux stable x86 host.
96509         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96511         * lib/filemode.c: Include "filemode.h" first, to test the interface.
96512         Assume that filemode.h includes sys/types.h and sys/stat.h.
96513         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
96514         (ftypelet): Reorder to put common cases first, for efficiency.
96515         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
96516         to do 'M'.
96517         (strmode): Renamed from mode_string, and now stores 12 bytes instead
96518         of 10, for compatibility with FreeBSD.  All callers changed.
96519         (filemodestring): Now stores 12 bytes instead of 10, and sets file
96520         types that can't be deduced solely from st_mode.  First arg is now a
96521         const pointer.
96522         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
96523         (strmode): Renamed from mode_string.
96524         (filemodestring): New decl.
96525         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
96526         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
96527         needed.
96528         (S_ISPORT, S_ISWHT): New macros, if not already defined.
96530         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
96532         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
96533         fsusage.h now does that.  Include fsusage.h first, to test interface.
96534         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
96535         at most one method (the old code could have generated decls that
96536         didn't conform to C89, not that this was ever exercised).
96537         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
96539         2006-03-19  Jim Meyering  <jim@meyering.net>
96541         Work even in a chroot where d_ino values for entries in "/"
96542         don't match the stat.st_ino values for the same names.
96543         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
96544         number, iterate through all entries again, using lstat instead.
96545         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
96546         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
96548         * lib/getcwd.c (__getcwd): Clarify a comment.
96549         Use memcpy in place of a call to strcpy.
96551         2006-03-12  Jim Meyering  <jim@meyering.net>
96553         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
96554         matches that of the current directory (which we're about to chdir ".."
96555         out of), then save the dev-ino of the parent, instead.
96557         * lib/same-inode.h (SAME_INODE): New file/macro.
96558         * lib/chdir-safer.c (SAME_INODE): Remove definition.
96559         Include "same-inode.h", instead.
96560         * lib/same.c: Likewise.
96561         * lib/cycle-check.h: Include "same-inode.h".
96562         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
96563         * lib/cycle-check.c (SAME_INODE): Remove definition.
96564         * lib/root-dev-ino.h: Include "same-inode.h".
96566         2006-03-11  Eric Blake  <ebb9@byu.net>
96568         * lib/same.c (same_name): s/base_name/last_component/
96569         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
96570         * lib/filenamecat.c (file_name_concat): Likewise.
96572         2006-03-11  Eric Blake  <ebb9@byu.net>,
96573                     Paul Eggert  <eggert@cs.ucla.edu>
96575         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
96576         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
96577         drive prefix.
96578         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
96579         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
96580         (last_component): New method.
96581         * lib/dirname.c (dir_len): Determine when drive letters need a
96582         subsequent slash.  Preserve // when it is special.
96583         (dir_name): Don't append dot when drive letter is absolute.
96584         [TEST_DIRNAME]: Move into a full-blown gnulib test.
96585         * lib/basename.c (base_name): New semantics - malloc the result.
96586         Preserve // when it is special.  Preserve relative files that look
96587         like drive letters.
96588         (base_len): Preserve // when it is special.
96589         (last_component): New method, similar to old base_name semantics.
96590         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
96591         base_name.  Strip redundant slashes from ///.
96593 2006-07-03  Jim Meyering  <jim@meyering.net>
96595         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
96596         macro is used before the first cycle_check call.
96598 2006-07-03  Eric Blake  <ebb9@byu.net>
96600         * modules/dirname (Depends-on): Add xstrndup.
96602 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96604         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
96605         test cases, so that config.log is a bit easier to follow.
96607 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96609         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
96610         both are 64 bits, since this seems to be the tradition, and this
96611         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
96612         we ever run into a host that prefers long long to long in this
96613         case, we'll need another configure-time test.  Problem reported by
96614         Jim Meyering.
96616 2006-07-02  Eric Blake  <ebb9@byu.net>
96618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
96620 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96622         * modules/inttypes (Depends-on): No longer depends on stdint.
96623         * modules/stdint (Description): Say more about assumptions.
96624         Say that the fast types might differ.  Say macros are used.
96625         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
96626         (Makefile.am): Revise list of substituted symbols to match
96627         new stdint.m4.
96628         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
96629         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
96630         * tests/test-stdint.c (verify_same_types)
96631         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
96632         the code conforms to C99/C89.
96633         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
96634         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
96636 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96638         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
96639         but fix a bug, by requiring at least 64 bits.
96640         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96641         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
96642         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
96643         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96645         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
96646         changes.  Make 2.59 a prerequisite.  Check and substitute for
96647         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
96648         inttypes.h.  Do not use special include files; just use the
96649         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
96650         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
96651         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
96652         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
96653         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
96654         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
96655         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
96656         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
96657         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
96658         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
96659         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
96660         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
96661         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
96662         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
96663         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
96664         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
96665         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
96666         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
96667         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
96668         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
96669         WINT_MAX.  Check for C99 conformance more strictly, by detecting
96670         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
96671         not check for things that C99 does not require, e.g., int8_t.  If
96672         a test isn't needed unless <stdint.h> isn't working, and is
96673         unlikely to be needed for any other reason, then don't do it
96674         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
96675         size_t, since we assume C89 freestanding at least.  Do not check
96676         for sig_atomic_t, wchar_t, or wint_t, since the code now does
96677         the right thing even if the types are not defined.  Instead use:
96678         (gl_STDINT_TYPE_PROPERTIES): New macro.
96679         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
96680         testing whether <sys/types.h> clashes, as Autoconf does this for
96681         us now.  All uses removed.
96682         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
96683         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
96684         (gl_CHECK_TYPE_SAME):
96685         Remove; no longer needed.
96686         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
96687         exists, since we'll return 0 anyway in that case.
96688         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
96690 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96692         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
96693         possible collision with system files.
96694         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
96695         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
96696         WCHAR_MIN and WCHAR_MAX in this case.
96697         (<stddef.h>): Do not include; no longer needed.
96698         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
96699         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
96700         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
96701         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
96702         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
96703         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
96704         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
96705         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
96706         !defined(__c99))]: Include in this case too, since it's harmless
96707         now.
96708         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
96709         dangerous to do so.
96710         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
96711         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
96712         (_STDINT_MIN, _STDINT_MAX): New macros.
96713         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
96714         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
96715         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
96716         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
96717         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
96718         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
96719         macros, not typedefs; this simplifies things quite a bit.
96720         Use long int for all types narrower than int64_t.
96721         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
96722         Define in terms of long long int or int64_t or long int,
96723         not int64_t or int32_t.  This saves some compile-time testing.
96724         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
96725         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
96726         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
96727         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
96728         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
96729         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
96730         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
96731         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
96732         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
96733         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
96734         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96735         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96736         undef any previous version and define our own version, for
96737         simplicity and consistency with the new macros for types.
96738         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96739         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96740         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
96741         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
96742         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
96743         @WINT_T_SUFFIX@ to keep things simple here.
96744         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
96745         Simplify by assuming typical 8/16/32/64 host, since we're
96746         already doing that elsewhere anyway.
96747         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
96748         and assume long long int is 64 bits if available.  This
96749         speeds up 'configure'.
96751 2006-07-01  Eric Blake  <ebb9@byu.net>
96753         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
96754         Reported by Andreas Buening.
96756 2006-07-01  Eric Blake  <ebb9@byu.net>
96758         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
96760 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96762         * lib/getaddrinfo.c: fixed typo
96764 2006-06-29  Jim Meyering  <jim@meyering.net>
96766         * modules/strftime (Maintainer): Add my name, since with the
96767         FPRINTFTIME changes strftime.c has forked from glibc.
96769 2006-06-29  Eric Blake  <ebb9@byu.net>
96771         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
96773 2006-06-29  Eric Blake  <ebb9@byu.net>
96775         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
96777 2006-06-29  Eric Blake  <ebb9@byu.net>
96779         * lib/stat_.h: New file.
96781 2006-06-29  Eric Blake  <ebb9@byu.net>
96783         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
96784         unused static function.
96786 2006-06-29  Eric Blake  <ebb9@byu.net>
96788         * doc/functions.texi (Function Portability): Document missing lstat
96789         on mingw.
96791 2006-06-29  Eric Blake  <ebb9@byu.net>
96793         * MODULES.html.sh: Add sys_stat.
96794         * modules/sys_stat: New module.
96795         * modules/mkstemp (Depends-on): Add sys_stat.
96797 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96799         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
96801 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96803         * m4/c-bs-a.m4: Removed.
96805 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96807         * lib/strftime.c: Assume strftime() exists.
96809 2006-06-29  Derek Price  <derek@ximbiot.com>
96811         * modules/c-bs-a: Removed - \a is C89.
96812         * MODULES.html.sh: Remove c-bs-a.
96814 2006-06-29  Bruno Haible  <bruno@clisp.org>
96816         * modules/wcwidth (License): Change to LGPL.
96818 2006-06-28  Simon Josefsson  <jas@extundo.com>
96820         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
96821         on _WIN32.
96823         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
96824         getnameinfo.
96826 2006-06-28  Simon Josefsson  <jas@extundo.com>
96828         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
96830 2006-06-28  Simon Josefsson  <jas@extundo.com>
96832         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
96833         functions there.  It will succeed on Windows XP, but on Windows
96834         2000 and (presumably) earlier, it will fail, and use the internal
96835         re-implementation.
96836         (use_win32_p): New function.
96837         (getaddrinfo): Use strtoul on servname, to support numeric ports.
96838         Support AI_NUMERICSERV to disable getservbyname.
96839         (getnameinfo): New function, only supports
96840         NI_NUMERICHOST|NI_NUMERICSERV for now.
96842         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
96843         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
96844         getnameinfo.
96846 2006-06-28  Eric Blake  <ebb9@byu.net>
96848         * modules/wcwidth: New file.
96849         * modules/mbchar (Depends-on): Add wcwidth.
96850         * modules/mbswidth (Depends-on): Add wcwidth.
96851         * MODULES.html.sh: Add wcwidth.
96853 2006-06-28  Eric Blake  <ebb9@byu.net>
96855         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
96856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
96858 2006-06-28  Eric Blake  <ebb9@byu.net>
96860         * lib/xvasprintf.h: Fix comments.
96862 2006-06-28  Eric Blake  <ebb9@byu.net>
96864         * lib/mbchar.h (wcwidth): Include wcwidth.h.
96865         * lib/mbswidth.c (wcwidth): Move from here...
96866         * lib/wcwidth.h: ...to this new file.
96868 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96870         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
96872         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
96873         it's obsolete.
96874         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
96876 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96878         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
96879         Autoconf 2.60 says this stuff was obsolete.
96881 2006-06-28  Bruno Haible  <bruno@clisp.org>
96883         * modules/wcwidth (Files): Add m4/wchar_t.m4.
96885 2006-06-28  Bruno Haible  <bruno@clisp.org>
96887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
96888         gt_TYPE_WCHAR_T.
96890 2006-06-28  Bruno Haible  <bruno@clisp.org>
96892         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
96893         declaration for wcwidth.
96894         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
96896 2006-06-28  Bruno Haible  <bruno@clisp.org>
96898         * lib/mkdtemp.c [MINGW]: Include <io.h>.
96899         (mkdir): Define using _mkdir.
96901 2006-06-28  Bruno Haible  <bruno@clisp.org>
96903         * lib/getaddrinfo.h: Fix POSIX URL.
96904         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
96905         _WIN32.
96906         (use_win32_p): Make static.
96907         (getaddrinfo): Reject service name if it is empty or does not consist
96908         solely of decimal digits, or if its value is > 65535.
96909         (getnameinfo): Remove useless casts.
96911 2006-06-27  Simon Josefsson  <jas@extundo.com>
96913         * modules/sys_select: New file, suggested by Bruno Haible, Paul
96914         Eggert and Martin Lambers.
96916 2006-06-27  Simon Josefsson  <jas@extundo.com>
96918         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
96919         Eggert and Martin Lambers.
96921 2006-06-27  Bruno Haible  <bruno@clisp.org>
96923         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
96924         result to 0, not to empty.
96925         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
96927 2006-06-27  Bruno Haible  <bruno@clisp.org>
96929         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
96931 2006-06-26  Simon Josefsson  <jas@extundo.com>
96933         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
96934         present.
96936 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
96938         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
96939         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
96940         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
96942 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
96944         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
96946 2006-06-26  Bruno Haible  <bruno@clisp.org>
96948         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
96950 2006-06-26  Bruno Haible  <bruno@clisp.org>
96952         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
96954 2006-06-26  Bruno Haible  <bruno@clisp.org>
96956         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
96957         SGI C compiler in pre-C99 mode.
96958         Suggested by Mark D. Baushke and Larry Jones.
96960 2006-06-26  Bruno Haible  <bruno@clisp.org>
96962         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
96963         WCHAR_MAX.
96964         Reported by Mark D. Baushke and Larry Jones.
96966 2006-06-26  Bruno Haible  <bruno@clisp.org>
96968         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
96969         in pre-C99 mode.
96970         Suggested by Mark D. Baushke and Larry Jones.
96972 2006-06-23  Simon Josefsson  <jas@extundo.com>
96973             Bruno Haible  <bruno@clisp.org>
96975         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
96976         Emit mostlyclean-local rule.
96977         (func_emit_tests_Makefile_am): Likewise.
96978         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
96980 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
96982         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
96984 2006-06-23  Bruno Haible  <bruno@clisp.org>
96986         * tests/test-stdint.c: Update to match ISO C 99 Technical
96987         Corrigendum 1.
96989 2006-06-23  Bruno Haible  <bruno@clisp.org>
96991         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
96993 2006-06-23  Bruno Haible  <bruno@clisp.org>
96995         * lib/stdint_.h: Treat IRIX like OpenBSD.
96997 2006-06-23  Bruno Haible  <bruno@clisp.org>
96999         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
97000         ISO C 99 Technical Corrigendum 1.
97002 2006-06-22  Simon Josefsson  <jas@extundo.com>
97004         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
97005         MinGW.
97007 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
97009         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
97010         needed.  Some compiler complained about some of them.  Problem reported
97011         by Larry Jones in
97012         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
97014 2006-06-21  Simon Josefsson  <jas@extundo.com>
97016         * tests/test-getaddrinfo.c: New file.
97018         * modules/getaddrinfo-tests: New file.
97020         * MODULES.html.sh: Add inet_pton.
97022         * modules/inet_pton: New file.
97024 2006-06-21  Simon Josefsson  <jas@extundo.com>
97026         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
97027         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
97028         of using the (limited) gnulib implementation on Windows XP.
97030         * m4/inet_pton.m4: New file.
97032 2006-06-21  Simon Josefsson  <jas@extundo.com>
97034         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
97035         variable.
97037         * lib/socket_.h: Don't define WINVER.
97039         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
97040         slightly modified to work in gnulib.
97042 2006-06-21  Simon Josefsson  <jas@extundo.com>
97044         * doc/gnulib.texi (Windows sockets): Add.
97046 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97048         * lib/read-file.c (fread_file): Start with buffer allocation of
97049         0 bytes rather than 1 byte; this simplifies the code.
97050         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
97051         code to free buffer and save/restore errno.
97052         (internal_read_file): Remove unused local.
97054 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97056         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
97057         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
97058         Problem reported by Denis Excoffier in
97059         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
97061 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97063         * modules/sys_socket, modules/socklen: Include sys/types since
97064         FreeBSD 4.x's sys/socket.h needs it.
97066 2006-06-19  Simon Josefsson  <jas@extundo.com>
97068         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
97070 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97072         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
97074 2006-06-19  Bruno Haible  <bruno@clisp.org>
97076         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
97077         and FULL_PATH_INTTYPES_H in angle brackets.
97078         Reported by Mark D. Baushke <mdb@gnu.org>.
97080 2006-06-17  Eric Blake  <ebb9@byu.net>
97082         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
97083         errno.
97085 2006-06-17  Bruno Haible  <bruno@clisp.org>
97087         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
97088         <sys/inttypes.h>.
97090 2006-06-17  Bruno Haible  <bruno@clisp.org>
97092         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
97093         whether errno is declared. Assume <errno.h> declares errno.
97095 2006-06-17  Bruno Haible  <bruno@clisp.org>
97097         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
97099 2006-06-17  Bruno Haible  <bruno@clisp.org>
97101         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
97102         problem on Solaris 2.5.1.
97104 2006-06-16  Eric Blake  <ebb9@byu.net>
97106         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
97107         * lib/unicodeio.c [!defined errno]: Likewise.
97108         * lib/strtol.c [!defined errno]: Likewise.
97109         * lib/strtod.c [!defined errno]: Likewise.
97111 2006-06-15  Eric Blake  <ebb9@byu.net>
97113         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
97115 2006-06-15  Eric Blake  <ebb9@byu.net>
97117         * config/srclist.txt (ssize_t.m4): Lose sync.
97119 2006-06-15  Bruno Haible  <bruno@clisp.org>
97121         * modules/stdint (Files): Include m4/full-header-path.m4,
97122         m4/size_max.m4, m4/wchar_t.m4.
97123         (Makefile.am): Many more substitutions.
97124         * modules/stdint-tests: New file.
97125         * tests/test-stdint.c: New file.
97127 2006-06-15  Bruno Haible  <bruno@clisp.org>
97129         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
97130         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
97131         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
97132         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
97133         gl_CHECK_TYPE_SAME): New macros.
97135 2006-06-15  Bruno Haible  <bruno@clisp.org>
97137         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
97139 2006-06-15  Bruno Haible  <bruno@clisp.org>
97141         * lib/stdint_.h: Rewritten to be fully auto-configured.
97142         Fixes bug on HP-UX/IA64.
97144 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
97146         * lib/getdate.y (__attribute__): Don't define if already defined.
97147         Problem reported by Larry Jones.
97148         * lib/utimens.c (__attribute__): Likewise.
97150 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
97152         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
97153         reported by Andreas Schwab.
97155 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97156             Bruno Haible  <bruno@clisp.org>
97158         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
97159         check for the declaration of strnlen and a run test that exposes the
97160         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
97161         rpl_strndup.
97163 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97164             Bruno Haible  <bruno@clisp.org>
97166         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
97168 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97170         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
97171         compile test, for Tru64 4.0D.
97173 2006-05-28  Karl Berry  <karl@gnu.org>
97175         * config/srclist.txt (printf-args.c): lose sync.
97177 2006-05-26  Martin Lambers  <marlam@marlam.de>
97179         * lib/getpass.c: Updates the test for the native W32 API, and adds
97180         missing includes, thus fixing compilation warnings.
97182 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97184         * lib/exclude.c (exclude_fnmatch): New function.
97185         (excluded_file_name): Call exclude_fnmatch.
97186         * lib/exclude.h (excluded_file_name): New prototype
97188 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
97190         * lib/tempname.c (small_open, large_open): New macros.
97191         (__open, __open64) [!_LIBC]: Remove.
97192         (__gen_tempname): Use small_open and large_open instead of __open
97193         and __open64.  This fixes a portability bug on HP-UX 11.11i
97194         reported by Simon Wing-Tang in
97195         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
97197 2006-05-24  Bruno Haible  <bruno@clisp.org>
97199         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
97200         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
97201         Reported by Thorsten Maerz <torte@netztorte.de> via
97202         Aaron Stone <aaron@serendipity.cx>.
97204 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
97207         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
97208         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
97209         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
97210         not really conditional on the cache.
97211         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
97213 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97215         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
97216         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
97217         (my_usleep): Don't mishandle maximum value.
97219 2006-05-19  Jim Meyering  <jim@meyering.net>
97221         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
97223 2006-05-17  Bruno Haible  <bruno@clisp.org>
97225         Cygwin portability.
97226         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
97228 2006-05-17  Bruno Haible  <bruno@clisp.org>
97230         * lib/stdint_.h: Fix recognition of Cygwin.
97232 2006-05-15  Bruno Haible  <bruno@clisp.org>
97234         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
97235         on libtool patch by Ralf Wildenhues.
97237 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
97239         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
97240         test for C99 conformance; (bool) 0.5 is an integer constant
97241         expression, but (bool) -0.5 is not.  Problem reported by Fedor
97242         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
97244 2006-05-11  Simon Josefsson  <jas@extundo.com>
97246         * m4/xvasprintf.m4: Fix obvious typo.
97248 2006-05-11  Jim Meyering  <jim@meyering.net>
97250         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
97251         James Lemley.
97253 2006-05-10  Simon Josefsson  <jas@extundo.com>
97255         * lib/md4.c: Typo fix, update copyright years.
97256         (K1, K2): Don't use L because it turn computations into 64-bit on
97257         64-bit platforms.
97259 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
97261         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
97262         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
97263         unwanted sign propagation, e.g., on hosts with 64-bit int.
97264         There still are some problems with reeelly weird theoretical hosts
97265         (e.g., 33-bit int) but it's not worth worrying about now.
97266         * lib/sha1.c (rol): Likewise.
97267         (K1, K2, K3, K4): Remove unnecessary L suffix.
97269 2006-05-10  Bruno Haible  <bruno@clisp.org>
97271         * lib/des.c: Cast to avoid warnings.
97273 2006-05-09  Bruno Haible  <bruno@clisp.org>
97275         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
97276         (Depends-on): Depend also on xsize, stdarg.
97277         (configure.ac): Add gl_XVASPRINTF.
97279 2006-05-09  Bruno Haible  <bruno@clisp.org>
97281         * m4/xvasprintf.m4: New file.
97283 2006-05-09  Bruno Haible  <bruno@clisp.org>
97285         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
97286         (EOVERFLOW): Define fallback value.
97287         (xstrcat): New function.
97288         (xvasprintf): Recognize the special case of a string concatenation.
97290 2006-05-08  Eric Blake  <ebb9@byu.net>
97292         * gnulib-tool (func_version): Base copyright year on CVS date.
97293         (func_emit_copyright_notice): New function.
97294         (func_emit_lib_Makefile_am): Use it.
97295         (func_emit_tests_Makefile_am): Likewise.
97296         (func_import): Likewise.
97298 2006-05-08  Bruno Haible  <bruno@clisp.org>
97300         * modules/stdarg: New file.
97301         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
97303 2006-05-08  Bruno Haible  <bruno@clisp.org>
97305         * m4/stdarg.m4: New file, from GNU gettext.
97307 2006-05-08  Bruno Haible  <bruno@clisp.org>
97309         * config/srclist.txt (build-aux/config.rpath): different from latest
97310         release.
97312 2006-05-08  Bruno Haible  <bruno@clisp.org>
97314         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
97316 2006-05-05  Jim Meyering  <jim@meyering.net>
97318         * m4/warning.m4: New file, derived from bison's file by the same name.
97320 2006-05-03  Bruno Haible  <bruno@clisp.org>
97322         * lib/stdint_.h: Shorter URL.
97323         * lib/inttypes.h: Likewise.
97325 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97327         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
97329 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97331         * lib/verify.h: Document the internals better.  Most of this change
97332         was written by Bruno Haible.
97334 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97336         * doc/verify.texi: New file, partly based on a proposal by
97337         Bruno Haible.
97339 2006-05-02  Bruno Haible  <bruno@clisp.org>
97341         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
97342         test from here...
97343         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
97345 2006-04-29  Bruno Haible  <bruno@clisp.org>
97347         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
97348         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
97350 2006-04-29  Bruno Haible  <bruno@clisp.org>
97352         * gnulib-tool: Make --update option actually work.
97354 2006-04-29  Bruno Haible  <bruno@clisp.org>
97356         * doc/gcd.texi: New file.
97357         * doc/gnulib.texi: Include it.
97359 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
97361         * lib/getdate.y (get_date): When adding relative date, start with the
97362         initial time, not with the result of the first mktime call.
97364 2006-04-25  Bruno Haible  <bruno@clisp.org>
97366         * gnulib-tool (func_import): Output the include directives in three
97367         blocks, sorted separately.
97368         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97370 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
97372         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
97373         to define main with arguments, for C++.  Reported by Eric Blake.
97374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
97375         Prefer 'int main ()' to 'int main (void)', for C++.
97376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
97377         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
97378         for 'main', for C99 and C++.
97380 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
97382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
97383         Don't assume that exit status -1 is valid.
97384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97385         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
97386         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
97387         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
97388         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
97389         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
97390         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
97391         functions can be used without declaring them, or that you can
97392         exit with status -1.
97393         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
97395 2006-04-24  Karl Berry  <karl@gnu.org>
97397         * config/srclist.txt (longdouble.m4): sync lost.
97399 2006-04-24  Eric Blake  <ebb9@byu.net>
97401         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
97403 2006-04-24  Bruno Haible  <bruno@clisp.org>
97405         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
97406         poll() implementation in AIX.
97407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97409 2006-04-24  Bruno Haible  <bruno@clisp.org>
97411         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
97412         assigned exactly once.
97414 2006-04-23  Claudio Fontana  <claudio@gnu.org>
97415             Bruno Haible  <bruno@clisp.org>
97417         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
97418         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
97419         for AM_CPPFLAGS.
97421 2006-04-23  Bruno Haible  <bruno@clisp.org>
97423         * modules/copy-file: Depend on unistd.
97424         * modules/execute: Likewise.
97425         * modules/fatal-signal: Likewise.
97426         * modules/findprog: Likewise.
97427         * modules/mkdtemp : Likewise.
97428         * modules/pipe: Likewise.
97429         * modules/wait-process: Likewise.
97431 2006-04-23  Bruno Haible  <bruno@clisp.org>
97433         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
97434         condition was already detected.
97435         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97437 2006-04-23  Bruno Haible  <bruno@clisp.org>
97439         * lib/copy-file.c: Include <unistd.h> unconditionally.
97440         * lib/execute.c: Likewise.
97441         * lib/fatal-signal.c: Likewise.
97442         * lib/findprog.c: Likewise.
97443         * lib/mkdtemp.c: Likewise.
97444         * lib/pipe.h: Likewise.
97445         * lib/pipe.c: Likewise.
97446         * lib/wait-process.h: Likewise.
97448 2006-04-23  Bruno Haible  <bruno@clisp.org>
97450         * gnulib-tool (func_usage): Fix --import description. Document
97451         --update.
97452         (func_import): Create temporary file in a temporary directory, if
97453         --dry-run is specified. Silence errors from 'grep' when there are no
97454         m4 files in $m4dir.
97455         (func_create_testdir): Silence errors from 'grep' when there are no
97456         m4 files in $m4dir.
97457         Reported by Karl Berry <karl@freefriends.org>.
97459 2006-04-20  Bruno Haible  <bruno@clisp.org>
97461         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
97462         one argument, so that the code will be portable to Autoconf 2.60.
97463         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
97464         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97465         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
97467 2006-04-19  Derek Price  <derek@ximbiot.com>
97468             Eric Blake  <ebb9@byu.net>
97470         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
97471         rather than "/full/path.h".  Update comment to match.  Shorten &
97472         generalize m4_translit call via AS_TR_CPP.
97474 2006-04-19  Derek Price  <derek@ximbiot.com>
97475             Eric Blake  <ebb9@byu.net>
97477         * lib/inttypes.h: Correct grammar in comment.
97479 2006-04-18  Derek Price  <derek@ximbiot.com>
97480             Paul Eggert  <eggert@cs.ucla.edu>
97482         * modules/inttypes: New file.
97483         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
97485 2006-04-18  Derek Price  <derek@ximbiot.com>
97486             Paul Eggert  <eggert@cs.ucla.edu>
97488         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
97489         New files.
97491 2006-04-18  Derek Price  <derek@ximbiot.com>
97492             Paul Eggert  <eggert@cs.ucla.edu>
97494         * lib/inttypes.h: New file.
97495         * lib/strtoimax.c: Assume <inttypes.h>.
97497 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
97499         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
97500         isn't mounted.  Problem reported by Kir Kolyshkin.
97502 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97504         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
97505         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
97506         Derek R. Price.
97507         * lib/regex.h (RE_DUP_MAX): Update comment to match current
97508         implementation.
97510 2006-04-12  Eric Blake  <ebb9@byu.net>
97512         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
97513         is now done automatically by the corresponding Autoconf macro.
97515 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
97517         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
97518         time_r.h.
97520 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97522         Merge regex changes from libc, removing some of our
97523         POSIX-conformance changes that were rejected and redoing them in a
97524         less-intrusive way.
97526         * lib/regcomp.c (re_compile_internal, init_dfa):
97527         Length arg is now size_t, not Idx.  All uses changed.
97528         (peek_token): Forward decl now says internal_function.
97529         (__re_error_msgid, __re_error_msgid_idx):
97530         Now static rather than extern with attribute_hidden.
97531         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
97532         For some reason libc prefers K&R style defns for external functions.
97533         (regerror) [!defined _LIBC]: Likewise.
97534         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
97535         (seek_collating_symbol_entry, lookup_collation_sequence_value):
97536         (build_range_exp, build_collating_symbol):
97537         Use K&R-style defn.
97538         (re_compile_fastmap): Use '\0' to memset, not 0.
97539         (utf8_sb_map): Make the calculations more obvious.
97540         (init_dfa, parse_bracket_exp, build_charclass_op):
97541         Call calloc and cast result, as glibc does.
97542         (init_word_char, fetch_token, peek_token, peek_token_bracket):
97543         (build_range_exp, build_collating_symbol):
97544         Now internal functions.
97546         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
97548         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
97549         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
97550         Don't depend on VMS; depend on __VMS instead, for POSIX
97551         namespace cleanness.
97552         (regoff_t): Define to ssize_t, not long int.
97554         Remove the REG_ macros named below.  Instead, make the old names
97555         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
97556         __USE_GNU_REGEX.
97557         (REG_BACKSLASH_ESCAPE_IN_LISTS):
97558         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
97559         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
97560         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
97561         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
97562         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
97563         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
97564         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
97565         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
97566         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
97567         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
97568         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
97569         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
97570         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
97571         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
97572         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
97573         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
97574         (REG_NREGS):
97575         Remove.  All uses replaced by the old RE_* names.
97576         (RE_BACKSLASH_ESCAPE_IN_LISTS):
97577         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
97578         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
97579         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
97580         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
97581         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
97582         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
97583         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
97584         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
97585         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
97586         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
97587         Don't bother having these macros be independent of each others'
97588         values, since they no longer exist in the POSIX name space.
97590         Rename the following member names back to their old names,
97591         unless !__USE_GNU_REGEX.  All uses changed back.
97592         (buffer): Renamed from re_buffer.
97593         (allocated): Renamed from re_allocated.
97594         (used): Renamed from re_used.
97595         (syntax): Renamed from re_syntax.
97596         (fastmap): Renamed from re_fastmap.
97597         (translate): Renamed from re_translate.
97598         (can_be_null): Renamed from re_can_be_null.
97599         (regs_allocated): Renamed from re_regs_allocated.
97600         (fastmap_accurate): Renamed from re_fastmap_accurate.
97601         (no_sub): Renamed from re_no_sub.
97602         (not_bol): Renamed from re_not_bol.
97603         (not_eol): Renamed from re_not_eol.
97604         (newline_anchor): Renamed from re_newline_anchor.
97605         (num_regs): Renamed from rm_num_regs.
97606         (start): Renamed from rm_start.
97607         (end): Renamed from rm_end.
97609         (free_state): Move up a bit.
97611         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
97612         #define to be empty.
97613         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
97614         when that is what is intended.
97615         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
97616         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
97617         (MAX): New macro.
97618         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
97619         All uses changed back to re_malloc, etc.  It's now the caller's
97620         responsibility to check for overflow; all callers changed.
97621         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
97622         (re_x2nrealloc): Remove.
97623         (free_state): Remove decl.
97625         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
97626         (re_set_registers, re_exec):
97627         Use K&R-style defn.
97629         2006-01-31  Roland McGrath  <roland@redhat.com>
97631         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
97632         Reported by Mike Frysinger <vapier@gentoo.org>.
97634         2006-01-15  Andreas Jaeger  <aj@suse.de>
97636         [BZ #1950]
97637         * lib/regex_internal.c (re_string_reconstruct): Adjust for
97638         build_wcs_upper_buffer change.
97639         (build_wcs_upper_buffer): Change return type.
97641         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
97643         * lib/regex_internal.h: Include <stdint.h> if available.
97645         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
97647         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
97649         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
97651         * lib/regcomp.c: Adjust for changed secondary hash function.
97653         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
97655         * lib/regex.h: Pretty printing.
97656         Clean up namespace a bit.
97658         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
97660         * lib/regexec.c (update_cur_sifted_state, check_arrival,
97661         check_arrival_add_next_nodes): Avoid using uninitialized variable.
97663         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97664                     Ulrich Drepper  <drepper@redhat.com>
97666         [BZ #1302]
97667         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
97668         changed.
97669         (bitset_word_t): Renamed from bitset_word.  All uses changed.
97671         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
97673         [BZ #281]
97674         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
97675         * lib/regcomp.c: Remove unnecessary uses of
97676         unsigned RE_TRANSLATE_TYPE.
97677         * lib/regex_internal.h: Likewise.
97678         * lib/regex_internal.c: Likewise.
97679         * lib/regexec.c: Likewise.
97680         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
97682         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
97684         * lib/regexec.c (find_recover_state): Remove unnecessary
97685         initialization.
97686         (transit_state_bkref): Make DFA a const pointer.
97687         (get_subexp): Likewise.
97688         (check_arrival): Likewise.
97689         (update_cur_sifted_state): Likewise.
97690         (re_search_internal): Likewise.
97691         (prune_impossible_nodes): Likewise.
97692         (acquire_init_state_context): Likewise.
97693         (proceed_next_node): Likewise.
97694         (set_regs): Likewise.
97695         (free_fail_stack_return): Likewise.
97696         (check_arrival_expand_ecl): Mark DFA parameter as const.
97697         (check_arrival_expand_ecl_sub): Likewise.
97698         (check_subexp_limits): Likewise.
97699         (sub_epsilon_src_nodes):  Likewise.
97700         (add_epsilon_src_nodes):  Likewise.
97701         (merge_state_array): Likewise.
97702         (update_regs): Likewise.
97703         (build_trtable): Likewise.
97704         (sift_states_backward): Mark MCTX parameter as const.
97705         (build_sifted_states): Likewise.
97706         (update_cur_sifted_state): Likewise.
97707         (sift_states_mkref): Likewise.
97708         (check_arrival_expand_ecl): Mark eclosure as const.
97709         (check_dst_limits_calc_pos_1): Likewise.
97710         * lib/regex_internal.h (re_match_context_t): Make dfa a const
97711         pointer.
97713         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
97715         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
97716         (transit_state_sb): Likewise.
97717         (transit_state_mb): Likewise.
97718         (sift_states_iter_mb): Likewise.
97719         (check_arrival_add_next_nodes): Likewise.
97720         (check_node_accept_bytes): Change first parameter to pointer-to-const.
97721         [_LIBC] (re_search_2_stub): Use mempcpy.
97723         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
97724         mbrtowc for very simple UTF-8 case.
97726         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
97727         a pointer-to-const.
97728         (re_acquire_state_context): Likewise.
97729         * lib/regex_internal.h: Adjust prototypes.
97731         * lib/regex.c: Prevent using C++ compilers.
97733         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
97734         (re_acquire_state_context): Likewise.
97736 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97738         * modules/regex (Depends-on): Add ssize_t.
97740 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97742         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
97743         translation table.
97745 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97747         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
97749 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
97750             Bruno Haible  <bruno@clisp.org>
97752         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
97753         <sys/types.h> and <inttypes.h>.
97755 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97757         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
97758         `__error_t_defined', so argp.h will not typedef the former.
97760 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
97762         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
97763         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
97764         glibc names.  Even if glibc is changed to conform to POSIX, the
97765         traditional names will be available anyway, since regex depends on
97766         the extensions module.  Also, fix a longstanding typo in the
97767         implementation of Spencer ERE test #75 from grep 2.3.  Problems
97768         reported by Emanuele Giaquinta.  Also, change sense of cached
97769         variable, so that the message makes sense.
97771 2006-03-24  Simon Josefsson  <jas@extundo.com>
97773         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
97774         including some doc fixes.
97775         (base64_encode_alloc): Fix +1 bug on allocation failures.
97777 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97779         * lib/base64.c (base64_encode): Do not read past end of array with
97780         unsanitized input on systems with CHAR_BIT > 8.
97782 2006-03-24  Eric Blake  <ebb9@byu.net>
97784         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
97786 2006-03-22  Karl Berry  <karl@gnu.org>
97788         * config/srclist.txt (*setenv.[ch]): get from coreutils.
97789         * config/srclistvars.sh (COREUTILS): new var.
97791 2006-03-17  Jim Meyering  <jim@meyering.net>
97793         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
97794         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
97796 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97798         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
97799         no longer needs it.  Instead, check that regoff_t is as least
97800         as wide as ptrdiff_t.
97802         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
97803         so that our regex.h stays compatible with the installed regex.
97804         This is helpful for installers who configure --without-included-regex.
97805         Problem reported by Emanuele Giaquinta.
97807 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97809         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
97810         Typedef to long int, not to off_, as POSIX will likely change
97811         in that direction.
97813 2006-03-15  Eric Blake  <ebb9@byu.net>
97815         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
97817 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97819         * lib/argp-help.c (validate_uparams): Fix typo
97820         * lib/argp-parse.c (argp_default_options): Consistently begin help
97821         messages with a lowercase letter.
97823 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
97825         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
97826         overrun buffers and shouldn't be used (much as gets shouldn't be
97827         used).
97828         * lib/time_r.c (asctime_r, ctime_r): Likewise.
97830 2006-03-08  Simon Josefsson  <jas@extundo.com>
97832         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
97833         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97835 2006-03-08  Simon Josefsson  <jas@extundo.com>
97837         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
97838         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97840 2006-03-08  Simon Josefsson  <jas@extundo.com>
97842         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
97843         signal that configure disabled the device.
97845 2006-03-08  Simon Josefsson  <jas@extundo.com>
97847         * build-aux/maint.mk: Fix refresh-po, to handle no translated
97848         languages.
97850 2006-03-07  Simon Josefsson  <jas@extundo.com>
97852         * modules/getopt (Depends-on): Add unistd.
97854         * modules/unistd: New file.
97856 2006-03-07  Simon Josefsson  <jas@extundo.com>
97858         * modules/gc-random: New file.
97860 2006-03-07  Simon Josefsson  <jas@extundo.com>
97862         * m4/unistd_h.m4: New file.
97864 2006-03-07  Simon Josefsson  <jas@extundo.com>
97866         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
97867         test to be side-effect free by storing the result in the cache
97868         variable gl_cv_lib_readline, and moving the assignment of
97869         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
97870         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97872 2006-03-07  Simon Josefsson  <jas@extundo.com>
97874         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
97875         error on missing devices (the functions will return an error).
97877         * m4/gc.m4: Move random stuff to gc-random.m4
97879 2006-03-07  Simon Josefsson  <jas@extundo.com>
97881         * lib/unistd_.h: New file.
97883 2006-03-07  Simon Josefsson  <jas@extundo.com>
97885         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
97887 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97889         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
97890         Problem reported by Juan Manuel Guerrero.
97892 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97894         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
97895         the unistd module.
97896         * lib/getlogin_r.c: Likewise.
97897         * lib/getlogin_r.h: Likewise.
97898         * lib/glob.c: Likewise.
97899         * lib/pagealign_alloc.c: Likewise.
97900         * lib/unistd_.h: Remove; no longer needed.
97902 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97904         * MODULES.html.sh (Support for systems lacking POSIX:2001):
97905         Add unistd.
97906         * modules/c-stack (Depends-on): Add unistd.
97907         * modules/getlogin_r: Likewise.
97908         * modules/glob: Likewise.
97909         * modules/pagealign_alloc: Likewise.
97910         * modules/unistd (Files): Remove lib/unistd_.h.
97911         (EXTRA_DIST): Remove.
97912         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
97913         need unistd_.h.
97914         (MOSTLYCLEANFILES): Remove unistd.h-t.
97916 2006-03-03  Simon Josefsson  <jas@extundo.com>
97918         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
97920 2006-03-03  Simon Josefsson  <jas@extundo.com>
97922         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
97923         libidn and bison.
97925 2006-03-03  Simon Josefsson  <jas@extundo.com>
97927         * build-aux/maint.mk: Add indent target.
97929 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
97931         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
97932         our replacement poll.h in any case, to avoid a differing
97933         declaration from a system header.  Seen on AIX.
97935 2006-03-01  Simon Josefsson  <jas@extundo.com>
97937         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
97938         <kasal@ucw.cz>.
97940 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97942         * modules/gettime (Depends-on): Add extensions module.
97943         * modules/nanosleep (Depends-on): Likewise.
97944         * modules/settime (Depends-on): Likewise.
97946 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97948         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
97949         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
97950         pedantically.
97951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97952         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
97954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
97955         not "==".  Reported by Ralf Wildenhues.
97957 2006-03-01  Karl Berry  <karl@gnu.org>
97959         * doc/Copyright/request-*: new files, synced from gnuorg.
97961 2006-03-01  Karl Berry  <karl@gnu.org>
97963         * config/srclist.txt (Copyright/*): new entries.
97965 2006-02-28  Simon Josefsson  <jas@extundo.com>
97967         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
97969 2006-02-27  Simon Josefsson  <jas@extundo.com>
97971         * lib/base64.h: Indent #define's.  From Jim Meyering
97972         <jim@meyering.net>.
97974 2006-02-27  Jim Meyering  <jim@meyering.net>
97976         Revert the change of 2006-02-24, so these files can continue
97977         to be sync'd from gettext.
97978         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
97979         of `config.h'.
97981 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
97983         * modules/intprops: New file.
97984         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
97985         Add intprops.
97986         * modules/getloadavg (Files): Remove lib/intprops.h.
97987         (Depends-on): Add intprops.
97988         * modules/human: Likewise.
97989         * modules/inttostr: Likewise.
97990         * modules/openat: Likewise.
97991         * modules/sig2str: Likewise.
97992         * modules/userspec: Likewise.
97993         * modules/utimecmp: Likewise.
97994         * modules/xnanosleep: Likewise.
97995         * modules/xstrtol: Likewise.
97997 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
97999         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
98000         * modules/lock-tests (TESTS): Use $(EXEEXT).
98001         * modules/tls-tests: Likewise.
98002         * modules/argp-tests: Likewise.
98003         (check_PROGRAMS): New var, replacing...
98004         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
98006 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98008         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
98009         `config.h'.
98011 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
98013         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
98015 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98017         Sync from coreutils.
98018         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
98019         gl_CHDIR_SAFER.
98021 2006-02-22  Jim Meyering  <jim@meyering.net>
98023         Sync from coreutils.
98024         * m4/chdir-safer.m4: New file.
98026 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
98028         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
98029         AT_FDCWD exceeds INT_MAX.
98030         * lib/openat.h (AT_FDCWD): Likewise.
98032 2006-02-17  Eric Blake  <address@hidden>
98034         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
98036 2006-02-16  Simon Josefsson  <jas@extundo.com>
98038         * modules/getaddrinfo (Depends-on): Add sys_socket.
98040 2006-02-15  Simon Josefsson  <jas@extundo.com>
98042         * build-aux/maint.mk: Add dsyntax-check rule.
98044 2006-02-15  Eric Blake  <ebb9@byu.net>
98046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
98047         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
98048         'present but cannot compile' warnings on cygwin.
98049         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
98050         use ws2tcpip.h if sys/socket.h works.
98051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
98052         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
98054 2006-02-14  Simon Josefsson  <jas@extundo.com>
98056         * modules/maintainer-makefile (Files): Rename.
98058         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
98059         and (the local) Makefile.cfg to maint-cfg.mk.
98061         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
98062         to the latter.
98064         * modules/maintainer-makefile: New module.
98066         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
98067         severaly stripped to make it possible to build it up from scratch
98068         with reliable tests.
98070         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
98071         fixes to permit overriding the default actions when configure and
98072         makefile are not available.
98074 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
98076         Sync from coreutils.
98077         * modules/lstat (Depends-on): Don't depend on xalloc.
98078         (License): Change from GPL to LGPL, since this is now simply a
98079         replacement for a libc function.
98081 2006-02-14  Jim Meyering  <jim@meyering.net>
98083         Sync from coreutils.
98085         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
98086         failure on deficient systems, and simplify gnulib lgpl dependencies.
98087         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
98088         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
98090         * lib/xalloc-die.c: Remove unused definition of N_.
98092 2006-02-14  Jim Meyering  <jim@meyering.net>
98094         Sync from coreutils.
98095         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
98096         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
98097         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
98098         double-quote uses of that variable, to accommodate the rare case in
98099         which getmntent is available in none of the libraries checked.  This
98100         happens at least on FreeBSD 5.0.
98102 2006-02-13  Simon Josefsson  <jas@extundo.com>
98104         * gnulib-tool (Usage): Fix --import, from
98105         karl@freefriends.org (Karl Berry).
98107 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98109         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
98111 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
98113         * lib/argp-namefrob.h: Restore changes accidentally lost during the
98114         "autoupdate" on 2005-12-12.
98116 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98118         * modules/closeout (Depends-on): Remove atexit.
98120 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98122         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
98123         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
98125 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98127         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
98128         __EXTENSIONS__ if this causes compilation to fail.  Problem
98129         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
98130         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
98132 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
98134         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
98135         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
98136         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
98137         All uses changed.
98139 2006-01-26  Simon Josefsson  <jas@extundo.com>
98141         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
98142         prototype is visible on mingw32.
98144         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
98145         for mingw32.
98147         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
98148         mingw32).
98150 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98152         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
98153         attempt to open for write; this always fails, at least on POSIX
98154         hosts.  This reinstates the 2006-01-09 change, which was
98155         inadvertently removed.
98157 2006-01-26  Bruno Haible  <bruno@clisp.org>
98159         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
98160         Reported by Paul Eggert.
98162 2006-01-26  Bruno Haible  <bruno@clisp.org>
98163             Paul Eggert  <eggert@cs.ucla.edu>
98165         * lib/stdbool_.h (_Bool)
98166         [(! (defined __cplusplus || defined __BEOS__)
98167           && !defined __GNUC__
98168           && !(defined __HP_cc || defined __xlc__
98169                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
98170                || defined __sgi))]:
98171         #define to signed char in these cases too; this simplifies
98172         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
98173         etc., separately) and makes it more conservative.
98175 2006-01-25  Simon Josefsson  <jas@extundo.com>
98177         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
98178         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
98179         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
98181 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98183         * lib/argp-namefrob.h: Bugfix. Remove stray #
98185 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
98187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
98188         so that we test the test.
98189         Check for yet another HP-UX cc bug involving *bool |= bool.
98191 2006-01-25  Karl Berry  <karl@gnu.org>
98193         * config/srclist.txt (vasnprintf.c): sync lost.
98195 2006-01-25  Jim Meyering  <jim@meyering.net>
98197         Sync from the stable (b5) branch of coreutils:
98199         * lib/fts.c (fts_children): Don't let close() clobber errno from
98200         failed fchdir().
98202         * lib/fts.c (fts_stat): When following a symlink-to-directory,
98203         don't necessarily interpret stat-fails+lstat-succeeds as indicating
98204         a dangling symlink.  That can also happen at least for ELOOP.
98205         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
98206         FYI, this bug predates the inclusion of fts.c in coreutils.
98208         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
98209         in their own block, so pre-c99 compilers don't object.
98211         Avoid the double-free (first in fts_read, second in fts_close) that
98212         would occur when an `active' directory is made inaccessible (e.g.,
98213         via chmod a-x) during a traversal.
98214         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
98215         before returning.  Reproduce this failure by
98216         mkdir -p a/b; cd a; chmod a-x . b
98217         Reported by Stavros Passas.
98219 2006-01-25  Jim Meyering  <jim@meyering.net>
98221         * lib/fileblocks.c: Remove more useless parentheses.
98222         * lib/readutmp.h: Likewise.
98224 2006-01-25  Bruno Haible  <bruno@clisp.org>
98226         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
98227         warnings.
98228         Reported by Paul Eggert.
98230 2006-01-25  Bruno Haible  <bruno@clisp.org>
98232         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
98233         rid of a trap command. For Solaris sh.
98234         Reported by Mark D. Baushke <mdb@gnu.org>.
98236 2006-01-24  Simon Josefsson  <jas@extundo.com>
98238         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
98239         Bruno.
98241 2006-01-24  Karl Berry  <karl@gnu.org>
98243         * config/srclist.txt (argp-namefrob.h): sync lost.
98245 2006-01-24  Jim Meyering  <jim@meyering.net>
98247         * modules/openat (Files): Add lib/intprops.h.
98248         From Mark D. Baushke.
98250 2006-01-24  Jim Meyering  <jim@meyering.net>
98252         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
98253         Reported by Mark D. Baushke.
98255 2006-01-24  Jim Meyering  <jim@meyering.net>
98257         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
98259 2006-01-24  Bruno Haible  <bruno@clisp.org>
98261         * modules/strnlen (Maintainer): Change from glibc to all.
98263 2006-01-24  Bruno Haible  <bruno@clisp.org>
98265         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
98266         Patch by Paul Eggert.
98268 2006-01-24  Bruno Haible  <bruno@clisp.org>
98270         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
98271         already has it.
98272         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
98273         2005-11-26.
98275         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
98276         'signed char' to avoid problems with the built-in _Bool type.
98277         Reported by Paul Eggert on 2005-11-26.
98279 2006-01-24  Bruno Haible  <bruno@clisp.org>
98281         * gnulib-tool (func_import): Avoid constructing complicated sed
98282         expressions inside backquote.
98283         Report and solution by Mark D. Baushke <mdb@gnu.org>.
98285 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
98287         These changes imported from libc.
98288         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
98289         test and two separate function calls.
98290         * lib/strndup.c (__strndup): Add libc_hidden_def.
98292 2006-01-23  Simon Josefsson  <jas@extundo.com>
98294         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
98295         Remove the test_*_SOURCES variable: automake infers it by default.
98296         * modules/tls-tests: Likewise.
98298 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98300         Work around porting bugs reported by Dieter in
98301         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
98302         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
98303         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
98304         Include "getopt.h" first, to check interface.
98305         (getenv): Declare only if defined HAVE_DECL_GETENV &&
98306         !HAVE_DECL_GETENV.
98307         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
98308         (__strndup): Revert to K&R-style function dfns, the glibc style.
98309         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
98310         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
98311         Include strnlen.h first, to get prototype properly.
98312         (strnlen): Renamed from __strnlen.
98313         Remove weak alias.
98315 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98317         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
98319 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98321         * config/srclist.txt: Adjust to reflect glibc reorganization.
98322         This affects only comments.
98324 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98326          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
98327          Reported by Bruce Korb <bkorb@gnu.org>.
98329 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
98331         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
98332         to pacify gcc -Wswitch-default.
98334 2006-01-22  Bruno Haible  <bruno@clisp.org>
98336         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
98337         temporary buffer for sprintf, take into account the precision also
98338         for 'd', 'i', 'u', 'o', 'x', 'X'.
98340 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
98342         * modules/argp-tests: New module
98343         * tests/test-argp.c: New file
98344         * tests/test-argp-2.sh: New file
98346 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
98348         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
98349         (__argp_base_name): Removed
98350         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
98351         typo.
98352         (__argp_base_name): Provide macro definition or extern declaration
98353         depending on the configuration
98355 2006-01-20  Simon Josefsson  <jas@extundo.com>
98357         * modules/inet_ntop (Depends-on): Depend on sys_socket.
98359 2006-01-20  Simon Josefsson  <jas@extundo.com>
98361         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
98363 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
98365         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
98366         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
98367         Suggested by Bruno Haible.
98369 2006-01-20  Karl Berry  <karl@gnu.org>
98371         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
98372         until changes propagate, I guess.
98374 2006-01-19  Simon Josefsson  <jas@extundo.com>
98376         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
98378 2006-01-19  Simon Josefsson  <jas@extundo.com>
98380         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
98382 2006-01-19  Simon Josefsson  <jas@extundo.com>
98384         * gnulib-tool: Set check_PROGRAMS.
98386         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
98387         modules/des-tests, modules/gc-arcfour-tests,
98388         modules/gc-arctwo-tests, modules/gc-des-tests,
98389         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
98390         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
98391         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
98392         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
98393         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98394         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
98395         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
98396         test_*_SOURCES.
98398 2006-01-18  Simon Josefsson  <jas@extundo.com>
98400         * modules/socklen (Depends-on): Depend on sys_socket.
98402 2006-01-18  Simon Josefsson  <jas@extundo.com>
98404         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
98405         modules/des-tests, modules/gc-arcfour-tests,
98406         modules/gc-arctwo-tests, modules/gc-des-tests,
98407         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
98408         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
98409         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
98410         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
98411         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98412         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
98413         $(EXEEXT) to automake TESTS variable, for mingw32.
98415 2006-01-17  Simon Josefsson  <jas@extundo.com>
98417         * modules/socklen (Include): Need sys/socket.h.
98419 2006-01-17  Bruno Haible  <bruno@clisp.org>
98421         * modules/ssize_t (Include): Add <sys/types.h>.
98423 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
98425         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
98426         it's not portable and it doesn't work with cross-compiles.
98427         Problem reported by Bruno Haible.  Fix missing-$ typo in
98428         'test "gl_cv_ignore_unused_libraries" ...' that prevented
98429         -zignore from being used with Sun's C compiler.
98431 2006-01-12  Simon Josefsson  <jas@extundo.com>
98433         * lib/base64.c: Fix warning, reported by Bruno Haible
98434         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
98436 2006-01-12  Bruno Haible  <bruno@clisp.org>
98438         * modules/ldd: New file.
98439         * build-aux/ldd.sh.in: New file.
98440         * MODULES.html.sh (Support for building libraries and executables): Add
98441         ldd.
98443 2006-01-12  Bruno Haible  <bruno@clisp.org>
98445         * m4/ldd.m4: New file.
98447 2006-01-12  Bruno Haible  <bruno@clisp.org>
98449         * gnulib-tool (func_import, func_create_testdir): Don't go into an
98450         endless loop while replacing $auxdir with build-aux.
98452 2006-01-11  Simon Josefsson  <jas@extundo.com>
98454         * lib/stdint_.h (SIZE_MAX): Add missing (.
98456 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
98458         Sync from coreutils.
98459         * lib/md5.c: Fix commentary typos.
98460         (alignof, UNALIGNED_P): No need for a GCC-specific version.
98461         * lib/md5.h (__attribute__): Remove; unused.
98462         * lib/sha1.c: Fix commentary to match md5 better.
98463         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
98464         so that we don't need to worry about alignment.  All uses changed.
98465         This merges the 2005-10-28 md5 change into sha1.
98467 2006-01-11  Jim Meyering  <jim@meyering.net>
98469         Sync from coreutils.
98470         * lib/md5.c (OP): Fix spacing.
98472 2006-01-11  Bruno Haible  <bruno@clisp.org>
98474         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98475         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
98476         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
98478 2006-01-11  Bruno Haible  <bruno@clisp.org>
98480         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98481         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
98482         the "early" section as well.
98484 2006-01-11  Bruno Haible  <bruno@clisp.org>
98486         Avoid "ar: no archive members specified" error on MacOS X.
98487         * gnulib-tool (func_modules_add_dummy): New function.
98488         (func_import, func_create_testdir): Invoke it.
98490 2006-01-11  Bruno Haible  <bruno@clisp.org>
98492         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
98493         with $auxdir in AC_CONFIG_FILES statements.
98495 2006-01-11  Bruno Haible  <bruno@clisp.org>
98497         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98498         Initialize also noinst_HEADERS to empty.
98500 2006-01-11  Bruno Haible  <bruno@clisp.org>
98502         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
98503         variables.
98504         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
98505         autoreconf.
98507 2006-01-11  Bruno Haible  <bruno@clisp.org>
98509         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
98510         overridable by the user.
98511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98513 2006-01-10  Simon Josefsson  <jas@extundo.com>
98515         * modules/sys_socket: New file.
98517 2006-01-10  Simon Josefsson  <jas@extundo.com>
98519         * m4/sys_socket_h.m4: New file.
98521 2006-01-10  Simon Josefsson  <jas@extundo.com>
98523         * lib/socket_.h: New file.
98525 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98527         * modules/readutmp (Maintainer): Add myself.
98529 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98531         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
98532         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
98533         People who are still concerned with buggy memcmp implementations
98534         can invoke gl_FUNC_MEMCMP themselves.
98536 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98538         * lib/regex_internal.h (BITSET_WORD_BITS):
98539         Work around a bug in 64-bit PGC (before version 6.1-2), where the
98540         preprocessor mishandles large unsigned values as if they were signed.
98541         Problem reported by Claudio Fontana in
98542         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
98544 2006-01-10  Jim Meyering  <jim@meyering.net>
98546         Avoid the double-free (first in fts_read, second in fts_close) that
98547         would occur when an `active' directory is made inaccessible (e.g.,
98548         via chmod a-x) during a traversal.
98549         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
98550         before returning.  Reproduce this failure by
98551         mkdir -p a/b; cd a; chmod a-x . b
98552         Reported by Stavros Passas.
98554         Sync from coreutils.
98555         * lib/sha1.c: Tweak grammar in a comment.
98557 2006-01-10  Jim Meyering  <jim@meyering.net>
98559         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
98560         Patch by Joerg Sonnenberger.
98562 2006-01-10  Bruno Haible  <bruno@clisp.org>
98564         * modules/readutmp: Depend on module free.
98565         * modules/strtok_r: Depend on module restrict.
98567 2006-01-10  Bruno Haible  <bruno@clisp.org>
98569         * modules/gettext (configure.ac): Add an invocation of
98570         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
98572 2006-01-10  Bruno Haible  <bruno@clisp.org>
98574         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
98575         Reported by Werner Lemberg <wl@gnu.org>.
98577 2006-01-10  Bruno Haible  <bruno@clisp.org>
98579         * lib/localcharset.c: Update from GNU gettext.
98581 2006-01-10  Bruno Haible  <bruno@clisp.org>
98583         * lib/argp.h (__const): Remove macro. Use const instead.
98584         * lib/argp-fmtstream.h (__const): Likewise.
98585         * lib/glob_.h (__const): Remove macro.
98586         * lib/glob-libc.h: Use const instead of __const.
98588 2006-01-10  Bruno Haible  <bruno@clisp.org>
98590         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
98591         variable.
98592         Needed to avoid an automake error regarding the 'gettext' module.
98594 2006-01-09  Simon Josefsson  <jas@extundo.com>
98596         * modules/inet_ntop (Depends-on): Add restrict.
98598 2006-01-09  Simon Josefsson  <jas@extundo.com>
98600         * modules/gc-rijndael-tests (License): Put under LGPL.
98602         * modules/gc-des-tests (License): Likewise.
98604         * modules/gc-arcfour-tests (License): Likewise.
98606         * modules/gc-arctwo-tests (License): Likewise.
98608         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
98610         * modules/gc-hmac-sha1-tests (Files): Likewise.
98612         * modules/gc-hmac-md5-tests (License): Likewise.
98614         * modules/gc-sha1-tests (License): Likewise.
98616         * modules/gc-md5-tests (License): Likewise.
98618         * modules/gc-md4-tests (License): Likewise.
98620         * modules/gc-md2-tests (License): Likewise.
98622         * modules/gc-tests (License): Likewise.
98624         * modules/des-tests (License): Likewise.
98626         * modules/md4-tests (License): Likewise.
98628         * modules/md2-tests (License): Likewise.
98630 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98632         Sync from coreutils:
98634         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
98635         * modules/lib-ignore: New file.
98636         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
98637         chdir-safer.m4, lchmod.m4.
98638         * modules/openat: Add mkdirat.c, openat-priv.h.
98640 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98642         Sync from coreutils.
98643         * m4/lib-ignore.m4: New file.
98644         * m4/lchmod.m4: New file.
98646 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98648         Sync from coreutils.
98649         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
98650         for write access: POSIX says that must fail.
98651         * lib/fts.c (diropen): Likewise.
98652         * lib/save-cwd.c (save_cwd): Likewise.
98653         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
98654         well, for minor improvements on hosts that lack O_DIRECTORY.
98655         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
98656         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
98657         Fall back on chown if open failed with EACCES.
98659         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
98660         Report an error at compile-time if only a 1-second nominal clock
98661         resolution is found.
98663         * lib/lchmod.h: New file.
98664         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
98665         (make_dir_parents): Use lchown rather than chown, and
98666         lchmod rather than chmod.
98668         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
98669         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
98670         "proc" reported by n0dalus.
98672         * lib/mountlist.c: Include <limits.h>.
98673         (dev_from_mount_options)
98674         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
98675         New function.  It no longer assumes "dev=" has the System V meaning
98676         on Linux (since it doesn't).  It also parses "dev=" more carefully.
98677         (read_file_system_list)
98678         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
98679         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
98680         dev= in that case.
98682         * lib/posixtm.h (PDS_PRE_2000): New macro.
98683         * lib/posixtm.c (year): Arg is now syntax_bits rather than
98684         allow_century.  All usages changed.  Reject dates outside the range
98685         1969-1999 if PDS_PRE_2000 is used.
98687 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98689         Sync from coreutils.
98690         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
98691         (Time of day items): Mention the possibility of leap seconds.
98692         Problem reported by Dr. David Alan Gilbert.
98694 2006-01-09  Jim Meyering  <jim@meyering.net>
98696         Sync from coreutils.
98698         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
98700         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
98702         * lib/modechange.c (mode_compile): Reject an invalid mode string
98703         that starts with an octal digit.  From Andreas Gruenbacher.
98705         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
98706         and dup to open_safer and dup_safer, respectively.
98707         (openat_permissive): Fix typo in comment.
98709         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
98710         "gettext.h"; either no longer needed or are guaranteed by openat.h.
98711         (_): Remove; no longer needed.
98712         (openat): Renamed from rpl_openat; no need for rpl_openat
98713         since openat.h renames openat for us.
98714         Replace most of the body with a call to openat_permissive,
98715         to avoid duplicate code.
98716         Port to (probably hypothetical) environments were mode_t is
98717         wider than int.
98718         (openat_permissive): Require mode arg, so that we can check
98719         types better.  Put it just after flags.  Change cwd failure
98720         indicator from pointer-to-bool to pointer-to-errno-value.
98721         All callers changed.
98722         Invoke openat_save_fail and/or openat_restore_fail if
98723         cwd_errno is null, so that openat can call us.
98724         (openat_permissive, fdopendir, fstatat, unlinkat):
98725         Simplify errno handling to avoid some duplicate code,
98726         as it's OK to set errno on success.
98727         * lib/openat.h: Revamp code so that function macros depend on
98728         __OPENAT_PREFIX only, not also on AT_FDCWD.
98729         (openat_ro): Remove.  Caller changed to use openat_permissive.
98730         (openat_permissive): Now a macro, if not a function.
98731         (openat_restore_fail, openat_save_fail): Now always functions,
98732         since mkdirat needs them even if __OPENAT_PREFIX is defined.
98734         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
98735         and openat.c.
98736         * lib/mkdirat.c: Include openat-priv.h.
98737         Remove definitions of macros defined therein.
98738         * lib/openat.c: Likewise.
98740         * lib/mkdirat.c (mkdirat): New file and function.
98741         * lib/openat.h (mkdirat): Declare.
98743         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
98745         * lib/openat.h (openat_permissive): Declare.
98746         (openat_ro): Define.
98748         * lib/openat.c (EXPECTED_ERRNO): New macro.
98749         (openat_permissive): New function -- used in remove.c rewrite.
98750         (all functions): Set errno just before returning, only if there
98751         was an actual failure.
98752         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
98754         Emulate openat-family functions using Linux's procfs, if possible.
98755         Idea and some code based on Ulrich Drepper's glibc changes.
98757         * lib/openat.c: (BUILD_PROC_NAME): New macro.
98758         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
98759         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
98760         before falling back on save_cwd and restore_cwd.
98761         (fdopendir, fstatat, unlinkat): Likewise.
98763         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
98764         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
98766         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
98767         as second argument to va_arg.  Otherwise, some versions of gcc
98768         warn that `if this code is reached, the program will abort'.
98770 2006-01-09  Jim Meyering  <jim@meyering.net>
98772         Sync from coreutils.
98773         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
98774         Require openat-priv.h.
98776 2006-01-09  Bruno Haible  <bruno@clisp.org>
98778         * modules/strnlen (Include): Use strnlen.h.
98780 2006-01-09  Bruno Haible  <bruno@clisp.org>
98782         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
98784 2006-01-09  Bruno Haible  <bruno@clisp.org>
98786         * lib/sysexit_.h (EX_OK): New macro.
98787         Suggested by Martin Lambers <marlam@marlam.de>.
98789 2006-01-09  Bruno Haible  <bruno@clisp.org>
98791         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
98792         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
98794 2006-01-09  Bruno Haible  <bruno@clisp.org>
98796         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
98797         numbers.
98799 2006-01-09  Bruno Haible  <bruno@clisp.org>
98801         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
98802         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
98803         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
98804         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
98806 2006-01-09  Bruno Haible  <bruno@clisp.org>
98808         * build-aux/javacomp.sh.in: New file, moved from lib/.
98809         * modules/javacomp-script (Files): Update.
98810         (configure.ac): Add AC_CONFIG_FILES invocation.
98811         (EXTRA_DIST): Remove variable.
98813         * build-aux/javaexec.sh.in: New file, moved from lib/.
98814         * modules/javaexec (Files): Update.
98815         (configure.ac): Add AC_CONFIG_FILES invocation.
98816         (EXTRA_DIST): Remove javaexec.sh.in.
98818         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
98819         * modules/csharpcomp-script (Files): Update.
98820         (configure.ac): Add AC_CONFIG_FILES invocation.
98821         (EXTRA_DIST): Remove variable.
98823         * build-aux/csharpexec.sh.in: New file, moved from lib/.
98824         * modules/csharpexec (Files): Update.
98825         (configure.ac): Add AC_CONFIG_FILES invocation.
98826         (EXTRA_DIST): Remove csharpexec.sh.in.
98828 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98830         Sync from coreutils.
98832         Add POSIX ACL support
98833         * lib/acl.h (copy_acl, set_acl): Add declarations.
98834         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
98835         systems other than Linux.
98836         (chmod_or_fchmod): New function: use fchmod when possible,
98837         and chmod otherwise.
98838         (file_has_acl): Add a POSIX ACL implementation, with a
98839         Linux-specific subcase.
98840         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
98841         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
98842         acls are unsupported.
98843         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
98844         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
98845         are unsupported.
98847 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98849         Sync from coreutils.
98850         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
98852 2006-01-07  Bruno Haible  <bruno@clisp.org>
98854         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
98855         gl_EARLY.
98857 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98859         * lib/strftime.c (tzname): Don't declare if it is already #defined.
98860         Problem reported for Mingw by Mark Junker.
98862 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98864         * README: Gnulib normally doesn't generate a tarball.
98866 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
98868         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
98869         long int, not int, for nanosecond counts, so that people who are
98870         used to POSIX struct timespec won't be surprised.  Reported by Jim
98871         Meyering.
98873 2005-12-28  Bruno Haible  <bruno@clisp.org>
98875         * build-aux/config.rpath: Update from GNU gettext.
98877 2005-12-16  Jim Meyering  <jim@meyering.net>
98879         * modules/fprintftime: New module.
98880         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
98882 2005-12-16  Jim Meyering  <jim@meyering.net>
98884         * m4/fprintftime.m4: New file.
98886 2005-12-16  Jim Meyering  <jim@meyering.net>
98888         * lib/fprintftime.c, lib/fprintftime.h: New files.
98890 2005-12-15  Simon Josefsson  <jas@extundo.com>
98892         * modules/socklen (configure.ac): Fix M4 macro name, to align with
98893         new m4/socklen.m4.
98895 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98897         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
98898         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
98900 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98902         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
98903         * lib/argp-help.c (fill_in_uparams): Check if the constructed
98904         struct uparams is valid. Fall back to the default values if it is
98905         not.
98907 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98909         * modules/argp (Files): Add argp-pin.c
98910         (Depends-on): dirname
98911         (lib_SOURCES): Add argp-pin.c
98913 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98915         * m4/argp.m4:  Check if program_invocation_name and
98916         program_invocation_short_name are declared and define appropriate
98917         macros if they are not.
98919 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98921         * lib/argp-help.c (__argp_base_name): New function
98922         (__argp_short_program_name): Rewrite using __argp_base_name
98923         * lib/argp-namefrob.h: Define program_invocation_name and
98924         program_invocation_short_name if requested
98925         (__argp_base_name): Add prototype
98926         * lib/argp-parse.c (argp_def): Use gettext wrappers
98927         (argp_default_parser): Use __argp_base_name
98928         * lib/argp-pin.c: New file. Defines program_invocation_name and
98929         program_invocation_short_name on systems that lack them.
98931 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98933         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
98934         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98935         porting problem reported by Georg Schwarz in
98936         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98938 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98940         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
98941         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98942         porting problem reported by Georg Schwarz in
98943         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98945 2005-12-05  Bruno Haible  <bruno@clisp.org>
98947         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
98948         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
98949         Reported by Mark Junker <mjscod@gmx.de>.
98951 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
98953         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
98954         Use implementation from Albert Chin, with some
98955         comments/corrections by Stepan Kasal and myself.
98957 2005-12-02  Bruno Haible  <bruno@clisp.org>
98959         * gnulib-tool (func_import): Accept GPLed build tool modules when
98960         --lgpl is given.
98961         * modules/csharpcomp-script: New file.
98962         * modules/csharpcomp: Depend on it.
98963         * modules/javacomp-script: New file.
98964         * modules/javacomp: Depend on it.
98965         Suggested by Simon Josefsson.
98967 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
98969         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
98970         statement, to work around an HP-UX 10.20 compiler bug reported by
98971         Peter O'Gorman.
98973 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98975         * modules/savedir (Depends-on): Add openat.
98977 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98979         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
98980         (uintmax_t) [defined uintmax_t]: Do not declare.
98981         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
98982         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
98983         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
98984         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
98985         sake of portability to weird hosts that C allows (though we don't
98986         know of any practical examples).
98988         * lib/savedir.h (fdsavedir): New decl.
98989         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
98990         contains most of the former guts of savedir.
98991         (savedir): Use savedirstream.
98992         Include "openat.h".
98994 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98996         * modules/obstack (Files): Add m4/ulonglong.m4.
98997         Problem reported by Davide Angelocola.
98999 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99001         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
99002         coreutils no longer futzes with rounding modes.
99004 2005-11-14  Jim Meyering  <jim@meyering.net>
99006         * lib/mkstemp-safer.c: Include <config.h>, required for possible
99007         replacement of mkstemp.
99009 2005-11-10  Simon Josefsson  <jas@extundo.com>
99011         * lib/readline.c: Remove EOL.
99013 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99015         * modules/gethrxtime (Depends-on): Add gettime.
99017 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99019         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
99020         or gettimeofday; no longer needed.
99022 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99024         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
99025         time business.
99026         (gethrxtime) [! (HAVE_NANOUPTIME
99027         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
99028         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
99029         our own approximation.
99031 2005-11-08  Eric Blake  <ebb9@byu.net>
99033         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99035 2005-11-08  Eric Blake  <ebb9@byu.net>
99037         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99039 2005-11-04  Bruno Haible  <bruno@clisp.org>
99041         * gnulib-tool: Implement --update mode.
99043 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99045         Fix porting problem reported by Theodoros V. Kalamatianos.
99046         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
99047         Don't assume that futimes failing means we must fail.
99049 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99051         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
99052         variables to suggest the intended function of the PATH_MAX check.
99054 2005-10-30  Kean Johnston  <jkj@sco.com>
99056         Trivial changes to support SCO systems.
99057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
99058         as PATH_MAX.
99059         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
99060         where __ptr is null when no I/O is pending.
99062 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99064         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
99065         leave errno alone.  Problem reported by Dmitry V. Levin.
99067 2005-10-28  Simon Josefsson  <jas@extundo.com>
99069         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
99070         Test more.
99072         * tests/test-gc-md2.c, tests/test-md2.c: New files.
99074         * modules/md2, modules/md2-tests: New files.
99076 2005-10-28  Simon Josefsson  <jas@extundo.com>
99078         * m4/inet_ntop.m4: More tests.
99080         * m4/gc-md2.m4, md2.m4: New file.
99082 2005-10-28  Simon Josefsson  <jas@extundo.com>
99084         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
99085         "restrict" keywords, as per POSIX.  Protect the function
99086         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
99087         Don't use K&R prototypes.  Check the sprintf return values.
99088         Re-define EAFNOSUPPORT if not present.  Indent.
99090         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
99091         suggested by Bruno Haible <bruno@clisp.org>.
99093         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
99095         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
99097         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
99098         libgcrypt).
99100         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
99102         * lib/md2.h, lib/md2.c: New files.
99104 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
99106         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
99107         errno alone.  Problem reported by Frederic Jolliton.
99109 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
99111         * modules/verify (License): Change from GPL to LGPL.  This is a
99112         tiny module and there are apparently near-equivalents that are
99113         under the BSD license.
99115 2005-10-24  Simon Josefsson  <jas@extundo.com>
99117         * modules/sha1: Relicense to LGPL.
99119 2005-10-24  Simon Josefsson  <jas@extundo.com>
99121         * lib/md4.h: Shrink buffer size, now that we changed the type.
99123 2005-10-23  Simon Josefsson  <jas@extundo.com>
99125         * gnulib-tool (func_import): Fix --tests-base.
99127 2005-10-22  Simon Josefsson  <jas@extundo.com>
99129         * modules/arcfour (Depends-on): Need stdint.
99131 2005-10-22  Simon Josefsson  <jas@extundo.com>
99133         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
99134         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
99136 2005-10-22  Simon Josefsson  <jas@extundo.com>
99138         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
99139         suggested by Bruno Haible <bruno@clisp.org>.
99141 2005-10-22  Simon Josefsson  <jas@extundo.com>
99143         * lib/crc.h: Include stddef.h, for size_t.
99145 2005-10-22  Simon Josefsson  <jas@extundo.com>
99147         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
99148         arcfour_context struct (simplify test vector testing in GNU
99149         Shishi).
99151 2005-10-21  Simon Josefsson  <jas@extundo.com>
99153         * modules/des, modules/des-tests: New files.
99155         * modules/gc-des, modules/gc-des-tests: New files.
99157         * tests/test-des.c, tests/test-gc-des.c: New file.
99159 2005-10-21  Simon Josefsson  <jas@extundo.com>
99161         * modules/arctwo, modules/arctwo-tests: New files.
99163         * tests/test-arctwo.c: New file.
99165         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
99167         * tests/test-gc-arctwo.c: New file.
99169 2005-10-21  Simon Josefsson  <jas@extundo.com>
99171         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
99172         Bruno Haible <bruno@clisp.org>.
99174         * m4/gc-des.m4: New file.
99176 2005-10-21  Simon Josefsson  <jas@extundo.com>
99178         * m4/arctwo.m4: New file.
99180         * m4/gc-arctwo.m4: New file.
99182 2005-10-21  Simon Josefsson  <jas@extundo.com>
99184         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
99185         block.
99187 2005-10-21  Simon Josefsson  <jas@extundo.com>
99189         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
99190         <bruno@clisp.org>.
99192         * lib/hmac-sha1.c (hmac_sha1): Likewise.
99194         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
99195         Bruno Haible <bruno@clisp.org>.
99197         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
99198         <bruno@clisp.org>.
99200 2005-10-21  Simon Josefsson  <jas@extundo.com>
99202         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
99204 2005-10-21  Simon Josefsson  <jas@extundo.com>
99206         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
99208 2005-10-21  Simon Josefsson  <jas@extundo.com>
99210         * lib/des.h, lib/des.c: New files.
99212         * lib/gc-gnulib.c: Support DES.c
99214 2005-10-21  Simon Josefsson  <jas@extundo.com>
99216         * lib/arctwo.h, lib/arctwo.c: New files.
99218         * lib/gc-gnulib.c: Support ARCTWO.
99220 2005-10-21  Simon Josefsson  <jas@extundo.com>
99222         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
99223         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99225 2005-10-21  Simon Josefsson  <jas@extundo.com>
99227         * gnulib-tool (func_import, func_create_testdir): Define automake
99228         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
99229         Makefile.am snippet),
99230         suggested by Bruno Haible <bruno@clisp.org>.
99232         * modules/gc (Makefile.am): Use it.
99234 2005-10-21  Bruno Haible  <bruno@clisp.org>
99236         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
99237         patch.
99239 2005-10-19  Simon Josefsson  <jas@extundo.com>
99241         * tests/test-gc-rijndael.c: New file.
99243         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
99245 2005-10-19  Simon Josefsson  <jas@extundo.com>
99247         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
99248         interface too.
99250 2005-10-19  Simon Josefsson  <jas@extundo.com>
99252         * tests/test-gc-arcfour.c: New file.
99254         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
99256 2005-10-19  Simon Josefsson  <jas@extundo.com>
99258         * modules/gc-md4, modules/gc-md4-tests: New file.
99260         * tests/test-gc-md4.c: New file.
99262 2005-10-19  Simon Josefsson  <jas@extundo.com>
99264         * m4/gc-md4.m4: New file.
99266 2005-10-19  Simon Josefsson  <jas@extundo.com>
99268         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
99269         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
99270         <kasal@ucw.cz>.
99272 2005-10-19  Simon Josefsson  <jas@extundo.com>
99274         * m4/gc-arcfour.m4: New file.
99276         * m4/gc-rijndael.m4: New file.
99278 2005-10-19  Simon Josefsson  <jas@extundo.com>
99280         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
99282 2005-10-19  Simon Josefsson  <jas@extundo.com>
99284         * lib/gc-gnulib.c: Support ARCFOUR.
99286 2005-10-19  Simon Josefsson  <jas@extundo.com>
99288         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
99289         support.
99291         * lib/gc.h: Add ECB enum type.
99293         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
99295 2005-10-18  Simon Josefsson  <jas@extundo.com>
99297         * tests/test-md5.c: New file.
99299         * modules/md5-tests: New file.
99301 2005-10-18  Simon Josefsson  <jas@extundo.com>
99303         * tests/test-md4.c: New file.
99305         * modules/md4, modules/md4-tests: New files.
99307 2005-10-18  Simon Josefsson  <jas@extundo.com>
99309         * m4/md4.m4: New file.
99311 2005-10-18  Simon Josefsson  <jas@extundo.com>
99313         * lib/md4.h, lib/md4.c: New files, based on md5.?.
99315 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
99317         * gnulib-tool (func_create_testdir): Omit the second check whether
99318         BUILT_SOURCES in nonempty.
99320 2005-10-17  Simon Josefsson  <jas@extundo.com>
99322         * tests/test-rijndael.c: New file.
99324 2005-10-17  Simon Josefsson  <jas@extundo.com>
99326         * modules/sha1: Depend on stdint instead of md5.
99328         * modules/md5: Depend on stdint, remove uint32_t.
99330 2005-10-17  Simon Josefsson  <jas@extundo.com>
99332         * modules/gc-sha1-tests: New file.
99334         * tests/test-gc-sha1.c: New file.
99336 2005-10-17  Simon Josefsson  <jas@extundo.com>
99338         * m4/md5.m4: Remove call to uint32_t.m4.
99340 2005-10-17  Simon Josefsson  <jas@extundo.com>
99342         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
99344         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
99345         md5.h.
99347         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
99349         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
99351 2005-10-17  Simon Josefsson  <jas@extundo.com>
99353         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
99355 2005-10-17  Simon Josefsson  <jas@extundo.com>
99357         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
99359 2005-10-17  Simon Josefsson  <jas@extundo.com>
99361         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
99363         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
99365 2005-10-17  Bruno Haible  <bruno@clisp.org>
99367         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
99368         that it can also be used in a test.
99370 2005-10-16  Bruno Haible  <bruno@clisp.org>
99372         * gnulib-tool (func_emit_tests_Makefile_am): Also define
99373         TESTS_ENVIRONMENT, so that individual tests can augment it.
99375         * gnulib-tool (func_create_testdir): Use an intermediate target for
99376         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
99377         macros, like $(ALLOCA_H), which cannot be passed through the command
99378         line.
99380 2005-10-15  Simon Josefsson  <jas@extundo.com>
99382         * modules/rijndael-tests: New file.
99384         * modules/rijndael: New file.
99386 2005-10-15  Simon Josefsson  <jas@extundo.com>
99388         * m4/rijndael.m4: New file.
99390 2005-10-15  Simon Josefsson  <jas@extundo.com>
99392         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
99394         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
99396 2005-10-14  Simon Josefsson  <jas@extundo.com>
99398         * tests/test-arcfour.c: New file.
99400         * modules/arcfour, modules/arcfour-tests: New files.
99402 2005-10-14  Simon Josefsson  <jas@extundo.com>
99404         * m4/arcfour.m4: New file.
99406 2005-10-14  Simon Josefsson  <jas@extundo.com>
99408         * lib/arcfour.h, lib/arcfour.c: New files.
99410 2005-10-14  Roland McGrath  <roland@redhat.com>
99412         Import from libc.  [BZ #1331]
99413         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
99414         macro argument.
99415         Reported by Matej Vela <vela@debian.org>.
99417 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99419         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
99420         include <wchar.h>; no longer needed.
99422 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99424         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
99426 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
99427         and  Ulrich Drepper  <drepper@redhat.com>
99429         Import from libc.
99430         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
99431         instead of inline stream orientation test and two separate
99432         function calls.  Pay no attention to USE_IN_LIBIO.
99434 2005-10-13  Simon Josefsson  <jas@extundo.com>
99436         * modules/gc-hmac-md5-tests: New file.
99438         * tests/test-gc-hmac-sha1.c: New file.
99440         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
99442         * modules/gc-hmac-md5-tests: New file.
99444         * tests/test-gc-md5.c: New file.
99446         * modules/gc-md5-tests: New file.
99448 2005-10-13  Simon Josefsson  <jas@extundo.com>
99450         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
99451         Move memory allocation outside of loop.
99453 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
99455         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
99456         intermediate directory is in a read-only file system.  Problem
99457         reported by Eric Blake.
99459 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
99461         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
99463 2005-10-12  Simon Josefsson  <jas@extundo.com>
99465         * tests/test-hmac-sha1.c: New file.
99467         * modules/hmac-sha1-tests: New file.
99469         * modules/hmac-sha1: New file.
99471 2005-10-12  Simon Josefsson  <jas@extundo.com>
99473         * modules/gc-sha1: New file.
99475 2005-10-12  Simon Josefsson  <jas@extundo.com>
99477         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
99479         * tests/test-gc-pbkdf2-sha1.c: New file.
99481 2005-10-12  Simon Josefsson  <jas@extundo.com>
99483         * modules/gc-md5, modules/gc-hmac-md5: New files.
99485         * modules/gc (Files): Remove md5, memxor and hmac files.
99487 2005-10-12  Simon Josefsson  <jas@extundo.com>
99489         * m4/gc-pbkdf2-sha1.m4: New file.
99491         * m4/gc-hmac-sha1.m4: New file.
99493         * m4/gc-sha1: New file.
99495         * m4/hmac-sha1.m4: New file.
99497 2005-10-12  Simon Josefsson  <jas@extundo.com>
99499         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
99501         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
99503 2005-10-12  Simon Josefsson  <jas@extundo.com>
99505         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
99506         suggested by Bruno Haible <bruno@clisp.org>.
99508 2005-10-12  Simon Josefsson  <jas@extundo.com>
99510         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
99512 2005-10-12  Simon Josefsson  <jas@extundo.com>
99514         * lib/gc-pbkdf2-sha1.c: New file.
99516         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
99518 2005-10-12  Simon Josefsson  <jas@extundo.com>
99520         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
99522         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
99524 2005-10-12  Simon Josefsson  <jas@extundo.com>
99526         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
99527         GC_USE_HMAC_MD5, respectively.
99529         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
99530         (gc_md5): Fix typo.
99532         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
99534         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
99536         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
99538 2005-10-12  Bruno Haible  <bruno@clisp.org>
99540         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
99541         Reported by Stepan Kasal <kasal@ucw.cz>.
99543 2005-10-11  Simon Josefsson  <jas@extundo.com>
99545         * tests/test-crc.c: New file.
99547         * modules/crc, modules/crc-tests: New files.
99549 2005-10-11  Simon Josefsson  <jas@extundo.com>
99551         * m4/crc.m4: New file.
99553 2005-10-11  Simon Josefsson  <jas@extundo.com>
99555         * lib/gc.h: Add gc_hash and gc_hash_buffer.
99557         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
99559         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
99561 2005-10-11  Simon Josefsson  <jas@extundo.com>
99563         * lib/crc.h, lib/crc.c: New files.
99565         * lib/gc.h (gc_hash_buffer): Add doc.
99567 2005-10-11  Bruno Haible  <bruno@clisp.org>
99569         * modules/c-strcasestr: New file.
99570         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
99572 2005-10-11  Bruno Haible  <bruno@clisp.org>
99574         * modules/c-strcase: New file.
99575         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
99577 2005-10-11  Bruno Haible  <bruno@clisp.org>
99579         * lib/strcasecmp.c: Include limits.h.
99580         (strcasecmp): Avoid integer overflow on exotic platforms.
99581         * lib/strncasecmp.c: Include limits.h.
99582         (strncasecmp): Avoid integer overflow on exotic platforms.
99583         Reported by Paul Eggert.
99585 2005-10-11  Bruno Haible  <bruno@clisp.org>
99587         * lib/c-strcasestr.h: New file, from GNU gettext.
99588         * lib/c-strcasestr.c: New file, from GNU gettext.
99590 2005-10-11  Bruno Haible  <bruno@clisp.org>
99592         * lib/c-strcase.h: New file, from GNU gettext.
99593         * lib/c-strcasecmp.c: New file, from GNU gettext.
99594         * lib/c-strncasecmp.c: New file, from GNU gettext.
99596 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
99598         * modules/mempcpy (License): GPL -> LGPL.
99599         * modules/strchrnul (License): Likewise.
99600         * modules/sysexits (License): Likewise.
99602 2005-10-08  Simon Josefsson  <jas@extundo.com>
99604         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
99606 2005-10-07  Simon Josefsson  <jas@extundo.com>
99608         * m4/memxor.m4: Remove gl_C_RESTRICT call.
99610 2005-10-06  Simon Josefsson  <jas@extundo.com>
99612         * tests/test-hmac-md5.c: New file.
99614         * modules/hmac-md5-tests: New file.
99616         * modules/hmac-md5: New file.
99618 2005-10-06  Simon Josefsson  <jas@extundo.com>
99620         * m4/hmac-md5.m4: New file.
99622         * m4/memxor.m4: Require gl_C_RESTRICT.
99624 2005-10-06  Simon Josefsson  <jas@extundo.com>
99626         * lib/memxor.c (memxor): Avoid casts and warnings.
99628 2005-10-06  Simon Josefsson  <jas@extundo.com>
99630         * lib/hmac-md5.c: New file.
99632         * lib/hmac.h: New file.
99634 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
99636         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
99637         promotes to int, not unsigned int, to catch the AIX 5.3
99638         compiler bug.
99640 2005-10-05  Simon Josefsson  <jas@extundo.com>
99642         * modules/memxor: New file.
99644         * modules/iconv (Files): Move config.rpath to havelib, it is used
99645         there.
99647         * modules/havelib (Files): Add config.rpath.
99649 2005-10-05  Simon Josefsson  <jas@extundo.com>
99651         * m4/memxor.m4: New file.
99653 2005-10-05  Simon Josefsson  <jas@extundo.com>
99655         * lib/memxor.c (memxor): Fix compiler error.
99657         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
99658         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
99660         * lib/memxor.h, lib/memxor.c: New files.
99662         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
99663         we assume all systems have it, suggested by Jim Meyering
99664         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
99665         any systems lack sys/socket.h; mingw32 is known to lack it, but we
99666         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
99667         same reasons.
99669 2005-10-05  Simon Josefsson  <jas@extundo.com>
99671         * config/srclist.txt: Add glibc bug 1423 for md5.h.
99673 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
99675         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
99676         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
99677         needed, since the source code now assumes these .h files.
99679 2005-10-05  Derek Price  <derek@ximbiot.com>
99681         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
99683 2005-10-05  Bruno Haible  <bruno@clisp.org>
99685         * modules/stdint (License): Change to LGPL.
99687 2005-10-04  Simon Josefsson  <jas@extundo.com>
99689         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
99690         D. Baushke" <mdb@gnu.org>.
99692 2005-10-04  Bruno Haible  <bruno@clisp.org>
99694         * lib/verify.h (verify_true): Provide alternative definition for C++.
99696 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
99698         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
99699         (SSIZE_MAX): New macro, if not already defined.
99700         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
99701         than 2 GiB.
99703 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99705         Sync from coreutils.
99706         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
99707         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
99708         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
99709         ULLONG_MAX doesn't work with 2.7.2.1.
99711 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99713         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
99714         From Ben Pfaff.
99716         * modules/exclude (Depends-on): Depend on verify.
99717         * modules/strtoimax (Depends-on): Likewise.
99718         * modules/utimecmp (Depends-on): Likewise.
99720 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99722         * lib/exclude.c: Include verify.h.
99723         (verify): Remove.  All callers changed to use verify.h's version.
99724         * lib/strtoimax.c: Likewise.
99725         * lib/utimecmp.c: Likewis.e
99727         Sync from coreutils.
99728         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
99729         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
99730         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
99731         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
99732         bother returning ENOSYS if settimeofday or stime fails; just let
99733         them return whatever errno they want to return.
99734         * lib/utimens.c: Include unistd.h, for dup2.
99735         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
99736         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
99738 2005-10-02  Jim Meyering  <jim@meyering.net>
99740         Sync from coreutils.
99741         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
99742         from glibc-2.2.5 that fails for read-only files.
99744 2005-10-02  Jim Meyering  <jim@meyering.net>
99746         Sync from coreutils.
99747         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
99748         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
99749         `#if HAVE_CONFIG_H'.
99750         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
99751         Remove AT_FDCWD test.
99752         Do not consume the fd unless successful.
99753         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
99754         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
99755         block, so that we don't even try to compile it if settimeofday is
99756         available.  This works around a compilation failure on OSF1 V5.1,
99757         due to stime requiring a `long int*' while tv_sec is `int'.
99759 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
99761         Sync from coreutils.
99762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
99763         against `yes', rather than just testing for nonempty.
99765 2005-10-01  Simon Josefsson  <jas@extundo.com>
99767         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
99768         and Darwin.
99770         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
99771         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
99772         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
99773         freeaddrinfo and gai_strerror are declared by the POSIX headers.
99774         Check if struct addrinfo is declared.
99776 2005-10-01  Simon Josefsson  <jas@extundo.com>
99778         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
99779         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
99780         AI_* and EAI_* definitions.  Protect function declarations.
99782 2005-10-01  Jim Meyering  <jim@meyering.net>
99784         Sync from coreutils.
99786         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
99787         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
99788         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
99789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99790         in the inet and nsl libraries.  Required on Solaris 5.7.
99792 2005-10-01  Jim Meyering  <jim@meyering.net>
99794         Sync from coreutils.
99795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99796         in the inet and nsl libraries.  Required on Solaris 5.7.
99798 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
99800         * lib/getdelim.c (getdelim): Remove unused variables.
99802 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
99804         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
99805         so that the code works even with ancient cpp.  Portability problem
99806         with GCC 2.7.2.1 reported by Thomas M.Ott.
99808 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
99810         * modules/regex (Depends-on): Add strcase.
99812         * modules/gethostname (Licence): Change from GPL to LGPL, since
99813         gethostname.c is a trivial implementation of a standard library
99814         function.
99815         * modules/poll (License): Change from GPL to LGPL, since it's
99816         derived from LGPL code.
99818 2005-09-27  Jim Meyering  <jim@meyering.net>
99820         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
99821         HAVE_CONFIG_H.
99823         * lib/intprops.h (signed_type_or_expr__): Define.
99824         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
99825         for unsigned types.
99827 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
99829         * lib/verify.h (verify_expr): Remove, replacing with:
99830         (verify_true): New macro that returns true instead of void.
99831         (verify_type__): Remove.
99832         (verify): Use verify_true rather than verify_type__.
99834 2005-09-26  Bruno Haible  <bruno@clisp.org>
99836         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
99837         is necessary.
99838         (lib_SOURCES): Remove mbchar.c.
99839         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
99840         (Files): Add m4/mbrtowc.m4.
99841         * modules/mbiter: Likewise.
99842         * modules/mbuiter: Likewise.
99844 2005-09-26  Bruno Haible  <bruno@clisp.org>
99846         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
99847         compile mbchar.c if they are not both present.
99848         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
99849         * m4/mbiter.m4 (gl_MBITER): Likewise.
99850         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
99851         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
99852         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
99854 2005-09-25  Jim Meyering  <jim@meyering.net>
99856         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
99857         also uses socklen_t.
99859 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
99861         * lib/utimens.c (ENOSYS): Define if not already defined.
99862         (futimens): Support having a null PATH if the file descriptor
99863         is nonnegative.
99865         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
99866         Remove.
99867         (__attribute): Define to empty unless GCC 3.1 or later.
99868         This works around a core dump on OpenBSD 3.4, which has GCC
99869         2.95.3, which dumps core when given __attribute__(()).  It also
99870         simplifies other tests, since we really don't want to bother with
99871         worrying about which ancient version of GCC supported what.
99872         Original problem reported by Yoann Vandoorselaere, with part of
99873         the fix suggested by Derek Price.
99875 2005-09-24  Jim Meyering  <jim@meyering.net>
99877         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
99878         so we can once again use a positive bitfield width of 1 -- now we
99879         don't have to explain why we were using a bitfield width of 2.
99881 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99883         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
99884         and similarly for the other external symbols.  Problem reported
99885         by James Gallager.
99887         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
99888         bug reported by Jim Meyering.
99890         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
99891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
99892         not needed, since socklen is a prerequisite module.
99894 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99896         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
99897         Problem reported by Eric Blake.
99898         (getaddrinfo): Initialize se so that it's not garbage.
99899         Redo internal storage allocation so that it doesn't make unportable
99900         assumptions about alignment.
99901         Fix a memory leak.
99903         * lib/utimens.c (futimens): Use futimesat if available.
99904         Prefer it to futimes since it doesn't have the futimes bug.
99906         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
99907         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
99908         Instead, declare a function that returns a pointer to an array,
99909         and use verify_type__ to declare the size of the array.
99910         Problem and germ of a solution reported by Bruno Haible.
99911         (verify_type__): Use 2, not 1, for bitfield size, to avoid
99912         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
99914 2005-09-23  Jim Meyering  <jim@meyering.net>
99916         Sync from coreutils.
99917         Correct build failure (socklen_t not defined) on at least
99918         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
99919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
99921 2005-09-23  Jim Meyering  <jim@meyering.net>
99923         * modules/getaddrinfo (Depends-on): Add socklen.
99925 2005-09-23  Bruno Haible  <bruno@clisp.org>
99927         * tests/test-verify.c: New file.
99929 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99931         Sync from coreutils.
99933         * modules/argmatch (Depends-on): Add verify.
99934         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
99935         unistd-safer.
99936         * modules/save-cwd (Depends-on): Likewise.
99938         * modules/openat (Files): Add lib/openat-die.c.
99939         (Depends-on): Remove error, exitfail.
99940         Add dirname.
99942         * modules/verify: New file.
99943         * MODULES.html.sh (Diagnostics <assert.h>): New section,
99944         with "verify" module.
99946 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99948         Sync from coreutils.
99950         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
99951         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
99952         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
99953         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
99954         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
99955         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
99956         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
99957         Don't bother checking for string.h, stdlib.h, unistd.h.
99958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
99959         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
99960         module's job.
99961         * m4/jm-macros.m4 (gl_MACROS): Likewise.
99962         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
99964         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
99965         (gl_GETDATE): Use it.
99967         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
99969 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99971         Sync from coreutils.
99973         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
99974         stat-time.h.
99975         * lib/argmatch.h: Include verify.h
99976         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
99977         (ARGMATCH_ASSERT): Remove; unused.
99978         * lib/canonicalize.c: Assume STDC_HEADERS.
99979         * lib/exclude.c: Include "strcase.h".
99980         * lib/regex_internal.h [!defined _LIBC]: Likewise.
99981         * lib/getusershell.c: Include stdio--.h rather than stdio.h
99982         and stdio-safer.h.
99983         (getusershell): Call fopen, not fopen_safer.
99984         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
99985         Do not include unistd-safer.h.
99986         (save_cwd): Don't call fd_safer; no longer needed
99987         now that we include fcntl--.h.
99989         * lib/getdate.y (relative_time): New type.
99990         (RELATIVE_TIME_0): New constant.
99991         (parser_control): Use relative_time instead of doing it ourselves.
99992         (%union): Add new relative_time rel member.
99993         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
99994         Now typeless.
99995         (relunit, relunit_snumber): Now of type rel.
99996         (zone, rel, relunit, get_date): Adjust to above changes.
99998         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
99999         Do not include unistd-safer.h.
100000         (getloadavg): Don't call fd_safer; no longer needed
100001         now that we include fcntl--.h.
100003         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
100004         (make_dir_parents): Treat ENOSYS like EEXIST.
100006         Improve quality of diagnostics on restore_cwd failure.
100007         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
100008         (make_dir_parents): Last arg is now int * (for errno), not bool *.
100009         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
100010         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
100011         each time through the loop.  Do not diagnose restore_cwd failure;
100012         that is the caller's job (and perhaps the caller does not care).
100014         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
100015         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
100016         If the file already exists but is not a directory, don't bother
100017         to try to make its parents.
100018         Close potential file descriptor leak if we can't chdir("/") (!).
100019         Don't always return true if chdir($PWD) fails; return true only
100020         if the requested action was done successfully (except for the
100021         chdir($PWD)).
100022         Don't log final directory unless we actually made it.
100023         Refactor to avoid duplicate code to fix up permissions.
100024         Don't attempt to fix up parent permissions if chdir($PWD) fails.
100026         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
100027         to make it a bit faster and (I hope) clearer.
100028         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
100029         Fix bug in formats like %2N.
100031         * lib/verify.h: New file.
100033 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100035         Sync from coreutils.
100036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
100038 2005-09-22  Jim Meyering  <jim@meyering.net>
100040         Sync from coreutils.
100042         * m4/lstat.m4 (gl_FUNC_LSTAT):
100043         Use AC_LIBSOURCES to require lstat.c and lstat.h.
100044         Remove obsolete comment.
100045         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
100046         * m4/xstrtod.m4: Likewise.
100048         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
100050 2005-09-22  Jim Meyering  <jim@meyering.net>
100052         Sync from coreutils.
100054         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
100056         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
100057         the .tm_year member, since otherwise gcc-4.0 would now warn about
100058         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
100060         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
100061         order to avoid an unsuppressible warning from gcc on 64-bit systems.
100063         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
100064         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
100065         when run in a time zone for which daylight savings time is in effect
100066         for the starting date.
100068         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
100069         stop us from restricting permissions of just-created absolute-named
100070         directories.
100071         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
100072         to restore initial working directory.
100073         * lib/mkdir-p.c (make_dir_parents): New parameter:
100074         different_working_dir, to tell caller if/when we change the working
100075         directory and are unable to return to the initial one.
100076         * lib/mkdir-p.h (make_dir_parents): Update prototype.
100077         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
100078         `return false'.  This fixes a bug introduced on 2004-07-30.
100080         * lib/openat.c (fdopendir): Be sure to close the supplied
100081         file descriptor before returning.  This makes our replacement
100082         implementation a little closer to Solaris's, where fdopendir
100083         ties the file descriptor to the returned DIR* pointer.
100084         * lib/openat.c (unlinkat): New function.
100085         * lib/openat.h (unlinkat): Add prototype.
100086         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
100087         (openat_restore_fail): Rename from openat_restore_die.
100088         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
100090         Provide an alternative to exiting immediately upon save_cwd or
100091         restore_cwd failure.  Now, an application can arrange e.g.,
100092         to perform a longjump in that case.
100093         * lib/openat.c: Include dirname.h.
100094         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
100095         (rpl_openat, fdopendir, fstatat): Call openat_save_die
100096         and openat_restore_die rather than calling error directly.
100097         Don't include "error.h" or "exitfail.h"; they're no longer needed.
100099         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
100100         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
100101         define.
100103         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
100104         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
100105                             int utc, int nanoseconds);
100106         Background:
100107         date should not have to allocate a megabyte of virtual memory to
100108         handle a format argument like +%1048575T.  When implemented with
100109         strftime, it must allocate such a buffer, use strftime to fill it
100110         in, print it, then free it.
100111         With fprintftime, it simply prints everything and exits.
100112         With no need for memory allocation, that's one fewer way to fail.
100113         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
100114         optional field width, not before, so we accept %9:z, not %:9z.
100115         (my_strftime): Be sure to use L_('x') for literals.
100117         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
100118         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
100119         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
100120         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
100121         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
100122         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
100123         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
100124         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
100125         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
100126         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
100127         * lib/xgethostname.c, lib/xreadlink.c:
100128         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
100130         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
100131         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
100132         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
100133         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100134         and don't include <sys/file.h>).
100136 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
100138         Sync from coreutils.
100140         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
100141         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
100142         [!LDAV_DONE]: Avoid unused variable warning.
100144 2005-09-21  Bruno Haible  <bruno@clisp.org>
100146         * lib/unicodeio.h (unicode_to_mb): New declaration.
100148 2005-09-20  Derek Price  <derek@ximbiot.com>
100150         * lib/getaddrinfo.c: Don't include <netdb.h> included from
100151         getaddrinfo.h.
100153 2005-09-20  Bruno Haible  <bruno@clisp.org>
100155         * gnulib-tool: Remove trailing slashes from the values specified for
100156         --source-base, --m4-base, --tests-base, --aux-dir.
100157         Suggested by Simon Josefsson <jas@extundo.com>.
100159 2005-09-20  Bruno Haible  <bruno@clisp.org>
100161         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
100162         func_modules_to_filelist, func_import, func_create_testdir): Make all
100163         sorting results locale-independent, so that gnulib-cache.m4 doesn't
100164         change when gnulib-tool is invoked in a different locale.
100166 2005-09-19  Simon Josefsson  <jas@extundo.com>
100168         * m4/socklen.m4: Fix typo.
100170 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100172         Use a consistent style for including <config.h>.
100173         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
100174         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
100175         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
100176         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
100177         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
100178         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
100179         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
100180         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
100181         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
100182         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
100183         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
100184         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
100185         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
100186         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
100187         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
100188         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
100189         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
100190         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
100191         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
100192         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
100193         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
100194         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
100195         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
100196         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
100197         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
100198         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
100199         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
100200         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
100201         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
100202         lib/xstrtoumax.c, lib/yesno.c:
100203         Standardize inclusion of config.h.
100204         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
100205         lib/inttostr.h:  Removed inclusion of config.h from header files.
100206         * lib/inttostr.c:  Adjusted in-tree users.
100207         * lib/timespec.h: Remove superfluous warning to include config.h.
100208         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
100209         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
100210         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
100211         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
100212         config.h with HAVE_CONFIG_H.
100214 2005-09-19  Jim Meyering  <jim@meyering.net>
100216         * modules/pathmax (License): Change to LGPL.
100218 2005-09-19  Derek Price  <derek@ximbiot.com>
100220         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
100222 2005-09-19  Bruno Haible  <bruno@clisp.org>
100224         * gnulib-tool (import): Provide default for --tests-base.
100226 2005-09-19  Bruno Haible  <bruno@clisp.org>
100228         * doc/quote.texi: New file, extracted from gnulib.texi.
100229         * doc/ctime.texi: New file, extracted from gnulib.texi.
100230         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
100231         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
100232         * doc/gnulib.texi: Include them.
100234 2005-09-18  Bruno Haible  <bruno@clisp.org>
100236         Portability fix.
100237         * gnulib-tool (func_readlink): New function.
100238         (func_ln_if_changed): Use it.
100240 2005-09-18  Bruno Haible  <bruno@clisp.org>
100242         * gnulib-tool: Support --with-tests also with --import.
100243         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
100244         (func_import): Use variables $testsbase and $inctests. Emit a
100245         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
100246         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
100247         SUBDIRS += $testsdir.
100248         (func_create_testdir): Update.
100250 2005-09-18  Bruno Haible  <bruno@clisp.org>
100252         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
100253         instead of $dry_run.
100254         (func_cp_if_changed, func_mv_if_changed): Remove functions.
100255         (func_ln_if_changed): Don't handle dry-run here.
100256         (func_import): In dry-run mode, detect more precisely which actions
100257         would be performed, and don't use "...ing" verbs.
100259 2005-09-18  Bruno Haible  <bruno@clisp.org>
100261         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
100262         (func_import): Use join on two temporary files instead of three nested
100263         loops, in order to determine which files are new or old.
100265 2005-09-18  Bruno Haible  <bruno@clisp.org>
100267         * gnulib-tool (func_import): Comment out code that spits out the
100268         new files with --dry-run.
100270 2005-09-18  Bruno Haible  <bruno@clisp.org>
100272         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
100274 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100276         * lib/stat-time.h: New file.
100277         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
100278         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
100279         in a different way.
100280         (timespec_cmp): New function.
100281         * lib/utimecmp.c: Include stat-time.h.
100282         (SYSCALL_RESOLUTION): Depend on whether various struct stat
100283         members exist, not on the obsolescent ST_MTIM_NSEC.
100284         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
100286 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100288         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
100290 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100292         * MODULES.html.sh (File system functions): Add stat-time.
100293         * modules/stat-time: New file.
100294         * modules/timespec (Files): Remove m4/st_mtim.m4; this
100295         is now done in a different way, by the stat-time module.
100296         * modules/utimecmp (Depends-on): Add stat-time.
100298 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
100300         * m4/st_mtim.m4: Remove.  Superseded by...
100301         * m4/stat-time.m4: New file.
100302         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
100303         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
100305 2005-09-15  Derek Price  <derek@ximbiot.com>
100307         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
100309 2005-09-15  Derek Price  <derek@ximbiot.com>
100311         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
100312         * lib/regex_internal.c: Ditto, using this...
100313         (__GNUC_PREREQ): ...new macro.
100314         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
100315         using...
100316         (__GNUC_PREREQ): ...this new macro.
100318         * lib/strstr.h: Include string.h. Define strstr as a macro here.
100320 2005-09-15  Derek Price  <derek@ximbiot.com>
100321             Paul Eggert  <eggert@cs.ucla.edu>
100323         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
100324         changes, consolidating in...
100325         * lib/regex_internal.h: ...this file.
100327 2005-09-13  Jim Meyering  <jim@meyering.net>
100329         * lib/canon-host.c: Filter through gnu indent and reword comments
100330         slightly.
100331         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
100333 2005-09-13  Derek Price  <derek@ximbiot.com>
100335         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
100336         failure.
100337         Reported by Jim Meyering  <jim@meyering.net>.
100339 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100341         * lib/base64.c: Typo.
100342         (base64_encode): Put b64str in initialized data section.
100344 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
100346         Merge glibc and coreutils changes into gnulib, plus a few
100347         extra fixes.
100348         * lib/md5.c: Use #error rather than a string.
100349         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
100350         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
100351         (__attribute__): Define to empty for non recent-GCC.
100352         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
100353         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
100354         Renamed from their non-__ counterparts, with new macros replacing
100355         them if not _LIBC.  Add __THROW attribute.
100356         (rol): Remove.
100357         (struct md5_ctx): Align buffer if using GCC.
100358         * lib/sha1.h (struct sha1_ctx): Likewise.
100359         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
100360         The old name was backwards.
100361         (NOTSWAP): Remove; not used.
100362         (rol): New macro, moved here from md5.h.
100363         (sha1_process_block): Remove a FIXME that doesn't make sense.
100365 2005-09-12  Derek Price  <derek@ximbiot.com>
100367         Return usable errors from canon-host.
100368         * lib/canon-host.h: New file.
100369         * lib/canon-host.c (canon_host): Wrap...
100370         (canon_host_r): ...this new function, which now relies exclusively on
100371         getaddrinfo.
100372         (ch_strerror): New function.
100373         (last_cherror): New global.
100374         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
100375         interface.
100376         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
100377         void *.
100378         (freeaddrinfo): Free ai->ai_canonname when set.
100380 2005-09-12  Derek Price  <derek@ximbiot.com>
100382         Make canon-host require getaddrinfo.
100383         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
100384         AC_LIBSOURCE canon-host.h.  Call...
100385         (gl_PREREQ_CANON_HOST): ...this new function, which requires
100386         gl_GETADDRINFO.
100387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
100389 2005-09-12  Derek Price  <derek@ximbiot.com>
100391         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
100392         LGPL.
100393         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
100395 2005-09-12  Derek Price  <derek@ximbiot.com>
100397         * lib/gai_strerror.c: Include config.h when available.  Include
100398         getaddrinfo.h before other headers to test interface.
100399         Reported by Larry Jones <lawrence.jones@ugs.com>.
100401 2005-09-12  Derek Price  <derek@ximbiot.com>
100402             Paul Eggert  <eggert@cs.ucla.edu>
100404         * modules/glob (Files): Add glob-libc.h.
100406 2005-09-12  Derek Price  <derek@ximbiot.com>
100407             Paul Eggert  <eggert@cs.ucla.edu>
100409         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
100410         glob_.h, glob-libc.h.
100411         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
100413 2005-09-12  Derek Price  <derek@ximbiot.com>
100414             Paul Eggert  <eggert@cs.ucla.edu>
100416         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
100417         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
100418         protecting things that should be done only in gnulib contexts.
100419         * lib/glob_.h: New file, containing only the glob things needed for
100420         gnulib.
100421         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
100422         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
100423         (glob, globfree, glob_pattern_p): Now defined simply in terms of
100424         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
100425         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
100426         and to respect the namespace rules better.
100428 2005-09-08  Simon Josefsson  <jas@extundo.com>
100430         * modules/socklen: New file.
100432 2005-09-08  Simon Josefsson  <jas@extundo.com>
100434         * m4/socklen.m4: New file.
100436 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100438         * modules/utimens (Files): Add m4/utimbuf.m4, since
100439         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
100440         Reported by Sergey Poznyakoff.
100442 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100444         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
100445         definitions, since that's the preferred style in glibc.
100446         Fix a minor spacing issue, and update copyright notice to match
100447         glibc's.
100449 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100451         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
100453 2005-09-06  Simon Josefsson  <jas@extundo.com>
100455         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
100456         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
100458 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100460         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
100461         warning.
100463 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100465         * config/srclist.txt: Add glibc bug 1302.
100467 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
100469         Change bitset word type from unsigned int to unsigned long int,
100470         as this has better performance on typical 64-bit hosts.
100471         Port bitset code to hosts with unusual word sizes.
100472         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
100473         (build_collating_symbol):
100474         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
100475         argument is a bitset.  This is merely a style issue, but it makes
100476         it clearer that an entire array is expected.
100477         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
100478         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
100479         Port to the case where bitset_word is not the same as unsigned int.
100480         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100481         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
100482         Likewise.
100483         * lib/regexec.c (check_dst_limits_calc_pos_1,
100484         check_subexp_matching_top):
100485         (build_trtable, group_nodes_into_DFAstates):
100486         Likewise.
100487         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
100488         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
100489         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
100490         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
100491         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
100492         * lib/regcomp.c (optimize_subexps, lower_subexp):
100493         Work even if bitset_word has holes in its bitwise representation.
100494         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
100495         * lib/regexec.c (check_dst_limits_calc_pos_1,
100496         check_subexp_matching_top):
100497         Likewise.
100498         * lib/regex_internal.c (re_string_reconstruct):
100499         Don't assume UCHAR_MAX == 255.
100500         * lib/regex_internal.h (bitset_set_all): Likewise.
100501         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
100502         All uses changed.
100503         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
100504         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
100505         All uses changed.
100506         (BITSET_WORD_MAX): New macro.
100507         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
100508         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
100509         (bitset_empty, bitset_copy):
100510         Prefer sizeof (bitset) to multiplying it out ourselves.
100511         (bitset_not_merge): Remove; unused.
100512         (bitset_contain): Return bool, not unsigned int with one bit on.
100513         All callers changed.
100514         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
100515         alignment than re_node_set; do this by defining a new internal
100516         type struct dests_alloc and using it to allocate memory.
100518 2005-09-05  Bruno Haible  <bruno@clisp.org>
100520         * gnulib-tool (func_import): Fix comparison in handling of symbolic
100521         links.
100523 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
100525         * modules/size_max (Makefile.am): Add size_max.h
100527 2005-09-04  Derek Price  <derek@ximbiot.com>
100529         * gnulib-tool (func_import): Fix reversed $symbolic logic.
100531 2005-09-03  Simon Josefsson  <jas@extundo.com>
100533         * gnulib-tool: Fix typo.
100535 2005-09-03  Simon Josefsson  <jas@extundo.com>
100537         * config/srclist.txt: Add glibc bug 1293.
100539 2005-09-03  Derek Price  <derek@ximbiot.com>
100541         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
100542         From Larry Jones <lawrence.jones@ugs.com>.
100544 2005-09-02  Simon Josefsson  <jas@extundo.com>
100546         * modules/socklen: New file.
100548 2005-09-02  Simon Josefsson  <jas@extundo.com>
100550         * modules/havelib: New module.
100552         * modules/gettext, modules/iconv, modules/lock, modules/readline:
100553         Use havelib.
100555 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
100557         Check for arithmetic overflow when calculating sizes, to prevent
100558         some buffer-overflow issues.  These patches are conservative, in the
100559         sense that when I couldn't determine whether an overflow was possible,
100560         I inserted a run-time check.
100561         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
100562         macros.
100563         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
100564         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
100565         (re_xnrealloc, re_x2nrealloc): New inline functions.
100566         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
100567         parse_bracket_exp):
100568         (build_equiv_class, build_charclass): Check for arithmetic overflow
100569         in size expression calculations.
100570         * lib/regex_internal.c (re_string_realloc_buffers):
100571         (build_wcs_upper_buffer, re_node_set_add_intersect):
100572         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
100573         (re_dfa_add_node, register_state): Likewise.
100574         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
100575         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
100576         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
100577         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
100579 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
100581         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
100582         m4/ulonglong.m4.  Problem reported by Martin Lambers.
100584 2005-09-02  Bruno Haible  <bruno@clisp.org>
100586         Support for lib vs. lib64 distinction on biarch platforms.
100587         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
100588         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
100589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
100591 2005-09-02  Bruno Haible  <bruno@clisp.org>
100593         * gnulib-tool (import): In the other first-use case, provide defaults
100594         as well.
100596 2005-09-02  Bruno Haible  <bruno@clisp.org>
100598         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
100599         patches not yet found in the latest gettext release.
100601 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100603         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
100604         to avoid a collision with bits/local_lim.h in glibc.
100605         All uses changed.  Problem reported by Dmitry V. Levin in
100606         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
100608         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
100609         bugs in int versus size_t comparisons.
100610         (re_string_context_at): Fix bug where the code assumed that
100611         Idx is signed.
100613         Use bool where appropriate.
100614         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
100615         All callers changed.
100616         (calc_eclosure_iter): Likewise, for ROOT arg.
100617         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
100618         (build_charclass_op): Likewise, for NON_MATCH arg.
100619         * lib/regex_internal.c (re_string_allocate, re_string_construct):
100620         (re_string_construct_common): Likewise, for ICASE arg.
100621         * lib/regexec.c (re_search_2_stub, re_search_stub):
100622         Likewise, for RET_LEN arg.
100623         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
100624         (set_regs): Likewise, for FL_BACKTRACK arg.
100625         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
100626         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
100627         (calc_eclosure_iter, parse_bracket_exp):
100628         Use bool for internal variables that are booleans.
100629         * lib/regexec.c (re_search_internal, check_matching,
100630         proceed_next_node):
100631         (set_regs, build_sifted_states, sift_states_bkref):
100632         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
100633         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100634         (find_collation_sequence_value):
100635         Likewise.
100636         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
100637         (re_node_set_compare):
100638         Return bool, not int. All callers changed.
100639         * lib/regexec.c (check_halt_node_context, check_dst_limits):
100640         (build_trtable, check_node_accept): Likewise.
100641         * lib/regex_internal.h: Include stdbool.h.
100643         Fix bugs uncovered when converting to bool.
100644         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
100645         failure instead of charging ahead blindly.
100646         * lib/regex_internal.c (register_state): Likewise.
100647         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
100648         for freeing internal storage.
100649         (group_nodes_into_DFA_states): Use unsigned int, not int, for
100650         bitset pieces used as boolean, to avoid undefined behavior
100651         on hosts that do int overflow checking.
100653 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100655         * config/srclist.txt: Add glibc bugs 1285-1287.
100657 2005-09-01  Jim Meyering  <jim@meyering.net>
100659         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
100660         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
100661         Require gl_STAT_MACROS, too.
100663 2005-09-01  Bruno Haible  <bruno@clisp.org>
100665         * gnulib-tool (import): In the first-use case, provide defaults.
100667 2005-09-01  Bruno Haible  <bruno@clisp.org>
100669         * gnulib-tool (func_import): Remove the .tmp files.
100671 2005-09-01  Bruno Haible  <bruno@clisp.org>
100673         * gnulib-tool (func_import): Fix handling of symbolic links.
100675 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100677         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
100678         old glibc regex code mishandles strings longer than 2**31 bytes.
100679         This patch fixes this when the regex code is used in gnulib
100680         (i.e., outside glibc).
100682         This patch should not affect the use of the regex code inside
100683         glibc.  No doubt this problem also needs to be handled for glibc
100684         as well, but the result will be an incompatible change to the
100685         glibc ABI, and the old ABI will have to be supported too.  That
100686         can be the subject for another patch.
100688         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
100689         governing whether the rest of this patch is active.  By default,
100690         the macro is disabled and the patch has no effect.
100691         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
100692         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
100693         (struct re_pattern_buffer, re_search, re_search_2, re_match):
100694         (re_match_2, re_set_registers): Use the new types.
100695         * lib/regex_internal.h (Idx, re_hashval_t): New types.
100696         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
100697         New macros.
100698         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
100699         (re_string_context_at, bin_tree_t, re_dfastate_t):
100700         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
100701         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
100702         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
100703         (re_string_char_size_at, re_string_wchar_at):
100704         (re_string_elem_size_at):
100705         Use the new types and macros to port to 64-bit hosts.
100706         Use unsigned types for internal values, so that the code
100707         mostly works even for arrays larger than SSIZE_MAX.
100708         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
100709         (search_duplicated_node, calc_eclosure_iter, fetch_number):
100710         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
100711         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
100712         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
100713         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
100714         (calc_inveclosure, parse_dup_op, build_range_exp):
100715         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
100716         (fetch_number, create_token_tree, mark_opt_subexp):
100717         Likewise.
100718         * lib/regex_internal.c (re_string_construct_common,
100719         create_ci_newstate):
100720         (create_cd_newstate, re_string_allocate, re_string_construct):
100721         (re_string_realloc_buffers, build_wcs_upper_buffer):
100722         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100723         (re_string_reconstruct, re_string_peek_byte_case):
100724         (re_string_fetch_byte_case, re_string_context_at):
100725         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100726         (re_node_set_init_copy, re_node_set_add_intersect):
100727         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100728         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100729         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100730         (re_acquire_state, re_acquire_state_context, register_state):
100731         Likewise.
100732         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
100733         search_cur_bkref_entry):
100734         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
100735         (re_search_internal, re_search_2_stub, re_search_stub)
100736         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
100737         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
100738         (update_cur_sifted_state, check_dst_limits):
100739         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100740         (check_subexp_limits, sift_states_bkref, merge_state_array):
100741         (check_subexp_matching_top, get_subexp, get_subexp_sub):
100742         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
100743         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100744         (expand_bkref_cache, check_node_accept_bytes):
100745         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
100746         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
100747         (acquire_init_state_context, check_halt_node_context):
100748         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
100749         (sift_states_backward, clean_state_log_if_needed):
100750         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
100751         (find_recover_state, transit_state_sb, transit_state_mb):
100752         (transit_state_bkref, build_trtable, match_ctx_clean):
100753         Likewise.
100754         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
100755         to work around an assumption that REG_MISSING is negative.
100757         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
100758         (seek_collating_symbol_entry) [defined _LIBC]:
100759         (lookup_collation_sequence_value) [defined _LIBC]:
100760         (build_range_exp, build_collating_symbol) [defined _LIBC]:
100761         Use prototypes rather than old-style function definitions.
100762         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
100763         (transit_state_sb) [0]:
100764         (find_collation_sequence_value) [defined _LIBC]: Likewise.
100766         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
100767         rm_eo.
100769         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
100770         (optimize_subexps, lower_subexp):
100771         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
100772         since the signed shift might overflow.  Use 1u<<31 instead.
100773         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100774         Likewise.
100775         * lib/regexec.c (check_dst_limits_calc_pos_1,
100776         check_subexp_matching_top): Likewise.
100778         * lib/regcomp.c (optimize_subexps, lower_subexp):
100779         Use CHAR_BIT rather than 8, for clarity.
100780         * lib/regexec.c (check_dst_limits_calc_pos_1):
100781         (check_subexp_matching_top): Likewise.
100782         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
100783         have to worry about portability issues when shifting it left.
100784         Remove no-longer-needed test for table_size > 0.
100785         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
100786         in a word, as the resulting behavior is undefined.
100787         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
100788         in one case, a <= should have been an <, and in another case the
100789         whole test was missing.
100790         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
100791         the standard name CHAR_BIT.
100792         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
100793         this is not true on one's complement and signed-magnitude hosts.
100795         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
100796         next_last_offset.
100797         (struct re_dfa_t): Remove unused member states_alloc.
100798         * lib/regcomp.c (init_dfa): Don't initialize unused members.
100800 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100802         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
100803         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
100804         and large-file glibc and in 32-bit large-file Solaris.
100806 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100808         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
100809         lengths fit in regoff_t; this isn't true if regoff_t is the same
100810         width as size_t.
100811         * lib/regex.c (re_search_internal): 5th arg is LAST_START
100812         (= START + RANGE) instead of RANGE.  This avoids overflow
100813         problems when regoff_t is the same width as size_t.
100814         All callers changed.
100815         (re_search_2_stub): Check for overflow when adding the
100816         sizes of the two strings.
100817         (re_search_stub): Check for overflow when adding START
100818         to RANGE; if it occurs, substitute the extreme value.
100820 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100822         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
100824 2005-08-31  Jim Meyering  <jim@meyering.net>
100826         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
100827         a pointer-to-const.
100828         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
100829         (register_state): Likewise.
100830         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
100831         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100832         (group_nodes_into_DFAstates): Likewise.
100834 2005-08-31  Jim Meyering  <jim@meyering.net>
100836         * check-module: Add a FIXME comment.
100838 2005-08-31  Eric Blake  <ebb9@byu.net>
100840         * modules/unistd-safer (Files): Add unistd--.h.
100841         * modules/stdio-safer (Files): Add stdio--.h.
100843 2005-08-31  Derek Price  <derek@ximbiot.com>
100845         * lib/getdelim.c (getdelim): Return EOF on EOF.
100846         Reported by Larry Jones <lawrence.jones@ugs.com>.
100848 2005-08-31  Bruno Haible  <bruno@clisp.org>
100850         Avoid unnecessary diffs in the generated lib/Makefile.am.
100851         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
100852         the generated files.
100853         (func_import): Don't set cmd.
100855 2005-08-31  Bruno Haible  <bruno@clisp.org>
100857         * lib/strstr.c: Include <stddef.h>, for NULL.
100858         * lib/strcasestr.c: Likewise.
100859         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100861 2005-08-31  Bruno Haible  <bruno@clisp.org>
100863         * gnulib-tool: New option --macro-prefix.
100864         (func_import): Use macro_prefix.
100865         (import): Handle option --macro-prefix.
100867 2005-08-31  Bruno Haible  <bruno@clisp.org>
100869         * gnulib-tool (import): Rename most ac_* variables to cached_*.
100870         Also use new variables cached_lgpl, cached_libtool.
100872 2005-08-31  Bruno Haible  <bruno@clisp.org>
100874         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
100875         always instantiating them.
100877 2005-08-31  Bruno Haible  <bruno@clisp.org>
100879         * gnulib-tool (func_import): Read the previous cached settings
100880         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
100881         earlier added by gnulib but are now dropped. Warn when a gnulib file
100882         overwrites a non-gnulib file.
100884 2005-08-31  Bruno Haible  <bruno@clisp.org>
100886         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
100887         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
100888         projects that don't keep autogenerated files in CVS. Put into
100889         actioncmd only the specified modules, not the transitive closure.
100891 2005-08-31  Bruno Haible  <bruno@clisp.org>
100893         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
100894         Create directories that shall be filled.
100895         (import): Don't look for gl_* macros in configure.ac. Recurse across
100896         all directories containing a gnulib-cache.m4 files, if meaningful.
100898 2005-08-31  Bruno Haible  <bruno@clisp.org>
100900         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
100901         (import): Set seen_libtool when we see gl_LIBTOOL.
100903 2005-08-31  Bruno Haible  <bruno@clisp.org>
100905         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
100906         declaration macro definitions from generated gnulib.m4.
100908 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
100910         * lib/iconvme.h: Add prototype for iconv_alloc.
100912 2005-08-29  Simon Josefsson  <jas@extundo.com>
100914         * lib/iconvme.c: Fix errno.
100916 2005-08-29  Bruno Haible  <bruno@clisp.org>
100918         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
100919         that it works when the directory contains spaces.
100921 2005-08-29  Bruno Haible  <bruno@clisp.org>
100923         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
100925 2005-08-29  Bruno Haible  <bruno@clisp.org>
100927         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
100928         Emit more advice.
100930 2005-08-29  Bruno Haible  <bruno@clisp.org>
100931         and Stepan Kasal  <kasal@ucw.cz>
100933         * check-module: If more parameters are given, check each of them
100934         separately; add more exceptions, as noted by Jim Meyering.
100935         (check_module): New procedure.
100936         (%exempt_header): Now contains all exceptions.
100938 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
100940         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
100942 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
100944         * lib/iconvme.c: Split iconv_string into iconv_alloc.
100946 2005-08-28  Bruno Haible  <bruno@clisp.org>
100948         * m4/gnulib-tool.m4: New file.
100950 2005-08-27  Jim Meyering  <jim@meyering.net>
100952         * modules/unistd-safer (Files): Add pipe-safer.c.
100953         * modules/fcntl-safer (Files): Add creat-safer.c.
100955 2005-08-27  Jim Meyering  <jim@meyering.net>
100957         * m4/stdlib-safer.m4: New file.  From coreutils.
100958         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
100959         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
100960         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
100961         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
100962         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
100964 2005-08-27  Jim Meyering  <jim@meyering.net>
100966         * lib/fopen-safer.c: Merge minor changes from coreutils.
100967         * lib/dup-safer.c: Likewise.
100968         * lib/fd-safer.c: Likewise.
100970         Merge from coreutils.
100971         * lib/stdio--.h: New file.
100972         * lib/stdlib--.h: New file.
100973         * lib/mkstemp-safer.c: New file.
100975         GNU tar needs these.
100976         * lib/pipe-safer.c: New file.
100977         * lib/creat-safer.c: New file.
100978         * lib/fcntl--.h (creat): Define to creat_safer.
100979         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
100980         * lib/unistd--.h (pipe): Define to pipe_safer.
100981         * lib/unistd-safer.h: Declare pipe_safer.
100983 2005-08-26  Simon Josefsson  <jas@extundo.com>
100985         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
100986         Haible <bruno@clisp.org>.
100988 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
100990         * lib/regex_internal.h: Remove all references to
100991         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
100992         or better.
100993         (bitset_not, bitset_merge, bitset_not_merge):
100994         (bitset_mask, re_string_allocate, re_string_construct):
100995         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
100996         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
100997         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
100998         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
100999         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101000         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101001         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
101002         (re_acquire_state_context):
101003         Remove unnecessary forward decls.
101004         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
101005         Put __attribute at function definition,
101006         now that the function decl has been removed.
101007         * lib/regex_internal.c (re_string_peek_byte_case):
101008         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
101009         Likewise.
101011 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
101013         * m4/regex.m4: Add AC_PREREQ(2.50).
101014         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
101016 2005-08-25  Simon Josefsson  <jas@extundo.com>
101018         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
101019         __fsetlocking.
101021 2005-08-25  Simon Josefsson  <jas@extundo.com>
101023         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
101024         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
101025         GLIBC specific code.
101027 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101029         Make regex safe for g++.  This fixes one real bug (an "err"
101030         that should have been "*err").  g++ problem reported by
101031         Sam Steingold.
101032         * lib/regex_internal.h (re_calloc): New macro, consistent with
101033         re_malloc etc.  All callers of calloc changed to use re_calloc.
101034         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
101035         not int.  All callers changed.
101036         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
101037         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
101038         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
101039         (find_recover_state): Change "err" to "*err"; this fixes what
101040         appears to be a real bug.
101041         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
101042         versus int.
101044 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101046         * modules/regex (Depends-on): Add malloc, since the code
101047         assumes that !malloc(0) means failure.
101049 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101051         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
101053         alloca modernization/simplification for regex.
101054         * lib/regex.c: Remove portability cruft for alloca.  This no longer
101055         needs to be at the start of the file, and can be moved into
101056         regex_internal.h and simplified.
101057         * lib/regex_internal.h: Include <alloca.h>.
101058         (__libc_use_alloca) [!defined _LIBC]: New macro.
101059         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
101060         now works outside glibc.
101062 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101064         * config/srclist.txt: Add glibc bugs 1241, 1245.
101066 2005-08-25  Jim Meyering  <jim@meyering.net>
101068         * lib/open-safer.c: Include <config.h>.
101069         Otherwise, we'd lose LARGEFILE support in any file using
101070         e.g. "fcntl--.h"
101072 2005-08-25  Bruno Haible  <bruno@clisp.org>
101074         * m4/minmax.m4: Require autoconf 2.52.
101075         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
101076         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
101077         alternatives of translit over the alphabet.
101078         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
101080 2005-08-24  Simon Josefsson  <jas@extundo.com>
101082         * tests/test-getpass.c: New file.
101084 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101086         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
101087         for GNU regex features.
101089 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101091         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
101092         * lib/regex.h (regerror): Likewise.
101094         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
101095         requires this.  (The code never needed it.)
101097         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
101098         All uses of recently-renamed identifiers changed to use the new,
101099         POSIX-compliant names.  The code will build and run just fine
101100         without these changes, but it's better to eat our own dog food
101101         and use the standard-conforming names.
101103         * lib/regex.h: Fix a multitude of POSIX name space violations.
101104         These changes have an effect only for programs that define
101105         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
101106         do not change anything for programs compiled in the normal way.
101107         Also, there is no effect on the ABI.
101109         (_REGEX_SOURCE): New macro.
101110         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
101111         defined and _GNU_SOURCE is not; this fixes a name space violation.
101113         Rename the following macros to obey POSIX requirements.
101114         The old names are still visible as macros if _REGEX_SOURCE is defined.
101115         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
101116         RE_BACKSLASH_ESCAPE_IN_LISTS.
101117         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
101118         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
101119         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
101120         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
101121         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
101122         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
101123         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
101124         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
101125         (REG_INTERVALS): renamed from RE_INTERVALS.
101126         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
101127         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
101128         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
101129         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
101130         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
101131         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
101132         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
101133         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
101134         RE_UNMATCHED_RIGHT_PAREN_ORD.
101135         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
101136         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
101137         (REG_DEBUG): renamed from RE_DEBUG.
101138         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
101139         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
101140         unusual, since we can't clash with the POSIX REG_ICASE.
101141         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
101142         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
101143         (REG_NO_SUB): renamed from RE_NO_SUB.
101144         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
101145         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
101146         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
101147         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
101148         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
101149         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
101150         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
101151         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
101152         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
101153         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
101154         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
101155         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
101156         RE_SYNTAX_POSIX_MINIMAL_BASIC.
101157         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
101158         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
101159         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
101160         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
101161         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
101162         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
101163         (REG_FIXED): Renamed from REGS_FIXED.
101164         (REG_NREGS): Renamed from RE_NREGS.
101166         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
101167         of other REG_* macros, since POSIX says the user is allowed to
101168         #undef these macros selectively.
101170         (reg_errcode_t): Update comment stating what other tables need
101171         to be consistent.
101173         Rename the following enum values to obey POSIX requirements.
101174         The old names are still visible as macros.
101175         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
101176         is not defined, since GNU is supposed to be a superset of POSIX as
101177         much as possible, and since we want reg_errcode_t to be a signed
101178         type for implementation consistency.
101179         (_REG_NOERROR): Renamed from REG_NOERROR.
101180         (_REG_NOMATCH): Renamed from REG_NOMATCH.
101181         (_REG_BADPAT): Renamed from REG_BADPAT.
101182         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
101183         (_REG_ECTYPE): Renamed from REG_ECTYPE.
101184         (_REG_EESCAPE): Renamed from REG_EESCAPE.
101185         (_REG_ESUBREG): Renamed from REG_ESUBREG.
101186         (_REG_EBRACK): Renamed from REG_EBRACK.
101187         (_REG_EPAREN): Renamed from REG_EPAREN.
101188         (_REG_EBRACE): Renamed from REG_EBRACE.
101189         (_REG_BADBR): Renamed from REG_BADBR.
101190         (_REG_ERANGE): Renamed from REG_ERANGE.
101191         (_REG_ESPACE): Renamed from REG_ESPACE.
101192         (_REG_BADRPT): Renamed from REG_BADRPT.
101193         (_REG_EEND): Renamed from REG_EEND.
101194         (_REG_ESIZE): Renamed from REG_ESIZE.
101195         (_REG_ERPAREN): Renamed from REG_ERPAREN.
101196         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
101197         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
101198         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
101199         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
101201         (_REG_RE_NAME, _REG_RM_NAME): New macros.
101202         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
101203         changed.  But support the old name if the new one is not defined
101204         and if _REGEX_SOURCE.
101206         Change the following member names in struct re_pattern_buffer.
101207         The old names are still supported if !_REGEX_SOURCE.
101208         The new names are always supported, regardless of _REGEX_SOURCE.
101209         (re_buffer): Renamed from buffer.
101210         (re_allocated): Renamed from allocated.
101211         (re_used): Renamed from used.
101212         (re_syntax): Renamed from syntax.
101213         (re_fastmap): Renamed from fastmap.
101214         (re_translate): Renamed from translate.
101215         (re_can_be_null): Renamed from can_be_null.
101216         (re_regs_allocated): Renamed from regs_allocated.
101217         (re_fastmap_accurate): Renamed from fastmap_accurate.
101218         (re_no_sub): Renamed from no_sub.
101219         (re_not_bol): Renamed from not_bol.
101220         (re_not_eol): Renamed from not_eol.
101221         (re_newline_anchor): Renamed from newline_anchor.
101223         Change the following member names in struct re_registers.
101224         The old names are still supported if !_REGEX_SOURCE.
101225         The new names are always supported, regardless of _REGEX_SOURCE.
101226         (rm_num_regs): Renamed from num_regs.
101227         (rm_start): Renamed from start.
101228         (rm_end): Renamed from end.
101230         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
101231         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
101232         Prepend __ to parameter names.
101234         Undo yesterday's changes.
101236 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101238         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
101239         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
101240         lib/regex.c.
101242 2005-08-24  Jim Meyering  <jim@meyering.net>
101244         Sync from coreutils.
101245         * m4/fcntl-safer.m4: New file.
101247         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
101248         and object files for this module.
101250 2005-08-24  Jim Meyering  <jim@meyering.net>
101252         Sync from coreutils.
101253         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
101255 2005-08-24  Jim Meyering  <jim@meyering.net>
101257         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
101258         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
101260 2005-08-24  Jim Meyering  <jim@meyering.net>
101262         * modules/fcntl-safer: New module.
101263         * modules/fts (Depends-on): Add fcntl-safer.
101264         * MODULES.html.sh (File descriptor based Input/Output):
101265         Add fcntl-safer.
101267 2005-08-24  Bruno Haible  <bruno@clisp.org>
101269         Support for unit test modules.
101270         * modules/README: Mention tests modules.
101271         * modules/TEMPLATE-TESTS: New file.
101272         * gnulib-tool: New options --extract-tests-module, --with-tests and
101273         --tests-base (unused for the moment).
101274         (testsbase, inctests): New variables.
101275         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
101276         (func_verify_module): Exclude TEMPLATE-TESTS.
101277         (func_verify_nontests_module, func_verify_tests_module): New functions.
101278         (func_get_dependencies): Add implicit dependency for tests modules.
101279         (func_get_tests_module): New function.
101280         (func_modules_transitive_closure): When --with-tests was specified,
101281         include the unit tests as well, unless explicitly avoided.
101282         (func_emit_lib_Makefile_am): Ignore the tests modules here.
101283         (func_emit_tests_Makefile_am): New function.
101284         (func_create_testdir): When --with-tests was specified, emit a
101285         tests/ directory.
101286         * MODULES.html.sh (Future developments): Update.
101288 2005-08-24  Bruno Haible  <bruno@clisp.org>
101290         * modules/tls-tests: New file.
101291         * tests/test-tls.c: New file, from GNU gettext.
101293 2005-08-24  Bruno Haible  <bruno@clisp.org>
101295         * modules/lock-tests: New file.
101296         * tests/test-lock.c: New file, from GNU gettext.
101298 2005-08-24  Bruno Haible  <bruno@clisp.org>
101300         * lib/lock.h: Add multiple inclusion guard.
101301         * lib/tls.h: Add multiple inclusion guard.
101303 2005-08-24  Bruno Haible  <bruno@clisp.org>
101305         * gnulib-tool: Add support for the --aux-dir option to
101306         --create-testdir, --create-megatestdir, --test, --megatest.
101307         (func_create_testdir, func_create_megatestdir): Optionally emit a
101308         AC_CONFIG_AUX_DIR directive.
101309         (create-testdir, create-megatestdir, test, megatest): Provide a
101310         default value for $auxdir.
101312 2005-08-24  Bruno Haible  <bruno@clisp.org>
101314         * gnulib-tool (import): Use compound statement instead of subshell
101315         where possible.
101317 2005-08-24  Bruno Haible  <bruno@clisp.org>
101319         * gnulib-tool (import): Change --aux-dir default to "build-aux".
101321 2005-08-24  Bruno Haible  <bruno@clisp.org>
101323         * gnulib-tool (func_version): Update.
101325 2005-08-24  Bruno Haible  <bruno@clisp.org>
101327         * gnulib-tool (func_import, func_create_testdir,
101328         func_create_megatestdir): Quote all autoconf macro arguments.
101330 2005-08-24  Bruno Haible  <bruno@clisp.org>
101332         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
101333         option --force, because --force causes the aclocal.m4 of each
101334         subdirectory to be newer than the corresponding config.h.in.
101336 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101338         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
101339         All contents moved to gl_REGEX.
101340         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
101341         assume that it does.
101343 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101345         * lib/regex.h (REG_NOSYS)
101346         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
101347         Define, since POSIX requires it as of 2001.
101348         (_REG_ENOSYS)
101349         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
101350         New private symbol, used to keep the enum signed in all cases.
101351         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
101352         Youngman in
101353         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
101355         * lib/regex_internal.c (re_string_skip_chars, register_state):
101356         (calc_state_hash):
101357         Remove forward decls; no longer needed now that we use prototypes.
101358         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
101359         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
101360         (clean_state_log_if_needed): Likewise.
101362 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101364         * config/srclist.txt: Add glibc bugs 1231-1233.
101366 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101368         Fix problems reported by Sam Steingold in
101369         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
101370         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
101371         assumed that reg_errcode_t is a signed type, which is not
101372         necessarily true if _XOPEN_SOURCE is not defined.
101373         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
101374         since some compilers warn about it otherwise.
101376 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101378         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
101379         (init_word_char, create_initial_state, duplicate_node_closure):
101380         (fetch_token, peek_token_bracket, build_range_exp):
101381         (build_collating_symbol): Remove forward decls; no longer needed
101382         now that we use prototypes.
101384         * lib/regcomp.c:
101385         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
101386         (re_compile_fastmap_iter, regcomp, regerror, regfree):
101387         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
101388         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
101389         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
101390         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
101391         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
101392         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
101393         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
101394         (build_range_exp, build_collating_symbol, parse_bracket_exp):
101395         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
101396         (build_charclass, build_charclass_op, fetch_number, create_tree):
101397         (create_token_tree, mark_opt_subexp, duplicate_tree):
101398         Use prototypes rather than old-style definitions.
101400         * lib/regex_internal.c:
101401         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
101402         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
101403         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101404         (re_string_reconstruct, re_string_peek_byte_case):
101405         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
101406         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101407         (re_node_set_init_copy, re_node_set_add_intersect):
101408         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101409         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101410         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101411         (re_acquire_state, re_acquire_state_context, register_state):
101412         (create_ci_newstate, create_cd_newstate, free_state):
101413         Likewise.
101414         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
101415         re_search_2):
101416         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
101417         (re_search_internal, prune_impossible_nodes):
101418         (acquire_init_state_context, check_matching, static):
101419         (check_halt_node_context, check_halt_state_context, proceed_next_node):
101420         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
101421         (update_regs, sift_states_backward, build_sifted_states):
101422         (clean_state_log_if_needed, merge_state_array):
101423         (update_cur_sifted_state, add_epsilon_src_nodes):
101424         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
101425         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
101426         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
101427         (find_recover_state, check_subexp_matching_top, transit_state_mb):
101428         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
101429         (check_arrival, check_arrival_add_next_nodes):
101430         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101431         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101432         (check_node_accept_bytes, check_node_accept, extend_buffers):
101433         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
101434         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
101435         (sift_ctx_init):
101436         Likewise.
101438         * lib/regex_internal.h:
101439         (re_string_allocate, re_string_construct, re_string_reconstruct):
101440         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
101441         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
101442         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
101443         (re_string_context_at, re_string_peek_byte_case):
101444         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
101445         is defined, since we now use prototypes always.
101447         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
101448         C89 or better.  All uses removed.
101450 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101452         * config/srclist.txt: Add glibc bugs 1220-1227.
101454 2005-08-20  Jim Meyering  <jim@meyering.net>
101456         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
101457         of unused local, dfa.
101459 2005-08-20  Bruno Haible  <bruno@clisp.org>
101461         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
101463 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101465         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
101466         (re_node_set_insert_last, re_dfa_add_node):
101467         Rename local variables to avoid GCC shadowing warnings.
101469 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101471         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
101472         [defined lint]: Suppress bogus uninitialized-variable warnings.
101474         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
101475         and let the caller return REG_ESPACE if out of space.  This
101476         removes an uninitialied-variable warning with GCC 4.0.1, and also
101477         avoids taking the address of a local variable.  All callers
101478         changed.
101480 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101482         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
101483         $LIBCSRC/posix/regexec.c.
101484         Add glibc bug 1217 for regcomp.c.
101486 2005-08-19  Jim Meyering  <jim@meyering.net>
101488         * lib/regexec.c (proceed_next_node): Redo local variables to
101489         avoid GCC shadowing warnings.
101491 2005-08-18  Bruno Haible  <bruno@clisp.org>
101493         * lib/strstr.c (strstr): Fix return value in multibyte case.
101494         * lib/strcasestr.c (strcasestr): Likewise.
101496 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
101498         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
101500 2005-08-17  Jim Meyering  <jim@meyering.net>
101502         Make the %s format (seconds since the epoch) work for a negative
101503         number and when used with a zero-padded field width, e.g. %015s.
101505         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
101506         label so that it precedes the code to set `digits'.  Otherwise,
101507         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
101508         print `00-22'.  Now, it prints `-0022', as it should.
101510 2005-08-17  Bruno Haible  <bruno@clisp.org>
101512         * modules/strstr (Files): Add m4/mbrtowc.m4.
101513         (Depends-on): Add mbuiter.
101515 2005-08-17  Bruno Haible  <bruno@clisp.org>
101517         * modules/strcasestr: New file.
101518         * MODULES.html.sh (String handling, based on ANSI C 89): Add
101519         strcasestr.
101521 2005-08-17  Bruno Haible  <bruno@clisp.org>
101523         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
101525 2005-08-17  Bruno Haible  <bruno@clisp.org>
101527         * modules/mbuiter: New file.
101528         * MODULES.html.sh (Extended multibyte and wide character utilities):
101529         Add mbuiter.
101531 2005-08-17  Bruno Haible  <bruno@clisp.org>
101533         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
101534         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
101536 2005-08-17  Bruno Haible  <bruno@clisp.org>
101538         * m4/strcasestr.m4: New file.
101540 2005-08-17  Bruno Haible  <bruno@clisp.org>
101542         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
101543         * lib/strstr.c: Completely rewritten, with multibyte locale support.
101545 2005-08-17  Bruno Haible  <bruno@clisp.org>
101547         * lib/strcasestr.h: New file.
101548         * lib/strcasestr.c: New file.
101550 2005-08-17  Bruno Haible  <bruno@clisp.org>
101552         * lib/strcasecmp.c: Use mbuiter.h.
101554 2005-08-17  Bruno Haible  <bruno@clisp.org>
101556         * lib/mbuiter.h: New file.
101558 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
101560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
101561         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
101562         and gl_GETOPT are both invoked via different paths (as happens
101563         with GNU tar CVS because it uses both argp and getopt), the former
101564         wins.
101566 2005-08-16  Bruno Haible  <bruno@clisp.org>
101568         * modules/tls: New file.
101569         * MODULES.html.sh (Multithreading): Add tls.
101571 2005-08-16  Bruno Haible  <bruno@clisp.org>
101573         * modules/strnlen1: New file.
101574         * MODULES.html.sh (String handling): Add strnlen1.
101576 2005-08-16  Bruno Haible  <bruno@clisp.org>
101578         * modules/strcase (Files): Add m4/mbrtowc.m4.
101579         (Depends-on): Add strnlen1, mbchar.
101581 2005-08-16  Bruno Haible  <bruno@clisp.org>
101583         * modules/mbiter: New file.
101584         * MODULES.html.sh (Extended multibyte and wide character utilities):
101585         Add mbiter.
101587 2005-08-16  Bruno Haible  <bruno@clisp.org>
101589         * modules/mbfile: New file.
101590         * MODULES.html.sh (Extended multibyte and wide character utilities):
101591         Add mbfile.
101593 2005-08-16  Bruno Haible  <bruno@clisp.org>
101595         * modules/mbchar: New file.
101596         * MODULES.html.sh (Extended multibyte and wide character utilities):
101597         New section.
101599 2005-08-16  Bruno Haible  <bruno@clisp.org>
101601         * m4/tls.m4: New file, from GNU gettext.
101603 2005-08-16  Bruno Haible  <bruno@clisp.org>
101605         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
101606         always.
101607         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
101609 2005-08-16  Bruno Haible  <bruno@clisp.org>
101611         * m4/mbiter.m4: New file.
101613 2005-08-16  Bruno Haible  <bruno@clisp.org>
101615         * m4/mbfile.m4: New file.
101617 2005-08-16  Bruno Haible  <bruno@clisp.org>
101619         * m4/mbchar.m4: New file.
101621 2005-08-16  Bruno Haible  <bruno@clisp.org>
101623         * lib/tls.h: New file, from GNU gettext.
101624         * lib/tls.c: New file, from GNU gettext.
101626 2005-08-16  Bruno Haible  <bruno@clisp.org>
101628         * lib/strnlen1.h: New file.
101629         * lib/strnlen1.c: New file.
101631 2005-08-16  Bruno Haible  <bruno@clisp.org>
101633         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
101634         (mbi_init): Update.
101635         (mbi_avail, mbi_advance): Let the iteration end before the terminating
101636         NUL byte, not after it.
101638 2005-08-16  Bruno Haible  <bruno@clisp.org>
101640         * lib/strcase.h (strcasecmp): Add note in comments.
101641         * lib/strncasecmp.c: Use code from strcasecmp.c.
101642         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
101643         (strcasecmp): Work correctly in multibyte locales.
101645 2005-08-16  Bruno Haible  <bruno@clisp.org>
101647         * lib/mbiter.h: New file.
101649 2005-08-16  Bruno Haible  <bruno@clisp.org>
101651         * lib/mbfile.h: New file.
101653 2005-08-16  Bruno Haible  <bruno@clisp.org>
101655         * lib/mbchar.h: New file.
101656         * lib/mbchar.c: New file.
101658 2005-08-16  Bruno Haible  <bruno@clisp.org>
101660         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
101661         the valid ones. Makes the comparison operations transitive:
101662         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
101663         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
101665 2005-08-15  Simon Josefsson  <jas@extundo.com>
101667         * modules/ssize_t (License): Change to 'unlimited'.
101669         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
101671 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101673         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
101674         Add comments for each pending glibc patch.
101676 2005-08-15  Bruno Haible  <bruno@clisp.org>
101678         * lib/regex.h (__restrict_arr): Don't define to __restrict if
101679         __cplusplus is defined.
101681 2005-08-14  Jim Meyering  <jim@meyering.net>
101683         Sync from coreutils.
101685         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
101686         Use the hash-table-based cycle-detection code not just when
101687         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
101688         Reported by James Youngman in
101689         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
101690         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
101691         FTS_TIGHT_CYCLE_CHECK.
101692         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
101693         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
101694         once again.
101695         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
101696         * lib/fts.c (fd_safer): Remove decl.
101697         Include fcntl--.h rather than unistd-safer.h
101698         (fts_safe_changedir): Don't call fd_safer; no longer needed
101699         now that we include fcntl--.h.
101701 2005-08-12  Simon Josefsson  <jas@extundo.com>
101703         * modules/getndelim2: Use ssize_t module.
101704         * modules/getnline: Likewise.
101705         * modules/safe-read: Likewise.
101706         * modules/xreadlink: Likewise.
101708         * modules/ssize_t: New file.
101710 2005-08-12  Simon Josefsson  <jas@extundo.com>
101712         * m4/readline.m4: Look for termcap, curses or ncurses if required.
101714 2005-08-12  Simon Josefsson  <jas@extundo.com>
101716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101717         ssize_t.
101719 2005-08-12  Simon Josefsson  <jas@extundo.com>
101721         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
101722         readline, getdelim and check_version.
101723         (Support for systems lacking ISO C 99: Sizes of integer types):
101724         Add size_max.
101726 2005-08-12  Bruno Haible  <bruno@clisp.org>
101728         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
101730 2005-08-11  Simon Josefsson  <jas@extundo.com>
101732         * modules/readline: New file.
101734         * modules/strnlen (Files): Add strnlen.h.
101736 2005-08-11  Simon Josefsson  <jas@extundo.com>
101738         * m4/readline.m4: New file.
101740 2005-08-11  Simon Josefsson  <jas@extundo.com>
101742         * lib/readline.h, readline.c: New file.
101744 2005-08-11  Simon Josefsson  <jas@extundo.com>
101746         * doc/gnulib.texi (Initial import, Finishing touches): Mention
101747         gl_AVOID.
101749 2005-08-11  Bruno Haible  <bruno@clisp.org>
101751         * lib/strnlen.h (strnlen): Change parameter name to match comment.
101753 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
101755         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
101757 2005-08-10  Simon Josefsson  <jas@extundo.com>
101759         * tests/test-iconvme.c: New file.
101761 2005-08-10  Simon Josefsson  <jas@extundo.com>
101763         * m4/strnlen.m4: New file.
101765         * m4/strndup.m4: Don't check for strnlen declaration, done in
101766         strnlen.m4.
101768 2005-08-10  Simon Josefsson  <jas@extundo.com>
101770         * lib/strndup.c: Use strnlen.h.
101772         * lib/strnlen.h: New file.
101774 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101776         * README: Typos.
101778 2005-08-02  Simon Josefsson  <jas@extundo.com>
101780         * modules/readline: New file.
101782 2005-08-02  Simon Josefsson  <jas@extundo.com>
101784         * modules/getdelim: New file.
101786         * modules/getline: Rewrite, don't use getndelim2.
101788 2005-08-02  Simon Josefsson  <jas@extundo.com>
101790         * m4/getline.m4: Separate out getdelim stuff into separate module.
101792         * m4/getdelim.m4: New file.
101794 2005-08-02  Simon Josefsson  <jas@extundo.com>
101796         * lib/getline.h, getline.c: Rewrite.
101798         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
101800 2005-07-31  Bruno Haible  <bruno@clisp.org>
101802         * lib/lock.h (gl_lock_initializer): New macro.
101803         (gl_lock_define_initialized): Use it.
101804         (gl_rwlock_initializer): New macro.
101805         (gl_rwlock_define_initialized): Use it.
101806         (gl_recursive_lock_initializer): New macro.
101807         (gl_recursive_lock_define_initialized): Use it.
101809 2005-07-30  Karl Berry  <karl@gnu.org>
101811         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
101812         Report from Ben Pfaff, regarding getopt.
101814 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
101816         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
101817         normal way.
101818         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
101819         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
101820         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
101821         (gl_GETOPT): Use the new macros.  Most of the implementation
101822         is moved to the new macros.  This is for programs like Emacs
101823         that don't want all the functionality of gl_GETOPT.
101825 2005-07-26  Bruno Haible  <bruno@clisp.org>
101827         * m4/lock.m4: Update from GNU gettext.
101829 2005-07-26  Bruno Haible  <bruno@clisp.org>
101831         * lib/lock.h: Update from GNU gettext.
101832         * lib/lock.c: Update from GNU gettext.
101834 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
101836         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
101837         obsolescent AC_TRY_RUN.  Include the default includes files, for
101838         'exit'.
101840 2005-07-24  Bruno Haible  <bruno@clisp.org>
101842         * modules/visibility: New file.
101843         * MODULES.html.sh (Misc): Add visibility.
101845 2005-07-24  Bruno Haible  <bruno@clisp.org>
101847         * m4/visibility.m4: New file.
101849 2005-07-24  Bruno Haible  <bruno@clisp.org>
101851         * doc/visibility.texi: New file.
101853 2005-07-22  Bruno Haible  <bruno@clisp.org>
101855         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
101856         $(ALLOCA_H), redundant through BUILT_SOURCES.
101857         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
101858         redundant through BUILT_SOURCES.
101859         * modules/byteswap (Makefile.am): Remove explicit dependency on
101860         $(BYTESWAP_H), redundant through BUILT_SOURCES.
101861         * modules/fnmatch (Makefile.am): Remove explicit dependency on
101862         $(FNMATCH_H), redundant through BUILT_SOURCES.
101863         * modules/getopt (Makefile.am): Remove explicit dependency on
101864         $(GETOPT_H), redundant through BUILT_SOURCES.
101865         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
101866         redundant through BUILT_SOURCES.
101867         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
101868         redundant through BUILT_SOURCES.
101869         * modules/stdbool (Makefile.am): Remove explicit dependency on
101870         $(STDBOOL_H), redundant through BUILT_SOURCES.
101871         * modules/stdint (Makefile.am): Remove explicit dependency on
101872         $(STDINT_H), redundant through BUILT_SOURCES.
101873         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
101874         Remove explicit dependency on $(SYSEXITS_H).
101875         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
101877 2005-07-18  Simon Josefsson  <jas@extundo.com>
101879         * lib/check-version.c (check_version): Accept identical versions too.
101881 2005-07-18  Bruno Haible  <bruno@clisp.org>
101883         * modules/lock: New file.
101884         * MODULES.html.sh (Multithreading): New section.
101886 2005-07-18  Bruno Haible  <bruno@clisp.org>
101888         * m4/lock.m4: New file, from GNU gettext.
101890 2005-07-18  Bruno Haible  <bruno@clisp.org>
101892         * lib/lock.h: New file, from GNU gettext.
101893         * lib/lock.c: New file, from GNU gettext.
101895 2005-07-18  Bruno Haible  <bruno@clisp.org>
101897         * lib/lock.h (gl_once_t): New type.
101898         (gl_once_define, gl_once): New macros.
101899         * lib/lock.c (fresh_once): New variable.
101900         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
101901         functions.
101903 2005-07-16  Simon Josefsson  <jas@extundo.com>
101905         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
101906         workaround, suggested by Bruno.
101908 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
101910         * modules/xalloc (Depends-on): Add xalloc-die.
101911         * modules/xvasprintf (Depends-on): Add xalloc-die.
101913 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
101915         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
101916         with a minor change.
101918 2005-07-15  Bruno Haible  <bruno@clisp.org>
101920         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
101921         When using lib/poll.c, define poll as rpl_poll.
101923 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
101925         * modules/argp (Depends-on): Remove unlocked-io.
101927 2005-07-14  Derek Price  <derek@ximbiot.com>
101929         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
101930         for glob symlink bug.
101932 2005-07-14  Bruno Haible  <bruno@clisp.org>
101934         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
101935         Instead, test for *_unlocked function declarations directly.
101937 2005-07-11  Simon Josefsson  <jas@extundo.com>
101939         * modules/size_max: New file.
101941         * modules/xsize: Depend on size_max module for size_max.m4.
101943 2005-07-11  Simon Josefsson  <jas@extundo.com>
101945         * lib/size_max.h: New file.
101947 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
101949         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
101950         copyright symbol and the year.
101951         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
101952         (version_etc_va): Use parameterized copyright notice.
101953         Reword to conform to the current GNU coding standards.
101955 2005-07-11  Karl Berry  <karl@gnu.org>
101957         * doc/gnulib.texi (Quoting): new node.
101958         (Initial import): more info, from Patrice.
101960 2005-07-11  Bruno Haible  <bruno@clisp.org>
101962         * gnulib-tool (func_usage): Document option --avoid.
101963         (Command line options): Handle --avoid.
101964         (func_acceptable): New function.
101965         (func_modules_transitive_closure): Use it.
101967 2005-07-11  Bruno Haible  <bruno@clisp.org>
101969         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
101970         Reported by Jim Meyering.
101972 2005-07-10  Bruno Haible  <bruno@clisp.org>
101974         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
101975         Needed when size_t is smaller than 'unsigned int'.
101976         Reported by Paul Eggert.
101978 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101980         * modules/argp (Depends-on): Add unlocked-io
101982 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101984         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
101985         block of defines.
101987 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
101989         * config/srclist.txt: Comment out regcomp.c, since we have a porting
101990         fix now.
101992 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
101993         and Paul Eggert  <eggert@cs.ucla.edu>
101995         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
101996         in wint_t, not wchar_t.  Remove now-unnecessary cast.
101998 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102000         * modules/regex (Files): Add lib/regex_internal.c,
102001         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
102002         (Depends-on): Add extensions.
102003         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
102005 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102007         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
102008         pathconf.
102009         * m4/same.m4 (gl_SAME): Likewise.
102010         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
102012         * m4/regex.m4: Adjust to new libc regex implementation.
102013         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
102014         all the .c and .h parts of (the new) regex.
102015         Quote the m4 stuff better.
102016         Check for RE_ICASE bug of old gnulib.
102017         Check for REG_STARTEND of recent libc.
102018         Rename local variables from jm_* to gl_*.
102019         Quote operand of "test -f".
102020         Say "recent enough" version of libc, not "version 2".
102021         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
102022         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
102023         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
102024         Remove check for btowc, isascii.
102025         Require AM_LANGINFO_CODESET.
102027 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102029         * lib/regex.c, regex.h: Sync from libc.
102030         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
102031         * lib/regexec.c:
102032         New files, synced from libc, except that regex_internal.h
102033         currently has a small porting fix.
102035 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102037         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
102038         regex_internal.c, regexec.c.
102039         Add regex_internal.h too, but as a comment, since the libc version
102040         is currently broken in gnulib mode.
102042 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
102044         Support programs like Emacs that use gnulib but not gettext.
102045         * MODULES.html.sh (Internationalization functions): Add gettext-h.
102046         * modules/gettext-h: New file.
102047         * modules/gettext (Files): Remove lib/gettext.h.
102048         (Depends-on): Add gettext-h.
102049         (Makefile.am): Remove lib_SOURCES.
102050         * modules/argmatch, modules/c-stack, modules/closeout:
102051         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
102052         * modules/execute, modules/file-type, modules/getaddrinfo:
102053         * modules/getopt, modules/human, modules/javacomp:
102054         * modules/javaexec, modules/mkdir-p, modules/obstack:
102055         * modules/openat, modules/pagealign_alloc, modules/pipe:
102056         * modules/quotearg, modules/regex, modules/rpmatch:
102057         * modules/unicodeio, modules/userspec, modules/version-etc:
102058         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
102059         * modules/xsetenv:
102060         Depend on gettext-h, not gettext.
102062 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
102064         * gnulib-tool (func_import): Add support for 'public domain' license.
102065         * modules/alloca, modules/atexit, modules/memmove:
102066         Now public domain, not GPL.
102067         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
102068         * modules/realloc, modules/strerror, modules/strtod:
102069         Now LGPL, not GPL.
102071 2005-07-05  Bruno Haible  <bruno@clisp.org>
102073         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
102074         autoconf CVS. Needed for mingw.
102076 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102078         Remove the dependency of the strftime module on the tzset module.
102079         * modules/strftime (Depends-on): Remove dependency on tzset.
102081 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102083         Remove the dependency of the strftime module on the tzset module.
102084         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
102085         gl_FUNC_TZSET_CLOBBER.
102087 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102089         Remove the dependency of the strftime module on the tzset module.
102090         * lib/strftime.c (my_strftime)
102091         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
102092         Copy the input structure, to work around some of the bug with
102093         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
102094         Solaris releases, you should also use the tzset module, but we won't
102095         require it as a dependency any more since we don't want LGPLed code
102096         to depend on GPLed code.
102098 2005-07-02  Jim Meyering  <jim@meyering.net>
102100         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
102101         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
102102         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
102103         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
102105 2005-07-02  Jim Meyering  <jim@meyering.net>
102107         * lib/backupfile.c (backup_args): Change a `0' to NULL.
102109 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
102111         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
102112         declares only 'struct timespec;' (!).
102114 2005-07-01  Jim Meyering  <jim@meyering.net>
102116         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
102117         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
102118         * lib/save-cwd.c, tempname.c:
102119         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
102120         and don't include <sys/file.h>).
102122 2005-06-29  Jim Meyering  <jim@meyering.net>
102124         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
102125         type name.  Use the variable name instead.
102126         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
102127         Likewise.
102129 2005-06-28  Simon Josefsson  <jas@extundo.com>
102131         * modules/check-version (Files): Add check-version.m4.
102133 2005-06-28  Simon Josefsson  <jas@extundo.com>
102135         * m4/check-version.m4: New file, suggested by Jim Meyering
102136         <jim@meyering.net>.
102138 2005-06-28  Simon Josefsson  <jas@extundo.com>
102140         * lib/check-version.h, lib/check-version.c: New files.
102142 2005-06-28  Simon Josefsson  <jas@extundo.com>
102144         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
102145         collision with global variable.  Better indentation.  Don't
102146         increment buffer pointer beyond buffer end.  Based on comments
102147         from Paul Eggert <eggert@cs.ucla.edu>.
102149         * lib/base64.h: Indent.
102151 2005-06-28  Simon Josefsson  <jas@extundo.com>
102153         * doc/gnulib.texi (Library version handling): New section.
102155 2005-06-28  Jim Meyering  <jim@meyering.net>
102157         * check-module (find_included_lib_files): Hard-code another
102158         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
102159         but modules/fts-lgpl (correctly) does not list those files.
102161         * modules/canonicalize (Files): Add lib/pathmax.h.
102163 2005-06-25  Simon Josefsson  <jas@extundo.com>
102165         * modules/check-version: New file.
102167 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
102169         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
102170         initializer of struct addrinfo, as an indication that we don't
102171         care how many members the structure has.
102173 2005-06-24  Derek Price  <derek@ximbiot.com>
102174         and Bruno Haible  <bruno@clisp.org>
102176         Remove stat module & update lstat.
102177         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
102178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
102179         * m4/stat.m4: Remove this file.
102181 2005-06-24  Derek Price  <derek@ximbiot.com>
102182         and Bruno Haible  <bruno@clisp.org>
102184         Remove stat module & update lstat.
102185         * lib/stat.c: Remove this file...
102186         (slash_aware_lstat): ...moving this content and its support...
102187         * lib/lstat.c (rpl_lstat): ...into here.
102188         * lib/lstat.h: New file.
102190 2005-06-24  Derek Price  <derek@ximbiot.com>
102191         and Bruno Haible  <bruno@clisp.org>
102193         Remove stat module & update lstat.
102194         * config/srclist.txt (libc sources): Remove stat.
102196 2005-06-24  Derek Price  <derek@ximbiot.com>
102197         and Bruno Haible  <bruno@clisp.org>
102199         Remove stat module & update lstat.
102200         * MODULES.html.sh (stat): Remove.
102201         * MODULES.html: Regenerated.
102202         * modules/lstat (Description): Correct function name.
102203         (Files): Add "lstat.h".
102204         (Depends-on): Remove stat, add xalloc, stat-macros.
102205         * modules/stat: Remove this file.
102206         (Include): Add "lstat.h", remove <sys/stat.h>.
102208 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102210         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
102211         (ranged_convert): Don't save conversion in a temporary struct.
102212         This causes a warning with GCC 4.0.0, and anyway in the typical
102213         case it's not worth the extra 100 bytes or so of code.
102214         (ranged_convert, __mktime_internal): When calling a function via a
102215         pointer P, use P () rather than (*P) (), as we now assume C89 or
102216         better.
102218 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102220         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
102221         "who -r" failed to give output.  Problem reported by Tim Waugh.
102223         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
102224         (xcalloc): Use it to avoid needless tests.
102225         Problem reported by Jim Meyering.
102227 2005-06-20  Derek Price  <derek@ximbiot.com>
102229         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
102230         unnecessary for Autoconfs > 2.59c.
102232 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102234         * lib/argp.h (__option_is_short): Check upper limit of
102235         __key. Isprint() requires its argument to have the value
102236         of an unsigned char or EOF.
102238 2005-06-16  Jim Meyering  <jim@meyering.net>
102240         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
102241         when either N or S is zero.
102243 2005-06-16  Derek Price  <derek@ximbiot.com>
102245         * m4/bison.m4: Declare YACC & YFLAGS precious.
102247 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
102249         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
102250         multibyte string or pattern, fall back on unibyte matching.
102251         Problem reported by James Youngman.
102253 2005-06-08  Bruno Haible  <bruno@clisp.org>
102255         * modules/csharpcomp: New file.
102256         * MODULES.html.sh (C#): Add csharpcomp.
102258 2005-06-08  Bruno Haible  <bruno@clisp.org>
102260         * m4/csharpcomp.m4: New file, from GNU gettext.
102262 2005-06-08  Bruno Haible  <bruno@clisp.org>
102264         * lib/csharpcomp.h: New file, from GNU gettext.
102265         * lib/csharpcomp.c: New file, from GNU gettext.
102266         * lib/csharpcomp.sh.in: New file, from GNU gettext.
102268 2005-06-08  Bruno Haible  <bruno@clisp.org>
102270         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
102271         warning on mingw.
102273 2005-06-07  Derek Price  <derek@ximbiot.com>
102275         Sync from CVS.
102276         * lib/glob_.h: Indent nested #ifdef.
102278 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102280         Sync from coreutils.
102281         Use "file name" when talking about file names, instead of "filename"
102282         or "path", as per the GNU coding standards.
102283         * lib/mkdir-p.c: Renamed from makepath.c.
102284         (make_dir_parents): Renamed from make_path.  All callers changed.
102285         * lib/mkdir-p.h: Likewise.  All includers changed.
102286         * lib/filenamecat.c: Renamed from path-concat.c.
102287         (file_name_concat): Renamed from path_concat.  All callers changed.
102288         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
102289         * lib/filenamecat.h: Likewise.  All includers changed.
102290         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
102291         in comments or local variable names.
102292         * lib/basename.c: Likewise.
102293         * lib/canonicalize.c, canonicalize.h: Likewise.
102294         * lib/dirname.c, dirname.h: Likewise.
102295         * lib/euidaccess.c: Likewise.
102296         * lib/exclude.c: Likewise
102297         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
102298         * lib/fsusage.c, fsuage.h: Likewise.
102299         * lib/fts.c, fts_.h: Likewise.
102300         * lib/getcwd.c: Likewise.
102301         * lib/getloadavg.c: Likewise.
102302         * lib/mkstemp.c: Likewise.
102303         * lib/mountlist.c, mountlist.h: Likewise.
102304         * lib/openat.c, openat.h: Likewise.
102305         * lib/readlink-stub.c: Likewise.
102306         * lib/readutmp.c, readutmp.h: Likewise.
102307         * lib/rename.c: Likewise.
102308         * lib/rmdir.c: Likewise.
102309         * lib/same.c: Likewise.
102310         * lib/savedir.c: Likewise.
102311         * lib/stripslash.c: Likewise.
102312         * lib/tempname.c: Likewise.
102313         * lib/xreadlink.c: Likewise.
102314         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
102315         All uses changed.
102316         * lib/exclude.h: Likewise.
102318         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
102319         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102320         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
102321         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102322         * lib/pathmax.h: Include <limits.h> unconditionally, since other
102323         files have been getting away with it for years (MORE/BSD 4.3
102324         is extinct now).
102325         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
102326         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102328         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
102329         Define to 256, not 255, as per modern POSIX.
102331 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102333         Sync from coreutils.
102334         Use "file name" when talking about file names, instead of "filename"
102335         or "path", as per the GNU coding standards.
102336         * MODULES.html.sh: mkdir-p renamed from makepath.
102337         filenamecat renamed from path-concat.
102338         * modules/filenamecat: Renamed from modules/path-concat.
102339         (Files): filenamecat.h and filenamecat.c renamed from
102340         path-concat.h and path-concat.c.
102341         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
102342         (Include): filenamecat.h, not path-concat.h.
102343         * modules/mkdir-p: Renamed from modules/makepath.
102344         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
102345         makepath.c.
102346         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
102347         (Include): mkdir-p.h, not makepath.h.
102349 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102351         Sync from coreutils.
102352         * m4/mkdir-p.m4: Renamed from makepath.m4.
102353         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
102354         Rename files from makepath.c to mkdir-p.c, and from
102355         makepath.h to mkdir-p.h.
102356         * m4/filenamecat.m4: Renamed from path-concat.m4.
102357         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
102358         Rename files from path-concat.c to filenamecat.c,
102359         and from path-concat.h to filenamecat.h.
102360         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
102361         "file name" in local variables or comments.
102362         * m4/rename.m4: Likewise.
102364 2005-06-01  Bruno Haible  <bruno@clisp.org>
102366         * modules/csharpexec: New file.
102367         * MODULES.html.sh (C#): New section.
102369 2005-06-01  Bruno Haible  <bruno@clisp.org>
102371         * m4/csharp.m4: New file, from GNU gettext.
102372         * m4/csharpexec.m4: New file, from GNU gettext.
102374 2005-06-01  Bruno Haible  <bruno@clisp.org>
102376         * lib/csharpexec.h: New file, from GNU gettext.
102377         * lib/csharpexec.c: New file, from GNU gettext.
102378         * lib/csharpexec.sh.in: New file, from GNU gettext.
102380 2005-05-31  Derek Price  <derek@ximbiot.com>
102381             Paul Eggert  <eggert@cs.ucla.edu>
102383         Sync from cvs.
102384         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
102386 2005-05-31  Derek Price  <derek@ximbiot.com>
102387             Paul Eggert  <eggert@cs.ucla.edu>
102389         Sync from cvs.
102390         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
102392 2005-05-29  Derek Price  <derek@ximbiot.com>
102394         * config/srclist.txt (glob_.h, glob.c): Add these files.
102396 2005-05-29  Derek Price  <derek@ximbiot.com>
102398         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
102399         * modules/glob: New file.
102400         * modules/getlogin_r: Add link to POSIX spec in description.
102402 2005-05-29  Derek Price  <derek@ximbiot.com>
102403             Paul Eggert  <eggert@cs.ucla.edu>
102405         * m4/glob.m4: New file.
102407 2005-05-29  Derek Price  <derek@ximbiot.com>
102408             Paul Eggert  <eggert@cs.ucla.edu>
102410         * lib/glob_.h, lib/glob.c: New files.
102412 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102414         * modules/fts (Files): Remove m4/inttypes-pri.m4.
102415         * modules/fts-lgpl (Depends-on): Remove gettext.
102417 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
102420         and don't require gt_INTTYPES_PRI.
102422 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102424         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
102426         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
102427         the configuration hassle isn't worth it.
102428         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
102429         (LONGEST_MODIFIER, PRIuMAX): Remove.
102431 2005-05-27  Bruno Haible  <bruno@clisp.org>
102433         * lib/getlogin_r.h: Remove second include of <stddef.h>.
102435 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
102437         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
102438         _POSIX_PTHREAD_SEMANTICS for Solaris.
102440 2005-05-25  Derek Price  <derek@ximbiot.com>
102442         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
102444 2005-05-25  Derek Price  <derek@ximbiot.com>
102445             Paul Eggert  <eggert@cs.ucla.edu>
102447         * modules/getlogin_r, m4/getlogin_r.m4: New files.
102448         * lib/getlogin_r.c, getlogin_r.h: New files.
102450 2005-05-25  Bruno Haible  <bruno@clisp.org>
102451             Derek Price  <derek@ximbiot.com>
102453         * lib/getlogin_r.h: Simplify API documentation.
102455 2005-05-23  Derek Price  <derek@ximbiot.com>
102457         * modules/minmax (Files): Add m4/minmax.m4.
102458         (configure.ac): Add gl_MINMAX.
102460 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
102462         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
102463         so that unistd-safer.h (GPL'ed code) need not be included.
102465 2005-05-22  Bruno Haible  <bruno@clisp.org>
102467         * m4/minmax.m4: New file.
102468         Based on a patch by Derek Price <derek@ximbiot.com>.
102470 2005-05-22  Bruno Haible  <bruno@clisp.org>
102472         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
102473         (INT64_MIN): Fix definition.
102474         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
102476         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
102477         NEED_SIGNED_INT_TYPES.
102479         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
102480         HAVE_SYSTEM_INTTYPES.
102482 2005-05-22  Bruno Haible  <bruno@clisp.org>
102484         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
102485         Also include <sys/param.h> if it defines MIN, MAX.
102486         Based on a patch by Derek Price <derek@ximbiot.com>.
102488 2005-05-21  Jim Meyering  <jim@meyering.net>
102490         * modules/fts (Files): Add m4/inttypes-pri.m4.
102491         (Depends-on): Add lstat and remove gettext.  Alphabetize.
102493 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102495         New fts module.
102496         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
102497         (setup_dir, free_dir): New functions.
102498         (enter_dir, leave_dir): Define trivial
102499         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
102500         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
102501         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
102502         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
102503         Move to fts-cycle.c.
102504         (fts_open): Use setup_dir.
102505         (fts_close): Use free_dir.
102506         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
102507         This adds a label and some gotos, but the alternatives were messier.
102508         Check for memory allocation failure when entering a dir.
102509         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
102510         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
102511         (FTS): New member fts_cycle, that is a union that contains the
102512         old active_dir_ht and cycle_state.  All uses changed to mention
102513         fts_cycle.ht and fts_cycle.state.
102514         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
102515         fts.c, with the following changes:
102516         (setup_dir, free_dir): New functions.
102517         (enter_dir): Now returns bool.  Return true if successful, false
102518         if memory exhausted.  All callers changed.
102519         Do not bother partly cleaning up on
102520         memory allocation failure; that is free_dir's job.
102521         However, free ad if hash_insert fails, to avoid memory leak.
102522         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
102523         fts->fts_options to see which union member to use.
102525 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102527         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
102528         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
102530 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102532         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
102534 2005-05-20  Jim Meyering  <jim@meyering.net>
102536         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
102537         Now a macro, to pacify GCC.
102539 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
102541         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
102542         of -1.
102544 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
102546         * lib/chown.c (rpl_chown): Return -1 on failure.
102548 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
102550         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
102551         Don't check for stddef.h.
102552         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
102553         don't use its results.
102554         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
102555         since we include them unconditionally.  Don't require
102556         AM_STDBOOL_H, since stdbool is a prerequisite.
102557         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
102558         since we assume C89 or better.
102559         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
102560         as we don't use their results.
102561         Don't check for fchdir, memmove, memset, strrchr, as we use
102562         them unconditionally.
102563         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
102564         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
102566 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
102568         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
102569         Include <stddef.h> unconditionally, since we assume C89 now.
102570         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
102571         * lib/fts.c: Include fts_.h first, to check interface.
102572         Do not include intprops.h; no longer needed.
102573         Include cycle-check.h and hash.h, since fts_.h no longer does.
102574         Remove unnecessary casts of closedir to void.
102575         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
102576         decide whether to decrement nlinks.
102577         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
102578         (FTS): Use struct hash_table * instead of Hash_table, so that
102579         we no longer need to include hash.h here.
102581 2005-05-18  Jim Meyering  <jim@meyering.net>
102583         * modules/dirfd (License): Change to LGPL.  Most of the code
102584         is already in the public domain.
102586 2005-05-18  Jim Meyering  <jim@meyering.net>
102588         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
102589         Reported by Yoann Vandoorselaere.
102591 2005-05-17  Jim Meyering  <jim@meyering.net>
102593         * m4/fts.m4: New file, from coreutils.
102595 2005-05-17  Jim Meyering  <jim@meyering.net>
102597         * lib/fts.c, lib/fts_.h: New files, from coreutils.
102599 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102601         Sync from coreutils.
102602         * m4/unlinkdir.m4: New file.
102604 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102606         Sync from coreutils.
102607         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
102608         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
102609         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
102610         White space changes only.
102611         * lib/makepath.c (make_path): Port to hosts where leading "//" is
102612         special.
102613         * lib/yesno.c: Include getline.h, not ctype.h.
102614         (yesno): Don't remove leading white space; POSIX doesn't allow it.
102615         Use getline to remove arbitrary restriction on response length.
102617 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102619         * config/srclist-update: Spell out "Street" in FSF postal
102620         mail address; this is the style the FSF seems to prefer.
102622         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
102623         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
102624         this updates FSF postal mail address.
102626         Sync from coreutils.
102627         * modules/unlinkdir: New file.
102628         * modules/yesno (Depends-on): Add getline.
102629         * MODULES.html.sh (File system functions): Add unlinkdir.
102631 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102633         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
102634         lib/strsep.h:
102635         Change the initial comment to refer to GPL, not LGPL.
102636         gnulib-tool will change it to LGPL as needed.
102638         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
102639         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
102640         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
102641         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
102642         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
102643         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
102644         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
102645         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
102646         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
102647         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
102648         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
102649         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
102650         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
102651         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
102652         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
102653         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
102654         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
102655         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
102656         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
102657         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
102658         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
102659         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
102660         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
102661         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
102662         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
102663         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
102664         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
102665         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
102666         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
102667         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
102668         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
102669         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
102670         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
102671         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
102672         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
102673         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
102674         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
102675         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
102676         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
102677         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
102678         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
102679         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
102680         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
102681         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
102682         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
102683         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
102684         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
102685         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
102686         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
102687         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
102688         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
102689         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
102690         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
102691         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
102692         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
102693         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
102694         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
102695         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
102696         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
102697         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
102698         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
102699         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
102700         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
102701         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
102702         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
102703         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
102704         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
102705         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
102706         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
102707         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
102708         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
102709         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
102710         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
102711         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
102712         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
102713         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
102714         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
102715         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
102716         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
102717         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
102718         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
102719         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
102720         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
102721         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
102722         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
102723         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
102724         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
102725         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
102726         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
102727         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
102728         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
102729         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
102730         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
102731         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
102732         lib/yesno.c, lib/yesno.h:
102733         Update FSF postal mail address.
102735 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102737         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
102738         tests/test-memmem.c, tests/test-stpncpy.c:
102739         Update FSF postal mail address.
102741 2005-05-13  Bruno Haible  <bruno@clisp.org>
102743         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
102744         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
102745         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
102746         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
102747         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
102748         Add support for 64-bit integers in the MSVC compiler.
102750 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102752         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
102754 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
102756         * gnulib-tool (func_import): Sort and uniquify recommended includes.
102758 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
102760         * doc/getdate.texi (General date syntax): Don't say that date
102761         date --iso-8601=ns generates acceptable dates; it doesn't yet.
102762         Problem reported by Nic Ferrier.
102764 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102766         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
102767         specified in ai_socktype. Fix invalid ai_protocol
102768         check. ai_protocol is usually set to 0 or depending on
102769         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
102770         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
102771         ai_socktype / ai_protocol in the returned addrinfo structure.
102773 2005-05-10  Simon Josefsson  <jas@extundo.com>
102775         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
102776         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102778 2005-05-10  Karl Berry  <karl@gnu.org>
102780         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
102781         (from http://www.gnu.org/licenses).
102782         * doc/COPYING.LIB: also rename to COPYING.LESSER.
102783         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
102784         fdl.texi suffices.
102786 2005-05-10  Karl Berry  <karl@gnu.org>
102788         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
102789         (COPYING.DOC): remove.
102791         * config/srclist-update: new FSF address.
102793 2005-05-10  Derek Price  <derek@ximbiot.com>
102795         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
102796         possible.
102798 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102799             Bruno Haible  <bruno@clisp.org>
102801         * modules/inet_ntop: New file.
102802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102803         inet_ntop.
102805 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102806             Bruno Haible  <bruno@clisp.org>
102808         * m4/inet_ntop.m4: New file.
102810 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102811             Bruno Haible  <bruno@clisp.org>
102813         * lib/inet_ntop.h: New file.
102814         * lib/inet_ntop.c: New file, from glibc with modifications.
102816 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
102818         * modules/time_r (License): Change to LGPL.
102819         * modules/extensions (License): Change to LGPL.  Actually,
102820         the license is more permissive than that, but currently gnulib-tool
102821         doesn't know how to handle more-permissive licenses.
102823         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
102824         Problem reported by Dave Love.
102826 2005-05-08  Jim Meyering  <jim@meyering.net>
102828         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
102829         blank.
102831 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
102833         * modules/argmatch (Depends-on): Add stdbool.
102834         * modules/backupfile (Depends-on): Likewise.
102835         * modules/chdir-long (Depends-on): Likewise.
102836         * modules/closeout (Depends-on): Likewise.
102837         * modules/cycle-check (Depends-on): Likewise.
102838         * modules/dirname (Depends-on): Likewise.
102839         * modules/fnmatch (Depends-on): Likewise.
102840         * modules/fsusage (Depends-on): Likewise.
102841         * modules/fwriteerror (Depends-on): Likewise.
102842         * modules/getcwd (Depends-on): Likewise.
102843         * modules/getloadavg (Depends-on): Likewise.
102844         * modules/hard-locale (Depends-on): Likewise.
102845         * modules/makepath (Depends-on): Likewise.
102846         * modules/mountlist (Depends-on): Likewise.
102847         * modules/nanosleep (Depends-on): Likewise.
102848         * modules/posixtm (Depends-on): Likewise.
102849         * modules/quotearg (Depends-on): Likewise.
102850         * modules/readtokens (Depends-on): Likewise.
102851         * modules/readtokens0 (Depends-on): Likewise.
102852         * modules/readutmp (Depends-on): Likewise.
102853         * modules/save-cwd (Depends-on): Likewise.
102854         * modules/strftime (Depends-on): Likewise.
102855         * modules/userspec (Depends-on): Likewise.
102856         * modules/utimecmp (Depends-on): Likewise.
102857         * modules/xgetcwd (Depends-on): Likewise.
102858         * modules/xnanosleep (Depends-on): Likewise.
102859         * modules/xstrtod (Depends-on): Likewise.
102860         * modules/yesno (Depends-on): Likewise.
102862 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
102864         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
102865         needless checks.
102867 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102869         Merge from coreutils.  Among other things,
102870         add bulletproofing for cases where stdin, stdout, or stderr are closed.
102871         * lib/fd-safer.c: New file.
102872         * lib/fcntl-safer.h, open-safer.c: Remove.
102873         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
102874         * lib/dup-safer.c: Include unistd-safer.h first.
102875         Don't include errno.h.
102876         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
102877         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
102878         * lib/file-type.c: Rely on file-type.h change.
102879         * lib/getloadavg.c: Include unistd-safer.h.
102880         (getloadavg): Use safer open.
102881         * lib/getusershell.c: Include "stdio-safer.h".
102882         (getusershell): Use safer fopen.
102883         * lib/long-options.c (long_options): Use NULL rather than 0.
102884         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
102885         'free'.
102886         * lib/modechange.c: Likewise.
102887         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
102888         (MODE_DONE): New constant.
102889         (struct mode_change): Remove 'next' member.
102890         (make_node_op_equals): New function; like the old one of the
102891         same name, except it allocates an array.
102892         (mode_compile, mode_create_from_ref): Use it.
102893         (mode_compile): Allocate result as an array, not a linked list.
102894         Parse octal string ourself, so that we catch mistakes like "+0".
102895         (mode_adjust): Arg is an array, not a linked list.
102896         * lib/modechange.c: Include stat-macros.h, xalloc.h.
102897         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
102898         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
102899         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
102900         Remove.  This is now stat-macros.h's job.
102901         (talloc): Remove.  All callers replaced by xalloc, so that
102902         our invokers don't have to worry about reporting memory failures.
102903         (make_node_op_equals): Remove.
102904         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
102905         New constants.
102906         (struct mode_change): Moved here from modechange.h.
102907         (mode_append_entry): Remove.
102908         (mode_compile): Remove MASKED_OPS arg, since it encouraged
102909         apps to have incorrect behavior.  Use simpler algorithm for head
102910         and tail.  Don't futz with umask; that's now the job of mode_adjust.
102911         Detect more invalid usages rather than having somewhat-random behavior.
102912         Don't insert an "a=" action, as that leads to incorrect behavior.
102913         (mode_compile, mode_create_from_ref): Return NULL on error instead
102914         of an enum, since now there's only one way to have an error.  All
102915         callers changed.
102916         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
102917         at the correct time.  Simplify calculation of "+u" and its ilk.
102918         Don't mishandle "+X".
102919         (mode_free): Remove "register" and localize decls.
102920         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
102921         (struct mode_change): Move to modechange.c; callers don't
102922         need to see this stuff.
102923         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
102924         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
102925         (mode_change, mode_adjust): Reflect the new signatures noted above.
102926         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
102927         that might redefine system include files.
102928         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
102929         (my_usleep): Use NULL rather than (void *) 0.
102930         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
102931         Use siginterrupt to specify that system calls should be interrupted.
102932         (rpl_nanosleep): Move initialization of suspended closer to call of
102933         my_usleep.
102934         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
102935         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
102936         (desirable_utmp_entry): New function.
102937         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
102938         using x2nrealloc, to simplify logic.
102939         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
102940         size calculation.  Do not assume utmp file is a regular file.
102941         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
102942         (READ_UTMP_CHECK_PIDS): New constant.
102943         * lib/save-cwd.c: Include unistd-safer.h.
102944         (save_cwd): Use fd_safer.
102945         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
102946         [!_LIBC] Include "stat-macros.h" instead.
102947         * lib/unistd-safer.h (fd_safer): New decl.
102949 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102951         * modules/getloadavg (Depends-on): Add unistd-safer.
102952         * modules/getusershell (Depends-on): Add stdio-safer.
102953         * modules/lstat (Depends-on): Remove xalloc.
102954         * modules/mkstemp (Depends-on): Add stat-macros.
102955         * modules/modechange (Depends-on): Remove xstrtol.
102956         Add stat-macros, xalloc.
102957         * modules/save-cwd (Depends-on): Add unistd-safer.
102958         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
102959         * modules/unistd-safer (Files): Add lib/fd-safer.c
102960         (Makefile.am): Remove lib_SOURCES.
102962         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
102963         Remove fcntl-safer; unistd-safer supersedes it.
102965 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102967         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
102968         AC_HEADER_STAT.
102969         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
102970         (gl_PREREQ_CHOWN): Remove.
102971         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
102972         it.  Don't require AC_HEADER_STAT.
102973         (gl_PREREQ_LSTAT): Remove.
102974         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
102975         Don't require AC_HEADER_STAT.
102976         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
102977         (gl_PREREQ_RMDIR): Remove.
102978         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
102979         mention stat-macros.h or AC_HEADER_STAT, since we'll make
102980         the stat-macros module a prerequisite.
102981         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
102982         * m4/filemode.m4 (gl_FILEMODE): Likewise.
102983         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
102984         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
102985         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
102986         variable names.
102987         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
102988         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
102989         variable prefixes.
102990         * m4/fcntl-safer.m4: Remove.
102991         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
102992         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
102993         Invoke gl_PREREQ_FD_SAFER.
102994         (gl_PREREQ_FD_SAFER): New macro.
102995         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
102996         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
102997         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
102998         Remove duplicate call to AC_LIBOBJ(readutmp).
102999         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
103001         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
103002         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
103004 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103006         * MODULES.html.sh (Misc): Add byteswap.
103008 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103010         * modules/getcwd (Depends-on): Add extensions.
103011         * modules/openat (Depends-on): Likewise.
103013 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103015         * modules/byteswap: New file.
103017 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103019         * m4/byteswap.m4: New file.
103021 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103023         * lib/byteswap_.h: New file.
103025 2005-04-25  Karl Berry  <karl@gnu.org>
103027         * m4/gettext.m4: Update from GNU gettext 0.14.4.
103029 2005-04-25  Albert Chin  <china@thewrittenword.com>
103031         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
103032         Toolkit C bug.
103034 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
103036         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
103037         (func_ln_if_changed): Remove forcibly for no error message
103038         in case file does not exist.
103040 2005-04-19  Simon Josefsson  <jas@extundo.com>
103042         * gnulib-tool (Options): Make --symlink mean --symbolic.
103044 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
103046         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
103048 2005-04-16  Simon Josefsson  <jas@extundo.com>
103050         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
103052 2005-04-15  Simon Josefsson  <jas@extundo.com>
103054         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
103056 2005-04-15  Simon Josefsson  <jas@extundo.com>
103058         * gnulib-tool: Rename --symlink to --symbolic.
103060 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
103062         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
103063         symbolic links to files instead of copying/moving.  Add --aux-dir,
103064         specifying directory relative --dir where auxiliary build tools
103065         are placed.
103067 2005-04-14  Bruno Haible  <bruno@clisp.org>
103069         * modules/allocsa (License): Change to LGPL.
103070         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
103072 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103074         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
103075         that "UTC +1 second" continues to work.  Problem reported
103076         by Dmitry V. Levin.
103077         (relunit_snumber): New rule.
103078         (relunit): Use it.
103080 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
103082         * lib/getdate.y (universal_time_zone_table): New constant.
103083         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
103084         universal_time_zone_table.
103085         (lookup_zone): Prefer universal_time_zone_table to
103086         local_time_zone_table, so that "GMT" time stamps are allowed in
103087         London during the summer.  Problem reported by Ian Abbott.
103089 2005-04-12  Jim Meyering  <jim@meyering.net>
103091         * lib/human.c (humblock): Set *options even when returning due to
103092         xstrtoumax conversion failure.  Thanks to a used-uninitialized
103093         warning from gcc-4.
103095 2005-04-09  Jim Meyering  <jim@meyering.net>
103097         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
103098         -Wuninitialized: initialize tm0.tm_year.
103100 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
103102         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
103103         count, since there's no maximum.  All uses changed.
103104         Add member dsts_seen.
103105         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
103106         not being INT_MAX.
103107         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
103108         Use pc_rels_seen to decide whether a date is absolute.
103110         * lib/getdate.y (number): Don't overwrite year.
103111         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
103112         check.
103114 2005-04-02  Simon Josefsson  <jas@extundo.com>
103116         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
103117         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
103119 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
103121         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
103122         where no absolute path name can be longer than PATH_MAX.
103124 2005-03-27  Jim Meyering  <jim@meyering.net>
103126         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
103128 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
103130         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
103131         "one's complement" -> "ones' complement" in comment, as per Knuth.
103132         "value of type" -> "type or expression" in comment.
103133         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
103135 2005-03-26  Jim Meyering  <jim@meyering.net>
103137         Comment nits.
103138         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
103139         Correct typos: s/or/of/.
103141 2005-03-26  Jim Meyering  <jim@meyering.net>
103143         * modules/check-include-files: Move to ../ and rename to...
103144         * check-module: ...this.
103146 2005-03-25  Jim Meyering  <jim@meyering.net>
103148         * modules/xvasprintf (Files): Add xalloc.h.
103150 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103152         * modules/gettext (Files): config/config.rpath ->
103153         build-aux/config.rpath
103154         * modules/iconv (Files): Likewise.
103155         Problem reported by Oskar Liljeblad.
103157 2005-03-23  Jim Meyering  <jim@meyering.net>
103159         * modules/check-include-files: New script to check for
103160         missing dependencies, multiple includes, etc.
103162         * modules/c-strtold (Depends-on): Add xalloc.
103163         * modules/c-strtod (Depends-on): Add xalloc.
103164         * modules/hash (Depends-on): Add xalloc.
103165         (Files): Remove lib/xalloc.h.
103167         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
103168         * modules/userspec (Files): Add lib/inttostr.h.
103170 2005-03-23  Jim Meyering  <jim@meyering.net>
103172         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
103174 2005-03-22  Jim Meyering  <jim@meyering.net>
103176         * modules/stat-macros: New module.
103177         * modules/canonicalize, modules/euidaccess, modules/file-type,
103178         * modules/filemode, modules/lchown, modules/makepath,
103179         * modules/rmdir, modules/stat: Depend on new stat-macros module
103180         rather than listing lib/stat-macros.h manually.
103181         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
103183 2005-03-22  Jim Meyering  <jim@meyering.net>
103185         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
103187 2005-03-22  Bruno Haible  <bruno@clisp.org>
103189         * config/srclist.txt: Replace target directory 'config' with
103190         'build-aux'.
103191         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
103192         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
103193         ../build-aux/.
103195 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
103197         * modules/chdir-long (Depends-on): Add mempcpy.
103199         * modules/acl, modules/backupfile, modules/c-strtod,
103200         modules/c-strtold, modules/canon-host, modules/canonicalize,
103201         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
103202         modules/exclude, modules/exitfail, modules/file-type,
103203         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
103204         modules/getdate, modules/getline, modules/getpagesize,
103205         modules/getpass, modules/getugroups, modules/group-member,
103206         modules/hard-locale, modules/hash, modules/human, modules/idcache,
103207         modules/inttostr, modules/long-options, modules/makepath,
103208         modules/md5, modules/memcasecmp, modules/memcoll,
103209         modules/modechange, modules/mountlist, modules/path-concat,
103210         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
103211         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
103212         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
103213         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
103214         modules/strftime, modules/strndup, modules/strverscmp,
103215         modules/timespec, modules/unlocked-io, modules/userspec,
103216         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
103217         modules/yesno:
103218         Remove lib_SOURCES line from Makefile.am section, as this is now
103219         done automatically by the corresponding Autoconf macro.
103221 2005-03-21  Jim Meyering  <jim@meyering.net>
103223         Changes imported from coreutils.
103225         * lib/cycle-check.c: Don't include xalloc.h.
103227         * lib/path-concat.c: Don't include assert.h.
103228         (path_concat): Remove assertion that would have triggered
103229         for ABASE starting with more than one slash.
103230         Reported by Andreas Schwab.
103232         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
103233         properly when ABASE is an absolute file name.
103234         Correct the description of this function.
103235         Include <assert.h>.
103236         Add an assertion and a test driver.
103237         This fixes a bug introduced on 2004-07-02.
103238         Andreas Schwab reported the resulting failure of cp --parents:
103239         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
103241 2005-03-21  Jim Meyering  <jim@meyering.net>
103243         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
103244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
103246 2005-03-21  Jim Meyering  <jim@meyering.net>
103247         and  Paul Eggert  <eggert@cs.ucla.edu>
103249         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
103250         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
103251         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
103252         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
103253         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
103254         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
103255         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
103256         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
103257         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
103258         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
103259         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
103260         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
103261         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
103262         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
103263         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
103264         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
103265         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
103266         for these modules.
103268 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
103270         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
103271         (which shouldn't happen), generate nothing instead of returning 0
103272         immediately, so that nstrftime (NULL, ...) doesn't return 0.
103274 2005-03-16  Bruno Haible  <bruno@clisp.org>
103276         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
103277         HAVE_LONGLONG_64BIT.
103279 2005-03-16  Bruno Haible  <bruno@clisp.org>
103281         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
103282         HAVE_LONGLONG_64BIT.
103284 2005-03-16  Bruno Haible  <bruno@clisp.org>
103286         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
103287         HAVE_LONGLONG_64BIT.
103289 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
103291         * lib/strftime.c (my_strftime): Prepend space to format so that we can
103292         reliably distinguish strftime failure from empty output on POSIX
103293         hosts.
103295 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
103297         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
103298         (iconv_string): Don't guess a size-zero buffer, as that might cause
103299         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
103300         result would be 'too large', where 'too large' is (heuristically)
103301         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
103302         overflow concerns.  This will prevent some unwanted malloc failures
103303         when the inputs are very large.
103305 2005-03-15  Karl Berry  <karl@gnu.org>
103307         * config/srclist.txt (config.rpath): from gettext.
103308         * config/config.rpath: update.
103310 2005-03-15  Bruno Haible  <bruno@clisp.org>
103312         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
103313         to 'negate'.
103315         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
103316         variable.
103318         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
103319         results.
103321 2005-03-14  Simon Josefsson  <jas@extundo.com>
103323         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
103324         <fx@gnu.org>.
103326 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
103328         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
103329         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
103330         intprops.h.
103331         * lib/strtol.c: Likewise.
103333 2005-03-14  Jim Meyering  <jim@meyering.net>
103335         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
103336         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
103337         to be nonzero so that we (and caller) can detect the difference
103338         between a valid zero-length expansion and an error return, even
103339         when the underlying strftime fails before writing anything into
103340         that location.
103342 2005-03-14  Bruno Haible  <bruno@clisp.org>
103344         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
103345         Update from GNU gettext 0.14.3.
103347 2005-03-10  Jim Meyering  <jim@meyering.net>
103349         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
103351 2005-03-10  Jim Meyering  <jim@meyering.net>
103353         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
103354         so that this module works on systems without fchdir.
103356 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
103358         Factor int-properties macros into a single file, except for
103359         glibc-related files.
103360         * lib/intprops.h: New file.
103361         * lib/getloadavg.c: Include it instead of limits.h.
103362         (INT_STRLEN_BOUND): Remove.
103363         * lib/human.c: Include intprops.h.
103364         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
103365         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
103366         302/1000.
103367         * lib/inttostr.h: Include intprops.h instead of limits.h.
103368         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
103369         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
103370         for consistency with intprops.h.
103371         (time_t_is_integer, twos_complement_arithmetic): Use them.
103372         * lib/sig2str.h: Include <signal.h>, intprops.h.
103373         (INT_STRLEN_BOUND): Remove.
103374         * lib/strftime.c (TYPE_SIGNED): Remove.
103375         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
103376         * lib/strtol.c: Adjust comments to match intprops.h.
103377         * lib/userspec.c: Include intprops.h.
103378         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
103379         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
103380         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
103381         instead of rolling our own expressions.
103382         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
103384         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
103385         instead of int.
103386         (my_strftime): Do not mishandle years close to INT_MAX, by doing
103387         the right thing even if adding 1900 would overflow.  Similarly
103388         for tm_mon + 1 and tm_yday + 1.
103389         Make %Y always equivalent to %C%y, and similarly for %G and %g.
103390         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
103391         (DO_SIGNED_NUMBER): New macro.
103392         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
103394 2005-03-07  Bruno Haible  <bruno@clisp.org>
103396         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
103398 2005-03-07  Bruno Haible  <bruno@clisp.org>
103400         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
103402 2005-03-04  Derek R. Price  <derek@ximbiot.com>
103404         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
103405         (func_import): Only replace files via --import when they have actually
103406         changed.
103408 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103410         * m4/mmap-anon.m4: New file.
103411         * m4/pagealign_alloc.m4: New file.
103413 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103414             Bruno Haible  <bruno@clisp.org>
103416         * modules/pagealign_alloc: New file.
103417         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
103419 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103420             Bruno Haible  <bruno@clisp.org>
103422         * lib/pagealign_alloc.h: New file.
103423         * lib/pagealign_alloc.c: New file.
103425 2005-03-03  Bruno Haible  <bruno@clisp.org>
103427         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
103428         Use an all-permissive copyright notice, recommended by RMS.
103430 2005-03-02  Bruno Haible  <bruno@clisp.org>
103432         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
103433         of AIX, the replacement has to be done only after <string.h> is
103434         included, therefore not in config.h. stpncpy.h does the replacement,
103435         and stpncpy.c uses it.
103437 2005-03-02  Bruno Haible  <bruno@clisp.org>
103439         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
103440         stpncpy.c uses it.
103442 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103444         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
103445         The workaround isn't strictly needed for POSIX conformance, and
103446         it's too much of a pain to configure and maintain.  We'll ask
103447         people to fix their kernels instead.
103448         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
103449         (NANOSLEEP_BUG_WORKAROUND): Remove.
103450         (xnanosleep): Remove the workaround.
103452 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103454         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
103455         Reported by Derek Price.
103456         (Include): Add "timespec.h".
103458         * modules/xnanosleep (Depends-on): Remove gethrxtime.
103460 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103462         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
103463         to detect nanosleep bug.
103465 2005-03-01  Bruno Haible  <bruno@clisp.org>
103467         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
103469 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
103471         * modules/gethrxtime: New file.
103472         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
103473         (Depends-on): Add gethrxtime.
103474         (configure.ac): Add gl_XNANOSLEEP.
103475         (Makefile.am): Remove lib_SOURCES line.
103477 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103479         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
103480         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
103482 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103484         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
103485         * lib/timespec.h (gettime): Return void, since it always
103486         succeeds now.  All uses changed.
103487         * lib/gettime.c (gettime): Likewise.
103488         [HAVE_NANOTIME]: Prefer nanotime.
103489         Assume gettimeofday succeeds, as POSIX requires.
103490         Assime time () succeeds, since other code already does.
103491         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
103492         (timespec_subtract): Remove.
103493         (NANOSLEEP_BUG_WORKAROUND): New constant.
103494         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
103495         things considerably.  Use it only on GNU/Linux hosts, since the
103496         workaround shouldn't be needed elsewhere.
103498 2005-02-24  Bruno Haible  <bruno@clisp.org>
103500         * modules/gettext (Files): Add m4/glibc2.m4.
103502 2005-02-24  Bruno Haible  <bruno@clisp.org>
103504         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
103505         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
103506         * m4/progtest.m4:
103507         Update from GNU gettext 0.14.2.
103508         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
103510 2005-02-24  Bruno Haible  <bruno@clisp.org>
103512         * lib/localcharset.c: Update from GNU gettext 0.14.2.
103513         * lib/config.charset: Update from GNU gettext 0.14.2.
103515 2005-02-24  Bruno Haible  <bruno@clisp.org>
103517         * lib/gettext.h: Update from GNU gettext 0.14.2.
103519 2005-02-23  Simon Josefsson  <jas@extundo.com>
103521         * m4/iconvme.m4: New file.
103523 2005-02-23  Jim Meyering  <jim@meyering.net>
103525         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
103526         change.
103527         Thanks to Bruno Haible for catching it.
103529 2005-02-22  Simon Josefsson  <jas@extundo.com>
103531         * modules/iconvme: New file.
103533         * MODULES.html.sh: Add iconvme.
103535 2005-02-22  Simon Josefsson  <jas@extundo.com>
103537         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
103539 2005-02-22  Simon Josefsson  <jas@extundo.com>
103541         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
103543 2005-02-22  Jim Meyering  <jim@meyering.net>
103545         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
103546         s/ifndef/ifdef/.
103548 2005-02-20  Neil Conway  <neilc@samurai.com>
103550         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
103551         returned by OSX/Darwin if the specified buffer is not large
103552         enough for the hostname.
103554 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103556         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
103557         pass it to _help, otherwise the latter coredumps trying to
103558         dereference state.root_argp.
103560 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103562         * modules/chdir-long (Depends-on): Add memrchr.
103563         * modules/memrchr (Files): Add lib/memrchr.h.
103564         (Include): "memrchr.h".
103566 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103568         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
103570 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103572         * lib/memrchr.h: New file.
103573         * lib/chdir-long.c: Include it.
103574         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
103575         Don't bother including stddef.h.
103577 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
103579         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
103580         inclusion.
103581         Include <sys/types.h>, for dev_t.
103582         (ME_DUMMY, ME_REMOTE): Move from here....
103583         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
103584         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
103585         Dmitry V. Levin.
103586         Include mountlist.h first, to test the interface.
103588 2005-01-29  Bruno Haible  <bruno@clisp.org>
103590         * lib/progname.c (program_name): Initialize.
103591         Needed when linking statically on MacOS X.
103593 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103595         Sync from coreutils.
103596         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
103597         (Depends-on): Add c-strtod.
103598         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
103600 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103602         Sync from coreutils.
103603         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
103605         Remove files that are specific to coreutils.
103606         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
103608 2005-01-28  Bruno Haible  <bruno@clisp.org>
103610         * modules/javacomp: New file.
103611         * MODULES.html.sh (Java): Add javacomp.
103613 2005-01-28  Bruno Haible  <bruno@clisp.org>
103615         * m4/javacomp.m4: New file, from GNU gettext.
103617 2005-01-28  Bruno Haible  <bruno@clisp.org>
103619         * lib/javacomp.sh.in: New file, from GNU gettext.
103620         * lib/javacomp.h: New file, from GNU gettext.
103621         * lib/javacomp.c: New file, from GNU gettext.
103623 2005-01-26  Simon Josefsson  <jas@extundo.com>
103625         * lib/gai_strerror.c: Use GPL in header.
103627 2005-01-26  Bruno Haible  <bruno@clisp.org>
103629         * modules/javaexec: New file.
103630         * MODULES.html.sh (Java): Add javaexec.
103632 2005-01-26  Bruno Haible  <bruno@clisp.org>
103634         * m4/javaexec.m4: New file, from GNU gettext.
103636 2005-01-26  Bruno Haible  <bruno@clisp.org>
103638         * lib/javaexec.sh.in: New file, from GNU gettext.
103639         * lib/javaexec.h: New file, from GNU gettext.
103640         * lib/javaexec.c: New file, from GNU gettext.
103642 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103644         * modules/lchown (Depends-on): Remove lchown.h
103646 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103648         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
103649         must be defined if the header file was not found, in order
103650         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
103652 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103654         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
103655         initializers for struct pentry_state.
103656         (__argp_error): Check return value of __asprintf
103657         (__argp_failure): Translate error message
103659         * lib/argp-parse.c: Removed braces around the expansion of N_()
103661 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103663         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
103664         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
103665         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
103666         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
103667         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
103668         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
103669         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
103670         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
103671         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
103672         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
103673         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
103674         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
103675         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
103676         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
103677         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
103678         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
103679         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
103680         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
103681         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
103682         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
103683         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
103684         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
103685         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
103686         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
103687         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
103688         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
103689         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
103690         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
103691         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
103692         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
103693         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
103694         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
103695         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
103696         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
103697         xstrtol.m4, xstrtoumax.m4, yesno.m4:
103698         Use an all-permissive copyright notice, recommended by RMS.
103700 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
103702         * modules/chdir-long (Depends-on): Remove mempcpy.
103704 2005-01-21  Jim Meyering  <jim@meyering.net>
103706         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
103707         same value as for Solaris 9.
103709         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
103710         component length.  This included changing the parameter to be
103711         of type `char *' rather than `char const *'.
103712         * lib/chdir-long.h (chdir_long): Update prototype.
103714         * lib/openat.c (fdopendir, fstatat): New functions.
103715         * lib/openat.h: Include headers required for use of DIR and struct
103716         stat.
103717         [AT_SYMLINK_NOFOLLOW]: Define.
103718         (fdopendir, fstatat): Add prototypes.
103720 2005-01-21  Bruno Haible  <bruno@clisp.org>
103722         * modules/classpath: New file.
103723         * MODULES.html.sh (Java): Add classpath.
103725 2005-01-21  Bruno Haible  <bruno@clisp.org>
103727         * lib/classpath.h: New file, from GNU gettext.
103728         * lib/classpath.c: New file, from GNU gettext.
103730 2005-01-20  Simon Josefsson  <jas@extundo.com>
103732         * modules/version-etc-fsf: New file.
103734 2005-01-20  Simon Josefsson  <jas@extundo.com>
103736         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
103737         * lib/version-etc.c: Remove version_etc_copyright.
103738         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
103739         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
103741 2005-01-20  Simon Josefsson  <jas@extundo.com>
103743         * lib/base64.h (isbase64): Add.
103745         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
103746         using a unsigned prototype, don't inline.
103747         (base64_decode): Use it.
103749 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103751         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
103752         it.
103754 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103756         * lib/save-cwd.c (save_cwd): Remove code to support the case
103757         where fchdir is missing or flaky.
103759 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103761         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
103763 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
103765         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
103766         AC_LIBSOURCES now does this.
103767         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
103768         with new ullong_max module.
103770 2005-01-19  Bruno Haible  <bruno@clisp.org>
103772         * modules/sh-quote: New file.
103773         * MODULES.html.sh (Executing programs): Add sh-quote.
103775 2005-01-19  Bruno Haible  <bruno@clisp.org>
103777         * lib/sh-quote.h: New file, from GNU gettext.
103778         * lib/sh-quote.c: New file, from GNU gettext.
103780 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103782         Merge from coreutils.
103783         * m4/ullong_max.m4: New file.
103784         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
103785         (gl_MACROS): Assume localeconv exists.
103787 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103789         Merge changes from coreutils, as described below in several
103790         changelogs dated today.
103792         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
103793         (O_DIRECTORY): Remove; not needed here, since "." must be
103794         a directory.  All uses removed.
103795         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
103796         universal on Suns, and we also need to test for IRIX.
103797         Revamp code to use 'if' rather than '#if'.
103798         Avoid unnecessary comparison of cwd->desc to 0.
103800         * lib/utimens.c (futimens): Robustify the previous patch, by checking
103801         for known valid error numbers rather than observed invalid ones.
103803 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103805         * modules/ullong_max: New file.
103807         * modules/chdir-long, modules/openat: New files.
103808         * modules/save-cwd (Depends-on): Depend on chdir-long.
103809         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
103811 2005-01-18  Jim Meyering  <jim@meyering.net>
103813         Merge from coreutils.
103814         * m4/chdir-long.m4, m4/openat.m4: New files.
103815         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
103816         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
103817         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
103818         is sane and DOES follow symlinks.  Besides, testing 20 different
103819         systems found no broken chown implementations.
103820         Prompted by a change in rsync's copy of this macro.
103821         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
103823         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
103825         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
103826         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
103827         NULL-means-set-to-current-time semantics.
103828         Remove temporary file immediately, rather than waiting
103829         for configure's at-exit trap code to do it.
103831 2005-01-18  Jim Meyering  <jim@meyering.net>
103833         * lib/version-etc.c (version_etc_copyright): Update copyright date.
103835         * lib/utimens.c (futimens): Account for the fact that futimes
103836         can also fail with errno == ENOSYS or errno == ENOENT.
103837         Patch from Dmitry V. Levin.
103839         Change the name of the robust chdir function from chdir to chdir_long.
103840         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
103841         (restore_cwd): Use chdir_long, not chdir.
103842         * lib/chdir-long.c: Renamed from chdir.c.
103843         * lib/chdir-long.h: Renamed from chdir.h.
103844         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
103845         Hurd.
103847 2005-01-18  Bruno Haible  <bruno@clisp.org>
103849         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
103850         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
103851         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
103852         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
103853         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
103854         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
103855         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
103856         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
103857         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
103858         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
103859         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
103860         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
103861         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
103862         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
103863         Use an all-permissive copyright notice, recommended by RMS.
103865 2005-01-18  Bob Proulx  <bob@proulx.com>
103867         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
103868         simplify offsetof() macro construct to avoid compile failure with
103869         native HP-UX 11.0 ANSI C compiler.
103871 2005-01-17  Bruno Haible  <bruno@clisp.org>
103873         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
103874         redundant because stpncpy.m4 takes care of it.
103876 2005-01-17  Bruno Haible  <bruno@clisp.org>
103878         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
103880 2005-01-17  Bruno Haible  <bruno@clisp.org>
103882         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
103883         used.
103885 2005-01-17  Bruno Haible  <bruno@clisp.org>
103887         * lib/fwriteerror.h (fwriteerror): Change specification to include
103888         fclose.
103889         * lib/fwriteerror.c: Include <stdbool.h>.
103890         (fwriteerror): At the end, close the file stream. Record whether
103891         stdout was already closed.
103893 2005-01-17  Bruno Haible  <bruno@clisp.org>
103895         * lib/execute.c (environ): Declare if needed.
103896         * lib/pipe.c (environ): Likewise.
103897         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
103899 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103901         * modules/argp: Depend on vsnprintf
103903 2005-01-10  Jim Meyering  <jim@meyering.net>
103905         * modules/closeout (Depends-on): Add atexit.
103907 2005-01-06  Bruno Haible  <bruno@clisp.org>
103909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
103911 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
103913         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
103914         definitions to be after all include files, to avoid collisions.
103915         Problem reported by Bob Proulx.
103917 2005-01-04  Jim Meyering  <jim@meyering.net>
103919         Changes imported from coreutils.
103920         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
103921         as the mkstemp template, use a temporary directory and an
103922         8.3-friendly template to avoid trouble on systems like DJGPP.
103923         Reported by Juan M. Guerrero via Stepan Kasal.
103924         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
103925         close. Remove the temporary directory right away, rather than waiting
103926         for configure's at-exit trap code to do it.
103927         Suggestion from Stepan Kasal.
103929 2005-01-01  Simon Josefsson  <jas@extundo.com>
103931         * gnulib-tool: Print #include directives when --import'ing.
103933 2004-12-28  Simon Josefsson  <jas@extundo.com>
103935         * tests/test-base64.c: Include required header files.  Remove
103936         unused variables.
103938 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103940         * modules/error (Depends-on): Remove gettext.
103942 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103944         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
103945         not needed.  This removes a dependency on the gettext module.
103946         [defined _LIBC]: Do not include <libintl.h>; not needed.
103948 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103950         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
103951         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
103953 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103955         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
103956         HAVE_DECL_STRTOLD.
103958 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103960         * modules/getdate (Depends-on): Remove alloca-opt.
103962 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103964         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
103966 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103968         * lib/argp-parse.c: Include <stddef.h>.
103969         (alignof, alignto): New macros.
103970         (parser_init): Don't assume that void * is aligned sufficiently
103971         for struct option.
103973         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
103974         need to extend the stack.
103975         (YYINITDEPTH): New macro, so that the initial stack isn't overly
103976         large.
103978 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103980         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
103982 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103984         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
103985         (2004-10-24) change.  Apparently this was a false alarm.
103987         * modules/getdate: Depend on alloca-opt, not alloca.
103989 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103991         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
103992         Remove now-obsolete comment about AIX.
103993         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
103994         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
103995         (YYMAXDEPTH): New macro.
103997 2004-12-18  Simon Josefsson  <jas@extundo.com>
103999         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
104001 2004-12-18  Bruno Haible  <bruno@clisp.org>
104003         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
104005 2004-12-18  Bruno Haible  <bruno@clisp.org>
104007         * lib/fatal-signal.c (fatal_signals): Make non-const.
104008         (init_fatal_signals): New function.
104009         (uninstall_handlers, install_handlers): Ignore signals that were set to
104010         SIG_IGN.
104011         (at_fatal_signal): Call init_fatal_signals.
104012         (init_fatal_signal_set): Likewise. Ignore signals that were set to
104013         SIG_IGN.
104014         Reported by Paul Eggert.
104016 2004-12-18  Bruno Haible  <bruno@clisp.org>
104018         * doc/alloca.texi: New file.
104019         * doc/alloca-opt.texi: New file.
104021 2004-12-17  Jim Meyering  <jim@meyering.net>
104023         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
104024         Otherwise, install-sh could exit with improper exit status when
104025         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
104027 2004-12-16  Simon Josefsson  <jas@extundo.com>
104029         * tests/test-base64.c: Add license.
104031 2004-12-15  Stepan Kasal  <address@hidden>
104033         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
104035 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
104037         * modules/getcwd (Files): Add m4/d-ino.m4.
104038         Suggested by Mark D. Baushke.
104040 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104042         * lib/getdate.y (textint): New member "negative".
104043         (time_zone_hhmm): New function.
104044         Expect 14 shift-reduce conflicts, not 13.
104045         (o_colon_minutes): New rule.
104046         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
104047         (yylex): Set the "negative" member of signed numbers.
104049 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104051         * doc/getdate.texi (Time of day items, Time zone items):
104052         Describe new formats +00:00, UTC+00:00.
104054 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
104056         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
104057         spurious "-l"s.  Problem reported by Stepan Kasal.
104059 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
104061         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
104062         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
104064 2004-12-04  Simon Josefsson  <jas@extundo.com>
104066         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
104067         Vandoorselaere <yoann@prelude-ids.org>.
104069 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104071         Changes imported from coreutils.
104072         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
104073         exist.
104074         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
104076 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104078         Changes imported from coreutils.
104079         * lib/hard-locale.c: Assume <locale.h> exists.
104080         Include "strdup.h".
104081         (GLIBC_VERSION): New macro.
104082         (hard_locale): Assume setlocale exists.
104083         Rewrite to avoid #ifdef.
104084         Use strdup rather than malloc + strcpy.
104085         * lib/human.c: Assume <locale.h> exists.
104086         (human_readable): Assume localeconv exists.
104088 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104090         * modules/hard-locale (Depends-on): Add strdup.
104092 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104094         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
104095         convert T2, not T.  (Imported from libc.)
104097 2004-11-30  Simon Josefsson  <jas@extundo.com>
104099         * modules/restrict (License): Change to LGPL.
104101 2004-11-30  Simon Josefsson  <jas@extundo.com>
104103         * m4/restrict.m4: Add copyright and copying conditions.
104105 2004-11-30  Simon Josefsson  <jas@extundo.com>
104107         * m4/base64.m4: New file.
104109 2004-11-30  Simon Josefsson  <jas@extundo.com>
104111         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
104112         base64.
104114         * tests/test-base64.c: New file.
104116         * modules/base64: New file.
104118 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104120         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
104121         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
104123         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
104125 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104127         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
104128         (__getcwd.c): Don't restore errno; glibc doesn't.
104129         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
104130         first, falling back to our code only if its results look suspicious.
104131         Ensure that the resulting buffer is only as large as necessary.
104133         * lib/readutmp.c: Include readutmp.h first.
104134         Include <errno.h>, since readutmp.h no longer does that.
104135         * lib/readutmp.h: Don't include <errno.h>,
104136         <sys/param.h>, <time.h>; not needed to establish interface.
104137         (errno): Remove decl.
104138         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
104139         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
104140         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
104142 2004-11-28  Simon Josefsson  <jas@extundo.com>
104144         * lib/base64.h, base64.c: New file.
104146 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
104148         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
104150 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
104152         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
104153         (Depends-on): Remove pathmax, same.  Add mempcpy.
104154         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
104155         (Makefile.am): Append getcwd.h to lib_SOURCES.
104156         (Include): Add getcwd.h.
104157         (Maintainer): Change from Jim Meyering to "all, glibc",
104158         since getdate now uses intended-for-glibc code.
104159         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
104160         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
104162 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104164         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
104165         HP's ANSI C compiler.
104166         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
104167         Declaring int functions causes warnings on some modern systems and
104168         shouldn't be needed to compile on ancient ones.
104169         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
104170         defined.
104172         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
104173         with the following changes.
104174         (__set_errno): Parenthesize properly.
104175         Include <stdbool.h>.
104176         (MIN, MAX, MATCHING_INO): New macros.
104177         (__getcwd): Define with prototype, not K&R form.
104178         Use heuristics to allocate default buffer on stack if possible.
104179         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
104180         behavior, and to avoid the PATH_MAX limit when computing
104181         ../../../../...
104182         Use MATCHING_INO to compare inode number to file.
104183         Check for arithmetic overflow in size calculations.
104184         Fix bug in reallocation of dot array that caused getcwd to fail
104185         on directories nested deeper than 75.
104186         Be more careful about saving errno on error.
104187         Do not use realloc; use only free+malloc, as this is a bit
104188         more flexible and avoids a needless copy operation.
104189         Do not inspect st_dev and st_ino for symbolic links; POSIX
104190         doesn't specify the latter.
104191         Check for closedir errors.
104192         Avoid needless casts.
104193         Use "#ifdef weak_alias" around weak_alias, to be like other
104194         glibc code.
104195         The following changes to getcwd.c have effect only when used in
104196         gnulib; they have no effect inside glibc proper.
104197         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
104198         as alloca isn't used.
104199         (alloca, __alloca): Likewise.
104200         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
104201         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
104202         unconditionally, as gnulib assumes C89 or better.
104203         Do not include <sys/param.h>.
104204         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
104205         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
104206         better.
104207         (NULL) [!defined NULL]: Remove; we assume C89 or better.
104208         Include <dirent.h> in a way that is compatible with modern Autoconf.
104209         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
104210         New macros, if not already defined.
104211         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
104212         Use "_LIBC", not "defined _LIBC", for consistency.
104213         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
104214         a mempcpy module.
104215         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
104216         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
104217         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
104218         credit only to Jim Meyering and adjust the copyright dates.
104219         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
104220         <stdlib.h>, <unistd.h>, "pathmax.h".
104221         Instead, include "xgetcwd.h" (first) and "getcwd.h".
104222         (INITIAL_BUFFER_SIZE): Remove.
104223         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
104225 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104227         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
104228         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
104229         Use the _ONCE methods, for efficiency.
104230         Check for fcntl.h.  In test program, include <errno.h>
104231         and <fcntl.h> if available.  Remove old K&R cruft from
104232         test program.  Check for common errors in GNU/Linux,
104233         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
104234         don't do AC_LIBOBJ, as that's getcwd.m4's job.
104235         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
104236         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
104237         name accordingly.
104238         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
104239         accommodate new getcwd.c.
104240         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
104241         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
104242         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
104243         that's all we need now.
104245 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104247         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
104248         argp-parse.c depends on getopt internals, that means we should
104249         always use our getopt, to be on the safe side.
104250         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
104251         order not to spoil the result of an eventual previous invocation
104252         of gl_GETOPT_SUBSTITUTE.
104254 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104256         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
104257         redefinition warnings. To avoid them, include the defines
104258         in `#if !defined __need_getopt ... #endif'. The only place
104259         where __getopt_argv_const is used is in definitions
104260         of getopt_long and getopt_long_only below, which are as well
104261         protected by `#ifndef __need_getopt'.
104262         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
104263         __need_getopt after including <stdio.h> and <unistd.h> These
104264         headers might have defined it.
104266 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
104268         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
104270 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
104272         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
104273         (futimens): New function, which uses futimes if available.
104274         (futimens, utimens): Support timespec==NULL, with same semantics
104275         as utime and utimens.
104276         * lib/utimens.h (futimens): New decl.
104278 2004-11-23  Jim Meyering  <jim@meyering.net>
104280         * lib/getopt_.h: Remove trailing blanks.
104282 2004-11-23  Jim Meyering  <jim@meyering.net>
104284         * lib/__fpending.c: Add comment.
104286 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
104288         * modules/canonicalize (Depends-on): Add xreadlink.
104289         Problem reported by James Youngman.
104291 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
104293         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
104294         New macros.
104295         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
104296         optopt): Use them instead of invoking ## directly; otherwise, the
104297         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
104299 2004-11-19  Bruno Haible  <bruno@clisp.org>
104301         * lib/strtok_r.c: Move comments from here...
104302         * lib/strtok_r.h: ... to here.
104304 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104306         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
104307         implementations that mishandle size_t overflow.
104309 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104311         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
104312         might fail.  Problem reported by Yoann Vandoorselaere.
104313         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
104314         implementations that mishandle size_t overflow.
104316 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104318         * modules/canon-host (Depends-on): Add strdup.
104320 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104322         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
104324 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104326         * lib/canon-host.c: Include "strdup.h".
104327         (canon_host): Use getaddrinfo if available, so that IPv6 works.
104328         Use strdup instead of malloc/strcpy to duplicate strings.
104330         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
104331         (human_space_before_unit): New constant.
104332         * lib/human.c (human_readable): Support it.
104334         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
104335         (xgetcwd): Set errno correctly when failing.
104336         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
104337         the failure is actually due to a PATH_MAX problem.
104339         Further getopt changes to make it more likely that glibc will
104340         buy the changes back.
104341         * lib/getopt.c (POSIXLY_CORRECT): New constant.
104342         (getopt): Use it, so to preserve glibc semantic
104343         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
104344         when compiling for libc.
104345         * lib/getopt_.h (__getopt_argv_const): Bring it back.
104346         (getopt_long, getopt_long_only): Use it.
104348         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104349         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
104350         (getopt): Argv is now char * const *, as per standard.
104351         (_getopt_internal_r, _getopt_internal): Argv is now char **,
104352         not char *__getopt_argv_const *.
104353         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104354         _getopt_long_only_r): Likewise.
104355         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
104356         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104357         _getopt_long_r, _getopt_long_only_r): Likewise.
104358         * lib/getopt_.h (__getopt_argv_const): Remove.
104359         (getopt): Argv is now char * const *, as per standard.
104361         * lib/getdate.y (tORDINAL): New token.
104362         (day, relunit): Allow it for relative times.
104363         (relative_time_table): Use tORDINAL for ordinals.
104365 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104367         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
104368         Document that "second" isn't allowed as an ordinal number.
104370 2004-11-16  Jim Meyering  <jim@meyering.net>
104372         * modules/closeout (Depends-on): Add fpending.
104374 2004-11-15  Jim Meyering  <jim@meyering.net>
104376         * lib/closeout.c: Include "__fpending.h" once again.
104377         Include <stdbool.h>.
104378         (close_stdout): Don't fail just because stdout was closed initially,
104379         since some programs don't write to stdout in the normal course of
104380         operation (other than --version and --help), and we don't want this
104381         function to make e.g. `touch file >&-' fail.
104382         But do fail if it was closed and someone has tried to write to it.
104383         E.g., `printf foo >&-' must fail.
104385 2004-11-13  Jim Meyering  <jim@meyering.net>
104387         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
104389 2004-11-12  Simon Josefsson  <jas@extundo.com>
104391         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
104392         small doc fix is still pending.
104394 2004-11-11  Simon Josefsson  <jas@extundo.com>
104396         * modules/strtok_r: New file.
104398         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104399         strtok_r.
104401 2004-11-11  Simon Josefsson  <jas@extundo.com>
104403         * m4/strtok_r.m4: New file.
104405         * m4/getopt.m4: Replace opterr.
104407 2004-11-11  Simon Josefsson  <jas@extundo.com>
104409         * lib/strtok_r.h, strtok_r.c: New file.
104411 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104413         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
104414         of replacing opterr, getopt, etc.  This should handle the
104415         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
104417 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104419         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
104420         we can stop lying to compilers about the constness of argv when we
104421         are compiled outside glibc.
104422         (getopt, getopt_long, getopt_long_only): Use it.
104423         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104424         _getopt_internal, getopt): Likewise.
104425         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104426         _getopt_long_only_r): Likewise.
104427         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104428         _getopt_long_r, _getopt_long_only_r): Likewise.
104430         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
104431         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
104432         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
104433         the other external symbols.
104434         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
104435         declaration, since the above renaming now works around collisions.
104437 2004-11-11  Jim Meyering  <jim@meyering.net>
104439         * lib/linebreak.c: Remove trailing blanks.
104440         * lib/alloca_.h: Likewise.
104441         * lib/acosl.c: Likewise.
104442         * lib/euidaccess.c: Likewise.
104443         * lib/allocsa.h: Likewise.
104445 2004-11-10  Simon Josefsson  <jas@extundo.com>
104447         * m4/getaddrinfo.m4: New file.
104449 2004-11-10  Simon Josefsson  <jas@extundo.com>
104451         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
104453 2004-11-10  Simon Josefsson  <jas@extundo.com>
104455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104456         getaddrinfo.
104458         * modules/getaddrinfo: New file.
104460 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104462         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
104464 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104466         * lib/mktime.c (SHR): New macro, which is a portable
104467         substitute for >> that should work even on Crays.
104468         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
104469         Problem reported by Mark D. Baushke in
104470         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
104471         * lib/getdate.y (SHR): Likewise.
104472         (tm_diff): Use it.
104473         * lib/strftime.c (SHR): Likewise.
104474         (tm_diff): Use it.
104475         * lib/quotearg.c (struct quoting_options): Use unsigned int for
104476         quote_these_too, so that right shifts are well defined.  All uses
104477         changed.
104479 2004-11-10  Jim Meyering  <jim@meyering.net>
104481         Ensure that no close failure goes unreported.
104482         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
104483         return early when it seems there's nothing to flush.
104484         Don't include __fpending.h.
104486 2004-11-10  Jim Meyering  <jim@meyering.net>
104488         * modules/closeout (Depends-on): Remove fpending.
104490 2004-11-10  Jim Meyering  <jim@meyering.net>
104492         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
104494 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
104496         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
104497         gl_FUNC_STRFTIME.
104498         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
104499         and AC_REQUIRE when possible, to avoid duplicate checks.
104500         Check for <wchar.h>.
104502 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
104504         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
104506 2004-11-09  Bruno Haible  <bruno@clisp.org>
104508         * m4/sockpfaf.m4: New file.
104510 2004-11-05  Bruno Haible  <bruno@clisp.org>
104512         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
104513         Reported by Mark D. Baushke <mdb@cvshome.org>.
104515 2004-11-04  Bruno Haible  <bruno@clisp.org>
104517         2004-09-11  Bruno Haible  <bruno@clisp.org>
104518                 * allocsa.valgrind: New file.
104519         2004-02-06  Bruno Haible  <bruno@clisp.org>
104520                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
104521                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
104522                 Reported by Christopher Seip <chris.seip@hp.com>.
104524 2004-11-04  Bruno Haible  <bruno@clisp.org>
104526         * modules/allocsa (Files): Add lib/allocsa.valgrind.
104527         (Makefile.am): Distribute it.
104529 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
104531         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
104532         with errno == ERANGE if the buffer is too small.
104533         Problem reported by Mark D. Baushke.
104535 2004-11-03  Albert Chin  <china@thewrittenword.com>
104536             Paul Eggert  <eggert@cs.ucla.edu>
104538         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
104539         equivalent, substitute $ac_type for equivalent type rather than
104540         blindly using uint32_t *always* which won't work if uint32_t is not
104541         available.  Define _UINT32_T to work around typedef of uint32_t if
104542         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
104543         2.5.1.
104545 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104547         * m4/jm-macros.m4: Sync from coreutils.
104548         (gl_MACROS): Check for mbrlen, for pathchk.
104549         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
104551 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104553         * lib/xreadlink.c (MAXSIZE): New macro.
104554         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
104555         size does not exceed MAXSIZE.  Avoid cast.
104556         As suggested by Mark D. Baushke in
104557         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
104558         if readlink fails with buffer size just under MAXSIZE, try again
104559         with MAXSIZE.
104561 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104563         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
104565 2004-11-02  Derek R. Price  <derek@ximbiot.com>
104566         and  Paul Eggert  <eggert@cs.ucla.edu>
104568         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
104569         (get_date): Overparenthesize to avoid GCC warning.
104571 2004-11-02  Bruno Haible  <bruno@clisp.org>
104573         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
104574         returns void.
104576 2004-11-02  Bruno Haible  <bruno@clisp.org>
104578         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
104579         function returns void.
104581 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
104583         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
104584         fflush_unlocked, flockfile, funlockfile, funlockfile,
104585         fputs_unlocked, putc_unlocked.
104587 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
104589         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104590         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
104591         already declared.
104593 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104595         * modules/getdate (Files): Add doc/getdate.texi.
104596         (Depends-on): Add setenv, xalloc.
104598 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104600         * lib/getdate.y: Add support for TZ="foo" within a date string.
104601         Fix some bugs near time_t boundaries.  Reject dates with
104602         out-of-range components, e.g., "Sept 31".
104603         Include <stdlib.h>, "setenv.h", "xalloc.h".
104604         (ISDIGIT_LOCALE): Remove; unused.
104605         Note that the TZ and time functions used here are not reentrant.
104606         (mktime_ok, get_tz): New functions.
104607         (TZBUFSIZE): New constant.
104608         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
104609         This requires that we sometimes generate our own TZ="XXX..." setting.
104611 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104613         * doc/getdate.texi: New file, from coreutils with modifications for
104614         the new TZ parsing.
104616 2004-10-27  Derek R. Price  <derek@ximbiot.com>
104618         * lib/mktime.c (not_equal_tm): Remove redundant check.
104620 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104622         * modules/regex (lib_SOURCES): Add regex.c.
104623         Reported by James Youngman in
104624         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
104626 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104628         * lib/getdate.y: Use Bison 1.875 features, and some minor
104629         code cleanups.  This change does not affect semantics.
104630         Don't include <stdlib.h>; no longer needed.
104631         Don't include unlocked-io.h; only the "#if TEST" code uses
104632         stdio, and performance isn't crucial there.
104633         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
104634         Bison 1.875 features as described below.
104635         All uses of "PC." replaced by "pc->".
104636         (YYSTYPE): Add a forward declaration.
104637         (yylex, yyerror): Use full prototypes in forward decls.
104638         Use "%pure-parser" rather than obsolescent "%pure_parser".
104639         Use %parse-param and %lex-param instead of obsolescent
104640         YYPARSE_PARAM and YYLEX_PARAM.
104641         (meridian_table, month_and_day_table, time_units_table,
104642         relative_time_table, time_zone_table, military_table,
104643         lookup_zone, lookup_word, get_date):
104644         Use NULL instead of 0 where appropriate.
104645         (to_hour): Avoid abort (), to avoid a dependency on
104646         stdlib.h.
104647         (yyerror, yylex): Now accepts parser_control * arg.
104648         (main) [TEST]: Use '\0' rather than 0 for char.
104650 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104652         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
104654 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104656         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
104657         It's now the caller's responsibility to handle the case where
104658         !HAVE_GETPAGESIZE && !defined getpagesize.
104660         * lib/mktime.c (leapyear): Arg is long int, not int.
104662 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
104664         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
104666 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
104668         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
104669         missing.  Problem reported by James Youngman.
104671 2004-10-16  Simon Josefsson  <jas@extundo.com>
104673         * gnulib-tool: Fix comments.  Fix parse problem.
104674         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
104676 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
104678         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
104679         implementation of getopt_long.  Problem reported by Alexander Taler in:
104680         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
104682 2004-10-15  Bruno Haible  <bruno@clisp.org>
104684         * gnulib-tool: Untabify. Initialize supplied_libname.
104685         (func_usage): More homogenous output.
104686         (func_modules_transitive_closure, func_modules_to_filelist,
104687         func_emit_lib_Makefile_am): New functions.
104688         (func_import): New function, extracted from big case statement. Use
104689         func_get_license, func_modules_transitive_closure,
104690         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
104691         opt_lgpl. Don't use test -a, as it's not portable.
104692         (func_create_testdir): Use func_modules_transitive_closure,
104693         func_modules_to_filelist, func_emit_lib_Makefile_am.
104695 2004-10-15  Bruno Haible  <bruno@clisp.org>
104697         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
104699 2004-10-15  Bruno Haible  <bruno@clisp.org>
104701         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
104702         the portions belonging to each module.
104703         Suggested by Derek Robert Price <derek@ximbiot.com>.
104705 2004-10-12  Simon Josefsson  <jas@extundo.com>
104707         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104708         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
104709         to real functions.
104711 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104713         * modules/vsnprintf: New file.
104715 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104717         * m4/vsnprintf.m4: New file.
104719 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104721         * lib/vsnprintf.h: New file.
104722         * lib/vsnprintf.c: New file.
104724 2004-10-11  Bruno Haible  <bruno@clisp.org>
104726         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
104727         vsnprintf.
104729 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
104731         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
104733 2004-10-07  Bruno Haible  <bruno@clisp.org>
104735         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
104736         fits into the provided buffer.
104738 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
104740         * lib/diacrit.c, diacrit.h: Add GPL notice.
104742         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
104743         notice.
104744         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
104745         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
104746         This avoids a potential constant-folding bug.
104748 2004-10-05  Bruno Haible  <bruno@clisp.org>
104750         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
104751         for the declaration of strsep.
104753 2004-10-05  Bruno Haible  <bruno@clisp.org>
104755         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
104757 2004-10-04  Simon Josefsson  <jas@extundo.com>
104759         * modules/memmem: New file.
104760         * tests/test-memmem.c: New file.
104761         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
104763 2004-10-04  Simon Josefsson  <jas@extundo.com>
104765         * m4/memmem.m4: New file.
104767 2004-10-04  Simon Josefsson  <jas@extundo.com>
104769         * lib/memmem.h: New file.
104770         * lib/memmem.c: New file, taken from glibc.
104772 2004-10-04  Simon Josefsson  <jas@extundo.com>
104774         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
104775         '#ifdef USE_UNLOCKED_IO'.
104777 2004-10-04  Simon Josefsson  <jas@extundo.com>
104779         * config/srclist.txt: Add memmem from glibc.
104781 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104783         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
104785         * modules/argmatch, modules/argp, modules/closeout, modules/error,
104786         modules/exclude, modules/getdate, modules/getline,
104787         modules/getndelim2, modules/getpass, modules/getpass-gnu,
104788         modules/getusershell, modules/linebuffer, modules/md5,
104789         modules/mountlist, modules/posixtm, modules/readtokens,
104790         modules/readutmp, modules/regex, modules/sha1,
104791         modules/version-etc, modules/yesno:
104792         Remove dependency on unlocked-io.
104794 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104796         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
104798         * m4/unlocked-io.m4: Add copyright notice.
104799         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
104801 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104803         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
104804         * lib/xmalloc.c (xmemdup): Likewise.
104805         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
104806         XFREE): Remove these long-obsolescent macros.
104807         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
104808         * lib/xstrdup.c: Remove.
104810         * lib/regex.c (re_comp): Cast gettext return value to char *,
104811         Problem reported by Martin Neitzel via Mark D. Baushke.
104813 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104815         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
104816         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
104817         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
104818         regex.c, sha1.c, version-etc.c, yesno.c:
104819         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
104820         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
104821         the includer's responsibility.
104823         Sync from coreutils.
104825         * lib/modechange.c (mode_compile): Don't decrement a pointer that
104826         points to the start of a string, as the C Standard says the
104827         resulting behavior is undefined.
104829         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
104830         simple -> simple_backups, numbered_existing ->
104831         numbered_existing_backups, numbered -> numbered_backups
104832         to avoid shadowing problems.  All uses changed.
104833         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
104834         * lib/backupfile.c (check_extension, numbered_backup):
104835         Rename locals to avoid shadowing 'basename'.
104836         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
104837         once.
104839         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
104840         * lib/.cvsignore: Add getopt.h.
104842 2004-10-04  Bruno Haible  <bruno@clisp.org>
104844         * modules/README: New file.
104845         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
104846         not a module.
104848 2004-10-02  Jim Meyering  <jim@meyering.net>
104850         * lib/dirfd.h, getpagesize.h: Add copyright notice.
104852 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104854         * modules/strsep: New file.
104856 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104858         * m4/strsep.m4: New file.
104860 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104862         * lib/strsep.h: New file.
104863         * lib/strsep.c: New file.
104865 2004-10-01  Simon Josefsson  <jas@extundo.com>
104867         * lib/snprintf.c (snprintf): Handle size==0.
104869 2004-10-01  Simon Josefsson  <jas@extundo.com>
104870             Bruno Haible  <bruno@clisp.org>
104872         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
104873         (snprintf): Declare 'args'.
104875 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
104877         * lib/snprintf.c: Remove comments as to why each header is needed.
104879 2004-10-01  Bruno Haible  <bruno@clisp.org>
104881         * MODULES.html.sh: Add strsep.
104883 2004-09-30  Simon Josefsson  <jas@extundo.com>
104885         * modules/snprintf: New file.
104887 2004-09-30  Simon Josefsson  <jas@extundo.com>
104889         * m4/snprintf.m4: New file.
104891 2004-09-30  Simon Josefsson  <jas@extundo.com>
104893         * lib/snprintf.h, lib/snprintf.c: New files.
104895 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104897         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
104898         (hol_entry_help): Never translate an empty string.
104899         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
104900         * lib/argp.h (OPTION_NO_TRANS): New option.
104902 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104904         * modules/argp (Maintainer): Replace Simon Josefsson
104905         by Sergey Poznyakoff.
104907 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104909         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
104910         changes merged back into glibc.
104912 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
104914         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
104916 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104918         * lib/xvasprintf.c: Include xalloc.h.
104919         (xvasprintf): Use xalloc_die, not xmalloc_die.
104921 2004-09-29  Bruno Haible  <bruno@clisp.org>
104923         * modules/alloca-opt: New file, derived from modules/alloca.
104924         * modules/allocsa: Depend on alloca-opt instead of alloca.
104925         * modules/setenv: Likewise.
104926         * modules/vasnprintf: Likewise.
104927         * MODULES.html.sh: Add alloca-opt.
104929 2004-09-28  Simon Josefsson  <jas@extundo.com>
104931         * gnulib-tool: New parameter --lgpl, to asseert that modules are
104932         LGPL, and to replace license template from GPL to LGPL.
104934 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
104936         * modules/dummy: Change license to LGPL.
104938 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
104940         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
104942 2004-09-24  Simon Josefsson  <jas@extundo.com>
104944         * modules/minmax (License): Change from GPL to LGPL.
104946 2004-09-23  Simon Josefsson  <jas@extundo.com>
104948         * gnulib-tool (--import): Typo.
104950 2004-09-23  Simon Josefsson  <jas@extundo.com>
104952         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
104954 2004-09-22  Bruno Haible  <bruno@clisp.org>
104956         * modules/*: Add 'License' field.
104957         * gnulib-tool: Accept --extract-license option.
104958         (func_get_license): New function.
104960 2004-09-21  Bruno Haible  <bruno@clisp.org>
104962         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
104963         Reported by Simon Josefsson.
104965 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104967         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
104968         gl_AC_TYPE_LONG_LONG.
104970 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104972         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
104974 2004-09-18  Simon Josefsson  <jas@extundo.com>
104975         and  Paul Eggert  <eggert@cs.ucla.edu>
104977         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
104978         calls with autoreconf.  Define GL_LIB.
104980 2004-09-14  Karl Berry  <karl@gnu.org>
104982         * config/srclist.txt: unsync setenv.c, sigh.
104984 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104986         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
104987         Problem reported by Bruno Haible in:
104988         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
104990 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104992         * config/srclist.txt: Comment out argp-pvh.c.
104994 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
104996         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
104997         in case some system header has #define'd it.  Problem reported by
104998         Soeren D. Schulze in
104999         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
105001 2004-09-09  Karl Berry  <karl@gnu.org>
105003         * regex.[ch]: delete from the root.  These were supposed to be
105004                 synced with emacs cvs, but this has not happened for about
105005                 a year, and anyway nothing else uses emacs regex.[ch].
105006                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
105007                 lib/regex[.ch] is untouched.
105009 2004-09-09  Bruno Haible  <bruno@clisp.org>
105011         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
105013 2004-09-09  Bruno Haible  <bruno@clisp.org>
105015         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
105016         modifications.
105017         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
105019 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105021         * modules/xvasprintf: New file.
105022         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
105024 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105026         * lib/xvasprintf.h: New file.
105027         * lib/xvasprintf.c: New file.
105028         * lib/xasprintf.c: New file.
105030 2004-09-08  Bruno Haible  <bruno@clisp.org>
105032         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
105034 2004-09-08  Bruno Haible  <bruno@clisp.org>
105036         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
105037         length is > INT_MAX.
105038         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
105039         more.
105041 2004-09-08  Bruno Haible  <bruno@clisp.org>
105043         * lib/stdint_.h: New file, taken from GNU clisp.
105045 2004-09-08  Bruno Haible  <bruno@clisp.org>
105046             Oskar Liljeblad  <oskar@osk.mine.nu>
105048         * modules/stdint: New file.
105049         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
105051 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105053         Import from coreutils.
105054         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
105055         strings on unbounded length.  alloca's performance benefits aren't
105056         that important here.
105057         (V_STRDUP): Remove.
105058         (parse_with_separator): New function, with most of the internals
105059         of the old parse_user_spec.  Allow user to omit both user and group,
105060         for compatibility with FreeBSD.
105061         Clone only the user name, not the entire spec.
105062         Do not set *uid, *gid unless entirely successful.
105063         Avoid memory leak in some failing cases.
105064         Fix regression for USER.GROUP reported by Dmitry V. Levin in
105065         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
105066         (parse_user_spec): Rewrite to use parse_with_separator.
105068 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105070         * modules/userspec: Don't depend on alloca.
105072 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105074         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
105076 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105078         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
105079         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
105080         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
105082 2004-08-16  Simon Josefsson  <jas@extundo.com>
105084         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
105085         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
105086         Add --dry-run for --import.
105087         Let user provided command line parameters override configure.ac
105088         settings.
105090 2004-08-12  Simon Josefsson  <jas@extundo.com>
105092         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
105093         as discussed with Paul Eggert in threads rooted at
105094         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
105095         and
105096         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
105097         Before, the test was empty, and relied on ELIDE_CODE in source
105098         code.)
105099         (gl_PREREQ_GETOPT): New macro.
105100         (gl_GETOPT): Use them.
105102 2004-08-12  Simon Josefsson  <jas@extundo.com>
105104         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
105105         * lib/getopt_.h: Renamed from getopt.h.
105107 2004-08-12  Simon Josefsson  <jas@extundo.com>
105109         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
105110         Change default library name from libfoo to libgnu.
105111         Now, if you have a configure.ac that says:
105112                 gl_SOURCE_BASE(gl)
105113                 gl_M4_BASE(gl/m4)
105114                 gl_MODULES(error getopt etcetera)
105115                 gl_INIT
105116         you can import all you need by running:
105117                 ../gnulib/gnulib-tool --import
105119         * modules/getopt (Files): Rename getopt.h to getopt_.h.
105120         (Makefile.am): Rewrite, use logic from argz.
105121         (Include): Use <getopt.h> instead of "getopt.h".
105123 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105125         * modules/argp (Files): Add m4/unlocked-io.m4.
105126         (Depends-on): Add extensions.
105128 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105130         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
105131         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
105132         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
105133         Check for program_invocation_name, program_invocation_short_name,
105134         flockfile, funlockfile, features.h, _getopt_long_only_r.
105136 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105138         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
105139         its complicated substitute.
105140         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
105141         and program_invocation_name.
105142         (__argp_basename) [!_LIBC]: Remove; the only use was
105143         replaced by its body.
105144         (__argp_short_program_name): Change condition from
105145         !defined __argp_short_program_name to
105146         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
105147         to match argp-namefrob.h.
105148         (__argp_failure): Don't assume strerror_r returns char *.
105149         * lib/argp-parse.c (N_): Define unconditionally.
105150         (argp_default_options): Fill out initializers with 0 to avoid
105151         gcc warnings.
105153 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105155         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
105156         getopt1.c.
105158 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105160         Merge from coreutils.
105162         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
105164         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
105165         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
105167 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105169         Merge from coreutils.
105171         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
105172         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
105173         for Reliant Unix 5.43.
105175         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
105176         (union fooround): Use uintmax_t, not long int.
105177         The rest is a merge from libc:
105178         [defined _LIBC]: Include <shlib-compat.h>.
105179         (_obstack) [defined _LIBC]: Remove after 2.3.4.
105181         * lib/settime.c (settime): Recode to avoid warning with
105182         Sun Forte C 6U2.
105184         * lib/strverscmp.c: Convert to UTF-8.
105186 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105188         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
105189         m4/uintmax_t.m4.
105191 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105193         * modules/xalloc-die: New file.
105194         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
105196         * modules/md5 (Files): Add m4/uint32_t.m4.
105197         * modules/sha1: Renamed from modules/sha.
105198         (Files):
105199         Rename lib/sha.h to lib/sha1.h.
105200         Rename lib/sha.c to lib/sha1.c.
105201         Rename m4/sha.m4 to m4/sha1.m4.
105202         (lib_SOURCES): Likewise.
105203         (configure.ac): Rename gl_SHA to gl_SHA1.
105204         (Include): sha.h -> sha1.h.
105206 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105208         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
105209         * m4/sha1.m4: Renamed from sha.m4.
105210         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
105212 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105214         * lib/obstack.h (obstack_empty_p):
105215         Don't assume that chunk->contents is suitably aligned.
105216         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
105217         Likewise. Problem reported by Benno in
105218         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
105220         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
105221         readable.  This could be improved further but it'd take some work.
105223 2004-08-08  Simon Josefsson  <jas@extundo.com>
105225         * modules/xgethostname (Depends-on): Remove exit and error (not
105226         used).
105228         * modules/getpass-gnu: Add getpass.h.
105229         (Depends-on): Add stdbool.
105230         * modules/getpass: Add getpass.h.
105232 2004-08-08  Simon Josefsson  <jas@extundo.com>
105234         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
105235         Check getpass declaration.
105237 2004-08-08  Simon Josefsson  <jas@extundo.com>
105239         * lib/xgethostname.c: Don't include error.h (not used).
105241         * lib/getpass.h: Add.
105242         * lib/getpass.c: Include getpass.h first.
105244 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
105246         * lib/xalloc-die.c: New file.
105247         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
105248         All uses removed.
105249         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
105250         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
105251         xalloc-die.c.
105252         (_, N_, xalloc_die): Move to xalloc-die.c.
105253         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
105254         so that we needn't mess with xalloc_msg_memory_exhausted.
105256         * lib/sha1.h: Renamed from sha.h.
105257         (SHA1_H): Renamed from _SHA_H.
105258         (sha1_ctx): Renamed from sha_ctx.
105259         (sha1_init_ctx): Renamed from sha_init_ctx.
105260         (sha1_process_block): Renamed from sha_process_block.
105261         (sha1_process_bytes): Renamed from sha_process_bytes.
105262         (sha1_finish_ctx): Renamed from sha_finish_ctx.
105263         (sha1_read_ctx): Renamed from sha_read_ctx.
105264         (sha1_stream): Renamed from sha_stream.
105265         (sha1_buffer): Renamed from sha_buffer.
105266         * lib/sha1.c: Likewise; renamed from sha.c.
105267         Do not include <sys/types.h>.
105268         Include <stddef.h> rather than <stdlib.h>.
105270 2004-08-08  Bruno Haible  <bruno@clisp.org>
105272         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
105273         FILESYSTEM_PREFIX_LEN.
105274         * lib/progreloc.c: Likewise.
105275         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
105277 2004-08-06  Simon Josefsson  <jas@extundo.com>
105279         * modules/progname (Depends-on): Don't depend on stdbool.
105281 2004-08-06  Simon Josefsson  <jas@extundo.com>
105283         * modules/getsubopt: New file.
105284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105285         getsubopt.
105287 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105289         More merge from coreutils.
105291         * m4/utimens.m4, m4/utimecmp.m4: New files.
105292         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
105293         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
105294         prereq.m4, sha.m4: Import changes from coreutils.
105296 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105298         More merge from coreutils.
105299         * modules/raise, modules/readtokens0, modules/utimens:
105300         * modules/utimecmp, module/xnanosleep: New files.
105301         * modules/strftime: Add lib/strftime.h.
105302         Change include from <time.h> to "strftime.h".
105303         * modules/yesno: Add lib/yesno.h.
105304         * modules/backupfile: Remove lib/addext.c.
105305         * modules/euidaccess: Add stat-macros.h.
105306         * modules/canonicalize, modules/euidaccess,
105307         modules/filemode, modules/lchown, modules/makepath,
105308         modules/rmdir, modules/stat: Likewise.
105310 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105312         Merge from tar.
105313         * lib/argp-help.c (make_hol, hol_append): Don't assume that
105314         SIZE_MAX is a valid preprocessor constant.
105315         (__argp_basename): Change from "#ifndef _LIBC"
105316         to "#ifndef __argp_short_program_name", so that
105317         we don't compile these functions for tar.
105319         More merges from coreutils.
105320         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
105321         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
105322         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
105323         * lib/addext.c: Remove; no longer needed.
105324         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
105325         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
105326         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
105327         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
105328         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
105329         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
105330         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
105331         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
105332         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
105333         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
105334         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
105335         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
105336         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
105337         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
105338         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
105339         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
105340         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
105341         Import changes from coreutils.
105343 2004-08-05  Simon Josefsson  <jas@extundo.com>
105345         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
105347 2004-08-05  Simon Josefsson  <jas@extundo.com>
105349         * m4/getsubopt.m4: New file.
105351 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105353         Merge from coreutils.
105355         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
105356         * m4/getcwd-path-max.m4: New files.
105358         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
105359         FILESYSTEM_PREFIX_LEN ->
105360         FILE_SYSTEM_PREFIX_LEN.
105361         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
105362         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
105363         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
105364         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
105366         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
105367         prerequisite modules now handle the DOS stuff.
105368         Don't check for unistd.h.
105370 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105372         Merge from coreutils.
105374         * lib/.gdb-history: Remove; this doesn't belong here.
105376         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
105377         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
105378         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
105379         * lib/getcwd.c: New files.
105381         * lib/dirname.h: Include <stdbool.h>.
105382         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
105383         for consistency with POSIX terminology.  All uses changed.
105384         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
105385         (strip_trailing_slashes): Use bool for booleans.
105386         * lib/stripslash.c (strip_trailing_slashes): Likewise.
105388         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
105389         sometimes returns a positive errno value even when it succeeds.
105390         (print_errno_message) [!LIBC]: Fall back on strerror if
105391         __strerror_r fails.
105393         * lib/path-concat.c (mempcpy): Don't define if a system header defines
105394         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
105395         (longest_relative_suffix): New function.
105396         (path_concat): Use it.  Assume first argument is not NULL.
105397         Port to DOS.  Omit redundant separators.
105398         Report an error instead of returning NULL.
105399         Use mempcpy instead of memcpy.
105400         (xpath_concat): Remove: not declared or used.
105402         * lib/same.h: Include <stdbool.h>
105403         (same_name): Return bool, not int.
105404         * lib/same.c (same_name): Likewise.
105405         (errno): Don't declare; we assume C89 or better now.
105407         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
105408         if not already defined.
105410         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
105411         * lib/dup-safer.c (errno): Likewise.
105413 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105415         Merge from coreutils.
105416         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
105417         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
105418         * modules/path-concat: Don't depend on strdup.
105420 2004-08-03  Simon Josefsson  <jas@extundo.com>
105422         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
105423         * lib/progname.h: Don't include stdbool.h.
105425 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105427         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
105428         * MODULES.html.sh (func_all_modules): Remove fatal.
105430 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105432         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
105434 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105436         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
105437         working.
105439 2004-08-02  Simon Josefsson  <jas@extundo.com>
105441         * lib/getsubopt.h: New file, with comments from Bruno Haible.
105442         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
105443         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
105445 2004-08-01  Simon Josefsson  <jas@extundo.com>
105447         * lib/xgetdomainname.c: Include stdlib.h, for free().
105449 2004-07-19  Bruno Haible  <bruno@clisp.org>
105451         * MODULES.html.sh (func_all_modules): Add dummy.
105453 2004-07-16  Simon Josefsson  <jas@extundo.com>
105455         * modules/dummy: New file.
105457 2004-07-16  Simon Josefsson  <jas@extundo.com>
105459         * lib/dummy.c: New file.
105461 2004-07-16  Bruno Haible  <bruno@clisp.org>
105463         * lib/backupfile.h: Add extern "C" for C++.
105464         * lib/closeout.h: Likewise.
105465         * lib/copy-file.h: Likewise.
105466         * lib/findprog.h: Likewise.
105467         * lib/full-write.h: Likewise.
105468         * lib/pathname.h: Likewise.
105469         * lib/progname.h: Likewise.
105470         * lib/stpcpy.h: Likewise.
105471         * lib/stpncpy.h: Likewise.
105472         * lib/strcase.h: Likewise.
105473         * lib/strstr.h: Likewise.
105474         * lib/xalloc.h: Likewise.
105476         * lib/mbswidth.h: Add extern "C" for C++.
105477         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
105479 2004-07-13  Robert Millan  <robertmh@gnu.org>
105481         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
105483 2004-07-09  Simon Josefsson  <jas@extundo.com>
105485         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
105486         failed without this.)
105488 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105490         * modules/chown (Files): Add lib/fchown-stub.c, since
105491         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
105493 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105495         * lib/fchown-stub.c: New file.
105497 2004-06-24  Jim Meyering  <jim@meyering.net>
105499         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
105501 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105503         * modules/argz: Omit "#include".
105505         * MODULES.html.sh (func_all_modules): Add calloc, to match
105506         2004-06-01 addition of calloc module.
105508 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105510         * m4/argz.m4: New file, which is autoupdated from libtool.
105512 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105514         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
105515         libtool.
105517 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105519         * config/srclist-update: Don't insist on "USA." before the
105520         close-comment, as libtool omits the period and puts the */ on a
105521         separate line.
105522         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
105523         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
105525 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
105527         * modules/argz: New file.
105528         * MODULES.html.sh (func_all_modules): Add argz.
105530 2004-06-12  Jim Meyering  <jim@meyering.net>
105531         and  Paul Eggert  <eggert@cs.ucla.edu>
105533         * modules/hash (Files): Add lib/xalloc.h.
105534         * modules/pipe (Depends-on): Add wait-process.
105535         * modules/stat (Depends-on): Add xalloc.
105536         * modules/userspec (Files): Add lib/userspec.h.
105537         * modules/xstrto
105539         Upgrade from gettext-0.13.
105540         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
105541         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
105542         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
105544 2004-06-10  Jim Meyering  <jim@meyering.net>
105546         * lib/calloc.c: New file.
105548 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
105550         * lib/getdate.y (yylex): Allow space between sign and number.
105551         Problem reported by Dan Jacobson.
105553 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
105555         Merge from coreutils CVS.
105557         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
105558         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
105559         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
105560         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
105561         xstrtol.m4: Fix copyright date and/or serial number.
105563         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
105564         See if we need an fchown replacement.
105565         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
105566         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
105567         and use the replacement function if we detect either defect.
105569         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
105570         gl_UTIMECMP.
105572 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
105573         and  Jim Meyering  <jim@meyering.net>
105575         Merge from coreutils CVS.
105577         * lib/stat-macros.h: New file, with contents from file-type.h
105578         and coreutils' system.h.
105579         * lib/file-type.c: Include "stat-macros.h".
105580         * lib/file-type.h (file_type): Move all macro definitions to new file,
105581         stat-macros.h.
105583         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
105584         Wrap old code with this conditional.
105585         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
105586         function that does not dereference symlinks.
105587         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
105589         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
105590         dependency problems.
105591         (xreadlink): Accept new arg SIZE, for efficiency.
105592         All decls and uses changed.
105593         * lib/xreadlink.h: Include <stddef.h>, for size_t.
105595         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
105596         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
105598         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
105599         sysexits.h.
105601 2004-06-01  Jim Meyering  <jim@meyering.net>
105603         * m4/calloc.m4: New file.
105605 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
105607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
105608         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
105609         Also, fix a typo in a diagnostic.
105611 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105613         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
105614         or AC_FUNC_REALLOC.
105616 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105618         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
105619         macros to be defined.
105620         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
105621         the allocator returns NULL because the requested size is zero.
105623 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105625         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
105626         var.  Add comment explaining why libc still defines it.  This
105627         merges the following patch from glibc:
105628         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
105630 2004-05-20  Andreas Schwab  <schwab@suse.de>
105632         * m4/free.m4: Replace free if it not known to work, not the other
105633         way round.
105635 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105637         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
105638         present in glibc since revision 1.1 of this file.
105639         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
105640         obstack_alignment_mask, obstack_alloc, obstack_base,
105641         obstack_blank, obstack_blank_fast, obstack_chunk_size,
105642         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
105643         obstack_grow0, obstack_init, obstack_int_grow,
105644         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
105645         obstack_next_free, obstack_object_size, obstack_ptr_grow,
105646         obstack_ptr_grow_fast, obstack_room): Remove declarations of
105647         nonexistent functions.
105649 2004-05-18  Karl Berry  <karl@gnu.org>
105651         * config/srclist.txt: break link for vasnprintf.c.
105653 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105655         Port obstack to the AS/400, where pointers are 16 bytes wide and
105656         you cannot cast an integer to a valid pointer.  This patch is
105657         currently waiting to be integrated into glibc; see
105658         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
105660         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
105661         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
105662         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
105663         (struct obstack): temp member is now a union of a pointer and
105664         an integer, instead of an integer.  All integer uses changed.
105665         This does not affect the physical layout of struct obstack,
105666         except on hosts (like the AS/400) where the size or alignment of
105667         void * is greater than that of ptrdiff_t.
105668         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
105669         __STDC__)]: Store temporary in pointer member of union, not
105670         integer member.
105671         * lib/obstack.c: Include <stddef.h>, for offsetof.
105672         (struct fooalign): Remove; it doesn't need a name.
105673         (union fooround): Change double to long double, and add void *.
105674         (DEFAULT_ALIGNMENT): Use offsetof to compute.
105675         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
105676         not a macro.  Hence the values are always int; so remove all
105677         casts-to-int in uses.
105679 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105681         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
105682         we can get this patch merged into glibc.
105684 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105685             Paul Eggert  <eggert@cs.ucla.edu>
105687         * m4/argp: Depend on alloca.
105689 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105690             Paul Eggert  <eggert@cs.ucla.edu>
105692         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
105693         freecoding.
105695 2004-05-17  Bruno Haible  <bruno@clisp.org>
105697         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
105698         precision that consists of a '.' followed by an empty digit string.
105699         Patch by Tor Lillqvist <tml@iki.fi>.
105701 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105703         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
105704         for backward compatibility with older code.  We need our own
105705         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
105706         it under some other name, and our alloca.h will define it.
105708 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105709             Derek Price  <derek@ximbiot.com>
105711         * lib/alloca.c: Include <alloca.h>, to get our interface.
105712         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
105713         include <alloca.h> first.  Use C89 prototype for alloca; this
105714         requires including <stddef.h> for size_t.  Use extern "C" if C++.
105715         Use #elif for simplicity, since we can assume C89 now.
105716         Don't try to source the system alloca.h since it will not be found
105717         and to prevent recursively including its replacement.
105718         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
105719         * lib/regex.c: Likewise.
105721 2004-05-16  Derek Price  <derek@ximbiot.com>
105722             Paul Eggert  <eggert@cs.ucla.edu>
105724         getline cleanup.  This changes the getndelim2 API: both order of
105725         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
105726         no delimiter).
105728         * lib/getline.c: Don't include stddef.h or stdio.h, since our
105729         interface does that.
105730         (getline): Always use getdelim, so that we don't have two
105731         copies of this code.
105732         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
105733         if available.
105734         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
105735         (GETNDELIM2_MAXIMUM): New macro.
105736         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
105737         instead of the old practice of delim2==0.  All callers changed.
105738         Return -1 on overflow, instead of returning junk.
105739         Do not set *linesize unless allocation succeeds.
105740         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
105741         that we include sys/types.h.
105742         * lib/getnline.h: Likewise.
105743         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
105744         (getndelim2): Reorder arguments.
105745         * lib/getnline.c (getnline, getndelim):
105746         Don't discard the NMAX argument.
105747         (getnline): Invoke getndelim, to avoid code duplication.
105748         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
105749         of (size_t) -1 by callers of the getnline family.
105751 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105753         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
105754         Check for gettimeofday.
105755         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
105756         Check for settimeofday, stime.
105758 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105760         * lib/nanosleep.c (suspended): Change its type from int to
105761         sig_atomic_t volatile.
105762         (first_call): Make it private to rpl_nanosleep, and have it
105763         be zero initially as that's a bit faster.
105764         (my_usleep): Round up fractional times instead of truncating them,
105765         as this is the usual meaning for 'sleep'.
105767         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
105768         doesn't work.
105769         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
105770         (ENOSYS): Define if not defined.
105771         (settime): Fall back on stime if it exists and settimeofday fails.
105772         But don't bother with fallbacks if a method fails with errno == EPERM.
105774 2004-05-11  Jim Meyering  <jim@meyering.net>
105776         Prior to this change, the save_cwd caller required read access to the
105777         current directory on most systems (ones with the fchdir function).
105779         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
105780         fails, try write-only, and finally, resort to using xgetcwd.
105782 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
105784         * lib/obstack.c, obstack.h: Import changes from libc.
105786 2004-04-28  Bruno Haible  <bruno@clisp.org>
105788         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
105789         also implicitly appends .exe to executables.
105790         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
105791         accepts Windows pathnames.
105792         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105793         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105794         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105795         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105796         Reported by Derek Robert Price <derek@ximbiot.com>.
105798 2004-04-21  Karl Berry  <karl@gnu.org>
105800         * config/srclist.txt (localcharset.c): break sync.
105802 2004-04-20  Paul Eggert  <eggert@twinsun.com>
105804         * m4/host-os.m4: Add a copyright notice.
105806 2004-04-20  Jim Meyering  <jim@meyering.net>
105808         Change UTILS_ to gl_ in AC_DEFINE'd names.
105809         Change utils_- and jm_-prefixed variables, too.
105810         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
105811         UTILS_FUNC_MKDIR_TRAILING_SLASH.
105812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
105814         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
105815         Don't emit trailing blanks.
105816         Also rename jm_-prefixed variables to have gl_ prefix.
105818         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
105819         Also rename jm_-prefixed variables to have gl_ prefix.
105821         * m4/jm-macros.m4: Reflect the renamings.
105822         * m4/prereq.m4: Likewise.
105824 2004-04-20  Jim Meyering  <jim@meyering.net>
105826         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
105827         memory.
105829 2004-04-20  Jim Meyering  <jim@meyering.net>
105830             Bruno Haible  <bruno@clisp.org>
105832         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
105833         memory when realloc fails.
105835 2004-04-19  Jim Meyering  <jim@meyering.net>
105837         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
105838         now that readutmp.c may call `free (0)'.
105840 2004-04-19  Bruno Haible  <bruno@clisp.org>
105842         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
105843         * m4/inttypes_h.m4: Likewise.
105844         * m4/stdint_h.m4: Likewise.
105845         * m4/intmax_t.m4: Likewise.
105846         * m4/uintmax_t.m4: Likewise.
105848 2004-04-18  Jim Meyering  <jim@meyering.net>
105850         * m4/prereq.m4: Don't forbid jm_ prefix.
105852         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
105853         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
105854         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
105855         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
105856         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
105857         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
105858         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
105859         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
105860         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
105861         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
105862         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
105863         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
105864         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
105865         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
105866         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
105867         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
105868         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
105869         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
105870         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
105872 2004-04-18  Jim Meyering  <jim@meyering.net>
105874         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
105875         failure, don't leak memory and do call END_UTMP_ENT.
105877 2004-04-16  Jim Meyering  <jim@meyering.net>
105879         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
105880         coreutils' stat program.
105881         (gl_PREREQ): Don't require jm_PREREQ_STAT.
105883 2004-04-11  Paul Eggert  <eggert@twinsun.com>
105885         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
105886         C89.
105887         (CHAR_BIT): Remove, since we assume C89.
105888         Include <stdint.h> if available, as per current Autoconf CVS advice.
105890 2004-03-31  Jim Meyering  <jim@meyering.net>
105892         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
105893         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
105894         * m4/xalloc.m4: Likewise.
105896 2004-03-30  Paul Eggert  <eggert@twinsun.com>
105898         Merge from coreutils.
105900         * m4/inttostr.m4: New file.
105901         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
105902         Require AM_STDBOOL_H and gl_TIMESPEC instead.
105903         Require gl_CLOCK_TIME.
105904         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
105906 2004-03-30  Paul Eggert  <eggert@twinsun.com>
105908         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
105909         not bool, to be more consistent with Unix conventions.
105910         Suggested by Bruno Haible.
105912         Merge from coreutils.
105914         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
105915         * lib/umaxtostr.c: New files.
105917         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
105918         the usual <time.h> dance.
105919         (get_date): Change signature to support fractional time stamps.
105920         All callers changed.
105921         * lib/getdate.y: Include "getdate.h" first, as we can now
105922         assume C89 and don't need to worry about 'const'.
105923         Similarly, include "unlocked-io.h" near start, not in middle.
105924         Include <limits.h>.
105925         (textint.value): Use long int rather than int.
105926         (textint.digits): Use size_t rather than int.
105927         (BILLION, LOG10_BILLION): New constants.
105928         (parser_control): New member rel_ns.  Members day_ordinal,
105929         time_zone, month, day, hour, minutes, rel_year, rel_month,
105930         rel_day, rel_hour, rel_minutes, rel_seconds
105931         are now long int, not int.  Member seconds is now struct timespec,
105932         not int.  New member timespec_seen.  Members dates_seen, days_seen,
105933         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
105934         not int.
105935         (%union.intval): Now long int, not int.
105936         New member timespec.
105937         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
105938         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
105939         (spec): Now is a timespec or an item list.
105940         (timespec, items): New nonterminals.
105941         (time, rel, relunit, number, get_date):
105942         Add support for fractional seconds.
105943         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
105944         (gmtime, localtime, mktime): Remove decls; not needed with C89.
105945         (to_hour): First arg is now long int, not int.
105946         (to_year): Returns long int, not int.
105947         Don't treat year -70 like 70.
105948         (tm_diff): Returns long int, not int.
105949         (lookup_word): Use bool instead of int when appropriate.
105950         (yylex): Use size_t for count, not int.
105951         Detect overflow when parsing large integer constants.
105952         Add support for fractions.
105953         (get_date): Make pointers 'const' if possible.
105954         Use more-portable code to detect integer overflow.
105955         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
105956         Don't use ctime; it's not reliable if the year has >4 digits.
105958         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
105959         This is for compatibility with BSD.
105961         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
105962         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
105963         From coreutils' system.h.
105965         * lib/userspec.c: Don't include "posixver.h".
105966         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
105967         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
105968         compatible extension.  Simplify code by removing a boolean int
105969         that was always nonzero if a string was nonnull.
105971 2004-03-30  Jim Meyering  <jim@meyering.net>
105973         Merge from coreutils.
105975         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
105976         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
105977         on some systems one must include <grp.h> before it.
105978         Reported by Christian Krackowizer.
105980 2004-03-30  Jim Meyering  <jim@meyering.net>
105982         Merge from coreutils.
105984         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
105986         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
105987         an empty input stream.
105989         * lib/readtokens.c: Include <stdbool.h>.
105990         (readtoken): Use `size_t' rather than int/long.
105991         All callers adjusted.
105992         Use `bool' rather than `int' where appropriate.
105993         Use memset rather than an explicit loop.
105994         Use x2nrealloc rather than xrealloc.
105995         Allow the use of `\0' as a delimiter.
105996         (readtokens): Likewise.
105997         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
105999 2004-03-30  Jim Meyering  <jim@meyering.net>
106001         * m4/realloc.m4: Remove file, since now it does no more than
106002         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
106003         the `configure.ac' section of module/realloc.
106004         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
106006 2004-03-30  Bruno Haible  <bruno@clisp.org>
106008         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
106009         nonnull.
106011 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106013         Merge changes to getloadavg.c from coreutils and Emacs.
106015         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
106016         Define to an expression, not to the empty string.
106017         Include cloexec.h and xalloc.h.
106018         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
106019         Use set_cloexec_flag rather than rolling our own.
106020         * lib/cloexec.c, lib/cloexec.h: New files.
106022 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106024         * m4/cloexec.m4: New file.
106026 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106028         * lib/getopt.h: Sync with libc CVS.
106030 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106031             Bruno Haible  <bruno@clisp.org>
106033         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
106034         mbswidth.
106036 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106037             Bruno Haible  <bruno@clisp.org>
106039         * lib/mbswidth.h: Include <wchar.h> only if
106040         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
106041         <wchar.h>.
106042         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
106044 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106046         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
106047         Sync with libc CVS.
106048         * lib/getopt_int.h: New file, also synced from libc.
106050 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106052         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
106053         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
106054         Bring back getopt.c, getopt.h, getopt1.c.
106056 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106058         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
106059         All uses changed.  Check for sa_sigaction member; this fixes
106060         a bug first reported by Jason Andrade in
106061         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106063 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106065         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
106066         '#if' expressions.  Unlike the code it replaces, it does not
106067         depend on (defined _SC_PAGESIZE).  However, it does depend on
106068         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
106069         first reported by Jason Andrade in
106070         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106072 2004-02-25  Simon Josefsson  <jas@extundo.com>
106074         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
106076 2004-02-25  Simon Josefsson  <jas@extundo.com>
106078         * lib/strdup.h: New file.
106079         * lib/strdup.c: Include it.
106080         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
106081         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
106083 2004-02-23  Karl Berry  <karl@gnu.org>
106085         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
106086         (from fencepost.gnu.org:/gd/gnuorg).
106088 2004-02-23  Karl Berry  <karl@gnu.org>
106090         * config/srclistvars.sh (GNUORG) [karl]: redefine.
106091         * config/srclist.txt: add maintain/standards documents.
106093 2004-02-18  Bruno Haible  <bruno@clisp.org>
106095         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
106096         Reported by Derek Robert Price <derek@ximbiot.com>.
106098 2004-02-16  Karl Berry  <karl@gnu.org>
106100         * config/mkinstalldirs, install-sh: update from automake.
106102 2004-02-06  Karl Berry  <karl@gnu.org>
106104         * m4/po.m4: update from gettext 0.14.1.
106106 2004-02-06  Karl Berry  <karl@gnu.org>
106108         * lib/config.charset: update from gettext 0.14.1.
106110 2004-02-05  Paul Eggert  <eggert@twinsun.com>
106112         Add comments and code, prompted by suggestions from Bruno Haible
106113         for sh-quote.
106114         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
106115         describing the enum quoting_style values.
106116         * lib/quotearg.c (quotearg_alloc): New function.
106117         (quotearg_buffer_restyled): Treat lone { and } as special.
106118         Treat = as special.  Work around bug with older shells
106119         that "see" a '\' that is really the 2nd byte of a multibyte char.
106120         Quote empty string with shell_quoting_style.
106122 2004-02-03  Bruno Haible  <bruno@clisp.org>
106124         * m4/pipe.m4: New file, from GNU gettext.
106126 2004-02-03  Bruno Haible  <bruno@clisp.org>
106128         * lib/pipe.h: New file, from GNU gettext.
106129         * lib/pipe.c: New file, from GNU gettext.
106131 2004-01-27  Bruno Haible  <bruno@clisp.org>
106133         * m4/execute.m4: New file, from GNU gettext.
106135 2004-01-27  Bruno Haible  <bruno@clisp.org>
106137         * lib/execute.h: New file, from GNU gettext.
106138         * lib/execute.c: New file, from GNU gettext.
106139         * lib/w32spawn.h: New file, from GNU gettext.
106141 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106143         Merge from diffutils.
106145         * lib/file-type.c (file_type): Add typed memory objects.
106146         * lib/file-type.h (S_TYPEISTMO): New macro.
106148         * lib/c-stack.h (c_stack_action): Remove argv argument.
106149         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
106150         (die): Don't calculate message unless segv_action returns.
106151         (get_stack_location, min_address_from_argv, max_address_from_argv,
106152         volatile stack_base, volatile_stack_size): Remove.
106153         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
106154         that every segmentation violation is a stack overflow.  (Ouch!)
106155         See Debian bug 136249 (still outstanding) for more info about why
106156         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
106158 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106160         Exit-status fix from coreutils.
106162         Use exit_failure consistently in place of EXIT_FAILURE,
106163         so that program exit statuses are consistent on failure.
106165         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
106166         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
106167         * lib/argmatch.h: Comment fix to match the above.
106168         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
106169         Now a macro referring to exit_failure, instead of a separate
106170         variable.  Include "exitfail.h" to get it.
106171         * lib/xstrtol.h: Include "exitfail.h".
106172         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
106174         * lib/long-options.c (parse_long_options): Use prototype
106175         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
106176         for clarity.
106178 2004-01-21  Jim Meyering  <jim@meyering.net>
106180         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
106181         so as not to conflict with a different-sized __mktime_internal
106182         function in GNU libc.
106183         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
106184         Problem building statically-linked `ls' reported by Michael Brunnbauer.
106186 2004-01-20  Karl Berry  <karl@gnu.org>
106188         * config/config.guess: update from config.
106190         * config/srclistvars.sh: GNUWWWLICENSES for karl.
106192 2004-01-20  Bruno Haible  <bruno@clisp.org>
106194         Safer stack allocation.
106195         * lib/setenv.c: Include allocsa.h.
106196         (alloca): Remove fallback definition.
106197         (freea): Remove macro.
106198         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
106199         instead of freea.
106201 2004-01-20  Bruno Haible  <bruno@clisp.org>
106203         * m4/eealloc.m4: New file, from GNU gettext.
106205 2004-01-20  Bruno Haible  <bruno@clisp.org>
106207         * m4/allocsa.m4: New file, from GNU gettext.
106209 2004-01-20  Bruno Haible  <bruno@clisp.org>
106211         * lib/xallocsa.h: New file, from GNU gettext.
106212         * lib/xallocsa.c: New file, from GNU gettext.
106214 2004-01-20  Bruno Haible  <bruno@clisp.org>
106216         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
106218 2004-01-20  Bruno Haible  <bruno@clisp.org>
106220         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
106221         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
106222         specially.
106224 2004-01-20  Bruno Haible  <bruno@clisp.org>
106226         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
106227         patch.
106229 2004-01-20  Bruno Haible  <bruno@clisp.org>
106231         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
106233 2004-01-20  Bruno Haible  <bruno@clisp.org>
106235         * lib/eealloc.h: New file.
106237 2004-01-20  Bruno Haible  <bruno@clisp.org>
106239         * lib/binary-io.h: Avoid warnings on Cygwin.
106241 2004-01-20  Bruno Haible  <bruno@clisp.org>
106243         * lib/allocsa.h: New file, from GNU gettext.
106244         * lib/allocsa.c: New file, from GNU gettext.
106246 2004-01-18  Karl Berry  <karl@gnu.org>
106248         * doc/gpl.texi, doc/lgpl.texi: new files.
106250 2004-01-18  Karl Berry  <karl@gnu.org>
106252         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
106253         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
106255 2004-01-15  Paul Eggert  <eggert@twinsun.com>
106257         Merge from coreutils.
106259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
106260         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
106261         (gl_DEFAULT_POSIX2_VERSION): Move
106262         the documentation from 'configure' into 'config.hin',
106263         so that 'configure --help' isn't burdened by it and
106264         we don't have to worry about its formatting there.
106265         Reword the documentation so that it's more succinct
106266         and can be run together into a single paragraph.
106267         * m4/same.m4 (gl_SAME): Check for pathconf.
106269 2004-01-15  Paul Eggert  <eggert@twinsun.com>
106271         Merge from coreutils.
106273         * lib/posixver.c: Include posixver.h.
106275         * lib/same.c: Include <stdbool.h>, <limits.h>.
106276         (_POSIX_NAME_MAX): Define if not defined.
106277         (MIN): New macro.
106278         (same_name): If file names are silently truncated, report
106279         that the file names are the same if they are the same after
106280         the silent truncation.
106282         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
106283         conversion function.
106284         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
106285         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
106286         longer needed.
106288 2004-01-15  Jim Meyering  <jim@meyering.net>
106290         Merge from coreutils.
106292         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
106293         if no library is required.
106294         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
106295         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
106296         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
106297         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
106298         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
106299         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
106300         value, $ac_cv_search_crypt, if it's "none required".
106301         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
106302         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
106303         not gl_FUNC_GETLOADAVG.
106304         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
106305         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
106307 2004-01-15  Jim Meyering  <jim@meyering.net>
106309         Merge from coreutils.
106311         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
106312         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
106313         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
106315         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
106316         optional configure-time default.
106318         * lib/version-etc.c (version_etc_copyright): Update copyright date.
106320         * lib/xreadlink.c (xreadlink): Correct outdated comment.
106322 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
106324         Merge from coreutils.
106326         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
106327         value, $ac_cv_search_nanosleep, if it's "none required".
106329 2004-01-14  Paul Eggert  <eggert@twinsun.com>
106331         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
106332         with like-named macro in fnmatch.c.
106333         (EXT): Use an internal constant instead.
106335         Merge fnmatch patches from glibc.
106336         * lib/fnmatch.c (mbsinit): Remove define.
106337         Add libc_hidden_ver (__fnmatch, fnmatch).
106338         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
106339         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
106341 2004-01-14  Karl Berry  <karl@gnu.org>
106343         * config/install-sh: update from automake.
106345 2004-01-13  Karl Berry  <karl@gnu.org>
106347         * config/install-sh: update from automake.
106349 2004-01-09  Karl Berry  <karl@gnu.org>
106351         * config/install-sh: update from automake.
106353 2004-01-05  Karl Berry  <karl@gnu.org>
106355         * config/config.{sub,guess}: update from config.
106357 2003-12-31  Karl Berry  <karl@gnu.org>
106359         * config/depcomp: update from automake.
106361 2003-12-14  Karl Berry  <karl@gnu.org>
106363         * lib/config.charset: update from gettext-runtime.
106365 2003-12-03  Paul Eggert  <eggert@twinsun.com>
106367         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
106368         Bug reported by Alfred M. Szmidt.
106370 2003-12-03  Bruno Haible  <bruno@clisp.org>
106372         * m4/gettext.m4: Upgrade from gettext-0.13.
106373         * m4/po.m4: Upgrade from gettext-0.13.
106374         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
106375         * m4/intmax.m4: New file, from gettext-0.13.
106376         * m4/printf-posix.m4: New file, from gettext-0.13.
106378 2003-11-29  Karl Berry  <karl@gnu.org>
106380         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
106382 2003-11-25  Paul Eggert  <eggert@twinsun.com>
106383             Bruno Haible  <bruno@clisp.org>
106385         * lib/printf-parse.h: Don't include sys/types.h.
106386         (ARG_NONE): New macro.
106387         (char_directive): Change type of *arg_index fields to size_t.
106388         * lib/printf-parse.c: Don't include sys/types.h.
106389         (SSIZE_MAX): Remove macro.
106390         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
106391         Remove unnecessary overflow check.
106392         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
106393         fields.
106395 2003-11-25  Bruno Haible  <bruno@clisp.org>
106397         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
106399 2003-11-25  Bruno Haible  <bruno@clisp.org>
106401         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
106402         gt_TYPE_SSIZE_T.
106404 2003-11-24  Paul Eggert  <eggert@twinsun.com>
106406         * modules/alloca: Remove dependency on xalloc.
106408 2003-11-24  Paul Eggert  <eggert@twinsun.com>
106410         * lib/alloca.c: Remove dependency on xalloc module.
106411         (xalloc_die): Remove.
106412         (memory_full) [!defined emacs]: New macro.
106413         [!defined emacs]: Don't include xalloc.h.
106414         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
106415         address arithmetic overflows.  Change datatypes a bit to avoid
106416         unnecessary casts.
106418 2003-11-22  Jim Meyering  <jim@meyering.net>
106420         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
106421         s/size/size_t/.
106423 2003-11-21  Karl Berry  <karl@gnu.org>
106425         * config/config.{sub,guess}: update from config.
106427 2003-11-18  Karl Berry  <karl@gnu.org>
106429         * config/config.{sub,guess}: update from config.
106431         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
106433 2003-11-17  Paul Eggert  <eggert@twinsun.com>
106435         * README: Mention that S+T cannot overflow if S is the size of
106436         an existing object and T is sufficiently small.
106438 2003-11-17  Jim Meyering  <jim@meyering.net>
106440         On systems without utime and without a utimes function capable of
106441         dealing with a NULL struct utimbuf* argument, this utime replacement
106442         could -- in unusual circumstances -- leak a file descriptor.
106443         * lib/utime.c: Include <unistd.h> and <errno.h>.
106444         (utime_null): Be sure to close `fd' and to preserve errno.
106445         Reported by Geoff Collyer via Arnold Robbins.
106447 2003-11-17  Bruno Haible  <bruno@clisp.org>
106449         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
106450         (Depends-on): Add xsize.
106452 2003-11-17  Bruno Haible  <bruno@clisp.org>
106454         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
106456 2003-11-17  Bruno Haible  <bruno@clisp.org>
106458         * lib/vasnprintf.c (alloca): Remove fallback definition.
106459         (freea): Remove definition.
106460         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
106461         Reported by Paul Eggert.
106463 2003-11-16  Paul Eggert  <eggert@twinsun.com>
106464             Bruno Haible  <bruno@clisp.org>
106466         Protect against address arithmetic overflow.
106467         * lib/printf-args.h: Include stddef.h.
106468         (arguments): Change type of field 'count' to size_t.
106469         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
106470         'unsigned int' where appropriate.
106471         * lib/printf-parse.h: Include sys/types.h.
106472         (char_directive): Change type of *arg_index fields to ssize_t.
106473         (char_directives): Change type of fields 'count', max_*_length to
106474         size_t.
106475         * lib/printf-parse.c: Include sys/types.h and xsize.h.
106476         (SSIZE_MAX): Define fallback value.
106477         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
106478         instead of 'int' where appropriate. Check a_allocated, d_allocated
106479         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
106480         * lib/vasnprintf.c: Include xsize.h.
106481         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
106482         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
106483         overflow. Avoid wraparound when converting a width or precision from
106484         decimal to binary.
106486 2003-11-16  Bruno Haible  <bruno@clisp.org>
106488         Update from GNU gettext.
106489         * lib/printf-parse.c: Generalize to it can be compiled for wide
106490         strings.
106491         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
106492         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
106493         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
106494         SNPRINTF): New macros.
106495         Don't include <alloca.h> if the file is used inside libintl.
106496         (local_wcslen): New function, for Solaris 2.5.1.
106497         (VASNPRINTF): Use it instead of wcslen.
106499 2003-11-16  Bruno Haible  <bruno@clisp.org>
106501         * lib/xsize.h (xmax): New function.
106502         (xsum, xsum3, xsum4): Declare as "pure" functions.
106504 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106506         * modules/xalloc (Files): Undo latest change, since xalloc.h
106507         no longer needs SIZE_MAX or PTRDIFF_MAX.
106509 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106511         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
106512         gl_PTRDIFF_MAX.
106514 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106516         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
106517         "return", to pacify some unknown compiler.  Problem reported
106518         by Joerg Schilling.
106520 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106522         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
106523         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
106524         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
106525         heuristic is just as accurate as far as we know, and it removes a
106526         dependency on size_max.m4 and ptrdiff_max.m4.
106528 2003-11-11  Bruno Haible  <bruno@clisp.org>
106530         * modules/xsize (Files): Add m4/size_max.m4.
106531         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
106533 2003-11-11  Bruno Haible  <bruno@clisp.org>
106535         * m4/size_max.m4: New file.
106536         * m4/ptrdiff_max.m4: New file.
106537         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
106538         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
106539         (gl_XALLOC): Invoke it.
106541 2003-11-11  Bruno Haible  <bruno@clisp.org>
106543         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
106544         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
106545         defined.
106547 2003-11-10  Paul Eggert  <eggert@twinsun.com>
106549         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
106550         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
106551         rejected some allocations of exactly SIZE_MAX - 2 bytes.
106552         From Bruno Haible.
106553         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
106554         not (size_t) -1, since it's defined here.
106556 2003-11-09  Karl Berry  <karl@gnu.org>
106558         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
106560 2003-11-06  Paul Eggert  <eggert@twinsun.com>
106562         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
106563         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
106564         Reject sizes of exactly SIZE_MAX bytes.
106565         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
106566         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
106568 2003-11-05  Bruno Haible  <bruno@clisp.org>
106570         * lib/xsize.h: Include limits.h, to avoid a possible collision with
106571         SIZE_MAX defined in <limits.h> on Solaris.
106573 2003-11-04  Jim Meyering  <jim@meyering.net>
106575         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
106576         variable names, rather than @VAR@.
106577         * modules/poll: Likewise.
106579 2003-11-04  Bruno Haible  <bruno@clisp.org>
106581         * modules/xsize: New file.
106582         * modules/linebreak: Depend on xsize.
106583         * MODULES.html.sh (func_all_modules): Add xsize.
106585 2003-11-04  Bruno Haible  <bruno@clisp.org>
106587         * m4/xsize.m4: New file.
106589 2003-11-04  Bruno Haible  <bruno@clisp.org>
106591         * lib/xsize.h: New file.
106592         * lib/linebreak.c: Include xsize.h.
106593         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
106594         argument for overflow.
106595         Suggested by Paul Eggert.
106597 2003-11-03  Karl Berry  <karl@gnu.org>
106599         * config/config.{guess,sub}: update from config.
106601 2003-11-03  Jim Meyering  <jim@meyering.net>
106603         * modules/userspec (lib_SOURCES): Add userspec.h.
106604         (Include): Add "userspec.h".
106605         Improve description.
106607 2003-11-03  Jim Meyering  <jim@meyering.net>
106609         * lib/userspec.c: Include "userspec.h".
106610         * lib/userspec.h: New file.
106612 2003-11-03  Bruno Haible  <bruno@clisp.org>
106614         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
106616 2003-11-03  Bruno Haible  <bruno@clisp.org>
106618         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
106619         available, to avoid (extremely rare) race condition.
106620         Suggested by Paul Eggert.
106622 2003-11-02  Karl Berry  <karl@gnu.org>
106624         * config/srclist.txt (vasprintf.c): sync broken, sigh.
106626 2003-10-31  Paul Eggert  <eggert@twinsun.com>
106628         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
106629         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
106630         (read_filesystem_list): Set and use me_type_malloced.
106631         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
106632         whatever the type happens to be), for brevity and consistency.
106633         Check for size calculation overflow on Alphas running OSF/1.
106635 2003-10-31  Jim Meyering  <jim@meyering.net>
106637         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
106639         * lib/linebuffer.c: Include <string.h> for declaration of memset.
106641 2003-10-30  Paul Eggert  <eggert@twinsun.com>
106642             Bruno Haible  <bruno@clisp.org>
106644         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
106645         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
106647 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
106649         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
106650         netbsd*-gnu*.  Suggested by Robert Millan.
106652 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106654         * modules/group-member: Depend on stdbool.
106656 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106658         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
106660 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106662         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
106663         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
106664         after the 'gnu' in these cases.  This fixes some bugs in the
106665         previous change, and is based on suggestions by Robert Millan.
106667 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106669         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
106670         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
106671         no longer needed.
106672         * lib/quotearg.c (quotearg_n_options): Use it.
106673         * lib/group-member.c: Include <stdbool.h>.
106674         (free_group_info): Arg is now const *; don't free arg.
106675         (get_group_info): Now returns bool and accepts struct group_info *,
106676         rather than returning a malloc'ed struct group_info *.
106677         All uses changed.  Check for overflow in internal size calculation.
106679         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
106680         rather than xmalloc/xrealloc.
106681         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
106682         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
106683         conformance bug: the old code used a pointer after freeing the
106684         storage that it addressed.
106685         * lib/hash.c (hash_initialize): Simplify the code by using
106686         xalloc_oversized rather than doing it by hand.
106687         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
106688         the buffer preserved.  Use free and xmalloc instead.
106689         * lib/quotearg.c (quotearg_n_options): Likewise.
106690         Use a simpler test for size overflow.  Don't use xalloc_oversized
106691         because unsigned int might be wider than size_t (!); this suggests
106692         that we should switch from unsigned int to size_t for slot numbers.
106694 2003-10-28  Paul Eggert  <eggert@twinsun.com>
106696         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
106697         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
106698         NetBSD kernels.  Requested by Richard Stallman.
106700 2003-10-27  Paul Eggert  <eggert@twinsun.com>
106702         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
106703         to allocate the returned structure.  Do not allocate a subarray,
106704         as x2nrealloc will do that.
106705         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
106706         instead of xnrealloc.
106707         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
106709 2003-10-27  Bruno Haible  <bruno@clisp.org>
106711         * lib/stdbool_.h: Better support for BeOS.
106713 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106715         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
106716         now uses inline.
106718 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106720         * lib/xalloc.h (xalloc_oversized): New static inline function, for
106721         callers that want to do their own size-overflow checking.  Include
106722         <stdbool.h>, since xalloc_oversized returns bool.
106723         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
106724         to use xalloc_oversized.
106726         Add two functions x2realloc, x2nrealloc, for programs that grow
106727         arrays dynamically by doubling their sizes.
106728         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
106729         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
106730         New functions.
106732         Port to C99 semantics for 'inline' of external functions.
106733         Bug reported by Bruno Haible.
106734         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
106735         with the old contents of xnmalloc.
106736         (xnmalloc, xmalloc): Use it.
106737         (xnrealloc_inline): New static inline function,
106738         with the old contents of xnrealloc.
106739         (xnrealloc, xrealloc): Use it.
106741         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
106742         that.
106744 2003-10-26  Karl Berry  <karl@gnu.org>
106746         * config/srclist.txt (COPYING.DOC): no longer available from
106747         /gd/gnuorg; don't know where the ultimate source is.
106749 2003-10-25  Paul Eggert  <eggert@twinsun.com>
106751         Fix several address-calculation bugs in the hash modules,
106752         plus some minor code cleanup.
106754         * lib/hash.h: Include <stdbool.h>, for bool.
106755         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
106756         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
106757         hash_get_n_entries, hash_get_max_bucket_length,
106758         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
106759         hash_rehash): Use size_t rather than unsigned.
106760         * lib/hash.c (struct hash_table, hash_get_n_buckets,
106761         hash_get_n_buckets_used, hash_get_n_entries,
106762         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
106763         hash_get_entries, hash_do_for_each, hash_string, is_prime,
106764         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
106765         Likewise.
106766         (SIZE_MAX): Define if not defined.
106767         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
106768         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
106769         hash_print):
106770         Use const * when possible.
106771         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
106772         (check_tuning): Fix bug: if tuning parameters were very close to
106773         0 or 1, rounding errors could have caused subscript violations.
106774         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
106775         (hash_initialize): Add 'fail:' label
106776         to free table and return NULL, and use it to simplify code.
106777         Use calloc rather than clearing the storage ourself.
106778         (hash_initialize, hash_rehash): Check for arithmetic overflow in
106779         buffer size calculations.
106780         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
106781         Include <stddef.h>, for size_t.
106782         * lib/hash-pjw.c (hash_pjw): Likewise.
106783         Switch to method described by Bruno Haible.
106784         Include <limits.h>, for CHAR_BIT.
106785         (SIZE_BITS): New macro.
106787 2003-10-23  Paul Eggert  <eggert@twinsun.com>
106789         * m4/getline.m4 (AM_FUNC_GETLINE):
106790         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
106791         hosts.  Problem reported by Derek Robert Price in
106792         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
106793         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
106794         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
106796 2003-10-21  Paul Eggert  <eggert@twinsun.com>
106798         * lib/getndelim2.c (getndelim2): When size calculation overflows,
106799         ceiling the allocation at NMAX bytes rather than silently
106800         discarding input bytes before NMAX is reached.  This makes
106801         a difference only if NMAX exceeds SIZE_MAX / 2.
106803         * lib/obstack.c: Merge from glibc.
106804         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
106805         Add libc_hidden_def (_obstack_newchunk).
106806         (_obstack_free) [! defined _LIBC]: Remove.
106807         [defined _LIBC]: Make a strong alias from obstack_free, rather than
106808         a clone of the function body.
106809         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
106810         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
106812         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
106813         glibc.
106814         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
106815         arg to memcpy.
106817         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
106818         (obstack_ptr_grow_fast, obstack_int_grow_fast):
106819         Don't use lvalue casts, as GCC plans to remove support for them
106820         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
106821         was also present in the non-GCC version, indicating that this
106822         code had always been buggy and had never been widely used.
106823         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
106824         Use the fast variant of each macro, rather than copying the
106825         definiens of the fast variant; that way, we'll be more likely to
106826         catch future bugs in the fast variants.
106828 2003-10-20  Bruno Haible  <bruno@clisp.org>
106830         * modules/wait-process: New file.
106831         * MODULES.html.sh (func_all_modules): Add wait-process.
106833 2003-10-20  Bruno Haible  <bruno@clisp.org>
106835         * m4/wait-process.m4: New file.
106837 2003-10-20  Bruno Haible  <bruno@clisp.org>
106839         * lib/wait-process.h: New file, from GNU gettext.
106840         * lib/wait-process.c: New file, from GNU gettext.
106842 2003-10-19  Jim Meyering  <jim@meyering.net>
106844         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
106845         HPUX 10.20.
106847 2003-10-18  Karl Berry  <karl@gnu.org>
106849         * config/config.guess: update from config.
106851 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106853         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
106854         (getgroups): First arg is int, not size_t.
106855         Don't let 'free' mangle errno.
106857 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106859         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
106861 2003-10-16  Karl Berry  <karl@gnu.org>
106863         * config/config.{guess,sub}: update from config.
106865 2003-10-16  Jim Meyering  <jim@meyering.net>
106867         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
106868         memcpy.
106870 2003-10-15  Paul Eggert  <eggert@twinsun.com>
106872         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
106873         (SIZE_MAX): Remove.
106874         (new_exclude, add_exclude_file): Initial size no longer needs to
106875         be a power of 2.
106876         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
106877         our own address arithmetic overflow checking.
106879         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
106880         (fnmatch): Do not alloca more than 2000 wide characters;
106881         instead, use malloc for large buffers.
106882         Check for address arithmetic overflow, and return -1
106883         with errno set to ENOMEM in that case.
106884         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
106885         (NEW_PATTERN): Do not alloca more than 8000 bytes;
106886         instead, return -1.  Check for address arithmetic overflow.
106888 2003-10-14  Paul Eggert  <eggert@twinsun.com>
106890         Handle invalid suffixes and overflow independently, so that
106891         callers can treat them independently as needed.  Fix some bugs in
106892         suffix handling, e.g., "100k@" was not diagnosed as an invalid
106893         suffix for a human-readable blocksize.  The major caller-visible
106894         change is the addition of a new
106895         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
106896         that both overflow and suffix chars were found.
106898         * lib/human.c (humblock): Don't check separately for invalid suffix
106899         char; that is xstrtoumax's job (now that its bug is fixed).
106900         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
106901         INTMAX_MAX]: New macros.
106902         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
106903         TYPE_MAXIMUM): New macros.
106904         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
106905         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
106906         if overflow occurs, as it's what __strtol does and it's more useful
106907         in practice.
106908         (__xstrtol): If __strtol reports some error other than ERANGE,
106909         reflect it to the caller as LONGINT_INVALID.  If it reports
106910         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
106911         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
106912         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
106913         value.
106914         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
106915         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
106916         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
106917         [defined UINTMAX_MAX]: New macros.
106919 2003-10-14  Bruno Haible  <bruno@clisp.org>
106921         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
106923 2003-10-14  Bruno Haible  <bruno@clisp.org>
106925         * m4/sig_atomic_t: New file, from GNU gettext.
106926         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
106928 2003-10-14  Bruno Haible  <bruno@clisp.org>
106930         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
106931         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
106932         Also use volatile where needed.
106934 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106936         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
106937         Change maintainer from Bruno Haible to 'all'.
106939 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106941         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
106943 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106945         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
106946         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
106947         and define in terms of the other primitives.
106948         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
106949         (SIZE_MAX): Define if not already defined.
106950         (array_size_overflow): New function.
106951         (xalloc_die): Abort instead of exiting if 'error' returns.
106952         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
106953         (xmalloc, xrealloc): Use them.
106954         (xcalloc): Check for address arithmetic overflow.
106955         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
106956         a bit faster than strcpy.
106958 2003-10-10  Simon Josefsson  <jas@extundo.com>
106960         * modules/argp (Depends-on): Add restrict and strcase.
106962 2003-10-10  Simon Josefsson  <jas@extundo.com>
106964         * m4/argp.m4: Add AC_C_INLINE.
106966 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106968         Merge getpass from libc, plus a few fixes.
106970         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
106971         Include <stdbool.h>.
106972         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
106973         __fsetlocking to empty.
106974         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
106975         do include <bits/libc-lock.h>.
106976         Do not include <fcntl.h>; not needed.
106977         [_LIBC]: Include <wchar.h>.
106978         (NOTCANCEL_MODE): New macro.
106979         (flockfile, funlockfile) [_LIBC]: New macros.
106980         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
106981         [!_LIBC]: New macros.
106982         (call_fclose): New function.
106983         (getpass): Use it.  Save tty stream separately; this simplifies the
106984         code and makes it more reliable if stdin happens to equal stdout.
106985         Invoke __fsetlocking on tty.
106986         Handle thread cancellation if needed.
106987         Namespace cleanup (use __tcgetattr, __getline).
106988         Use bool for Booleans.
106989         [USE_IN_LIBIO]: Handle wide streams.
106990         [!_LIBC]: Unconditionally do the fseek, since we don't know what
106991         stream might go where.
106993         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
106994         doesn't have to include <stdio.h> before us.
106995         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
106996         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
106997         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
106998         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
106999         if not declared, so that we can use getpass.c code from libc without
107000         rewriting it.
107001         (flockfile, ftrylockfile, funlockfile): New macros.
107003 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107005         * modules/getpass: Depend on stdbool.
107007 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107009         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
107011 2003-10-07  Karl Berry  <karl@gnu.org>
107013         * config/config.{guess,sub}: update from config.
107015 2003-10-06  Jim Meyering  <jim@meyering.net>
107016             Bruno Haible  <bruno@clisp.org>
107018         This lets translators provide better translations for the
107019         "Written by ..." part of --version output.
107020         * lib/version-etc.h: Include stdarg.h.
107021         (version_etc_copyright): Declare as readonly.
107022         (version_etc): Make this function variadic with a NULL-terminated list
107023         of author name strings.
107024         (version_etc_va): New declaration.
107025         * lib/version-etc.c: Include stdarg.h, stdlib.h.
107026         (version_etc_copyright): Declare as readonly.
107027         (version_etc_va): New function. Provide a different translatable string
107028         for each possible number of authors < 10. Abbreviate when there are 10
107029         authors or more.
107030         (version_etc): Make this function variadic. Call version_etc_va.
107031         Suggestion from Gary V. Vaughan.
107033         * lib/long-options.h (parse_long_options): Change prototype: the
107034         authors string is moved to the end and becomes variadic.
107035         * lib/long-options.c: Include stdarg.h.
107036         (parse_long_options): Make this function variadic, too.
107037         Call version_etc_va, not version_etc.
107039 2003-10-06  Bruno Haible  <bruno@clisp.org>
107041         * modules/version-etc-2: Remove file.
107042         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
107044 2003-10-06  Bruno Haible  <bruno@clisp.org>
107046         * modules/fatal-signal: New file.
107047         * MODULES.html.sh (func_all_modules): Add fatal-signal.
107049 2003-10-06  Bruno Haible  <bruno@clisp.org>
107051         * m4/fatal-signal.m4: New file.
107052         * m4/signalblocking.m4: New file, from GNU gettext.
107054 2003-10-06  Bruno Haible  <bruno@clisp.org>
107056         * lib/version-etc-2.h: Remove file.
107057         * lib/version-etc-2.c: Remove file.
107059 2003-10-06  Bruno Haible  <bruno@clisp.org>
107061         * lib/fatal-signal.h: New file, from GNU gettext.
107062         * lib/fatal-signal.c: New file, from GNU gettext.
107064 2003-10-05  Paul Eggert  <eggert@twinsun.com>
107066         * README: Rework advice for preventing empty .o files.
107067         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
107068         not <sys/types.h>.
107070 2003-10-04  Karl Berry  <karl@gnu.org>
107072         * lib/argp*: update from libc.
107074 2003-10-04  Karl Berry  <karl@gnu.org>
107076         * config/config.{guess,sub}: update from config.
107078 2003-10-02  Bruno Haible  <bruno@clisp.org>
107080         * modules/lchown (Include): Add lchown.h.
107081         * modules/time_r (Include): Use "..." syntax.
107082         * modules/xgetdomainname (Include): Add xgetdomainname.h.
107084 2003-10-01  Simon Josefsson  <jas@extundo.com>
107086         * MODULES.html.sh (func_all_modules): Move gethostname from section
107087         'based on' to section 'lacking' POSIX:2001.
107089 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
107091         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
107092         to output mode on the same stream.
107094 2003-09-29  Paul Eggert  <eggert@twinsun.com>
107096         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
107097         Fix arg typo in previous patch.
107099 2003-09-28  Jim Meyering  <jim@meyering.net>
107101         * lib/error.c: Correct cpp indentation.
107103 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107105         * modules/free: New file.
107107 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107109         * m4/free.m4: New file.
107111 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107113         * lib/minmax.h (MIN, MAX)
107114         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
107115         Omit the special code that used __typeof__, since we worry that
107116         it could be more trouble than it's worth.  See:
107117         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
107118         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
107120         * lib/free.c: New file.
107122 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
107124         Trivial fixes to Makefile.am parts of module listings.
107125         * modules/strstr: Append strstr.h to lib_SOURCES.
107126         * modules/strcase: Likewise, for strcase.h.
107128 2003-09-27  Karl Berry  <karl@gnu.org>
107130         * config/mkinstalldirs: update from automake.
107132 2003-09-26  Paul Eggert  <eggert@twinsun.com>
107134         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
107135         (error_tail): Do not loop, reallocating temporary buffer, since
107136         the output cannot contain more wide characters than the input
107137         contains bytes, the size must be big enough already.  This avoids
107138         one potential size overflow calculation.  Check for size overflow
107139         when calculating temporary buffer size.  Free temporary buffer
107140         when done, if it was allocated with malloc; this plugs a memory
107141         leak.  Remove casts from void * to pointers, that are no longer
107142         needed now that we're assuming C89 or better.
107144         Merge error changes from glibc.
107146         * lib/error.c, error.h: Update copyright notice header to match glibc.
107147         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
107148         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
107149         Disable cancellation while printing error.
107150         * lib/error.h: Prepend __ to parameter names.
107152 2003-09-26  Jim Meyering  <jim@meyering.net>
107154         * lib/error.c (error_tail): Move some declarations
107155         into inner scope where the local variables are used.
107157 2003-09-26  Bruno Haible  <bruno@clisp.org>
107159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
107160         stpncpy().
107161         Don't define stpncpy through config.h; it's now done through stpncpy.h.
107163 2003-09-26  Bruno Haible  <bruno@clisp.org>
107165         * lib/stpncpy.h (gnu_stpncpy): New declaration.
107166         (stpncpy): Define as alias for gnu_stpncpy.
107167         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
107169 2003-09-25  Simon Josefsson  <jas@extundo.com>
107171         * lib/xgetdomainname.h: New file.
107172         * lib/xgetdomainname.c: New file.
107174 2003-09-25  Simon Josefsson  <jas@extundo.com>
107175             Bruno Haible  <bruno@clisp.org>
107177         * modules/getdomainname: New file.
107178         * modules/xgetdomainname: New file.
107179         * MODULES.html.sh (func_all_modules): Add getdomainname,
107180         xgetdomainname.
107182 2003-09-25  Simon Josefsson  <jas@extundo.com>
107183             Bruno Haible  <bruno@clisp.org>
107185         * m4/getdomainname.m4: New file.
107187 2003-09-25  Simon Josefsson  <jas@extundo.com>
107188             Bruno Haible  <bruno@clisp.org>
107190         * lib/getdomainname.h: New file.
107191         * lib/getdomainname.c: New file.
107193 2003-09-25  Karl Berry  <karl@gnu.org>
107195         * lib/argp-fmtstream.c, argp-help.c: update from libc.
107197 2003-09-25  Karl Berry  <karl@gnu.org>
107199         * config/install-sh: update from automake.
107201 2003-09-25  Bruno Haible  <bruno@clisp.org>
107203         * modules/version-etc-2: New file, from modules/version-etc with
107204         modifications.
107205         * MODULES.html.sh (func_all_modules): Add version-etc-2.
107207 2003-09-25  Bruno Haible  <bruno@clisp.org>
107209         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
107210         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
107212 2003-09-24  Simon Josefsson  <jas@extundo.com>
107214         * modules/xgethostname: Add xgethostname.h.
107216 2003-09-24  Paul Eggert  <eggert@twinsun.com>
107218         * lib/linebuffer.c (freebuffer): Don't free the argument, just
107219         the buffer associated with the argument.  Bug reported by
107220         Simon Josefsson.
107222 2003-09-24  Paul Eggert  <eggert@twinsun.com>
107224         * README: Document assumptions that 'int' is at least 32 bits
107225         wide, that integer arithmetic is 2's complement without overflow,
107226         that there are no holes in integer values, that adding sizes of
107227         two nonoverlapping objects can't overflow, and that all-bits-zero
107228         yields scalar zero.  Fix spelling and capitalization typos.
107230 2003-09-19  Karl Berry  <karl@gnu.org>
107232         * lib/argp.h: update from libc.
107234 2003-09-17  Paul Eggert  <eggert@twinsun.com>
107236         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
107237         to avoid spurious warnings like "AC_RUN_IFELSE was called before
107238         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
107240 2003-09-17  Paul Eggert  <eggert@twinsun.com>
107242         * gnulib-tool: Use "test -h", not "test -L", for portability
107243         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
107244         (tags_regexp): Remove, since \| doesn't conform to POSIX.
107245         (sed_extract_prog): Issue s commands one-by-one, rather than
107246         using \| in one s command.
107248 2003-09-16  Paul Eggert  <eggert@twinsun.com>
107250         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
107251         input error, instead of returning NULL the next time we are called
107252         (and therefore losing track of errno).
107254 2003-09-16  Bruno Haible  <bruno@clisp.org>
107256         * gnulib-tool (func_create_testdir): Warn about duplicated
107257         dependencies.
107259 2003-09-15  Paul Eggert  <eggert@twinsun.com>
107261         * modules/argmatch, modules/fatal, modules/obstack,
107262         modules/xalloc, modules/xgethostname: Sort dependencies by
107263         importance, not alphabetically.
107265 2003-09-15  Paul Eggert  <eggert@twinsun.com>
107267         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
107268         fails, so that the caller gets the proper errno.
107270         * lib/readutmp.c (read_utmp): Likewise.
107271         Check for fstat error.  Close stream and free storage
107272         when failing.
107274 2003-09-14  Karl Berry  <karl@gnu.org>
107276         * config/srclist.txt (strdup.c): disable for c89 changes.
107278 2003-09-14  Jim Meyering  <jim@meyering.net>
107280         * lib/getloadavg.c: Correct cpp indentation.
107281         * lib/strdup.c: Likewise.
107282         * lib/vasnprintf.c: Likewise.
107284 2003-09-14  Bruno Haible  <bruno@clisp.org>
107286         * modules/fwriteerror: New file.
107287         * MODULES.html.sh (func_all_modules): Add fwriteerror.
107289 2003-09-14  Bruno Haible  <bruno@clisp.org>
107291         * lib/fwriteerror.h: New file.
107292         * lib/fwriteerror.c: New file.
107294 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107296         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
107297         modules/xgethostname, modules/xalloc: Depend on exit.
107299 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107301         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
107303         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
107304         and AC_MINIX, too, so that their extensions are available.
107306         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
107307         This macro has been superseded by gl_BACKUPFILE.
107309         More patches to assume C89 or better.
107311         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
107313         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
107314         unconditionally.
107315         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
107316         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
107317         Include <string.h>, <stdlib.h> unconditionally.
107318         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
107319         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
107320         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
107321         headers or for string.h.
107322         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
107323         or strtoul.
107325         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
107326         headers.
107327         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
107328         * m4/userspec.m4 (gl_USERSPEC): Likewise.
107329         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
107330         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
107331         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107332         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
107333         memcpy, memset.
107334         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
107335         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
107336         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
107337         strtol.
107338         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
107339         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
107340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
107341         strtoul.
107343 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107345         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
107346         * lib/obstack.c [!defined _LIBC]: Likewise.
107347         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
107348         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
107349         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
107351         More changes to assume C89 or better.
107353         * lib/error.c (error_tail): Assume vprintf.
107355         * lib/argmatch.c (getenv): Remove decl.
107356         * lib/progreloc.c (get_full_program_name): Define via prototype.
107357         * lib/setenv.c (clearenv): Likewise.
107358         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
107359         needed.
107360         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
107361         (malloc, memcpy): Remove decls.
107362         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
107363         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
107364         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
107365         (memcpy): Remove macro.
107366         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
107367         (__P): Remove.  All uses removed.
107368         (PTR): Remove.  All uses changed to void *.
107369         (CHAR_BIT, NULL): Remove.
107370         (spaces, zeros, memset_space, memset_zero)
107371         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
107372         Remove.
107373         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
107374         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
107375         Define with prototype.
107376         Remove now-unnecessary prototype decl.
107377         (extra_args_spec): Assume ANSI C.  All uses changed.
107378         (extra_args_spec_iso): Remove.
107379         (my_strftime, emacs_strftimeu): Define via prototype.
107380         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
107381         unconditionally.
107382         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
107383         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
107384         (strtoul, strtol): Remove decls.
107385         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
107386         LONG_MAX): Remove.
107387         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
107388         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
107389         (LOCALE_PARAM_PROTO): New macro.
107390         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
107391         (INTERNAL (strtol), strtol): Define with a prototype.
107392         (PARAMS): Remove.  All uses removed.
107393         * lib/tempname.c: Include <string.h> unconditionally.
107394         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
107395         * lib/xgethostname.c (main): Define with a prototype.
107396         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
107397         Include <stdlib.h> unconditionally.
107398         (calloc, malloc, realloc, free): Remove decls.
107399         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
107400         Include <stdlib.h> unconditionally.  Sort include file names.
107401         (strtod): Remove.
107402         (xstrtod): Define with a prototype.
107403         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
107404         (strtol, strtoul): Remove decls.
107406 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107408         More patches to assume C89 or better.
107409         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
107410         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
107411         string.h, memchr, STDC_HEADERS.
107413 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107415         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
107416         Include <stdlib.h>, <string.h> unconditionally.
107417         Remove now-unnecessary cast to char *.
107418         * lib/strnlen.c: Include <string.h> unconditionally.
107419         * lib/yesno.c (yesno): Define with a prototype.
107421 2003-09-11  Bruno Haible  <bruno@clisp.org>
107423         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
107425 2003-09-10  Jim Meyering  <jim@meyering.net>
107427         * lib/error.c: Correct indentation of cpp directives.
107429 2003-09-10  Bruno Haible  <bruno@clisp.org>
107431         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
107432         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
107433         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
107434         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
107435         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
107436         <stdlib.h> and <string.h> checks.
107437         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
107438         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
107440 2003-09-10  Bruno Haible  <bruno@clisp.org>
107442         * lib/strcspn.c: Include <string.h> unconditionally.
107443         * lib/strpbrk.c: Include <string.h> unconditionally.
107444         * lib/strstr.c: Include <string.h> unconditionally.
107445         * lib/unicodeio.c: Include <string.h> unconditionally.
107446         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
107447         * lib/unsetenv.c: Likewise.
107448         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
107449         * lib/yesno.c: Include <stdlib.h> unconditionally.
107450         (rpmatch): Add prototype.
107452 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107454         More patches to assume C89 or better.
107455         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
107456         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
107457         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
107458         or for string.h.
107459         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
107460         stdlib.h.
107461         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
107462         C headers.
107463         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
107464         string.h.
107465         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
107466         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
107467         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
107468         or for string.h.
107469         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
107470         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
107471         C headers.
107472         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
107473         memcpy.
107474         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
107475         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
107476         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
107477         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
107478         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
107479         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
107480         string.h, free.
107481         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
107482         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
107483         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
107484         C headers, or for string.h.
107485         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
107486         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
107487         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
107488         headers, memory.h, stdlib.h, string.h, strings.h.
107489         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
107490         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
107491         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
107492         strchr.
107493         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
107494         headers, memory.h, string.h.
107495         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
107496         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
107497         free.
107498         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
107499         headers.
107500         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
107501         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
107502         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
107503         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
107504         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
107506 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107508         More K&R removal.
107510         * lib/acosl.c (main): Use a prototype.
107511         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
107512         tanl.c: Likewise.
107514         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
107516         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
107517         (getopt, etopt_long, getopt_long_only, _getopt_internal)
107518         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
107519         with a prototype.
107520         * lib/getopt.c (const): Remove macro.
107521         Include <string.h> unconditionally.
107522         (my_index): Remove; all uses changed to strchr.
107523         (strlen): Remove decl.
107524         (exchange): Remove forward decl; no longer needed.
107525         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
107526         Define with prototype.
107527         * lib/getopt1.c (const): Remove macro.
107528         (getopt_long, getopt_long_only, main): Define with prototype.
107530         * lib/getugroups.c: Include <string.h> unconditionally.
107532         * lib/getusershell.c: Include <stdlib.h> unconditionally.
107533         (getusershell, setusershell, endusershell, readname, main):
107534         Define with prototypes.
107536         * lib/group-member.c: Include group-member.h first.
107537         Include <stdlib.h> unconditionally.
107539         * lib/hard-locale.c: Include hard-locale.h first.
107540         Include <stdlib.h>, <string.h> unconditionally.
107542         * lib/hash.c (free, malloc): Remove decls.
107543         Include <stdlib.h> unconditionally.
107545         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
107546         (getenv): Do not declare.
107548         * lib/idcache.c: Include <string.h> unconditionally.
107550         * lib/long-options.c: Include long-options.h first, to test interface.
107551         Include <stdlib.h> unconditionally.
107553         * lib/makepath.c: Include makepath.h first, to test interface.
107554         Include <stdlib.h> and <string.h> unconditionally.
107556         * lib/linebuffer.c: Include <stdlib.h>.
107557         (free): Remove decl.
107559         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
107560         stddef.h. rpl_malloc returns void *, not char *.
107561         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
107562         prototype.
107564         * lib/md5.h: Include <limits.h> unconditionally.
107565         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
107566         (__P): Remove; all uses removed.
107567         * lib/md5.c: Include "md5.h" first.
107568         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
107569         md5_buffer, md5_process_bytes, md5_process_block):
107570         Define with prototypes.
107571         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
107572         * lib/sha.c: Include "sha.h" first.
107573         Include <stdlib.h>, <string.h> unconditionally.
107575         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
107576         * lib/memcmp.c (__ptr_t): Likewise.
107577         * lib/memrchr.c (__ptr_t): Likewise.
107578         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
107579         Include <string.h> unconditionally.
107580         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
107581         * lib/memchr.c: Include <stdlib.h> unconditionally.
107582         * lib/memchr.c (LONG_MAX): Remove.
107583         * lib/memrchr.c (LONG_MAX): Likewise.
107584         * lib/memchr.c (__memchr): Define via a prototype.
107585         * lib/memrchr.c (__memrchr): Likewise.
107586         * lib/memcmp.c (__P): Remove, and remove all uses.
107587         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
107588         Remove forward decls; no longer needed.
107589         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
107590         Use types required by C89 in prototype.
107592         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
107593         * lib/savedir.c: Likewise.
107594         * lib/mkdir.c (free): Remove decl.
107595         * lib/rmdir.c (rmdir): Define with a prototype.
107596         * lib/savedir.c: Include savedir.h first, to test interface.
107598         * lib/mktime.c (STDC_HEADERS): Remove.
107599         Include <stdlib.h>, <string.h> unconditionally.
107601         * lib/modechange.c: Include <stdlib.h> unconditionally.
107602         (malloc): Remove decl.
107604         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
107605         (free): Remove decl.
107607         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
107608         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
107609         (This type really should be intptr_t, but that's a C99ism.)
107610         (_obstack_memcpy): Remove: all uses changed to memcpy.
107611         Include <string.h> unconditionally.
107612         (struct obstack): Assume __STDC__ for types of members
107613         chunkfun, freefun, extra_arg.
107614         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
107615         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
107616         obstack_begin, obstack_specify_allocation,
107617         obstack_specify_allocation_with_arg, obstack_chunkfun,
107618         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
107619         Remove unprototyped decls and the macros that use them.
107620         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
107621         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
107622         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
107623         (defined __STDC__ && __STDC__)]:
107624         Remove nonprototyped code.
107625         Include <stdlib.h> unconditionally.
107626         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
107627         _obstack_allocated_p, _obstack_free, obstack_free,
107628         _obstack_memory_used, print_and_abort):
107629         Define using prototypes.
107630         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
107631         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
107632         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
107633         obstack_next_free, obstack_object_size, obstack_room) [0]:
107634         Remove unused, unprototyped code.
107636         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
107638         * lib/physmem.c (physmem_total, physmem_available, main): Define
107639         with prototypes.
107641         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
107642         (main): Define with a prototype.
107644         * lib/posixver.c (getenv): Remove decl.
107646         * lib/putenv.c (malloc): Returns void *, not char *.
107647         Include <string.h> unconditionally.
107648         (strchr, memcpy, NULL): Do not define.
107650         * lib/readtokens.c: Include readtokens.h first, to test interface.
107651         Include <stdlib.h>, <string.h> unconditionally.
107652         (init_tokenbuffer): Define with a prototype.
107654         * lib/regex.c (PARAMS): Remove.  All uses removed.
107655         All uses of _RE_ARGS removed, too.
107656         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107657         unconditionally.
107658         (bzero): Assume memset exists.
107659         (memcmp, memcpy, NULL): Remove.
107660         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
107661         char, or assignments to local vars of type signed char.
107662         (init_syntax_once, PREFIX(extract_number_and_incr),
107663         PREFIX(print_partial_compiled_pattern),
107664         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
107665         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
107666         PREFIX(regex_grow_registers), PREFIX(regex_compile),
107667         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
107668         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
107669         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
107670         wcs_compile_range, byte_compile_range, truncate_wchar,
107671         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
107672         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
107673         count_mbs_length, wcs_re_match_2_internal,
107674         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
107675         PREFIX(alt_match_null_string_p),
107676         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
107677         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
107678         regfree, PREFIX(extract_number)): Define with prototype.  Remove
107679         now-unnecessary declaration, if any.
107680         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
107681         regcomp, regexec):
107682         Remove now-unnecessary casts among pointer types.
107683         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
107685         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
107686         (free): Remove decl.
107688         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
107690         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
107691         (free): Remove decl.
107693         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
107694         * lib/xgetcwd.c: Likewise.
107696         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
107697         (free): Remove decl.
107699         * lib/strchrnul.c (strchrnul): Define with a prototype.
107700         Fix bug: c_in was not converted to char before searching.
107702         The following changes are not K&R related:
107704         * lib/group-member.h: Include <sys/types.h>, so that this file is
107705         self-contained.
107706         * lib/makepath.h: Likewise.
107708         * lib/getusershell.c (readname, default_index, line_size, readname):
107709         Use size_t, not int, for sizes.
107710         (readname): If the size overflows, report an error instead of
107711         looping forever.
107713 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107715         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
107716         libc.
107718 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107720         * README: New section: portability guidelines.
107722 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107724         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
107725         C89 spec.
107727 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107729         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
107731 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107733         Assume C89 or better; remove K&R cruft.
107734         A few of these changes were first proposed by Derek Robert Price
107735         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
107737         * lib/addext.c: Include <string.h> unconditionally.
107738         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
107739         Don't declare getenv or malloc.
107741         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
107742         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
107743         (NULL): Remove.
107744         (find_stack_direction, alloca): Use prototypes.
107746         * lib/atexit.c (atexit): Define using a prototype.
107748         * lib/basename.c, dirname.c, stripslash.c:
107749         Include <string.h> unconditionally.
107751         * lib/bcopy.c: Include <stddef.h>.
107752         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
107754         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
107756         * lib/error.h (error, error_at_line, error_print_progname)
107757         [! (defined (__STDC__) && __STDC__)]: Remove decls.
107758         * lib/error.c: Include error.h first, to check interface.
107759         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107760         (VA_START): Remove; all uses changeed to va_start.
107761         (exit, strerror): Remove decls.
107762         (error_print_progname): Prototype uncondionally.
107763         Don't include <errno.h>; no longer needed.
107764         (private_strerror): Remove.
107765         (error_tail): Always define.
107766         (error, error_at_line): Assume C89 or better; always use prototypes.
107767         * lib/fatal.c: Include "fatal.h" first, to test interface.
107768         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107769         (VA_START): Remove; all uses changed to va_start.
107770         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
107771         this case.
107772         (exit): Remove decl.
107773         (fatal): Prototype unconditionally.  Assume va_start works.
107774         Abort at end, to pacify gcc.
107776         * lib/euidaccess.c (main): Define with a prototype.
107778         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
107780         * lib/exitfail.c: Include <stdlib.h> unconditionally.
107782         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
107783         prototypes.
107784         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
107785         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
107786         (getenv): Remove decl.
107787         (fnmatch): Define using a prototype.
107788         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
107789         (FCT): Define using a prototype.
107791         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
107793         * lib/gethostname.c: Include <stddef.h>.
107794         (gethostname): Define with prototype.  Length is size_t, not int.
107796 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107798         Assume C89 or better; remove K&R cruft.
107799         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
107800         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
107801         string.h, getenv, malloc.
107802         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
107803         headers.
107804         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
107805         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
107806         do not check for strerror.
107807         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
107808         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
107809         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
107810         do not check for doprnt or vprintf.
107811         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
107812         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
107814 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107816         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
107817         getversion.c should have been removed then, but was accidentally
107818         preserved.
107820         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
107821         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
107823 2003-09-08  Karl Berry  <karl@gnu.org>
107825         * config/config.sub, config.guess, srclistvars.sh: update from savannah
107826                 config, forget about prep.
107828         * config/depcomp, missing: update from automake.
107830 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107832         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
107833         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107835 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107837         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
107838         copy_tm_result.  Bug reported by Simon Josefsson in
107839         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107841 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107843         * m4/time_r.m4: New file.
107844         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
107845         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
107846         is. Check for timegm declaration.
107847         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
107848         Do not check for gmtime_r.
107849         Replace mktime if __mktime_internal does not exist and if mktime
107850         hasn't been replaced already.
107852 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107854         * lib/time_r.c, lib/time_r.h: New files.
107856         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
107857         __localtime_r.
107858         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
107859         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
107861         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
107862         __gmtime_r.
107863         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
107864         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
107865         Include <time_r.h>.
107867         * lib/timegm.c: Switch to glibc implementation, with the following
107868         changes:
107869         [defined HAVE_CONFIG_H]: Include <config.h>.
107870         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
107871         (__mktime_internal) [!defined _LIBC]: New decl.
107872         (__gmtime_r) [!defined _LIBC]: New macro and function.
107873         (timegm): Use a prototype, since gnulib assumes C89.
107874         Do not bother declaring tmp to be const, as it's not really usefu.
107875         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
107876         (timegm): Declare only if HAVE_DECL_TIMEGM.
107878 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107880         * MODULES.html.sh (func_all_modules): Add time_r.
107881         * modules/time_r: New file.
107882         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
107883         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
107885 2003-09-03  Paul Eggert  <eggert@twinsun.com>
107887         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
107888         Bug reported by Lute Kamstra in
107889         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
107891         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
107892         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
107893         course with correspondingly smaller numbers for tomorrow and
107894         yesterday.  From Tadayoshi Funaba.  Originally installed into
107895         sh-utils on 1999-08-07, but the patch got lost (I guess during the
107896         coreutils merge?).
107898 2003-08-31  Simon Josefsson  <jas@extundo.com>
107900         * modules/timegm: New file.
107901         * MODULES.html.sh (func_all_modules): Add timegm.
107903 2003-08-31  Simon Josefsson  <jas@extundo.com>
107905         * m4/timegm.m4: New file.
107907 2003-08-31  Simon Josefsson  <jas@extundo.com>
107909         * lib/timegm.h: New file.
107910         * lib/timegm.c: New file.  Based on
107911         wget-1.8.2/src/http.c:mktime_from_utc.
107913 2003-08-31  Karl Berry  <karl@gnu.org>
107915         * lib/argp.h: update from libc.
107917 2003-08-28  Bruno Haible  <bruno@clisp.org>
107919         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
107920         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
107921         followed by '#define fnmatch fnmatch_posix' gives an error.
107923 2003-08-28  Bruno Haible  <bruno@clisp.org>
107925         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
107926         warning on QNX, which defines O_BINARY to 000000.
107928 2003-08-27  Jim Meyering  <jim@meyering.net>
107930         * m4/mkstemp.m4: Require that the system mkstemp be able to create
107931         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
107932         would fail after 32.  Reported by Danny Levinson.  Details here:
107933         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
107935 2003-08-24  Bruno Haible  <bruno@clisp.org>
107937         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
107938         MSVC7 <stdio.h> is included later.
107940 2003-08-22  Simon Josefsson  <jas@extundo.com>
107942         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
107944 2003-08-20  Karl Berry  <karl@gnu.org>
107946         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
107948 2003-08-20  Bruno Haible  <bruno@clisp.org>
107950         * modules/progname: New file.
107951         * MODULES.html.sh (func_all_modules): Add progname.
107953 2003-08-20  Bruno Haible  <bruno@clisp.org>
107955         * lib/progname.h: New file, from GNU gettext.
107956         * lib/progname.c: New file, from GNU gettext.
107957         * lib/progreloc.c: New file, from GNU gettext.
107959 2003-08-19  Jim Meyering  <jim@meyering.net>
107961         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
107962         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
107964 2003-08-19  Bruno Haible  <bruno@clisp.org>
107966         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
107967         more.
107969 2003-08-19  Bruno Haible  <bruno@clisp.org>
107971         * lib/xstrdup.c: Assume <string.h> exists.
107973 2003-08-18  Paul Eggert  <eggert@twinsun.com>
107975         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
107976         in makefile rules.
107978 2003-08-18  Jim Meyering  <jim@meyering.net>
107980         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
107981         * m4/lib-ld.m4: Likewise.
107983 2003-08-18  Jim Meyering  <jim@meyering.net>
107985         * lib/setenv.h: Indent nested cpp directive.
107986         * lib/vasnprintf.c: Remove trailing blanks.
107988 2003-08-17  Simon Josefsson  <jas@extundo.com>
107990         * modules/xstrndup: New file.
107991         * MODULES.html.sh (func_all_modules): Add xstrndup.
107993 2003-08-17  Simon Josefsson  <jas@extundo.com>
107995         * modules/argp: Fix autoconf macro name. Add more dependencies.
107997 2003-08-17  Simon Josefsson  <jas@extundo.com>
107999         * m4/xstrndup.m4: New file.
108001 2003-08-17  Simon Josefsson  <jas@extundo.com>
108003         * m4/argp.m4: New file.
108005 2003-08-17  Simon Josefsson  <jas@extundo.com>
108006             Bruno Haible  <bruno@clisp.org>
108008         * lib/xstrndup.h: New file.
108009         * lib/xstrndup.c: New file.
108011 2003-08-17  Bruno Haible  <bruno@clisp.org>
108013         * modules/strndup (Files, Include): Add lib/strndup.h.
108015 2003-08-17  Bruno Haible  <bruno@clisp.org>
108017         * modules/euidaccess (Files): Add lib/euidaccess.h.
108019 2003-08-17  Bruno Haible  <bruno@clisp.org>
108021         * lib/strndup.h: New file.
108023 2003-08-17  Bruno Haible  <bruno@clisp.org>
108025         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
108026         like AC_GNU_SOURCE.
108027         * modules/extensions (configure.ac): Comment out the invocation of
108028         gl_USE_SYSTEM_EXTENSIONS.
108030 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108032         Merges from coreutils, etc.
108033         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
108034         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
108035         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
108036         fixing a typo.
108037         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
108038         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
108040 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108042         Document merge from coreutils.
108043         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
108044         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
108045         * modules/utime: Add m4/utimes-null.m4.
108047 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108049         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
108050         space, undoing this 2003-08-12 change:
108051         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108053 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108055         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
108056         strtoul.c from libc, undoing this 2003-08-12 change:
108057         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108059 2003-08-16  Jim Meyering  <jim@meyering.net>
108061         Merges from coreutils.
108062         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
108063         prefix.  Adjust cache variables similarly.  Create 500 rather than
108064         just 300 files, to exercise bug on Darwin6.5, too.
108065         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
108066         $missing_dir.
108067         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
108068         AM_SYS_POSIX_TERMIOS.
108069         Reported by mkc@mathdogs.com.
108070         Also change use of $am_cv_sys_posix_termios
108071         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
108072         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
108073         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
108074         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
108075         in /proc/mounts until it finds one with matching device number.  This
108076         is unnecessary when the FILE argument *is* a mount point.  No stat call
108077         is necessary in that case.  So, disable the statvfs-testing code on
108078         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
108079         as RedHat bug# 84846.
108080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108081         to 1MB, so as not to render systems with no stack size limit (e.g.,
108082         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108083         Include <unistd.h>.  On some systems,
108084         it is required for the definition of _SC_PAGESIZE.
108086 2003-08-16  Jim Meyering  <jim@meyering.net>
108088         Merge from coreutils.
108089         * lib/xstrtoimax.c: #else #if -> #elif.
108090         * lib/xstrtoumax.c: Likewise.
108092 2003-08-16  Jim Meyering  <jim@meyering.net>
108094         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
108095         * m4/utimes.m4: Removed.
108096         * m4/utimes-null.m4: Renamed from utimes.m4.
108098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108099         to 1MB, so as not to render systems with no stack size limit (e.g.,
108100         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108101         Include <unistd.h>.  On some systems,
108102         it is required for the definition of _SC_PAGESIZE.
108104 2003-08-16  Jim Meyering  <jim@meyering.net>
108105         and Paul Eggert  <eggert@cs.ucla.edu>
108107         Merges from coreutils, etc.
108109         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
108110         using the latest version from cvs.  This avoids problems with #line
108111         directives using a vendor (Sun) compiler.
108112         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
108113         Don't set GETGROUPS_LIB here; now it's
108114         done via getgroups.m4's wrapper function.
108115         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
108116         rather than just in sh-util/configure.in, so that the
108117         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
108118         same.
108119         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
108120         AC_FUNC_GETLOADAVG where to find getloadavg.c.
108121         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
108122         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
108123         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
108124         Remove code that is now done by the newly-required macros.
108125         Append $(EXEEXT) to DF_PROG.
108126         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
108127         Do not invoke or require the following here,
108128         since prereq.m4 or some gnulib .m4 now does this for us:
108129         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
108130         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
108131         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
108132         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
108133         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
108134         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
108135         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
108136         AC_FUNC_OBSTACK.
108137         Do not replace the following functions, as this is now the job
108138         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
108139         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
108140         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
108141         atexit getpass, strdup, getpagesize.
108142         Replace 'raise'.
108143         Do not check for the following functions, as this is now the job
108144         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
108145         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
108146         setregid.
108147         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
108148         Check for sys/sysctl.h.
108149         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
108150         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
108151         of checking for ssize_t ourselves.
108153         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
108154         Require every macro that gnulib/modules/* suggests for us.
108155         (jm_PREREQ_ADDEXT): New macro.
108156         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
108157         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
108159         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
108160         (gl_PHYSMEM): Use it.
108161         Also check for `table' function.
108162         Check for new headers and functions.
108163         Add check for sys/sysmp.h.
108164         With suggestions from Kaveh Ghazi.
108165         Ignore headers that are present but cannot be compiled.  This
108166         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
108167         C 5.4.
108169 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108171         Document merge from coreutils.
108172         * modules/userspec: Depend on posixver.
108173         * modules/strftime: Depend on tzset.
108175 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108177         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
108178         rather than tab, after '#' in shell-script copyright notices.
108179         Suggested by Bruno Haible.
108181 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108183         * config/srclist-update: Use three spaces, rather than tab, after '#'
108184         in shell-script copyright notices.  Suggested by Bruno Haible.
108185         Remove unnecessary parenthesization in regular expression.
108187 2003-08-15  Jim Meyering  <jim@meyering.net>
108189         Merge from coreutils.
108190         * lib/xgethostname.c: Include <stdlib.h>.
108191         (xghostname): Don't exit for anything other than memory-related
108192         failure; just return NULL.
108193         * lib/userspec.c: Include "posixver.h".
108194         (parse_user_spec): Accept `.' as a separator only
108195         in pre-POSIX-200112 mode.
108196         * lib/strtoimax.c: Use #elif rather than #else #if.
108197         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
108198         Remove function, now that we can rely on a working tzset function.
108199         [!_LIBC]: Ensure that the required autoconf test has been run.
108200         [!defined _NL_CURRENT && HAVE_STRFTIME]:
108201         Use underlying_strftime for %r.
108202         * lib/sha.c: Merge in some clean-up and optimization changes from
108203         glibc.
108204         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
108205         Ensure that it is a multiple of 64.
108206         Rearrange loop exit tests so as to avoid performing an
108207         additional fread after encountering an error or EOF.
108208         * lib/realloc.c: Update copyright date.
108210 2003-08-15  Jim Meyering  <jim@meyering.net>
108211         and Paul Eggert  <eggert@twinsun.com>
108213         Merge from coreutils.
108214         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
108215         member but strut utmpx does not.  Needed for AIX 4.3.3.
108216         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
108218 2003-08-15  Jim Meyering  <jim@meyering.net>
108219         and Paul Eggert  <eggert@cs.ucla.edu>
108221         Merges from coreutils, etc.
108222         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
108223         Require gl_FUNC_TZSET_CLOBBER.
108224         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
108225         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
108226         members.
108228 2003-08-14  Paul Eggert  <eggert@twinsun.com>
108230         Help the merge from coreutils.
108231         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
108232         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
108233         * m4/tzset.m4: Use it too.
108235 2003-08-14  Paul Eggert  <eggert@twinsun.com>
108237         * modules/tzset: New file.
108239 2003-08-14  Jim Meyering  <jim@meyering.net>
108241         Merges from coreutils.
108242         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
108243         variable names, rather than @FNMATCH_H@.
108244         * modules/alloca: Likewise for $(ALLOCA_H).
108246         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
108247         the three copies of the literal target, `fnmatch.h'.
108248         * modules/alloca (alloca.h): Likewise.
108250 2003-08-14  Jim Meyering  <jim@meyering.net>
108252         Merge from coreutils.
108253         * m4/tzset.m4: New file.
108254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
108255         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
108256         otherwise, AIX 5.1 systems would end up using the latter.
108257         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
108258         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
108259         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
108260         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
108262 2003-08-14  Jim Meyering  <jim@meyering.net>
108264         Merge from coreutils.
108265         * lib/obstack.h: Whitespace changes.
108266         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
108267         and xcalloc return values.
108268         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
108269         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
108270         hang on OSF/1 5.1 for DIR on both local and remote file systems.
108271         Reported by (and fix confirmed by) Nelson H. F. Beebe.
108272         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
108273         error from mntctl.
108274         Use mntctl's return value to drive the entry-processing loop, since
108275         we can't rely on the value of the vmt_length member in the last
108276         entry.  On some systems doing so could result in exhausting
108277         virtual memory.  Based in part on a patch from Mike Jetzer.
108279 2003-08-14  Jim Meyering  <jim@meyering.net>
108280         and Paul Eggert  <eggert@twinsun.com>
108282         Merges from coreutils, plus other fixes.
108283         * lib/physmem.c: Merge in portability changes from gcc/libiberty
108284         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
108285         for credits and details.  Thanks to Kaveh Ghazi for helping
108286         to keep these files in sync.
108287         (ARRAY_SIZE): Define it.
108288         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
108289         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
108290         (memcasecmp): Don't assume size_t fits in unsigned int.
108291         Remove casts and duplicate code.
108292         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
108293         (memcpy): Remove definition.
108294         Merge in some clean-up and optimization changes from glibc.
108295         [BLOCKSIZE]: Move definition to top of file.
108296         Ensure that it is a multiple of 64.
108297         Rearrange loop exit tests so as to avoid performing an
108298         additional fread after encountering an error or EOF.
108299         * lib/md5.h (md5_uintptr): Define.
108300         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
108301         return to the initial working directory.  Preserve errno
108302         for caller.
108303         * lib/idcache.c: Include "xalloc.h".
108304         (xmalloc, xrealloc): Remove decls.
108305         (getuser): Remove casts no longer required in C89.
108306         * lib/human.c: Include stdio.h, for sprintf.
108307         * lib/group-member.c: Include "xalloc.h".
108308         (xmalloc, xrealloc): Remove decls.
108309         (get_group_info): Remove casts no longer required in C89.
108310         * lib/getusershell.c (readname): Remove casts no longer required in
108311         C89.
108312         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
108313         * lib/getline.c: Whitespace fix, from coreutils.
108315 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108317         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
108318         Check for isascii.
108320         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
108321         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
108322         Undo previous (whitespace-only) change.
108324 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108326         * lib/exclude.c: Include <ctype.h>
108327         (IN_CTYPE_DOMAIN): New macro.
108328         (is_space): New fn.
108329         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
108330         and empty lines.
108332         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
108333         Undo previous (whitespace-only) change.
108335 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108337         * config/srclist-update: Change update back to the old behavior,
108338         leaving whitespace alone.  Use one 'sed' command rather than a
108339         pipeline.
108340         (fixlicense): Now a variable, not a function.
108341         (remove_trailing_blanks): Remove.
108342         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
108343         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
108344         Undo previous (whitespace-only) change.
108346 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108348         Merge from coreutils.
108349         * modules/euidaccess: Add lib_SOURCES, include for new
108350         file euidaccess.h
108352 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108354         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
108355         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
108356         Normalize leading white space and remove trailing white space.
108358         Merge from coreutils
108359         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
108361         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
108362         0.12.1.  These files are now being upgraded automatically by
108363         ../config/srclist-update.
108365 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108367         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
108368         Normalize leading white space and remove trailing white space.
108369         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
108370         notice, as per ../config/srclist-update.
108372         Merge from coreutils.
108373         * lib/euidaccess.h: New file.
108374         * lib/euidaccess.c: Include it.
108375         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
108376         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
108377         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
108379 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108381         * config/srclist-update: Add copyright notice.
108382         (remove_id_lines, remove_trailing_blanks): New constants.
108383         (fixfile): Use them to normalize spacing a bit in copied files.
108384         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
108385         Normalize leading white space and remove trailing white space.
108387         * config/texinfo.tex: Sync with texinfo.
108389         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
108390         strtoul.c from libc, to merge coreutils whitespace changes.
108392         * config/srclist.txt: Get the following m4 files from gettext:
108393         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
108394         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
108395         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
108396         wint_t.m4.
108398 2003-08-12  Karl Berry  <karl@gnu.org>
108400         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
108401         been made.
108403 2003-08-11  Paul Eggert  <eggert@twinsun.com>
108405         * modules/gnu-source, m4/gnu-source.m4:
108406         Remove; we're assuming Autoconf 2.54 or later now.
108407         Suggested by Bruno Haible.
108408         * MODULES.html.sh (func_all_modules): Remove gnu-source.
108410 2003-08-11  Bruno Haible  <bruno@clisp.org>
108412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
108414 2003-08-11  Bruno Haible  <bruno@clisp.org>
108416         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
108417         (vasnprintf): Use it instead of wcslen.
108419 2003-08-11  Bruno Haible  <bruno@clisp.org>
108421         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
108422         value to ensure that _Bool promotes to int. Use #define for _Bool when
108423         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
108425 2003-08-10  Karl Berry  <karl@gnu.org>
108427         * lib/regex.h: update from libc (whitespace fix).
108429 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108431         Merge some files from coreutils.  These changes were
108432         originally made by Jim Meyering.
108433         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
108434         many older Unixes require this.
108435         * lib/alloca.c (alloca): Remove cast to argument of free;
108436         no longer needed in C89.
108437         * lib/alloca_.h, regex.h: Fix white space to match
108438         what GNU indent does.
108440 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108442         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
108443         apparently Emacs's Unicode mode got confused before my 2003-08-05
108444         checkin.
108446 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108448         * m4/extensions.m4: New file.
108449         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
108450         Require gl_USE_SYSTEM_EXTENSIONS.
108451         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
108452         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
108454 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108456         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
108457         * modules/extensions, modules/gnu-source: New files.
108458         * modules/timespec, modules/unlocked-io: Depend on extensions.
108460 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108462         * modules/restrict: New file.
108463         * MODULES.html.sh (func_all_modules): Add restrict.
108464         * modules/regex: Depend on restrict.
108466 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108468         * m4/restrict.m4: New file.
108469         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
108471 2003-08-07  Bruno Haible  <bruno@clisp.org>
108473         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
108474         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
108476 2003-08-07  Bruno Haible  <bruno@clisp.org>
108478         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
108479         makes the module 'getndelim2' compatible with the module 'getline'.
108481 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108483         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
108484         byte with "\201" to avoid glitches when editing that source file
108485         with multi-gnome-terminal.
108487 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108489         * lib/bumpalloc.h: Remove.
108491 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108493         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
108494         * modules/bumpalloc: Remove.
108496 2003-08-04  Paul Eggert  <eggert@twinsun.com>
108498         * lib/getloadavg.c: Change copyright notice and spacing to conform to
108499         GNU coding style.
108501         Merge from coreutils.
108502         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
108503         1. From glibc.
108504         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
108505         from Karl Berry, implemented by Jim Meyering.
108506         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
108507         from Dmitry V. Levin.
108508         Remove anachronistic cast of xrealloc.
108509         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
108510         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
108511         type. Otherwise, it wouldn't compile with at least /bin/cc on
108512         ymp-cray-unicos9.0.2.X.
108513         Combine two mostly-identical uses of alloca into one.
108514         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
108516 2003-08-04  Dave Love  <d.love@dl.ac.uk>
108518         [From Emacs.]
108520         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
108521         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
108522         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
108523         obsolete NLIST_NAME_UNION.
108524         [__GNU__]: Undef BSD and FSCALE.
108525         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
108527 2003-08-03  Paul Eggert  <eggert@twinsun.com>
108529         * lib/stdbool_.h (_Bool): Make it signed char, instead of
108530         an enum type, so that it's guaranteed to promote to int.  See:
108531         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
108533 2003-08-03  Karl Berry  <karl@gnu.org>
108535         * config/depcomp: update from automake.
108537 2003-07-31  Paul Eggert  <eggert@twinsun.com>
108539         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
108540         (strerror): Don't assume that a printable int fits in 14 bytes.
108542 2003-07-31  Bruno Haible  <bruno@clisp.org>
108544         * modules/getpass-gnu: New file.
108545         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
108547 2003-07-31  Bruno Haible  <bruno@clisp.org>
108549         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
108551 2003-07-24  Karl Berry  <karl@gnu.org>
108553         * config/missing: update from automake.
108555 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
108556             Bruno Haible  <bruno@clisp.org>
108558         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
108559         * lib/getline.c (getline, getdelim): Likewise.
108560         Remove _GNU_SOURCE define; now it's defined in config.h through
108561         m4/getline.m4.
108563 2003-07-23  Karl Berry  <karl@gnu.org>
108565         * config/config.sub: update from prep.
108567 2003-07-22  Paul Eggert  <eggert@twinsun.com>
108569         * modules/xalloc (Depends-on): Add exitfail.
108570         * modules/xmemcoll: Likewise.
108572 2003-07-22  Paul Eggert  <eggert@twinsun.com>
108574         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
108575         over-parenthesization in macros.
108577         Sync with coreutils.
108579         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
108580         required by C99.
108582         Use `exit_failure' for xalloc and xmemcoll instead of their own
108583         private exit-failure variables.
108584         * lib/xalloc.h (xalloc_exit_failure): Remove.
108585         * lib/xmalloc.c: Likewise.  Include exitfail.h.
108586         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
108587         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
108588         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
108589         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
108591 2003-07-20  Jim Meyering  <jim@meyering.net>
108593         * modules/closeout (Depends-on): Add exitfail.
108594         Suggestion from Bruno Haible.
108596 2003-07-19  Karl Berry  <karl@gnu.org>
108598         * config/config.sub: update from prep.
108600 2003-07-18  Paul Eggert  <eggert@twinsun.com>
108602         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
108603         Remove.
108604         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
108605         to test that it can stand by itself.  Include "exitfail.h".
108606         Clients should set exit_failure instead.
108607         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
108609 2003-07-18  Bruno Haible  <bruno@clisp.org>
108611         * modules/getndelim2: New file.
108612         * modules/getline: Share files with module getndelim2.
108613         * modules/getnline: Depend on getndelim2 instead of sharing files with
108614         it. Add getnline.c to lib_SOURCES.
108615         * MODULES.html.sh (func_all_modules): Add getndelim2.
108617 2003-07-18  Bruno Haible  <bruno@clisp.org>
108619         * m4/getndelim2.m4: New file.
108620         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
108621         invoke gl_PREREQ_GETNDELIM2.
108622         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
108623         gl_PREREQ_GETNDELIM2.
108624         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
108625         gl_GETNDELIM2.
108627 2003-07-18  Bruno Haible  <bruno@clisp.org>
108629         * lib/getndelim2.h: New file.
108630         * lib/getndelim2.c: Make into a module of its own. Include config.h,
108631         getndelim2.h.
108632         (getndelim2): Make non-static. Change return type to ssize_t.
108633         * lib/getline.h: Change argument names.
108634         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
108635         * lib/getnline.c: Include getndelim2.h.
108637 2003-07-18  Andreas Schwab  <schwab@suse.de>
108639         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
108641 2003-07-17  Karl Berry  <karl@gnu.org>
108643         * config/config.sub: update from prep.
108645 2003-07-17  Bruno Haible  <bruno@clisp.org>
108647         * modules/getnline: New file.
108648         * modules/getline: Add lib/getndelim2.c to source file list.
108649         * MODULES.html.sh (func_all_modules): Add getnline.
108651 2003-07-17  Bruno Haible  <bruno@clisp.org>
108653         * m4/getnline.m4: New file.
108655 2003-07-17  Bruno Haible  <bruno@clisp.org>
108657         * m4/Makefile.am.in: Remove file.
108658         * m4/Makefile.am: Remove file.
108659         * m4/Makefile.in: Remove file.
108661 2003-07-17  Bruno Haible  <bruno@clisp.org>
108663         * lib/getnline.h: New file.
108664         * lib/getnline.c: New file.
108665         * lib/getndelim2.c: New file, extracted from getline.c.
108666         (getndelim2): Renamed from getdelim2, with added nmax argument.
108667         * lib/getline.c: Include getndelim2.c.
108668         (getdelim2): Moved out to getndelim2.c.
108669         (getline, getdelim): Update.
108671 2003-07-17  Bruno Haible  <bruno@clisp.org>
108673         * lib/Makefile.am: Remove file.
108674         * lib/Makefile.in: Remove file.
108676 2003-07-17  Bruno Haible  <bruno@clisp.org>
108678         * configure.in: Remove file.
108679         * Makefile.in: Remove file.
108681 2003-07-17  Bruno Haible  <bruno@clisp.org>
108683         * MODULES.html.sh: Put the </BODY> right before </HTML>.
108685 2003-07-16  Karl Berry  <karl@gnu.org>
108687         * config/srclist-update: was running fixlicense twice, which caused
108688                 texinfo.tex to be nullified for some reason.  Simplify,
108689                 $gplsrc is no longer needed as far as I can see?
108691 2003-07-16  Jim Meyering  <jim@meyering.net>
108693         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
108695 2003-07-15  Paul Eggert  <eggert@twinsun.com>
108697         * config/srclist.txt: Get the following files from gettext-runtime/intl
108698         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
108699         ref-del.sin.  From Bruno Haible.
108700         * config/srclist-update (fixfile): Change grep pattern again, since the
108701         previous fix didn't work (there was another trailing $).  Use
108702         '[$]' to escape the $s.
108704 2003-07-15  Karl Berry  <karl@gnu.org>
108706         * lib/vasnprintf.c: update from gettext.
108708 2003-07-15  Karl Berry  <karl@gnu.org>
108710         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
108711         gets expanded when surrounded by '$'.
108713 2003-07-15  Jim Meyering  <jim@meyering.net>
108715         * modules/save-cwd: Don't depend on error.  From Derek Price.
108717 2003-07-15  Jim Meyering  <jim@meyering.net>
108719         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
108721 2003-07-14  Simon Josefsson  <jas@extundo.com>
108723         * modules/mempcpy: New file.
108724         * MODULES.html.sh (func_all_modules): Add mempcpy.
108726 2003-07-14  Simon Josefsson  <jas@extundo.com>
108728         * m4/mempcpy.m4: New file.
108730 2003-07-14  Simon Josefsson  <jas@extundo.com>
108732         * lib/mempcpy.h: New file.
108733         * lib/mempcpy.c: New file.
108735 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108737         * modules/getdate, modules/posixtm: Depend on mktime.
108739 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108741         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
108742         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
108743         unicodeio.c, unicodeio.h, unlocked-io.h:
108744         Switch from LGPL to GPL.
108746 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108748         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
108749         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
108750         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
108751         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
108752         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
108753         updated automatically by ../config/srclist-update.  This changes
108754         their license from LPGL to GPL.
108756 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108758         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
108759         assumed to refer to the root of the most recent stable gettext version.
108760         * config/srclistvars.sh: Add defaults for eggert.
108761         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
108762         Match "This program" as well as "The program".  This is needed
108763         for gettext.
108765 2003-07-14  Jim Meyering  <jim@meyering.net>
108767         Don't emit diagnostics.  Let callers do that.
108768         * lib/save-cwd.c: Don't include "error.h".
108769         (save_cwd): Don't call error.  Ensure that errno is valid
108770         when returning nonzero.
108772         * lib/save-cwd.h (restore_cwd): Update prototype.
108773         * lib/save-cwd.c (restore_cwd): Remove two parameters.
108774         Simplify.  Don't call error upon failure.  Let callers do that.
108775         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
108776         when auditing is enabled.  But don't bother updating the #if.
108778 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
108780         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
108781         it breaks C++ compilation.
108782         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
108784 2003-07-10  Simon Josefsson  <jas@extundo.com>
108786         * modules/strchrnul (Makefile.am): Add strchrnul.h.
108788 2003-07-10  Jim Meyering  <jim@meyering.net>
108790         * m4/clock_time.m4: Remove trailing blank.
108791         * m4/intmax_t.m4: Likewise.
108793 2003-07-10  Jim Meyering  <jim@meyering.net>
108795         * lib/vasnprintf.c: Remove trailing blanks.
108796         Make cpp indentation consistent.
108798 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108800         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
108801         posixver.c, strftime.c, strnlen.c, strverscmp.c:
108802         Switch from LGPL to GPL.
108804 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108806         * config/srclist.txt: Sort sublists.  Add
108807         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
108808         that differ from gnulib for one reason or another; we'd like this list
108809         to be smaller but for now let's document what we have.
108811 2003-07-08  Paul Eggert  <eggert@twinsun.com>
108813         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
108814         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
108815         and sweeter "eval x=$x".
108816         * config/srclist.txt: Get lib/argp* from glibc.
108818 2003-07-07  Paul Eggert  <eggert@twinsun.com>
108820         * lib/mktime.c: Fix some boundary cases and remove need for floating
108821         point.
108823         Issue a compile-time diagnostic if time_t is floating point, or if
108824         two's complement arithmetic is not in effect, or if arithmetic
108825         right shift does not propagate the sign.  These assumptions were
108826         all in the original code but they weren't checked.
108828         (TIME_T_MIDPOINT, verify): New macros.
108829         (__isleap): Remove; it has integer overflow problems.
108830         (leapyear): New function, without those problems.
108831         (ydhms_tm_diff): Remove; splitting into two parts.
108832         (ydhms_diff): New function, containing the arithmetic part of
108833         the old ydhms_tm_diff function.  Issue a compile-time
108834         diagnostic if we are not using C99 integer division.
108835         Avoid casts when possible.
108836         (guess_time_tm): New function, containing the checking part of
108837         the old ydhms_tm_diff function.  Return the new value, rather than
108838         the difference between it and the old.  Accept a new argument T
108839         so that *T specifies the old value.  Check for overflow in the result.
108841         (__mktime_internal): Use a time_t offset, not a long int offset.
108842         This undoes the 2003-06-04 change, which is no longer needed now
108843         that we have better overflow checking.
108844         (localtime_offset): Likewise.
108846         (__mktime_internal): Avoid harmful overflow on hosts where time_t
108847         and long are 64-bit but int is only 32-bit.
108848         (ydhms_diff): Use long int to store year1 and yday1.
108849         Issue a compile-time diagnostic if long int is not wide enough.
108851         (__mktime_internal): Use long int to store adjusted year and yday.
108852         Use plain C rather than preprocessor commands, if that doesn't
108853         affect efficiency.
108854         Check for overflow (and try to repair) after each probe
108855         rather than checking only at the very end.  This avoids some bugs
108856         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
108857         does not equal GMT offset at maximum time).
108858         Use integer to check for overflow rather than floating point; this
108859         is more portable to non-IEEE hosts, and is a tad faster.
108860         When we detect that we are oscillating between two values,
108861         don't check whether tm_isdst has the requested value, since
108862         we already know the answer.  When tm_isdst has the wrong value,
108863         use a different heuristic to find the right one, based on the
108864         extreme values actually observed in practice in tz2003a,
108865         rather than the (overly optimistic) "previous 3 calendar quarters".
108867         (not_equal_tm, print_tm, check_result): Use "const T" rather than
108868         "T const" to accommodate glibc style.
108869         (check_result): Use less-confusing report format.  "long" -> "long int.
108870         (main): Likewise.
108871         Don't loop if the iteration overflows time_t.
108872         Allow a negative step in the iteration.
108874 2003-07-06  Karl Berry  <karl@gnu.org>
108876         * config/depcomp: update from automake.
108877         * config/config.sub: update from prep.
108879 2003-07-03  Karl Berry  <karl@gnu.org>
108881         * config/config.guess: update from prep.
108883 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108885         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
108886         xreadlink.c now includes it unconditionally.
108888 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108890         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
108891         having it depend on HAVE_SYS_TYPES_H.
108893 2003-07-01  Bruno Haible  <bruno@clisp.org>
108895         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
108896         <sys/types.h> should be sufficient.
108897         Reported by Paul Eggert.
108899 2003-06-26  Karl Berry  <karl@gnu.org>
108901         * config/depcomp: update from automake.
108903 2003-06-26  Bruno Haible  <bruno@clisp.org>
108905         * modules/human: Depend on module stdbool.
108907 2003-06-25  Bruno Haible  <bruno@clisp.org>
108909         * modules/readlink: New file.
108910         * modules/xreadlink: Depend on it.
108911         * MODULES.html.sh (func_all_modules): Add readlink.
108913 2003-06-25  Bruno Haible  <bruno@clisp.org>
108915         * m4/readlink.m4: New file.
108917 2003-06-25  Bruno Haible  <bruno@clisp.org>
108919         * lib/readlink.c: New file.
108921 2003-06-22  Karl Berry  <karl@gnu.org>
108923         * config/srclist.txt: update mkinstalldirs from automake.
108924         * config/mkinstalldirs: update.
108926 2003-06-22  Bruno Haible  <bruno@clisp.org>
108928         Portability to mingw32.
108929         * m4/ssize_t.m4: New file, from GNU gettext.
108930         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
108931         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
108933 2003-06-22  Bruno Haible  <bruno@clisp.org>
108935         * modules/safe-read: Add m4/ssize_t.m4.
108936         * modules/xreadlink: Add m4/ssize_t.m4.
108938 2003-06-20  Bruno Haible  <bruno@clisp.org>
108940         Assume C89, so PARAMS isn't needed.
108941         * lib/unicodeio.h (PARAMS): Remove.
108942         * lib/unicodeio.c: Don't use PARAMS.
108944 2003-06-18  Karl Berry  <karl@gnu.org>
108946         * config/config.{guess,sub}: update from prep.
108948 2003-06-18  Jim Meyering  <jim@meyering.net>
108950         Merge changes from coreutils.
108951         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
108952         Remove explicit declarations of xmalloc and realloc.
108953         Include xalloc.h.
108954         (read_utmp): Remove anachronistic cast of xmalloc.
108956 2003-06-17  Paul Eggert  <eggert@twinsun.com>
108958         Assume C89, so PARAMS isn't needed.
108959         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
108960         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
108961         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
108962         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
108963         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
108964         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
108965         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
108966         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
108967         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
108968         lib/xstrtod.h, lib/xstrtol.h: Likewise.
108969         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
108970         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
108971         no longer needed. Anyway, config.h should always be included before any
108972         other file.
108974 2003-06-11  Simon Josefsson  <jas@extundo.com>
108976         * modules/sysexits: New file.
108977         * MODULES.html.sh (func_all_modules): Add sysexits.
108979 2003-06-11  Simon Josefsson  <jas@extundo.com>
108981         * lib/sysexit_.h: New file.
108983 2003-06-11  Derek Price  <derek@ximbiot.com>
108985         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
108986         necessary.
108988 2003-06-11  Bruno Haible  <bruno@clisp.org>
108990         * m4/sysexits.m4: New file.
108992 2003-06-10  Simon Josefsson  <jas@extundo.com>
108994         * lib/argp.h: New file, from glibc.
108995         * lib/argp-ba.c: New file, from glibc.
108996         * lib/argp-eexst.c: New file, from glibc.
108997         * lib/argp-fmtstream.c: New file, from glibc.
108998         * lib/argp-fmtstream.h: New file, from glibc.
108999         * lib/argp-fs-xinl.c: New file, from glibc.
109000         * lib/argp-help.c: New file, from glibc.
109001         * lib/argp-namefrob.h: New file, from glibc.
109002         * lib/argp-parse.c: New file, from glibc.
109003         * lib/argp-pv.c: New file, from glibc.
109004         * lib/argp-pvh.c: New file, from glibc.
109005         * lib/argp-xinl.c: New file, from glibc.
109007 2003-06-10  Simon Josefsson  <jas@extundo.com>
109009         * modules/strchrnul: New file.
109011 2003-06-10  Simon Josefsson  <jas@extundo.com>
109013         * modules/argp: New file.
109015 2003-06-10  Simon Josefsson  <jas@extundo.com>
109017         * m4/strchrnul.m4: New file.
109019 2003-06-10  Simon Josefsson  <jas@extundo.com>
109021         * lib/strchrnul.h: New file.
109022         * lib/strchrnul.c: New file.
109024 2003-06-10  Bruno Haible  <bruno@clisp.org>
109026         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
109028 2003-06-07  Karl Berry  <karl@gnu.org>
109030         * config/config.{guess,sub}: update from prep.
109032 2003-06-07  Jim Meyering  <jim@meyering.net>
109034         * modules/strtod: Use $(...) notation, not @...@ for
109035         AC_REPLACE'd variables.
109036         * modules/localcharset: Likewise.
109038 2003-06-07  Jim Meyering  <jim@meyering.net>
109040         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
109041         in place of my name in the copyright comment.
109042         Remove definition and uses of __P.
109044         From coreutils.
109045         * lib/stat.c: Don't declare xmalloc explicitly.
109046         Instead, include "xalloc.h".
109047         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
109048         xrealloc, and xcalloc return values.
109049         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
109050         Improve comment.
109051         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
109053 2003-06-07  Bruno Haible  <bruno@clisp.org>
109055         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
109056         avoid AC_CONFIG_LINKS.
109057         * modules/fnmatch (Makefile.am): Use explicit creation rule for
109058         fnmatch.h, to avoid AC_CONFIG_LINKS.
109059         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
109061 2003-06-07  Bruno Haible  <bruno@clisp.org>
109063         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
109064         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
109065         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109066         directory.
109067         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
109068         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109069         directory.
109071 2003-06-06  Jim Meyering  <jim@meyering.net>
109073         Merge from coreutils.
109074         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
109075         Consolidate declarations and initializations of *_base* locals.
109077         Merge from coreutils.
109078         This avoids a core dump on systems without GNU putenv,
109079         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
109080         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
109081         (unsetenv): New static function, from GNU libc.
109082         (rpl_putenv): Use it.
109084         * lib/modechange.c: Remove trailing blanks.
109086         Merge from coreutils.
109087         * lib/fsusage.c: Remove declaration of statfs.
109088         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
109090         * lib/posixtm.c: Include <stdbool.h> unconditionally.
109092 2003-06-06  Jim Meyering  <jim@meyering.net>
109094         * lib/stdbool_.h: Renamed from stdbool.h.in.
109096 2003-06-06  Jim Meyering  <jim@meyering.net>
109097             Bruno Haible  <bruno@clisp.org>
109099         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
109100         Adjust Makefile.am snippet not to redirect directly to target.
109101         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
109103 2003-06-05  Paul Eggert  <eggert@twinsun.com>
109105         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
109106         mismatch, look in future quarters as well as past.  This fixes a
109107         bug when processing fall-backwards gaps immediately after a long
109108         period of daylight-saving time.
109110         * lib/mktime.c: Assume freestanding C89 or better.
109111         (HAVE_LIMITS_H): Remove.  Assume it's 1.
109112         (__P): Remove; not used.
109113         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
109114         (mktime, not_equal_tm, print_tm, check_result,
109115         main): Use prototypes.  Use const * where appropriate.
109116         (main): Fix typo in testing code that uncovered by above changes.
109117         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
109119 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109121         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
109122         locale.h, localeconv.  This merges changes from coreutils.
109124         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
109125         It can be removed after the next Autoconf is released.
109126         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
109127         needed.
109129 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109131         * lib/mktime.c: Fix Debian bug 177940
109132         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
109133         (localtime_offset): Now long int, not time_t, because we want it
109134         to be guaranteed to be signed.  All uses changed.
109135         (__mktime_internal): If overflow would occur when adding offset,
109136         don't add it.
109138         Merge 'human' changes from coreutils.  Rewrite to support
109139         locale-specific notations like thousands separators.
109140         * lib/human.c: Simplify authorship notice.
109141         Include human.h immediately after config.h.
109142         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
109143         <limits.h>: Do not include, since human.h does.
109144         (SIZE_MAX, UINTMAX_MAX): New macros.
109145         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
109146         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
109147         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
109148         (power_letter): Renamed from suffixes.
109149         (generate_suffix_backwards): Remove.
109150         (adjust_value): Now takes int style (because of human.h changes)
109151         and long double value (for greater precision on some platforms).
109152         (group_number): New function.
109153         (human_readable): Use it.  Use integer options, not enum.
109154         Put the options before the sizes in the arg list.
109155         Support all the new options.
109156         The old human_readable function has been removed;
109157         use inttostr.h instead.
109158         (human_readable, default_block_size, humblock):
109159         Use uintmax_t, not int, for block sizes.
109160         (human_readable_inexact, block_size_types): Remove.
109161         (block_size_opts): New constant.
109162         (human_options): Renamed from human_block_size, with new signature
109163         that allows block sizes up to UINTMAX_MAX.  All callers changed.
109164         * lib/human.h: Add copyright and authorship notice.
109165         Include <limits.h> and <stdbool.h> unconditionally.
109166         (PARAMS): Remove.  All uses removed.
109167         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
109168         (enum human_inexact_style): Remove tag; now a nameless enum.
109169         (human_floor, human_ceiling, human_round_to_even): Now have
109170         values 2, 0, 1 rather than -1, 1, 0.
109171         (human_group_digits, human_suppress_point_zero, human_autoscale,
109172         human_base_1024, human_SI, human_B): New constants.
109173         (human_readable_inexact, human_block_size): Remove.
109174         (human_readable): Size args are now uintmax_t, not int.
109175         (human_options): New decl.
109177         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
109178         unnecessary now that we assume C89 or better.  This change
109179         imported from coreutils.
109181         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109182         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
109183         in the 2003-05-30 sync from glibc.
109185         .h files should stand alone, but we shouldn't include <sys/types.h>
109186         if we can get away with just <stddef.h>.
109188         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
109189         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
109190         rather than <sys/types.h>, as we merely need size_t.
109191         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
109192         to get size_t.
109193         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
109194         Include <stdio.h>, to get FILE.
109195         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
109196         memcasecmp.h has included <stddef.h> and all we need is size_t.
109197         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
109198         our interface, instead of including <sys/types.h>
109200 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109202         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
109203         now, as glibc mktime is buggy on non-glibc systems.
109205 2003-06-03  Karl Berry  <karl@gnu.org>
109207         * config/config.sub: update from prep.
109209 2003-06-02  Paul Eggert  <eggert@twinsun.com>
109211         [from coreutils]
109212         Fix some minor time-related bugs with POSIX time arguments.
109213         Some valid time stamps were being rejected (notably -1, and
109214         time stamps before 1900 on 64-bit hosts).  And some invalid
109215         time stamps were being accepted, e.g. September 31.
109217         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
109218         that we can return (time_t) -1 successfully.
109219         * lib/posixtm.c: Likewise.
109220         [HAVE_STDBOOL_H]: Include <stdbool.h>.
109221         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
109222         (t): Remove static var.
109223         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
109224         of static var.  All uses changed.
109225         (year): Do not reject years before 1900; they can occur with
109226         64-bit time_t.
109227         (posix_time_parse): Do not check for out-of-range components;
109228         that is now the caller's responsibility, since our checks were
109229         only approximations.
109230         (posixtime): Use mktime to check for out-of-range components,
109231         since it knows them exactly.
109232         If mktime returns (time_t) -1, check whether an error actually occurred
109233         by invoking localtime on -1.
109234         (main) [TEST_POSIXTIME]: Check for input data errors, and report
109235         posixtime failures better.
109236         Improve the test data (in comments only).
109238 2003-06-02  Karl Berry  <karl@gnu.org>
109240         * config/mkinstalldirs (version): new variable.
109241         (--version): new option.
109242         (usage): improve message.
109244 2003-05-30  Karl Berry  <karl@gnu.org>
109246         * lib/mktime.c: update from libc.
109248 2003-05-30  Bruno Haible  <bruno@clisp.org>
109250         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
109251         * config/config.rpath: Upgrade to gettext-0.12.1.
109253 2003-05-30  Bruno Haible  <bruno@clisp.org>
109255         * m4/gettext.m4: Upgrade to gettext-0.12.1.
109256         * m4/nls.m4: New file, from gettext-0.12.1.
109257         * m4/po.m4: New file, from gettext-0.12.1.
109258         * m4/progtest.m4: Upgrade to gettext-0.12.1.
109260 2003-05-30  Bruno Haible  <bruno@clisp.org>
109262         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
109263         * lib/localcharset.h: Likewise.
109264         * lib/localcharset.c: Likewise.
109266 2003-05-29  Karl Berry  <karl@gnu.org>
109268         * config/config.rpath: update from gettext.
109270 2003-05-28  Paul Eggert  <eggert@twinsun.com>
109272         Assume the headers required for C89 freestanding compilers.
109273         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
109274         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
109275         * m4/human.m4 (gl_HUMAN): Likewise.
109276         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
109277         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
109278         * m4/userspec.m4 (gl_USERSPEC): Likewise.
109279         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
109280         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
109281         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
109283 2003-05-28  Paul Eggert  <eggert@twinsun.com>
109285         Assume the headers required for C89 freestanding compilers.
109286         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
109287         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
109288         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
109289         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
109290         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
109291         define, since <limits.h> is guaranteed to do that.
109292         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
109293         * lib/exclude.c: Include <stdbool.h> unconditionally.
109294         * lib/tempname.c: Include <stddef.h> unconditionally.
109295         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
109296         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
109297         <stddef.h> does that.
109298         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
109299         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
109300         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
109301         needed.
109302         * lib/xstrtol.c: Likewise.
109303         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
109304         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
109306         * lib/addext.c (addext): Use assignment rather than cast, to avoid
109307         warnings on some platforms.
109309         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109310         arbitrarily.
109312 2003-05-26  Jim Meyering  <jim@meyering.net>
109314         Merge in a change from coreutils:
109315         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
109316         that is guaranteed to be `no'.  Use `no_such_member' to indicate
109317         that condition, rather than `-1' which is slightly misleading.
109318         Change the name of the cache variable to have the gl_ prefix.
109319         Prompted by a patch from Richard Dawe for DJGPP.
109321 2003-05-24  Karl Berry  <karl@gnu.org>
109323         * config/config.guess: update from prep.
109325 2003-05-22  Karl Berry  <karl@gnu.org>
109327         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
109329 2003-05-20  Karl Berry  <karl@gnu.org>
109331         * config/config.guess: update from prep.
109333 2003-05-18  Karl Berry  <karl@gnu.org>
109335         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
109336         might actually be set by the user.
109338         * config/depcomp, install-sh, mdate-sh: update from automake.
109340 2003-05-17  Bruno Haible  <bruno@clisp.org>
109342         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
109343         invalid expansion for AC_EGREP_CPP.
109344         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
109345         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
109346         Suggested by Akim Demaille <akim@epita.fr> in
109347         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
109349 2003-05-12  Jim Meyering  <jim@meyering.net>
109351         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
109352         the space-padded-by-default conversion specifiers, %e, %k, %l.
109354 2003-05-12  Bruno Haible  <bruno@clisp.org>
109356         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
109357         the string is longer than 4 KB.
109359 2003-05-11  Karl Berry  <karl@gnu.org>
109361         * config/config.{guess,sub}: update from prep.
109363 2003-05-09  Bruno Haible  <bruno@clisp.org>
109365         * modules/error: Add m4/strerror_r.m4 to file list.
109367 2003-05-03  Bruno Haible  <bruno@clisp.org>
109369         Upgrade to Unicode-4.0.
109370         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
109371         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
109372         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
109373         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
109374         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
109375         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
109376         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
109377         Change width of U+E0100..U+E01EF from 1 to 0.
109379 2003-04-25  Jim Meyering  <jim@meyering.net>
109381         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
109382         of type size_t, not int.
109384 2003-04-25  Bruno Haible  <bruno@clisp.org>
109386         * lib/copy-file.c: Include <stddef.h>, for size_t.
109388 2003-04-21  Paul Eggert  <eggert@twinsun.com>
109390         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
109391         code which expansion is under static control.  Patch imported from
109392         Akim Demaille's patch to Bison; see
109393         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
109395 2003-04-14  Bruno Haible  <bruno@clisp.org>
109397         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
109399 2003-04-11  Jim Meyering  <jim@meyering.net>
109401         Merge changes from Coreutils.
109403         2003-03-22  Jim Meyering  <jim@meyering.net>
109405         * lib/strftime.c (widen): Cast alloca return value to proper type.
109407         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
109409         From GNU libc.
109410         * lib/strftime.c (my_strftime): Handle very large width
109411         specifications for numeric values correctly.  Improve checks for
109412         overflow.
109414         2003-01-19  Jim Meyering  <jim@meyering.net>
109416         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
109417         definitions.
109418         (nl_get_alt_digit) [! defined my_strftime]: Define.
109419         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
109420         _nl_get_alt_digit and _nl_get_walt_digit.
109422         * lib/strftime.c (my_strftime): Merge in locale-related changes from
109423         libc. These changes have no effect outside of _LIBC.
109425 2003-04-10  Bruno Haible  <bruno@clisp.org>
109427         * modules/findprog: New file.
109428         * MODULES.html.sh (func_all_modules): Add it.
109430 2003-04-10  Bruno Haible  <bruno@clisp.org>
109432         * m4/findprog.m4: New file.
109433         * m4/eaccess.m4: New file.
109435 2003-04-10  Bruno Haible  <bruno@clisp.org>
109437         * lib/findprog.h: New file, from GNU gettext.
109438         * lib/findprog.c: New file, from GNU gettext.
109440 2003-04-05  Jim Meyering  <jim@meyering.net>
109442         Merge changes from Coreutils.
109444         * lib/exclude.h (PARAMS): Remove definition and uses.
109445         * lib/exclude.c: Remove uses of `PARAMS'.
109447         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
109448         Add test-cases for DOS filenames. Declare program_name.
109449         (main): Set up program_name.  Patch by Rich Dawe.
109451         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109452         error from mntctl.
109453         Use mntctl's return value to drive the entry-processing loop, since
109454         we can't rely on the value of the vmt_length member in the last
109455         entry.  On some systems doing so could result in exhausting
109456         virtual memory.  Based in part on a patch from Mike Jetzer.
109458 2003-04-04  Bruno Haible  <bruno@clisp.org>
109460         * modules/linebreak: New file.
109461         * MODULES.html.sh (func_all_modules): Add it.
109463 2003-04-04  Bruno Haible  <bruno@clisp.org>
109465         * m4/linebreak.m4: New file.
109467 2003-04-04  Bruno Haible  <bruno@clisp.org>
109469         * lib/linebreak.h: New file, from GNU gettext.
109470         * lib/linebreak.c: New file, from GNU gettext with slight
109471         modifications.
109472         * lib/lbrkprop.h: New file, from GNU gettext.
109474 2003-04-03  Bruno Haible  <bruno@clisp.org>
109476         * modules/utf8-ucs4: New file.
109477         * modules/utf16-ucs4: New file.
109478         * modules/ucs4-utf8: New file.
109479         * modules/ucs4-utf16: New file.
109480         * MODULES.html.sh (func_all_modules): Add them.
109482 2003-04-03  Bruno Haible  <bruno@clisp.org>
109484         * m4/utf-ucs4.m4: New file.
109485         * m4/ucs4-utf.m4: New file.
109487 2003-04-03  Bruno Haible  <bruno@clisp.org>
109489         * lib/utf8-ucs4.h: New file, from GNU gettext.
109490         * lib/utf16-ucs4.h: New file, from GNU gettext.
109491         * lib/ucs4-utf8.h: New file, from GNU gettext.
109492         * lib/ucs4-utf16.h: New file, from GNU gettext.
109494 2003-04-02  Bruno Haible  <bruno@clisp.org>
109496         * modules/binary-io: New file.
109497         * MODULES.html.sh (func_all_modules): Add it.
109499 2003-04-02  Bruno Haible  <bruno@clisp.org>
109501         * lib/binary-io.h: New file, from GNU gettext.
109503 2003-04-01  Bruno Haible  <bruno@clisp.org>
109505         * modules/pathname: New file.
109506         * MODULES.html.sh (func_all_modules): Add it.
109508 2003-04-01  Bruno Haible  <bruno@clisp.org>
109510         * lib/pathname.h: New file, from GNU gettext.
109511         * lib/concatpath.c: New file, from GNU gettext.
109513 2003-03-30  Bruno Haible  <bruno@clisp.org>
109515         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
109517 2003-03-30  Bruno Haible  <bruno@clisp.org>
109519         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
109520         function chown() doesn't exist.
109522 2003-03-28  Bruno Haible  <bruno@clisp.org>
109524         * modules/copy-file: New file.
109525         * MODULES.html.sh (func_all_modules): Add it.
109527 2003-03-28  Bruno Haible  <bruno@clisp.org>
109529         * m4/copy-file.m4: New file.
109531 2003-03-28  Bruno Haible  <bruno@clisp.org>
109533         * lib/copy-file.h: New file, from GNU gettext.
109534         * lib/copy-file.c: New file, from GNU gettext.
109536 2003-03-18  Jim Meyering  <jim@meyering.net>
109538         * lib/quote.c (quote_n): Fix typo in comment.
109540 2003-03-18  Bruno Haible  <bruno@clisp.org>
109542         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
109543         checking.
109544         * m4/onceonly_2_57.m4: Likewise.
109546 2003-03-17  Bruno Haible  <bruno@clisp.org>
109548         * m4/onceonly.m4: Require autoconf 2.54 or newer.
109549         (m4_quote): Remove macro.
109550         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
109552 2003-03-14  Jim Meyering  <jim@meyering.net>
109554         Merge changes from Coreutils.
109555         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
109556         to be const, in order to avoid warnings.
109557         (obstack_room): Likewise.
109558         (obstack_empty_p): Likewise.
109560 2003-03-14  Bruno Haible  <bruno@clisp.org>
109562         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
109563         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
109565 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109567         Merge changes from Bison.
109568         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
109569         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
109570         when compiling Bison 1.875's `bitset bset = obstack_alloc
109571         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
109572         * lib/hash.c: Include <stdbool.h> unconditionally.
109574 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109576         * m4/onceonly.m4 (m4_quote): New macro.
109577         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
109578         Quote AC_FOREACH variable-expansions properly.
109580 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109582         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
109584 2003-03-09  Paul Eggert  <eggert@twinsun.com>
109586         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
109587         Reported by Bruce Becker; see:
109588         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
109590 2003-03-03  Paul Eggert  <eggert@twinsun.com>
109591             Bruno Haible  <bruno@clisp.org>
109593         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
109594         Reported by John Hughes, see
109595         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
109597 2003-02-20  Bruno Haible  <bruno@clisp.org>
109599         * MODULES.html.sh (func_all_modules): Add poll.
109601 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109603         * modules/poll: New file.
109605 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109607         * lib/poll_.h: New file.
109608         * lib/poll.c: New file.
109610 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109612         * m4/poll.m4: New file.
109614 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109616         * modules/mathl: New file.
109618 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109620         * lib/mathl.h: New file.
109621         * lib/acosl.c: New file.
109622         * lib/asinl.c: New file.
109623         * lib/atanl.c: New file.
109624         * lib/ceill.c: New file.
109625         * lib/cosl.c: New file.
109626         * lib/expl.c: New file.
109627         * lib/floorl.c: New file.
109628         * lib/frexpl.c: New file.
109629         * lib/ldexpl.c: New file.
109630         * lib/logl.c: New file.
109631         * lib/sincosl.c: New file.
109632         * lib/sinl.c: New file.
109633         * lib/sqrtl.c: New file.
109634         * lib/tanl.c: New file.
109635         * lib/trigl.c: New file.
109636         * lib/trigl.h: New file.
109638 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109640         * m4/mathl.m4: New file.
109642 2003-02-18  Bruno Haible  <bruno@clisp.org>
109644         * MODULES.html.sh (func_all_modules): Add mathl.
109646 2003-02-17  Bruno Haible  <bruno@clisp.org>
109648         * modules/mkdtemp: New module.
109649         * MODULES.html.sh (func_all_modules): Add it.
109651 2003-02-17  Bruno Haible  <bruno@clisp.org>
109653         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
109655 2003-02-17  Bruno Haible  <bruno@clisp.org>
109657         * lib/mkdtemp.h: New file, from GNU gettext.
109658         * lib/mkdtemp.c: New file, from GNU gettext.
109660 2003-02-02  Jim Meyering  <jim@meyering.net>
109662         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
109663         e.g. glibc-2.2.93.
109665 2003-01-31  Bruno Haible  <bruno@clisp.org>
109667         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
109668         'rpl_rename'.
109669         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
109670         'rpl_strnlen'.
109671         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
109672         'rpl_strtod'.
109673         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
109674         'rpl_utime'.
109676 2003-01-31  Bruno Haible  <bruno@clisp.org>
109678         * lib/rename.c: #undef rename before defining rpl_rename.
109679         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
109681 2003-01-30  Bruno Haible  <bruno@clisp.org>
109683         * modules/vasnprintf, modules/vasprintf: New modules.
109684         * MODULES.html.sh (func_all_modules): Add them.
109686 2003-01-30  Bruno Haible  <bruno@clisp.org>
109688         * m4/signed.m4: New file, from GNU gettext.
109689         * m4/longdouble.m4: New file, from GNU gettext.
109690         * m4/wchar_t.m4: New file, from GNU gettext.
109691         * m4/wint_t.m4: New file, from GNU gettext.
109692         * m4/vasnprintf.m4: New file.
109693         * m4/vasprintf.m4: New file.
109695 2003-01-30  Bruno Haible  <bruno@clisp.org>
109697         * lib/printf-args.h: New file, from GNU gettext.
109698         * lib/printf-args.c: New file, from GNU gettext.
109699         * lib/printf-parse.h: New file, from GNU gettext.
109700         * lib/printf-parse.c: New file, from GNU gettext.
109701         * lib/vasnprintf.h: New file, from GNU gettext.
109702         * lib/vasnprintf.c: New file, from GNU gettext.
109703         * lib/asnprintf.c: New file, from GNU gettext.
109704         * lib/vasprintf.h: New file, from GNU gettext with modifications.
109705         * lib/vasprintf.c: New file, from GNU gettext.
109706         * lib/asprintf.c: New file, from GNU gettext.
109708 2003-01-29  Bruno Haible  <bruno@clisp.org>
109710         * modules/stpncpy: New module.
109711         * MODULES.html.sh (func_all_modules): Add it.
109713 2003-01-29  Bruno Haible  <bruno@clisp.org>
109715         * m4/stpncpy.m4: New file.
109717 2003-01-29  Bruno Haible  <bruno@clisp.org>
109719         * lib/stpncpy.h: New file, from GNU gettext with modifications.
109720         * lib/stpncpy.c: New file, from GNU gettext with modifications.
109722 2003-01-28  Bruno Haible  <bruno@clisp.org>
109724         * modules/c-ctype: New module.
109725         * MODULES.html.sh (func_all_modules): Add it.
109727 2003-01-28  Bruno Haible  <bruno@clisp.org>
109729         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
109730         Paul Eggert.
109731         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
109732         Paul Eggert.
109734 2003-01-27  Bruno Haible  <bruno@clisp.org>
109736         * modules/xsetenv: New module.
109737         * MODULES.html.sh (func_all_modules): Add it.
109739 2003-01-27  Bruno Haible  <bruno@clisp.org>
109741         * lib/xsetenv.h: New file, from GNU gettext.
109742         * lib/xsetenv.c: New file, from GNU gettext.
109744 2003-01-23  Jim Meyering  <jim@meyering.net>
109746         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
109747         from working on systems without dirfd (at least Irix and OSF1/Tru64).
109749 2003-01-23  Bruno Haible  <bruno@clisp.org>
109751         * modules/minmax: New module.
109752         * MODULES.html.sh (func_all_modules): Add it.
109754 2003-01-23  Bruno Haible  <bruno@clisp.org>
109756         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
109757         Eggert.
109759 2003-01-22  Bruno Haible  <bruno@clisp.org>
109761         * modules/exit: New module.
109762         * MODULES.html.sh (func_all_modules): Add it.
109764 2003-01-22  Bruno Haible  <bruno@clisp.org>
109766         * lib/exit.h: New file, from GNU gettext.
109768 2003-01-19  Bruno Haible  <bruno@clisp.org>
109770         * gnulib-tool: Recognize option --extract-maintainer.
109771         (func_get_maintainer): New function.
109772         * modules/*: Add Maintainer entry.
109774 2003-01-16  Jim Meyering  <jim@meyering.net>
109776         * m4/regex.m4: The `regex' struct is both input and output.
109777         Initialize it before each use.  Patch by Tim Waugh.
109779 2003-01-16  Bruno Haible  <bruno@clisp.org>
109781         * MODULES.html.sh: Add a table of contents. Add the module name as
109782         leftmost column. Add hyperlinks.
109784 2003-01-15  Bruno Haible  <bruno@clisp.org>
109786         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
109788 2003-01-15  Bruno Haible  <bruno@clisp.org>
109790         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
109791         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
109792         suffix.
109794 2003-01-15  Bruno Haible  <bruno@clisp.org>
109796         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
109798 2003-01-15  Bruno Haible  <bruno@clisp.org>
109800         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
109801         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
109803 2003-01-14  Jim Meyering  <jim@meyering.net>
109805         * lib/same.c (same_name): Tweak a comment.
109807 2003-01-14  Bruno Haible  <bruno@clisp.org>
109809         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
109810         when a string comparison is sufficient.
109812 2003-01-14  Bruno Haible  <bruno@clisp.org>
109814         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
109815         'unsigned int'.
109817 2003-01-14  Bruno Haible  <bruno@clisp.org>
109819         * lib/hash-pjw.c: Add comment about low quality of this function.
109821 2003-01-13  Bruno Haible  <bruno@clisp.org>
109823         * modules/stpcpy: Distribute lib/stpcpy.h.
109824         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
109826 2003-01-13  Bruno Haible  <bruno@clisp.org>
109828         * modules/*: Add a description.
109829         * modules/strpbrk: Fix Makefile.am snippet.
109830         * modules/strtoimax: Fix dependencies.
109831         * modules/strtoumax: Likewise.
109833 2003-01-13  Bruno Haible  <bruno@clisp.org>
109835         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
109836         * modules/alloca (Makefile.am): All object files depend on alloca.h.
109837         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
109839 2003-01-13  Bruno Haible  <bruno@clisp.org>
109841         * gnulib-tool (func_create_testdir): Store config/* files in the main
109842         directory.
109843         * config.rpath: Move to ...
109844         * config/config.rpath: ... here.
109845         * modules/gettext: Contains config/config.rpath, not config.rpath.
109846         * modules/iconv: Likewise.
109848 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109850         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109851         to avoid collisions with libcurses and libreadline.
109853         * m4/getstr.m4: Remove.
109854         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
109856 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109858         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109859         to avoid collisions with libcurses and libreadline.
109861         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
109862         * lib/getstr.h, getstr.c: Remove.
109863         * lib/getline.c: Include "getline.h", to check interface.
109864         Move body of old getstr.c here: this defines MIN_CHUNK and
109865         declares getdelim2, which is renamed from getstr.
109866         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
109868         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
109869         All uses changed.
109870         * lib/linebuffer.h: Likewise.
109871         (readline): Remove backward-compatibility macro.
109873 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109875         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109876         to avoid collisions with libcurses and libreadline.
109877         * getstr: Remove.
109878         * MODULES.html.sh: Remove getstr.
109879         * modules/getline: Depend on unlocked-io, not getstr.
109881 2003-01-12  Jim Meyering  <jim@meyering.net>
109883         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
109885 2003-01-10  Bruno Haible  <bruno@clisp.org>
109887         * modules/alloca: Change Makefile.am requirements. Simplify Include
109888         requirements. Add lib/alloca_.h to file list.
109890 2003-01-10  Bruno Haible  <bruno@clisp.org>
109892         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
109894 2003-01-10  Bruno Haible  <bruno@clisp.org>
109896         * lib/alloca_.h: New file.
109897         * lib/getdate.y: Unconditionally include alloca.h.
109898         * lib/makepath.c: Likewise.
109899         * lib/setenv.c: Likewise.
109900         * lib/userspec.c: Likewise.
109902 2003-01-09  Karl Berry  <karl@gnu.org>
109904         * MODULES.html.sh: include `dirname $0` in PATH, to find
109905         gnulib-tool.
109907 2003-01-09  Bruno Haible  <bruno@clisp.org>
109909         * modules/stdbool: Change configure.ac, Makefile.am requirements.
109910         Simplify Include requirements. Add lib/stdbool.h.in to file list.
109912 2003-01-09  Bruno Haible  <bruno@clisp.org>
109914         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
109916 2003-01-09  Bruno Haible  <bruno@clisp.org>
109918         * lib/stdbool.h.in: New file.
109920 2003-01-09  Bruno Haible  <bruno@clisp.org>
109922         * gnulib-tool (func_all_modules): Ignore files ending in ~.
109923         * MODULES.html.sh: Likewise.
109925 2003-01-08  Jim Meyering  <jim@meyering.net>
109927         * lib/full-write.c: Undefine and define-away `const' after inclusion
109928         of errno.h, not before.  Suggestion from Bruno Haible.
109930 2003-01-08  Bruno Haible  <bruno@clisp.org>
109932         * modules/full-read: Depend on full-write.
109934 2003-01-08  Bruno Haible  <bruno@clisp.org>
109936         * lib/safe-read.c: Include specification header first, to ensure its
109937         selfcontainedness.
109938         * lib/full-write.c: Likewise.
109940 2003-01-07  Jim Meyering  <jim@meyering.net>
109942         * lib/full-write.c: Rework so that it may serve to define full_read,
109943         too.
109944         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
109946 2003-01-07  Bruno Haible  <bruno@clisp.org>
109948         * lib/strtoimax.c: Include <stdint.h> as an alternative to
109949         <inttypes.h>.
109950         * lib/xstrtol.h: Likewise.
109951         * lib/xstrtoimax.c: Likewise.
109952         * lib/xstrtoumax.c: Likewise.
109953         * lib/human.h: Likewise.
109955         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
109956         on systems that have <inttypes.h> but not <stdint.h>.
109958 2003-01-07  Bruno Haible  <bruno@clisp.org>
109960         * MODULES.html.sh: Add copyright notice.
109961         (missed_files): Omit CVS directory entries.
109962         (func_module): Make it work with sed-3.02.
109963         * MODULES.txt: Remove file.
109965 2003-01-06  Jim Meyering  <jim@meyering.net>
109967         * lib/version-etc.c: Update year in translatable copyright string.
109969 2003-01-03  Karl Berry  <karl@gnu.org>
109971         * config/config.{guess,sub}: update from prep.
109973 2003-01-02  Karl Berry  <karl@gnu.org>
109975         * doc/COPYING.DOC: belatedly updated to 1.2.
109977 2003-01-01  Karl Berry  <karl@gnu.org>
109979         * gnulib-tool (func_verify_module): report module name $module in
109980         error message, not $1.
109981         * gnulib-tool (create-testdir): don't complain if destdir couldn't
109982         be created, only if it doesn't exist.
109983         * gnulib-tool (last_checkin_date): don't expand the $Date here.
109985 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109987         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
109989 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109991         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
109992         memcmp if strcoll doesn't work.
109994 2002-12-31  Bruno Haible  <bruno@clisp.org>
109996         * lib/utime.c (utime_null): No need to call ftruncate if the file was
109997         nonempty.
109999 2002-12-31  Bruno Haible  <bruno@clisp.org>
110001         * lib/memcoll.c (STRCOLL): New macro.
110002         (memcoll): Use it.
110004 2002-12-31  Bruno Haible  <bruno@clisp.org>
110006         * lib/localcharset.h: New file.
110007         * lib/localcharset.c: Include it.
110008         * lib/unicodeio.c: Likewise.
110010 2002-12-31  Bruno Haible  <bruno@clisp.org>
110012         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
110013         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
110015 2002-12-31  Bruno Haible  <bruno@clisp.org>
110017         * lib/getline.h: Include <stddef.h>, for size_t.
110019         * lib/unicodeio.h: Include <stddef.h>, for size_t.
110020         * lib/unicodeio.c: Don't include <stddef.h>.
110022 2002-12-31  Bruno Haible  <bruno@clisp.org>
110024         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
110025         HAVE_TM_ZONE.
110027 2002-12-24  Karl Berry  <karl@gnu.org>
110029         * config/config.guess: update from prep.
110031 2002-12-24  Bruno Haible  <bruno@clisp.org>
110033         General infrasructure.
110034         * m4/README: Rewritten.
110035         * m4/onceonly.m4: New file.
110036         * m4/onceonly_2_57.m4: New file.
110038         Module atexit.
110039         * m4/atexit.m4: New file.
110041         Module strtod.
110042         * m4/strtod.m4: New file.
110044         Module strtol.
110045         * m4/strtol.m4: New file.
110047         Module strtoul.
110048         * m4/strtoul.m4: New file.
110050         Module memchr.
110051         * m4/memchr.m4: New file.
110053         Module memcmp.
110054         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
110055         (jm_FUNC_MEMCMP): Invoke it.
110057         Module memcpy.
110058         * m4/memcpy.m4: New file.
110060         Module memmove.
110061         * m4/memmove.m4: New file.
110063         Module memset.
110064         * m4/memset.m4: New file.
110066         Module strcspn.
110067         * m4/strcspn.m4: New file.
110069         Module strpbrk.
110070         * m4/strpbrk.m4: New file.
110072         Module strstr.
110073         * m4/strstr.m4: New file.
110075         Module strerror.
110076         * m4/strerror.m4: New file.
110078         Module mktime.
110079         * m4/mktime.m4: Renamed from jm-mktime.m4.
110080         (gl_PREREQ_MKTIME): New macro.
110081         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
110083         Module malloc.
110084         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
110085         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
110086         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
110088         Module realloc.
110089         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
110090         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
110091         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
110093         Module strftime.
110094         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
110095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
110096         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
110097         gl_TM_GMTOFF.
110098         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
110100         Module xalloc.
110101         * m4/xalloc.m4: New file.
110103         Module alloca.
110104         * m4/alloca.m4: New file.
110106         Module putenv.
110107         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
110108         (jm_FUNC_PUTENV): Invoke it.
110110         Module setenv.
110111         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
110112         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
110113         when invoked twice.
110114         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
110115         gt_FUNC_SETENV.
110117         Module memrchr.
110118         * m4/memrchr.m4: New file.
110120         Module stpcpy.
110121         * m4/stpcpy.m4: New file.
110123         Module strcase.
110124         * m4/strcase.m4: New file.
110126         Module strdup.
110127         * m4/strdup.m4: New file.
110129         Module strnlen.
110130         * m4/strnlen.m4: New file.
110132         Module strndup.
110133         * m4/strndup.m4: New file.
110135         Module xstrtod.
110136         * m4/xstrtod.m4: New file.
110138         Module xstrtol.
110139         * m4/xstrtol.m4: New file.
110141         Module getdate.
110142         * m4/getdate.m4: New file.
110144         Module unlocked-io.
110145         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
110146         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
110147         * m4/jm-glibc-io.m4n: Remove file.
110149         Module long-options.
110150         * m4/long-options.m4: New file.
110152         Module md5.
110153         * m4/md5.m4: New file.
110155         Module sha.
110156         * m4/sha.m4: New file.
110158         Module getstr.
110159         * m4/getstr.m4: New file.
110161         Module getline.
110162         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
110163         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
110164         <sys/types.h>, for size_t. Use the function name gnu_getline, not
110165         simply getline. Infoke gl_PREREQ_GETLINE.
110167         Module obstack.
110168         * m4/obstack.m4: New file.
110170         Module hash.
110171         * m4/hash.m4: New file.
110173         Module readtokens.
110174         * m4/readtokens.m4: New file.
110176         Module strverscmp.
110177         * m4/strverscmp.m4: New file.
110179         Module stdbool.
110180         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
110181         OSF/1.
110183         Module strtoll.
110184         * m4/strtoll.m4: New file.
110186         Module strtoull.
110187         * m4/strtoull.m4: New file.
110189         Module strtoimax.
110190         * m4/strtoimax.m4: New file.
110192         Module strtoumax.
110193         * m4/strtoumax.m4: New file.
110195         Module xstrtoimax.
110196         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
110197         jm_AC_PREREQ_XSTRTOIMAX.
110198         Moved the strtol prerequisites to strtol.m4.
110199         Moved the strtoll prerequisites to strtoll.m4.
110200         Moved the strtoimax prerequisites to strtoimax.m4.
110202         Module xstrtoumax.
110203         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
110204         jm_AC_PREREQ_XSTRTOUMAX.
110205         Moved the strtoul prerequisites to strtoul.m4.
110206         Moved the strtoull prerequisites to strtoull.m4.
110207         Moved the strtoumax prerequisites to strtoumax.m4.
110209         Module chown.
110210         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
110211         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
110213         Module dup2.
110214         * m4/dup2.m4: New file.
110216         Module ftruncate.
110217         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
110218         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
110220         Module getgroups.
110221         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
110222         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
110224         Module gettimeofday.
110225         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
110226         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
110227         gl_PREREQ_GETTIMEOFDAY.
110229         Module mkdir.
110230         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
110231         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
110233         Module mkstemp.
110234         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
110235         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
110236         jm_AC_TYPE_UINTMAX_T.
110237         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
110239         Module stat.
110240         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
110241         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
110243         Module lstat.
110244         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
110245         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
110247         Module timespec.
110248         * m4/timespec.m4 (gl_TIMESPEC): New macro.
110249         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
110250         * m4/st_mtim.m4: Indentation.
110252         Module nanosleep.
110253         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
110254         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
110255         gl_PREREQ_NANOSLEEP.
110257         Module regex.
110258         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
110259         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
110260         (gl_REGEX): New macro.
110262         Module rename.
110263         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
110264         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
110266         Module rmdir.
110267         * m4/rmdir.m4: New file.
110269         Module utime.
110270         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
110271         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
110272         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
110274         Module dirname.
110275         * m4/dirname.m4: New file.
110277         Module getopt.
110278         * m4/getopt.m4: New file.
110280         Module unistd-safer.
110281         * m4/unistd-safer.m4: New file.
110283         Module fnmatch.
110284         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
110285         declaration.
110286         (gl_PREREQ_FNMATCH_EXTRA): New macro.
110287         (gl_FUNC_FNMATCH_POSIX): New macro.
110288         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
110289         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
110290         simply fnmatch.
110292         Module exclude.
110293         * m4/exclude.m4: New file.
110295         Module human.
110296         * m4/human.m4: New file.
110298         Module acl.
110299         * m4/acl.m4: Nop.
110301         Module backupfile.
110302         * m4/backupfile.m4: New file.
110303         * m4/d-ino.m4: Indentation.
110305         Module fsusage.
110306         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
110307         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
110308         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
110310         Module dirfd.
110311         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
110312         requirements.
110314         Module euidaccess.
110315         * m4/euidaccess.m4: New file.
110317         Module file-type.
110318         * m4/file-type.m4: New file.
110320         Module fileblocks.
110321         * m4/fileblocks.m4: New file.
110323         Module filemode.
110324         * m4/filemode.m4: New file.
110326         Module isdir.
110327         * m4/isdir.m4: New file.
110329         Module lchown.
110330         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
110331         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
110333         Module makepath.
110334         * m4/makepath.m4: New file.
110336         Module modechange.
110337         * m4/modechange.m4: New file.
110339         Module mountlist.
110340         * m4/mountlist.m4: New file.
110341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
110342         Indentation.
110344         Module path-concat.
110345         * m4/path-concat.m4: New file.
110347         Module pathmax.
110348         * m4/pathmax.m4: New file.
110350         Module same.
110351         * m4/same.m4: New file.
110353         Module save-cwd.
110354         * m4/save-cwd.m4: New file.
110356         Module savedir.
110357         * m4/savedir.m4: New file.
110359         Module xgetcwd.
110360         * m4/xgetcwd.m4: New file.
110361         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
110363         Module xreadlink.
110364         * m4/xreadlink.m4: New file.
110366         Module safe-read.
110367         * m4/safe-read.m4: New file.
110369         Module safe-write.
110370         * m4/safe-write.m4: New file.
110372         Module closeout.
110373         * m4/closeout.m4: New file.
110375         Module stdio-safer.
110376         * m4/stdio-safer.m4: New file.
110378         Module getpass.
110379         * m4/getpass.m4: New file.
110381         Module getugroups.
110382         * m4/getugroups.m4: New file.
110384         Module group-member.
110385         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
110386         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
110388         Module idcache.
110389         * m4/idcache.m4: New file.
110391         Module userspec.
110392         * m4/userspec.m4: New file.
110394         Module gettime.
110395         * m4/clock_time.m4: New file.
110396         * m4/gettime.m4: New file.
110398         Module settime.
110399         * m4/settime.m4: New file.
110401         Module posixtm.
110402         * m4/posixtm.m4: New file.
110404         Module gethostname.
110405         * m4/gethostname.m4: New file.
110407         Module canon-host.
110408         * m4/canon-host.m4: New file.
110410         Module gettext.
110411         * m4/codeset.m4: New file, from gettext-0.11.5.
110412         * m4/gettext.m4: New file, from gettext-0.11.5.
110413         * m4/glibc21.m4: New file, from gettext-0.11.5.
110414         * m4/iconv.m4: New file, from gettext-0.11.5.
110415         * m4/intdiv0.m4: New file, from gettext-0.11.5.
110416         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
110417         * m4/inttypes.m4: New file, from gettext-0.11.5.
110418         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
110419         * m4/isc-posix.m4: New file, from gettext-0.11.5.
110420         * m4/lcmessage.m4: New file, from gettext-0.11.5.
110421         * m4/lib-ld.m4: New file, from gettext-0.11.5.
110422         * m4/lib-link.m4: New file, from gettext-0.11.5.
110423         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
110424         * m4/progtest.m4: New file, from gettext-0.11.5.
110425         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
110426         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
110427         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
110429         Module localcharset.
110430         * m4/localcharset.m4: New file.
110432         Module hard-locale.
110433         * m4/hard-locale.m4: New file.
110435         Module mbswidth.
110436         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
110437         onceonly macros.
110438         * m4/mbrtowc.m4: Add comment.
110440         Module memcasecmp.
110441         * m4/memcasecmp.m4: New file.
110443         Module memcoll.
110444         * m4/memcoll.m4: New file.
110446         Module unicodeio.
110447         * m4/unicodeio.m4: New file.
110449         Module rpmatch.
110450         * m4/rpmatch.m4: New file.
110452         Module yesno.
110453         * m4/yesno.m4: New file.
110455         Module exitfail.
110456         * m4/exitfail.m4: New file.
110458         Module c-stack.
110459         * m4/c-stack.m4 (gl_C_STACK): New macro.
110460         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
110462         Module error.
110463         * m4/error.m4 (gl_ERROR): New macro.
110464         (jm_PREREQ_ERROR): Use onceonly macros.
110466         Module fatal.
110467         * m4/fatal.m4: New file.
110469         Module getloadavg.
110470         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
110471         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
110473         Module getpagesize.
110474         * m4/getpagesize.m4: New file.
110476         Module getusershell.
110477         * m4/getusershell.m4: New file.
110479         Module physmem.
110480         * m4/physmem.m4: New file.
110482         Module posixver.
110483         * m4/posixver.m4: New file.
110485         Module quotearg.
110486         * m4/quotearg.m4: New file.
110488         Module quote.
110489         * m4/quote.m4: New file.
110491         Module readutmp.
110492         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
110494         Module sig2str.
110495         * m4/sig2str.m4: New file.
110497         Other.
110498         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
110499         ulonglong.m4.
110500         * m4/intmax_t.m4: New file.
110501         * m4/d-type.m4: Indentation.
110502         * m4/jm-macros.m4: Update.
110503         * m4/prereq.m4 (jm_PREREQ): Update.
110504         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
110505         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
110506         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
110507         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
110508         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
110509         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
110510         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
110511         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
110512         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
110513         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
110514         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
110515         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
110516         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
110517         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
110518         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
110519         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
110520         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
110521         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
110522         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
110524 2002-12-24  Bruno Haible  <bruno@clisp.org>
110526         * MODULES.txt: Update according to m4/ changes.
110528         Module gettext.
110529         * config.rpath: New file, from gettext-0.11.5.
110531         * modules/*: New module descriptions.
110532         * gnulib-tool: New file.
110533         * MODULES.html.sh: New file.
110535 2002-12-21  Karl Berry  <karl@gnu.org>
110537         * doc/fdl.texi: update to version 1.2.
110539 2002-12-19  Karl Berry  <karl@gnu.org>
110541         * config/config.guess: update from prep.
110543 2002-12-18  Bruno Haible  <bruno@clisp.org>
110545         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
110546         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
110548 2002-12-17  Bruno Haible  <bruno@clisp.org>
110550         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
110551         stdlib.h, string.h.
110553 2002-12-17  Bruno Haible  <bruno@clisp.org>
110555         * lib/canon-host.c (strdup): Remove unused declaration.
110557         * lib/fsusage.c: Include full_read.h.
110558         (get_fs_usage): Use full_read instead of safe_read.
110560         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
110562 2002-12-12  Karl Berry  <karl@gnu.org>
110564         * config/config.guess: update from prep.
110566 2002-12-11  Bruno Haible  <bruno@clisp.org>
110568         * m4/setenv.m4: New file, from gettext-0.11.5.
110570 2002-12-11  Bruno Haible  <bruno@clisp.org>
110572         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
110573         not unsetenv().
110574         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
110575         modifications:
110577         2002-12-11  Bruno Haible  <bruno@clisp.org>
110579                 * setenv.c (alloca): Fall back to malloc.
110580                 (freea): New macro.
110581                 (setenv): Use freea() to free memory allocated with alloca().
110583         2002-11-13  Bruno Haible  <bruno@clisp.org>
110585                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
110586                 function declarations.
110587                 * unsetenv.c (unsetenv): Likewise.
110589         2002-03-04  Bruno Haible  <bruno@clisp.org>
110591                 Portability to AIX 4.3.3.
110592                 * unsetenv.c: New file, extracted from setenv.c.
110593                 * setenv.c: Move the unsetenv() function to unsetenv.c.
110595         2001-12-20  Bruno Haible  <bruno@clisp.org>
110597                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
110598                 use malloc instead. For SunOS 4.
110600         2001-12-11  Bruno Haible  <bruno@clisp.org>
110602                 * setenv.c: Declare alloca.
110603                 (compar_fn_t): New typedef.
110604                 (KNOWN_VALUE, STORE_VALUE): Use it.
110606         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
110607         setenv.h.
110609 2002-12-10  Paul Eggert  <eggert@twinsun.com>
110611         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
110612         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
110613         Choose values that are less likely to collide with system fnmatch
110614         options.
110615         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
110616         defined (e.g., a pure POSIX system).
110617         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
110618         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
110620 2002-12-06  Paul Eggert  <eggert@twinsun.com>
110622         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
110623         a pain in practice to deal with generated m4 files.  This change
110624         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
110626         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
110627         and jm-glibc-io.m4, as they are no longer a special case.
110628         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
110629         kludge and the auto-generation stuff.  Check only whether the
110630         functions are declared, not whether they exist, since older hosts
110631         that don't declare the functions can't use the optimization anyway.
110633 2002-12-06  Jim Meyering  <jim@meyering.net>
110635         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
110637         Merge in changes from libc's misc/error.c, in preparation
110638         for the merge of gnulib's changes back into libc.
110640         * lib/error.c (_): Define only if not already defined.
110641         Move definition to follow all #include directives.
110642         Include unlocked-io.h only if !_LIBC.
110643         [_LIBC]: Include <libio/libioP.h>.
110644         [USE_IN_LIBIO]: Include <libio/iolibio.h>
110645         (fflush): Tweak definition to use INTUSE.
110646         (putc): Define.
110648 2002-12-05  Paul Eggert  <eggert@twinsun.com>
110650         * lib/alloca.c [defined emacs]: Include "lisp.h".
110651         (xalloc_die) [defined emacs]: New macro.
110652         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
110653         [! defined emacs]: Include <xalloc.h>.
110654         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
110655         (pointer): Typedef to POINTER_TYPE *.
110656         (malloc): Remove decl; we now always use xmalloc.
110657         (alloca): Use old-style definition, since Emacs needs this.
110658         Check for arithmetic overflow when computing combined size.
110660 2002-12-04  Paul Eggert  <eggert@twinsun.com>
110662         Do not generate unlocked-io.h automatically, since it's easier to
110663         maintain it by hand.
110665         * lib/unlocked-io.h: New file, from GNU diffutils,
110666         but with proper copyright notice and attribution.
110667         * lib/gen-uio: Remove.
110668         * lib/Makefile.am: Add copyright notice.
110669         (libfetish_a_SOURCES): Add unlocked-io.h.
110670         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
110671         (DISTCLEANFILES, io_functions): Remove macros.
110672         (EXTRA_DIST): Remove gen_uio.
110673         (unlocked-io.h): Remove rule.
110675 2002-12-04  Jim Meyering  <jim@meyering.net>
110677         Reflect the fact that stat.c and lstat.c are no longer generated.
110678         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
110679         (DISTCLEANFILES): Likewise.
110680         (EXTRA_DIST): Likewise.
110681         (all_local): Don't depend on stat.c or lstat.c.
110682         (stat.c, lstat.c): Remove rules.
110683         (EXTRA_DIST): Remove xstat.in.
110685         * lib/xstat.in: Remove file.  Contents moved into stat.c.
110686         * lib/stat.c: New file.  Contents mostly from xstat.in.
110687         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
110688         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
110690         * lib/safe-read.c: Rework so that it may serve to define safe_write,
110691         too.
110692         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
110694 2002-12-03  Jim Meyering  <jim@meyering.net>
110696         * lib/safe-read.c, safe-write.c: Change variable names and comments,
110697         but not semantics, to minimize the differences between these two files.
110698         (safe_read): Change comment to mention SAFE_READ_ERROR.
110700         * lib/safe-read.c (IS_EINTR): Define.
110701         (safe_read): Use IS_EINTR in place of in-function cpp directives.
110703 2002-12-02  Jim Meyering  <jim@meyering.net>
110705         * lib/safe-read.c (EINTR): Define.
110706         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
110707         (INT_MAX): Provide fallback.
110708         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
110710         * lib/safe-read.h (SAFE_READ_ERROR): Define.
110712 2002-12-02  Bruno Haible  <bruno@clisp.org>
110714         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
110715         Define, taken from safe-read.c.
110716         (INT_MAX): Provide fallback.
110717         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
110718         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
110720         * lib/safe-read.c (EINTR): Remove definition.
110721         (safe_read): Don't use EINTR if it is absent.
110723 2002-12-01  Jim Meyering  <jim@meyering.net>
110725         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
110726         zero.
110727         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
110729 2002-11-27  Paul Eggert  <eggert@twinsun.com>
110731         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
110732         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
110733         with `if (! (value < limit)) abort ();', for readability.
110735 2002-11-26  Karl Berry  <karl@gnu.org>
110737         * lib/strdup.c: copy from libc again, with jim's ok.
110738         * lib/.cppi-disable: re-add strdup.c
110740 2002-11-25  Karl Berry  <karl@gnu.org>
110742         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
110743         instead of "strtol.c".
110745 2002-11-25  Karl Berry  <karl@gnu.org>
110747         * config/install-sh: update from automake for variable quoting, $0 in
110748         error msgs, etc.
110750         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
110751         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
110752         entry.
110754 2002-11-25  Jim Meyering  <jim@meyering.net>
110756         * lib/mktime.c: Sync from libc, now that it has the latest fix.
110758 2002-11-24  Karl Berry  <karl@gnu.org>
110760         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
110761         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
110763 2002-11-24  Jim Meyering  <jim@meyering.net>
110765         Update from coreutils:
110767         * lib/mktime.c: Merge in changes from libc.
110769         Avoid a link-time failure on some Linux systems.
110770         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
110771         (otherwise).
110772         (__mon_yday): Declare with the STATIC attribute.
110773         (__mktime_internal): Likewise.
110774         Based on a report from Greg Schafer.
110776 2002-11-23  Jim Meyering  <jim@meyering.net>
110778         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
110779         Use `unsigned', not `int', as type of index.
110781         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
110783         * lib/fsusage.c: Remove unneeded parentheses around operands of
110784         `defined'.
110786 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110788         * lib/quotearg.h: Allow multiple inclusion by surrounding with
110789         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
110790         so that we can be included first.
110791         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
110792         * lib/quotearg.c: Include quotearg.h immediately after config.h.
110793         No need to include stddef.h or sys/types.h any more.
110794         Surround local include files with "", not "<>".
110795         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
110796         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
110797         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
110798         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
110799         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
110800         (ISPRINT): Remove; no longer needed now that we assume C89.
110802         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
110803         Preserve errno.
110805         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
110806         quotearg_char): Use SIZE_MAX rather than
110807         (size_t) -1 when we are talking about "infinity".
110809         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
110811 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110813         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
110814         hint that one should use `if (! x) abort ();' rather than `assert
110815         (x);', and anyway it's one less thing to worry about configuring.
110816         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
110817         hash_rehash, hash_insert): Use abort rather than assert.
110819 2002-11-22  Bruno Haible  <bruno@clisp.org>
110821         * lib/safe-read.h: Assume C89. Add comments.
110822         (safe_read): Change return type to size_t.
110823         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
110824         byte counts > SSIZE_MAX correctly.
110825         * lib/safe-write.h: New file.
110826         * lib/safe-write.c: New file.
110827         * lib/full-read.h: New file.
110828         * lib/full-read.c: New file.
110829         * lib/full-write.h: Assume C89. Add comments.
110830         * lib/full-write.c: Include safe-write.h.
110831         (full_write): Rewritten to use safe_write.
110832         Suggested by Jim Meyering and Paul Eggert.
110834 2002-11-21  Jim Meyering  <jim@meyering.net>
110836         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
110838         Merge in changes from the coreutils.
110840         2002-09-25  Paul Eggert  <eggert@twinsun.com>
110841         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
110842         <stdint.h>.
110843         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
110844         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
110845         int.  Work more efficiently if X is the same width as uintmax_t.
110846         Do not compare X to -1, to avoid bogus compiler warning.
110847         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
110848         Don't assume that f_frsize and f_bsize are the same type.
110850         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
110851         warning on FreeBSD.
110853         * lib/makepath.c (make_path): Restore umask *before* creating the final
110854         component.
110855         (make_path): Minor reformatting.
110857         * lib/xmalloc.c: Adjust to work with new autoconf macros,
110858         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
110859         HAVE_MALLOC/HAVE_REALLOC.
110861         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
110862         dummy ones.  At least on GNU/Linux systems, `auto' means something
110863         else.
110864         From Michael Stone.
110866 2002-11-21  Bruno Haible  <bruno@clisp.org>
110868         Remove case insensitive option matching.
110869         * lib/argmatch.h (argcasematch): Remove declaration.
110870         (ARGCASEMATCH): Remove macro.
110871         (__xargmatch_internal): Remove case_sensitive argument.
110872         (XARGMATCH): Update.
110873         (XARGCASEMATCH): Remove macro.
110874         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
110875         case_sensitive argument.
110876         (argcasematch): Remove function.
110877         (__xargmatch_internal): Remove case_sensitive argument.
110878         (main): Use XARGMATCH instead of XARGCASEMATCH.
110880         * lib/xmalloc.c: Change compile-time error message. Add comment about
110881         required autoconf version.
110883 2002-11-20  Paul Eggert  <eggert@twinsun.com>
110885         Merge argmatch cleanups from Bison.  Assume C89.
110887         * lib/argmatch.c: Include config.h here, not in argmatch.h.
110888         Include stdlib.h, for EXIT_FAILURE.
110889         Always include <string.h>, since we assume C89.
110890         (EXIT_FAILURE): Remove pre-C89 bug workaround.
110891         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
110892         Include <stddef.h> instead, since it's all we need for size_t.
110893         (PARAMS): Remove.  All uses removed.
110894         (ARRAY_CARDINALITY): Do not bother to #undef.
110895         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
110896         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
110897         Remove unnecessary parentheses.
110898         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
110899         Insert necessary parentheses.
110900         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
110901         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
110903 2002-11-19  Bruno Haible  <bruno@clisp.org>
110905         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
110906         * lib/mbswidth.h: Include <stddef.h>, for size_t.
110908         * lib/mbswidth.h (PARAMS): Remove macro.
110909         (mbswidth, mbsnwidth): Use ANSI C function declarations.
110910         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
110912         * lib/gcd.h (PARAMS): Remove macro.
110913         (gcd): Use ANSI C function declarations.
110914         * lib/gcd.c (gcd): Likewise.
110916 2002-11-15  Bruno Haible  <bruno@clisp.org>
110918         * lib/strcspn.c: Include <stddef.h>.
110919         (strcspn): Use ANSI C function declaration. Change return type to
110920         size_t. Use NULL.
110921         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
110922         (strpbrk): Use NULL.
110923         * lib/strpbrk.h (PARAMS): Remove macro.
110924         (strpbrk): Use ANSI C function declaration.
110925         * lib/strstr.c: Don't include <sys/types.h>.
110926         * lib/strstr.h (PARAMS): Remove macro.
110927         (strstr): Use ANSI C function declarations.
110929 2002-11-14  Karl Berry  <karl@gnu.org>
110931         * config/mkinstalldirs: `do' on separate line, instead of
110932         `for var; do'.
110934 2002-11-06  Bruno Haible  <bruno@clisp.org>
110936         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
110937         * lib/gcd.c (gcd): Likewise.
110939 2002-11-05  Bruno Haible  <bruno@clisp.org>
110941         * lib/gcd.h: New file, from gettext-0.11.5.
110942         * lib/gcd.c: New file, from gettext-0.11.5.
110944 2002-11-05  Bruno Haible  <bruno@clisp.org>
110946         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110947         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110948         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110949         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110951         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
110952         <libintl.h>.
110953         * lib/makepath.c: Include gettext.h instead of <locale.h> and
110954         <libintl.h>.
110956         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
110957         * lib/human.c: Include gettext.h instead of <libintl.h>.
110958         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
110959         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
110960         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
110961         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
110962         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
110963         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
110964         (textdomain): Remove definition.
110965         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
110967         * lib/long-options.c: Remove include of <libintl.h> and definition of
110968         _.
110969         * lib/same.c: Remove include of <libintl.h> and definition of _.
110971 2002-11-04  Owen Taylor  <otaylor@redhat.com>
110973         * lib/config.charset: A few additions for Solaris.
110975 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110977         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
110978         * lib/localcharset.c (locale_charset): Declare as extern "C".
110980 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110982         * lib/config.charset: msdos in uk_UA uses CP1125.
110984 2002-11-04  Bruno Haible  <bruno@clisp.org>
110986         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
110987         * lib/strcase.h: New file, from GNU gettext-0.11.5.
110988         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
110989         * lib/strstr.h: New file, from GNU gettext-0.11.5.
110990         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
110992 2002-11-04  Bruno Haible  <bruno@clisp.org>
110994         * lib/localcharset.c (locale_charset): Don't return an empty string.
110996 2002-11-04  Bruno Haible  <bruno@clisp.org>
110998         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
110999         aliases.
111001 2002-11-04  Bruno Haible  <bruno@clisp.org>
111003         * lib/config.charset: Update for newest glibc. Add canonical names
111004         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
111006 2002-11-04  Bruno Haible  <bruno@clisp.org>
111008         * lib/config.charset: Add support for NetBSD.
111010 2002-11-04  Bruno Haible  <bruno@clisp.org>
111012         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
111014 2002-11-01  Bruno Haible  <bruno@clisp.org>
111016         * configure.in: Add AC_CONFIG_AUX_DIR call.
111017         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
111018         test/Makefile.
111019         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
111021 2002-09-28  Karl Berry  <karl@gnu.org>
111023         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
111024         installed automake until the next release, since changes have been
111025         made.
111027 2002-09-25  Karl Berry  <karl@gnu.org>
111029         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
111030         * lib/getopt*: copy from libc/posix.
111031         * lib/gettext.h: copy from gettext.
111032         * lib/.cppi-disable: add strdup.c, gettext.h.
111034 2002-09-25  Karl Berry  <karl@gnu.org>
111036         * config/srclist.txt: enable gettext.h check.
111037         * config/config.{guess,sub}: update from prep.
111038         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
111039                 from automake 1.6.3.
111040         See srclist*.
111042 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
111044         * regex.c (PATFETCH): Remove the translating fetch.
111045         (PATFETCH_RAW): Rename to PATFETCH.
111046         (set_image_of_range): New fun.
111047         (SET_RANGE_TABLE_WORK_AREA): Use it.
111048         (regex_compile): Don't translate the pattern chars so eagerly.
111049         Only do it when inserting an `exactn' bytecode or when handling
111050         a char-range.
111051         (mutually_exclusive_p): Avoid empty statement.
111053 2002-07-06  Jim Meyering  <meyering@lucent.com>
111055         * m4/README: Don't mention Makefile.am.in.
111056         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
111058 2002-07-01  Jim Meyering  <meyering@lucent.com>
111060         * lib/c-stack.c: Include sys/time.h.
111061         From Volker Borchert.
111063 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
111067 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111069         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
111070         New macro.  Use it uniformly instead of
111071         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
111072         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
111073         reported by Vin Shelton.
111075 2002-06-22  Paul Eggert  <eggert@twinsun.com>
111077         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
111078         Do not assume SA_SIGINFO behavior.
111079         Bug reported by Jim Meyering on NetBSD 1.5.2.
111081 2002-06-22  Jim Meyering  <meyering@lucent.com>
111083         * m4/c-stack.m4: New file, from diffutils-2.8.2.
111084         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
111086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
111087         now that configure.ac uses AC_GNU_SOURCE.
111088         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
111089         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
111091         Update to latest tools.  Suggestions from Paul Eggert.
111092         * m4/stdbool.m4: New file, from diffutils-2.8.2.
111093         * m4/gnu-source.m4: Update from diffutils-2.8.2.
111094         * m4/fnmatch.m4: Likewise.
111095         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
111096         to AC_HEADER_STDBOOL
111098 2002-06-22  Jim Meyering  <meyering@lucent.com>
111100         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
111101         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
111103 2002-06-22  Jim Meyering  <meyering@lucent.com>
111105         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
111107         * lib/exitfail.c, exitfail.h: Likewise.
111108         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
111110         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
111111         of fnmatch.h.
111112         (EXTRA_DIST): Add fnmatch_loop.c.
111113         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
111115         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
111116         * lib/fnmatch.c: Update from diffutils-2.8.2.
111117         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
111118         * lib/fnmatch.h: Remove file.
111120 2002-06-21  Jim Meyering  <meyering@lucent.com>
111122         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
111123         * m4/mbrtowc.m4: Likewise.
111125         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
111126         * m4/mbswidth.m4: Reflect name change:
111127         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
111128         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111130         * m4/lib-link.m4: Update from gettext-0.11.2.
111131         * m4/gettext.m4: Likewise.
111133         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
111134         From Alfred M. Szmidt.
111136 2002-06-18  Paul Eggert  <eggert@twinsun.com>
111138         * lib/file-type.h: Report an error if neither S_ISREG nor
111139         S_IFREG is defined, instead of using a test specific to glibc
111140         2.2.  This should be safe, since POSIX requires S_ISREG and
111141         Unix Version 7 had S_IFREG.  We don't need to check for
111142         <sys/types.h> since we don't use any symbols that it defines.
111144 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
111146         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
111147         $@-t, so that each temporary file name is unique and valid in the first
111148         8 characters, for operation under DOS.
111150 2002-06-15  Paul Eggert  <eggert@twinsun.com>
111152         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
111154 2002-06-15  Jim Meyering  <meyering@lucent.com>
111156         Work even with DJGPP 2.03, which lacks support for symlinks.
111157         From Richard Dawe.
111158         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
111159         is defined.
111160         * lib/lchown.c (S_ISLNK): Likewise.
111162 2002-06-15  Jim Meyering  <meyering@lucent.com>
111164         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
111165         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
111166         have been included before this file.
111168 2002-06-14  Jim Meyering  <meyering@lucent.com>
111170         * lib/file-type.h: Use the version from diffutils-2.8.2.
111171         * lib/file-type.c: Likewise.
111173 2002-06-07  Jim Meyering  <meyering@lucent.com>
111175         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
111176         They're needed at least for NetBSD 1.5.2.
111177         ($statxfs_includes): Include those same headers.
111178         ($statxfs_includes): Include sys/vfs.h if available.
111179         ($statxfs_includes): Likewise for sys/statvfs.h.
111180         Check for the following members in both structs statfs and statvfs:
111181         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
111183 2002-06-01  Jim Meyering  <meyering@lucent.com>
111185         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
111186         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
111188 2002-05-28  Jim Meyering  <meyering@lucent.com>
111190         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
111191         Reported by Volker Borchert.
111193 2002-05-27  Jim Meyering  <meyering@lucent.com>
111195         Fix a problem seen only on nonconforming systems whereby ls.c's
111196         use of localtime, and then of gettimeofday would cause trouble:
111197         the localtime call used to initialize rpl_gettimeofday's save
111198         mechanism would clobber ls's current local time information so
111199         that in any long listing the first file would always be listed
111200         with date 1970-01-01.  Analysis by Volker Borchert.
111202         * lib/gettimeofday.c (localtime): Undefine.
111203         (rpl_localtime): New function.
111205 2002-05-27  Jim Meyering  <meyering@lucent.com>
111207         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
111208         localtime.
111210         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
111211         use the replacement function; it wouldn't resolve at link time.
111212         Reported by Volker Borchert.
111214 2002-05-22  Jim Meyering  <meyering@lucent.com>
111216         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
111217         file-type.h.
111218         * lib/file-type.h: New file.
111219         * lib/file-type.c (file_type): New file/function.  Extracted from
111220         diffutils.
111222 2002-04-30  Jim Meyering  <meyering@lucent.com>
111224         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
111226 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111228         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
111230 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111232         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
111233         Do not check for alloca.h (no longer used) or stdbool.h (was never
111234         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
111236 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111238         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
111240 2002-04-29  Jim Meyering  <meyering@lucent.com>
111242         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
111243         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
111244         Use AC_FUNC_STRNLEN here instead.
111246         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
111247         With autoconf-2.53a, it's part of AC_PROG_CC.
111249 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111251         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
111252         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
111254 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111256         * lib/sig2str.h, lib/sig2str.c: New files.
111257         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
111259 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111261         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
111262         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
111263         of 127, since 64 is the largest conceivable number for ancient
111264         nonstandard hosts.
111265         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
111267 2002-04-28  Jim Meyering  <meyering@lucent.com>
111269         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
111271 2002-04-24  Jim Meyering  <meyering@lucent.com>
111273         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
111274         (jm_PREREQ): Use it.
111276         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
111277         mach/mach.h fcntl.h.
111278         Check for this function: setlocale.
111280 2002-04-24  Jim Meyering  <meyering@lucent.com>
111282         * lib/gettext.h: New file, from Gettext.
111283         * lib/Makefile.am (INCLUDES): Remove -I../intl.
111284         (libfetish_a_SOURCES): Add gettext.h.
111286 2002-04-16  Jim Meyering  <meyering@lucent.com>
111288         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
111289         ut_pid, ut_id, ut_exit.
111291 2002-04-16  Jim Meyering  <meyering@lucent.com>
111293         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
111294         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
111295         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
111297 2002-04-12  Jim Meyering  <meyering@lucent.com>
111299         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
111300         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
111301         existence of the getmntinfo function.  Needed for Darwin 5.3.
111303         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
111304         This is necessary at least on Darwin 5.3.
111306         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
111307         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
111308         strnlen.o in the library, and that makes some versions of ranlib
111309         object.
111311 2002-04-12  Jim Meyering  <meyering@lucent.com>
111313         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
111315 2002-04-09  Jim Meyering  <meyering@lucent.com>
111317         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
111318         to be more precise.  Rather than saying we're checking whether the
111319         function `works', say what we're testing.
111320         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
111321         Reported by Bruno Haible.
111323 2002-03-10  Jim Meyering  <meyering@lucent.com>
111325         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
111326         Suggestion from Santiago Vila.
111328 2002-03-08  Jim Meyering  <meyering@lucent.com>
111330         * lib/rename.c: Mention that this wrapper is needed also on
111331         mips-dec-ultrix4.4 systems.
111333 2002-03-02  Jim Meyering  <meyering@lucent.com>
111335         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
111336         not HAVE_CLOCK_SETTIME.
111338 2002-02-27  Paul Eggert  <eggert@twinsun.com>
111340         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
111341         Check for clock_settime.
111343 2002-02-27  Paul Eggert  <eggert@twinsun.com>
111345         * lib/nanosleep.h: Rename to....
111346         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
111348         * lib/gettime.c: New file.
111349         * lib/settime.c: New file.
111350         * lib/stime.c: Remove.
111352         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
111353         timespec.h.  Remove nanosleep.h.
111355 2002-02-25  Paul Eggert  <eggert@twinsun.com>
111357         * m4/acl.m4: New file.
111358         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
111359         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
111361 2002-02-25  Paul Eggert  <eggert@twinsun.com>
111363         * lib/acl.c, lib/acl.h: New files.
111364         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
111366 2002-02-24  Jim Meyering  <meyering@lucent.com>
111368         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
111369         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
111370         cause trouble.  Reported by Nelson Beebe.
111372 2002-02-23  Paul Eggert  <eggert@twinsun.com>
111374         * lib/path-concat.c (xpath_concat): Reorder code to pacify
111375         compilers that don't know that xalloc_die never returns.
111377 2002-02-20  Jim Meyering  <meyering@lucent.com>
111379         * lib/getdate.c: Regenerate using bison-1.33.
111381 2002-02-17  Jim Meyering  <meyering@lucent.com>
111383         * config/config.guess (main): Don't use `head -1'; it's no longer
111384         portable. Use `sed 1q' instead.
111386 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
111388         * m4/codeset.m4: Upgrade to gettext-0.11.
111389         * m4/gettext.m4: Upgrade to gettext-0.11.
111390         * m4/glibc21.m4: Upgrade to gettext-0.11.
111391         * m4/iconv.m4: Upgrade to gettext-0.11.
111392         * m4/isc-posix.m4: Upgrade to gettext-0.11.
111393         * m4/lcmessage.m4: Upgrade to gettext-0.11.
111394         * m4/lib-ld.m4: New file, from gettext-0.11.
111395         * m4/lib-link.m4: New file, from gettext-0.11.
111396         * m4/lib-prefix.m4: New file, from gettext-0.11.
111397         * m4/progtest.m4: Upgrade to gettext-0.11.
111399 2002-02-15  Paul Eggert  <eggert@twinsun.com>
111401         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
111402         (jm_PREREQ): Use it.
111404 2002-02-15  Paul Eggert  <eggert@twinsun.com>
111406         * lib/posixver.c, lib/posixver.h: New files.
111407         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111409 2002-02-02  Paul Eggert  <eggert@twinsun.com>
111410             Bruno Haible  <bruno@clisp.org>
111412         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
111413         (fwrite_success_callback): New declaration.
111414         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
111415         print_unicode_char. Call failure callback instead of error.
111416         (fwrite_success_callback): New function.
111417         (exit_failure_callback): New function.
111418         (fallback_failure_callback): New function.
111419         (print_unicode_char): Call unicode_to_mb.
111421 2002-01-26  Jim Meyering  <meyering@lucent.com>
111423         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
111424         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
111426 2002-01-26  Jim Meyering  <meyering@lucent.com>
111428         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
111430 2002-01-22  Paul Eggert  <eggert@twinsun.com>
111432         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
111434 2002-01-22  Jim Meyering  <meyering@lucent.com>
111436         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
111437         Otherwise, some versions of automake would omit the rule that makes
111438         Makefile from Makefile.in.
111440 2002-01-21  Paul Eggert  <eggert@twinsun.com>
111442         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
111443         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111444         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
111445         (memcoll): Set errno to zero if there is no error.
111447         * lib/quotearg.c (quotearg_buffer_restyled):
111448         Fix bug with quoting buffers containing NUL when backslashing escapes.
111449         This bug was exposed by the other changes in this patch.
111450         (quotearg_n_options): New arg ARGSIZE.
111451         All callers changed.
111452         (quoting_options_from_style): New function.
111453         (quotearg_n_style): Use it.
111454         (quotearg_n_style_mem): New function.
111456         * lib/quotearg.h (quotearg_n_style_mem): New function.
111458 2002-01-19  Jim Meyering  <meyering@lucent.com>
111460         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
111461         Remove useless quotes: DF_PROG="df".
111462         * m4/strnlen.m4: New file.
111464 2002-01-16  Paul Eggert  <eggert@twinsun.com>
111466         * lib/backupfile.c (ISDIGIT): Comment fix.
111467         * lib/getdate.y (ISDIGIT): Likewise.
111468         * lib/posixtm.c (ISDIGIT, year): Likewise.
111469         * lib/strverscmp.c (ISDIGIT): Likewise.
111470         * lib/userspec.c (ISDIGIT): Likewise.
111472 2002-01-16  Jim Meyering  <meyering@lucent.com>
111474         * lib/getdate.y: Add three semicolons, each just before a closing
111475         brace. Bison (as of version 1.31) no longer papers over that mistake.
111477 2002-01-05  Jim Meyering  <meyering@lucent.com>
111479         * lib/version-etc.c (version_etc_copyright): Update copyright year.
111481 2001-12-19  Paul Eggert  <eggert@twinsun.com>
111483         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
111484         not silently exit merely because the output buffer happens to
111485         have nothing pending.
111487 2001-12-18  Paul Eggert  <eggert@twinsun.com>
111489         See the big note in ../ChangeLog.
111490         * lib/human.c (suffixes): Prefer K to k for 1024.
111491         (generate_suffix_backwards): New function.
111492         (human_readable_inexact): Use it.
111493         * lib/xstrtol.c (__xstrtol): If there is no number but there
111494         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
111495         Accept 'K' as well as 'k'.
111497 2001-12-15  Jim Meyering  <meyering@lucent.com>
111499         * lib/regex.h (__restrict_arr): Update from libc.
111501         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
111502         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
111503         (STREQ): Define.
111505 2001-12-14  Jim Meyering  <meyering@lucent.com>
111507         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
111508         Suggestion from Bruno Haible.
111510 2001-12-10  Jim Meyering  <meyering@lucent.com>
111512         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
111513         xrealloc, Instead, include "xalloc.h".
111514         (initbuffer): Don't cast xmalloc return value to char*.
111515         (readline): Reword comment.
111516         Don't cast xrealloc return value to char*
111517         Return NULL, not 0.
111519 2001-12-09  Jim Meyering  <meyering@lucent.com>
111521         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
111522         about `signed and unsigned type in conditional expression'.
111523         * lib/posixtm.c (posix_time_parse): Likewise.
111525         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
111527         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
111528         to avoid a pedantic warning.
111530         * lib/getstr.c: Don't include assert.h.
111531         (getstr): Remove warning-evoking assertions.
111532         Return -1 if offset parameter is out of bounds.
111533         Change the type of a local from int to size_t.
111535         * lib/strftime.c (my_strftime_localtime_r): Include this function
111536         definition in the `#if ! HAVE_TM_GMTOFF' block.
111538         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
111539         Include xalloc.h instead.
111541 2001-12-02  Jim Meyering  <meyering@lucent.com>
111543         * lib/tempname.c: Don't declare getenv, thus reverting the change of
111544         2001-11-18.  It's no longer necessary, now that stdlib.h is always
111545         included.
111547         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
111548         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
111550 2001-11-30  Akim Demaille  <akim@epita.fr>
111552         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
111553         before being defined.
111555 2001-11-27  Paul Eggert  <eggert@twinsun.com>
111557         * lib/quotearg.h (quotearg_n, quotearg_n_style):
111558         First arg is int, not unsigned.
111559         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
111560         (SIZE_MAX, UINT_MAX): New macros.
111561         (quotearg_n_options): Abort if N is negative.
111562         Avoid overflow check on hosts where size_t is 64 bits and int
111563         is 32 bits, as overflow is impossible there.
111564         Fix off-by-one typo that caused unnecessary reallocation.
111566 2001-11-27  Jim Meyering  <meyering@lucent.com>
111568         * lib/tempname.c: Merge with version from libc.
111569         * lib/regex.c: Likewise.
111571         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
111572         systems for which STDC_HEADERS is 0, it was not included, resulting in
111573         a warning about an integer-to-pointer conversion problem with getenv.
111574         Reported by Volker Borchert.
111576 2001-11-26  Jim Meyering  <meyering@lucent.com>
111578         * lib/gtod.h: Remove file.
111579         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
111580         * lib/gettimeofday.c: Don't include gtod.h.
111581         (GTOD_init): Remove function.
111582         (rpl_gettimeofday): Do its job here instead, rather than aborting.
111583         Suggestion from Volker Borchert.
111585 2001-11-23  Jim Meyering  <meyering@lucent.com>
111587         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
111588         it.
111589         * lib/hash.c (struct hash_table): Define it here instead.
111591 2001-11-22  Jim Meyering  <meyering@lucent.com>
111593         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
111595 2001-11-20  Jim Meyering  <meyering@lucent.com>
111597         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
111598         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
111600 2001-11-19  Jim Meyering  <meyering@lucent.com>
111602         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
111603         directory.  Use "conftestXXXXXX" as the template.
111604         Suggestion from Paul Eggert.
111606         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
111607         immediately, so the test doesn't mistakenly hit the max-open-files
111608         limit.
111610 2001-11-18  Paul Eggert  <eggert@twinsun.com>
111612         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
111613         (TEMPORARIES): New macro.
111614         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
111615         removes an artificial limitation (e.g. HP-UX 10.20, where
111616         TMP_MAX is 17576).
111618 2001-11-18  Jim Meyering  <meyering@lucent.com>
111620         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
111622 2001-11-18  Jim Meyering  <meyering@lucent.com>
111624         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
111625         on SunOS 4.
111627         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
111628         files will be created before anything else.
111630 2001-11-17  Paul Eggert  <eggert@twinsun.com>
111632         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
111633         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
111635 2001-11-17  Jim Meyering  <meyering@lucent.com>
111637         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
111638         Prompted by a report from Bob Proulx.
111640         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
111641         Instead, require UTILS_FUNC_MKSTEMP.
111643 2001-11-17  Jim Meyering  <meyering@lucent.com>
111645         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
111646         Now, that's done as part of AC_FUNC_STRTOD.
111648 2001-11-17  Jim Meyering  <meyering@lucent.com>
111650         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
111651         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
111652         rather than group writable.  Patch by Juan F. Codagnone.
111654         * lib/readtokens.c: Remove explicit declarations of xmalloc and
111655         xrealloc, Instead, include "xalloc.h".
111657         * lib/mountlist.c: Include unlocked-io.h after all system headers.
111658         Remove explicit declarations of xmalloc, xrealloc,
111659         and xstrdup.  Instead, include "xalloc.h".
111661         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
111662         unlocked-io.h.
111663         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
111664         Likewise.
111665         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
111667         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
111668         Reported by Padraig Brady.
111670         * lib/mkstemp.c: #undef mkstemp.
111671         Include config.h.
111672         (rpl_mkstemp): Rename from mkstemp.
111673         Protoize.
111675 2001-11-16  Jim Meyering  <meyering@lucent.com>
111677         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
111678         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
111679         determine the amount of total physical memory, use pstat_getstatic.
111680         HPUX-11 doesn't define _SC_PHYS_PAGES.
111681         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
111682         If sysconf couldn't be used to determine the amount of available
111683         physical memory, use both pstat_getstatic and pstat_getdynamic.
111684         Based on a patch from Bob Proulx.
111686 2001-11-10  Jim Meyering  <meyering@lucent.com>
111688         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
111689         (jm_PREREQ): Use it.
111691 2001-11-09  Jim Meyering  <meyering@lucent.com>
111693         * m4/jm-macros.m4: Require autoconf-2.52f.
111694         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
111695         Use these AC_-prefixed names, not the AM_-prefixed ones.
111697         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
111699 2001-11-05  Jim Meyering  <meyering@lucent.com>
111701         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
111703 2001-11-04  Jim Meyering  <meyering@lucent.com>
111705         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
111706         $DEFS.
111708 2001-11-03  Jim Meyering  <meyering@lucent.com>
111710         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
111711         of AC_DEFUN.
111713         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
111714         know the name of the variable in the macro definition.
111716 2001-11-03  Jim Meyering  <meyering@lucent.com>
111718         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
111719         in argmatch_to_argument call.
111721         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
111722         argument.
111724         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
111725         e.g., a fault due to an attempt to free a NULL pointer.
111727 2001-11-01  Jim Meyering  <meyering@lucent.com>
111729         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
111730         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
111732 2001-11-01  Jim Meyering  <meyering@lucent.com>
111734         * lib/dirfd.c, lib/dirfd.h: New files.
111735         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
111737         * lib/hash.c (hash_print) [TESTING]: Clean up.
111739 2001-10-22  Paul Eggert  <eggert@twinsun.com>
111741         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
111742         to avoid a warning if -Wall.
111744 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
111746         * README: New file
111747         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
111748         (per RMS's instructions, this is now the canonical source)
111749         * lgpl/, gpl/: New directories.
111751 2001-10-21  Paul Eggert  <eggert@twinsun.com>
111753         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
111755 2001-10-21  Jim Meyering  <meyering@lucent.com>
111757         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
111758         this code would end up calling gettext even in packages built
111759         with --disable-nls.
111760         * lib/getopt.c (_): Likewise.
111761         * lib/regex.c (_): Likewise.
111763 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111765         * m4/error.m4 (jm_PREREQ_ERROR):
111766         Do not invoke AC_CHECK_FUNCS with strerror_r, as
111767         AC_FUNC_STRERROR_R does that.
111768         Check for strerror declaration.
111770         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
111771         are supposed to have them these days.
111772         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
111773         Merge changes from latest Autoconf CVS.
111774         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
111775         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
111776         POSIX decided to standardize on the int flavor of strerror_r.
111778 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111780         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
111781         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
111782         Use strerror_r that is only a macro, even if it is not a function.
111783         (strerror): Check for HAVE_DECL_STRERROR before declaring.
111784         (private_strerror): Use prototypes, not old-style function definition.
111785         (print_errno_message): New function.
111786         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
111787         char*-flavored one.
111788         (error_tail, error, error_at_line): Use it.
111790 2001-10-11  Jim Meyering  <meyering@lucent.com>
111792         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
111793         and quote_n (1, ... to avoid clobbering a buffer.
111795 2001-10-05  Jim Meyering  <meyering@lucent.com>
111797         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
111798         hash-pjw.h.
111799         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
111800         * lib/hash-pjw.h: New file.
111802 2001-09-30  Jim Meyering  <meyering@lucent.com>
111804         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
111805         `struct fsstat' has the `f_fstypename' member.
111806         Use that to define FS_TYPE, which is now used to make
111807         the getfsstat link test tighter.
111809 2001-09-30  Jim Meyering  <meyering@lucent.com>
111811         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
111812         Include <sys/ucred.h>, for Apple Darwin.
111813         Include sys/mount.h and sys/fs_types.h only if available.
111814         (FS_TYPE): Define.
111815         (read_filesystem_list): Use FS_TYPE.
111817 2001-09-29  Paul Eggert  <eggert@twinsun.com>
111819         * lib/exclude.c (excluded_filename): 0 -> false, since it's
111820         a boolean context.
111822 2001-09-29  Jim Meyering  <meyering@lucent.com>
111824         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111825         [one-argument getmntent function]): Include stdio.h before mntent.h.
111826         SunOS 4.1.x needs it for the declaration of `FILE'.
111827         Patch by Volker Borchert.
111829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111830         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
111831         sys/fs_types.h, and make the link-test for getfsstat guard #include
111832         directives with appropriate #if HAVE_*_H tests so that we can
111833         detect getfsstat on Apple Darwin1.3.7 systems.
111834         Reported by Nelson Beebe.
111835         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
111837 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111839         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111840         #defines strtoimax.  Also treat the other strto* functions
111841         like strtoimax.
111843         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111844         Check for strtoul and strtoumax,
111845         as those declarations are made even in the signed case.
111846         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
111847         Likewise, for strtol and strtoimax.
111849 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111851         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111852         #defines strtoimax.  Also treat the other strto* functions
111853         like strtoimax.
111855         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
111856         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
111857         (strtoimax, strtoumax): Do not declare if already defined as a macro.
111859 2001-09-26  Jim Meyering  <meyering@lucent.com>
111861         Most macros in unlocked-io.h had the wrong number of arguments.
111862         * lib/gen-uio: New script.
111863         (USE_UNLOCKED_IO): Define to 1 if not already defined.
111864         * lib/unlocked-io.hin: Remove file.
111865         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
111866         rather than trying to embed it here.
111867         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
111868         Reported by Padraig Brady.
111870 2001-09-25  Volker Borchert  <bt@teknon.de>
111872         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
111873         `result'.
111875 2001-09-24  Jim Meyering  <meyering@lucent.com>
111877         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
111879 2001-09-23  Jim Meyering  <meyering@lucent.com>
111881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
111882         instead of the mere test for existence of mntent.h.  The latter
111883         would get a false-positive on AIX 3.4 systems.
111884         In the outer getmntent if-block, don't die if neither of the getmntent
111885         tests succeeds.  Instead, just fall through and continue with the
111886         remaining tests.
111888 2001-09-23  Jim Meyering  <meyering@lucent.com>
111890         * lib/mountlist.c: Remove useless parentheses in #if directives.
111891         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
111892         the deprecated MOUNTED symbol is no longer defined in mntent.h.
111894 2001-09-22  Jim Meyering  <meyering@lucent.com>
111896         * m4/gettext.m4: New file.  From gettext.
111897         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
111898         * m4/progtest.m4: Likewise
111899         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
111900         * m4/glibc21.m4: Likewise.
111902         * m4/libintl.m4: Remove.  No longer used.
111904 2001-09-22  Jim Meyering  <meyering@lucent.com>
111906         * lib/localcharset.c: Update from latest gettext.
111907         * lib/config.charset: Likewise.
111909 2001-09-20  Jim Meyering  <meyering@lucent.com>
111911         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
111912         strtoimax.
111913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
111914         strtoumax.
111916 2001-09-20  Jim Meyering  <meyering@lucent.com>
111918         * lib/xstrtol.c (strtoimax): Guard declaration with
111919         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
111920         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
111921         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
111922         (strtoumax): Likewise, for completeness (it wasn't necessary).
111924 2001-09-17  Paul Eggert  <eggert@twinsun.com>
111926         * lib/strtoimax.c (HAVE_LONG_LONG):
111927         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
111928         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
111929         to work around bug in IBM C compiler.
111931 2001-09-17  Jim Meyering  <meyering@lucent.com>
111933         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
111934         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
111935         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
111936         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
111937         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
111938         whenever the right hand side need not be expanded by the shell.
111940 2001-09-16  Paul Eggert  <eggert@twinsun.com>
111942         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
111943         library.  It's not correct, as some older glibcs are buggy.
111944         fnmatch wasn't fixed until glibc 2.2.
111946         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
111947         special shell magic here.
111949 2001-09-16  Jim Meyering  <meyering@lucent.com>
111951         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
111952         * m4/jm-macros.m4: Require it.
111954 2001-09-16  Jim Meyering  <meyering@lucent.com>
111956         * lib/mkdir.c: New file.
111958 2001-09-15  Jim Meyering  <meyering@lucent.com>
111960         * m4/jm-macros.m4: Check for help2man.
111962 2001-09-11  Jim Meyering  <meyering@lucent.com>
111964         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
111965         The body, by Paul Eggert, was moved here from configure.in.
111966         * m4/jm-macros.m4: Require UTILS_HOST_OS.
111968 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111970         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
111971         (jm_PREREQ): Use it.
111973 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111975         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
111976         Use ssize_t, not int, to store result of readlink.
111977         Check for ssize_t overflow as well as size_t overflow,
111978         as POSIX says the result of readlink is implementation-defined
111979         when ssize_t overflows.
111980         Remove unnecessary cast to char*.
111981         Use free+malloc instead of realloc, as the storage doesn't need
111982         to be preserved and it's clearer and can be more efficient that way.
111983         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
111984         * lib/xreadlink.h (xreadlink): Update prototype.
111986 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111988         * lib/xgetcwd.c: Revert some of the previous change; intead,
111989         fix the HAVE_GETCWD_NULL code to behave more like the
111990         !HAVE_GETCWD_NULL code used to.
111992         Include "xalloc.h".
111993         (xgetcwd): Do not return NULL when memory is exhausted; instead,
111994         invoke xalloc_die.
111996 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111998         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
111999         sys/param.h, as pathmax.h includes them.
112001 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
112004         (jm_PREREQ_XGETCWD): New macro.
112006         * m4/getcwd.m4: New file.
112008 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112010         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
112011         like the HAVE_GETCWD_NULL code.
112012         Include pathmax.h if not HAVE_GETCWD.
112013         Do not include xalloc.h.
112014         (INITIAL_BUFFER_SIZE): New symbol.
112015         Do not use xmalloc / xrealloc, since the caller is responsible for
112016         handling errors.  Preserve errno around `free' during failure.
112017         Do not overrun buffer when using getwd.
112019 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112021         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
112022         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
112023         getcwd (NULL, 0).
112025 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112027         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
112028         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
112029         spotted by Jim Meyering.
112031 2001-09-03  Jim Meyering  <meyering@lucent.com>
112033         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
112034         failure.
112036 2001-09-02  Jim Meyering  <meyering@lucent.com>
112038         * lib/error.c: Update from GNU libc.
112040 2001-09-01  Jim Meyering  <meyering@lucent.com>
112042         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
112043         Used by df.
112045 2001-09-01  Jim Meyering  <meyering@lucent.com>
112047         * lib/xreadlink.c: New file.
112048         * lib/xreadlink.h: New file.
112049         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
112050         xreadlink.h.
112052         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
112053         doesn't conflict with sparc Solaris 7's definition in
112054         /usr/include/sys/int_types.h.
112056         * lib/exclude.c: Use `""', not `<>' to #include non-system header
112057         files.
112058         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
112059         and strncasecmp as r-values.  Unixware didn't have declarations.
112061 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112063         * lib/xstrtol.h: Add copyright notice.
112064         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
112065         LONGINT_INVALID_SUFFIX_CHAR.
112067 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112069         * lib/xstrtol.c (strtoimax): New decl.
112071 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112073         * lib/xgetcwd.c: Don't include pathmax.h.
112074         Include stdlib.h and unistd.h if available.
112075         Include xalloc.h.
112076         (xmalloc, xstrdup, free): Remove decls.
112077         (xgetcwd): Don't assume sizes fit in unsigned.
112078         Check for overflow when computing sizes.
112079         Simplify reallocation code.
112081 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112083         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
112084         a directory's st_size can have an arbitrary value, so the old
112085         usage could waste an arbitrary amount of memory.  All uses
112086         changed.
112087         * lib/savedir.h: Update prototype.
112089 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112091         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
112093         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
112094         old strtoimax.c.
112096         Also, make the following further changes to make this file's
112097         configuration more similar to that of strtol.c:
112098         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
112099         (strtoumax, uintmax_t, strtoull, strtol): Remove.
112100         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
112101         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
112102         changed to signed values.
112104         And make the following changes as well:
112105         Fix copyright notice, as 1999 was missing.
112106         (verify): New macro.
112107         (strtoimax): Check sizes at compile-time, not run-time.
112108         Prefer strtol to strtoll if both work.
112109         (main): Remove; it was not that useful and was a pain to maintain.
112111         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
112113 2001-08-31  Jim Meyering  <meyering@lucent.com>
112115         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
112116         Use an initial, malloc'd, buffer of length 128 rather than
112117         a statically allocated one of length 1024.
112119 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112121         Simplify code, partly by assuming autoconf 2.52 semantics.
112123         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
112125         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
112126         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
112127         All uses removed.
112128         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
112129         Move AC_REQUIRE to next-to-top level, to avoid confusion.
112130         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
112131         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
112132         jm_AC_HEADER_INTTYPES_H.
112133         * m4/jm-macros.m4 (jm_MACROS): Likewise.
112135         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
112137         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112138         Quote first arg of AC_DEFUN.
112139         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
112140         since they are needed to parse the include file even if we need
112141         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
112142         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
112143         but with opposite signedness.
112145 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112147         Merge 'exclude' changes from tar 1.13.22.
112148         This fixes one or two unlikely storage allocation overflow bugs,
112149         but doesn't change user-visible behavior otherwise.
112151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
112154         (jm_PREREQ_EXCLUDE): New macro.
112156 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112158         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
112159         tm to be declared.
112161 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112163         * lib/hash.c: Remove '2001' from copyright notice.
112165 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112167         * lib/full-write.h: New file.
112168         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
112169         * lib/full-write.c: Correct credits, as cccp.c no longer
112170         exists and anyway it was so heavily changed from the old cccp
112171         code as to be unrecognizable.  Include full-write.h.
112172         (full_write): Return size_t, with short writes meaning failure.
112173         All callers changed.  This fixes a bug with large buffers
112174         on 64-bit hosts.
112175         * lib/utime.c: Include full-write.h.
112177 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112179         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
112180         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
112181         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
112182         Include if available.
112183         (<xalloc.h>): Include
112184         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
112185         (verify): New macro.  Use it to verify that EXCLUDE macros do not
112186         collide with FNM macros.
112187         (struct patopts): New struct.
112188         (struct exclude): Use it, as exclude patterns now come with options.
112189         (new_exclude): Support above changes.
112190         (new_exclude, add_exclude_file):
112191         Initial size must now be a power of two to simplify overflow checking.
112192         (free_exclude, fnmatch_no_wildcards): New function.
112193         (excluded_filename): No longer requires options arg, as the options
112194         are determined by add_exclude.  Now returns bool, not int.
112195         (excluded_filename, add_exclude):
112196         Add support for the fancy new exclusion options.
112197         (add_exclude, add_exclude_file): Now takes int options arg.
112198         Check for arithmetic overflow when computing sizes.
112199         (add_exclude_file): xrealloc might modify errno, so don't
112200         realloc until after errno might be used.
112202         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
112203         New macros.
112204         (free_exclude): New decl.
112205         (add_exclude, add_exclude_file): Now takes int options arg.
112206         (excluded_filename): No longer requires options arg, as the options
112207         are determined by add_exclude.  Now returns bool, not int.
112209 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112211         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
112213 2001-08-27  Jim Meyering  <meyering@lucent.com>
112215         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
112217         * lib/version-etc.c (N_): Remove definition.
112218         Revert most of last change.
112219         Instead, simply don't mark the `Copyright...' string for translation.
112220         Based on advice from Paul Eggert.
112222         * lib/strtoxmax.c: Tweak comment.
112224 2001-08-26  Jim Meyering  <meyering@lucent.com>
112226         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
112228         * m4/xstrtoimax.m4: New file.
112229         * m4/xstrtoumax.m4: Add comments explaining why we
112230         AC_REPLACE_FUNCS(strtol).
112232 2001-08-26  Jim Meyering  <meyering@lucent.com>
112234         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
112235         of copyright with `%s' so translators don't get an untranslated
112236         message in 2002.
112237         (COPYRIGHT_YEAR): Define.
112238         (version_etc): Use fprintf rather than fputs.
112239         Suggestion from Ulrich Drepper.
112241         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
112243         * lib/strtoll.c: New file, from GNU libc.
112244         * lib/xstrtoimax.c: New file.
112246         * lib/xstrtol.h: Add xstrtoimax.
112247         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
112248         * lib/strtoimax.c: New file.  Likewise, but first define
112249         STRTOUXMAX_SIGNED.
112251         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
112252         ...
112253         * lib/strtoxmax.c: ... then renamed to this.
112255 2001-08-18  Paul Eggert  <eggert@twinsun.com>
112257         * m4/inttypes.m4: Add AC_PREREQ(2.13).
112258         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
112259         (jm_AC_TYPE_INTMAX_T): New macro.
112260         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
112262         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
112264         * m4/longlong.m4: Renamed from ulonglong.m4.
112265         * m4/inttypes.m4: Renamed from inttypes_h.m4.
112266         * m4/uintmax_t.m4: Removed.
112268 2001-08-13  Paul Eggert  <eggert@twinsun.com>
112270         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
112271         Port to Solaris 8, where 'sed' requires a space after the 'r'
112272         command, and where sh dislikes "$/".  Clean up the spacing a bit.
112273         Redirect output to $tmp just once.
112275 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
112277         * lib/addext.c (<errno.h>): Include.
112278         (errno): Declare if not defined.
112279         (addext): Work correctly when pathconf returns -1 and leaves
112280         errno alone because there is no limit.  Also, work even if
112281         pathconf returns a value greater than SIZE_MAX.
112283 2001-08-12  Jim Meyering  <meyering@lucent.com>
112285         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
112286         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
112287         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
112288         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
112289         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
112290         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
112291         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
112292         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
112293         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
112294         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
112295         utime.m4, utimes.m4, xstrtoumax.m4:
112296         Quote the first argument in each use of AC_DEFUN.
112298 2001-08-12  Jim Meyering  <meyering@lucent.com>
112300         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
112301         Simply `return getcwd (NULL, 0);'.
112302         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
112303         Use 1300 as initial value for length, not PATH_MAX.
112305         * lib/pathmax.h: Clean up cpp syntax.
112307 2001-08-12  Jim Meyering  <meyering@lucent.com>
112309         * lib/gettimeofday.c: New file.
112310         * lib/gtod.h: New file.
112311         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
112313 2001-08-05  Jim Meyering  <meyering@lucent.com>
112315         * m4/jm-macros.m4: Require autoconf-2.52.
112317 2001-08-04  Jim Meyering  <meyering@lucent.com>
112319         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
112320         stmt, to get in sync with glibc.
112322 2001-08-03  Paul Eggert  <eggert@twinsun.com>
112324         The following changes are from gettext 0.10.39 as maintained by
112325         Bruno Haible.
112327         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
112328         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
112329         with inverted sense.  All uses changed.
112331         * lib/mbswidth.c: Don't include <limits.h>.
112332         Include <stdlib.h> and <string.h> unconditionally.
112333         (iswcntrl, mbsinit, ISCNTRL): New macros.
112334         (mbsnwidth): Use K&R style function declarations.
112335         Don't bother checking for MB_LEN_MAX == 1, since the compiler
112336         can optimize it when MB_CUR_MAX == 1.
112337         The width of control characters is zero, not 1.
112339 2001-08-03  Paul Eggert  <eggert@twinsun.com>
112341         The following changes are from gettext 0.10.39 as maintained by
112342         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
112344         * m4/codeset.m4: Upgrade to serial AM1.
112345         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
112346         all uses changed.  Quote first arg of AC_DEFUN.
112347         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
112349         * m4/iconv.m4: Upgrade to serial AM2.
112350         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
112351         Add --with-libconv-prefix.
112352         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
112353         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
112354         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
112355         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
112356         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
112358         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
112359         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
112360         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
112361         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
112362         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
112363         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
112364         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
112365         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
112366         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112368         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
112369         string.h any more.
112371         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
112372         not the default value.
112374         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
112375         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
112376         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
112377         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
112378         Also check for iswcntrl, used for wcwidth fallback.
112379         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
112380         to Autoconf 2.13.
112382 2001-08-03  Jim Meyering  <meyering@lucent.com>
112384         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
112385         as it was in the original.  Reported by Paul Eggert.
112387 2001-07-16  Jim Meyering  <meyering@lucent.com>
112389         * m4/gettimeofday.m4: New file.
112390         Prompted by a report from Bernhard Baehr.
112392 2001-07-15  Jim Meyering  <meyering@lucent.com>
112394         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
112395         stuff. Now it's in ../Makefile.cfg.
112397 2001-07-15  Jim Meyering  <meyering@lucent.com>
112399         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
112400         (BUILT_SOURCES): Add unlocked-io.h.
112401         (io_functions): Define.
112402         (unlocked-io.h): New rule.
112403         (DISTCLEANFILES): Add unlocked-io.h.
112404         (all-local): Depend on unlocked-io.h, to ensure it is created.
112406         * lib/unlocked-io.hin: New file
112408         * lib/regex.c: Update from glibc.
112410 2001-07-05  Jim Meyering  <meyering@lucent.com>
112412         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
112413         recommendation.
112414         (libfetish_a_SOURCES): Put all .h files here instead.
112415         Remove a thus-exposed (better checks in automake) duplicate and
112416         two unnecessary .h files.
112418 2001-07-04  Jim Meyering  <meyering@lucent.com>
112420         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
112421         that generates jm-glibc-io.m4 so that it doesn't trigger any make
112422         distcheck failure.
112424 2001-07-02  Jim Meyering  <meyering@lucent.com>
112426         The following changes were prompted by suggestions from Bruno Haible.
112428         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
112429         is now generated.
112430         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
112431         definition of EXTRA_DIST.
112432         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
112433         ensure that the generated file is created/updated whenever the list
112434         of $(unlocked_functions) is changed.
112435         (jm-glibc-io.m4): New rule.
112436         (unlocked-io.h): New rule -- currently unused.
112438 2001-06-24  Jim Meyering  <meyering@lucent.com>
112440         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
112441         unmatched right bracket, rather than kludging it with an extra,
112442         falsely-matching quote in a comment.  Patch by Akim Demaille.
112444 2001-06-11  Jim Meyering  <meyering@lucent.com>
112446         * lib/regex.c: Update from GNU libc.
112448 2001-05-27  Jim Meyering  <meyering@lucent.com>
112450         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
112451         Check for ut_type in struct utmp.
112453 2001-05-27  Jim Meyering  <meyering@lucent.com>
112455         * lib/readutmp.h (UT_TYPE): Define.
112457 2001-05-24  Jim Meyering  <meyering@lucent.com>
112459         * lib/argmatch.c: Include "quote.h".
112460         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
112461         quote function.  Reported by Göran Uddeborg.
112463 2001-05-22  Jim Meyering  <meyering@lucent.com>
112465         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
112466         now that we use the package-supplied version unconditionally.
112467         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
112469 2001-05-21  Jim Meyering  <meyering@lucent.com>
112471         * m4/regex.m4: Change a couple backticks to single quotes to avoid
112472         shell syntax errors.
112474 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112476         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
112478 2001-05-20  Paul Eggert  <eggert@twinsun.com>
112480         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
112481         Don't bother to check library strftime, since
112482         we'll be using our own my_strftime function anyway.
112483         Define my_strftime instead of strftime.
112485 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
112487         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
112488         which is not yet declared.
112490 2001-05-15  Jim Meyering  <meyering@lucent.com>
112492         * m4/regex.m4: Use proper quoting so brackets appear in the test
112493         program.
112494         Reported by, and with help from, Bruno Haible.
112496 2001-05-13  Jim Meyering  <meyering@lucent.com>
112498         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
112499         undefined.
112501 2001-05-11  Paul Eggert  <eggert@twinsun.com>
112503         dirname code cleanup.  base_name now behaves more compatibly
112504         with POSIX basename when given file names that have trailing
112505         slashes, and similarly for dir_name.  Add new primitives
112506         base_len and dir_len.  Put the directory-name-related decls
112507         into dirname.h.
112509         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
112510         * lib/backupfile.c (base_name): Likewise.
112511         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
112512         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
112513         * lib/makepath.c (strip_trailing_slashes): Likewise.
112514         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
112515         ISSLASH): Likewise.
112516         * lib/rename.c (strip_trailing_slashes): Likewise.
112517         * lib/same.c (base_name): Likewise.
112518         * lib/stripslash.c (ISSLASH): Likewise.
112520         * lib/addext.c: Include <dirname.h> after size_t is defined.
112521         * lib/backupfile.c: Likewise.
112523         * lib/addext.c (addext): Use base_len to trim redundant
112524         trailing slashes instead of doing it ourselves.
112525         But do not trim the last slash if it is not redundant.
112527         * lib/backupfile.c (find_backup_file_name,
112528         max_backup_version): Use base_len instead of rolling it ourselves.
112529         Handle the case of "" and (on DOS) "C:" correctly.
112531         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
112532         needed. Include <string.h>, <dirname.h>.
112533         (base_name): Allow file names ending in slashes, other than names
112534         that are all slashes.  In this case, return the basename followed
112535         by the slashes.  This is more general, and can be used in places
112536         where the original base_name purposely had an assertion failure.
112537         (base_len): New function.
112539         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
112540         Do not include <assert.h>; no longer needed.
112541         Include xalloc.h.
112542         (memrchr): Remove decl.
112543         (dir_name_r): Remove.
112544         (dir_len): Renamed from dirlen.  All callers changed.
112545         Rewrite in terms of base_name, for simplicity and consistency.
112546         (dir_name): Never return NULL.  All callers changed.
112547         Do not include <stdlib.h> in test program; no longer needed.
112548         return 0; is fine for test program.
112550         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
112551         New macros.
112552         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
112554         * lib/path-concat.c (path_concat): Use base_len to compute
112555         base length, not strlen; this means we cannot rely on memcpy
112556         to null-terminate.
112558         * lib/same.c (STREQ): Remove.
112559         (same_name): Handle the case where the basename ends in trailing '/'.
112561         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
112562         a slash was stripped.  Do not strip the last slash after a
112563         file system prefix.
112565 2001-05-11  Paul Eggert  <eggert@twinsun.com>
112567         * lib/Makefile.am (libfetish_a_SOURCES):
112568         Add strftime.c, since we now compile it on all hosts.
112570         * lib/strftime.c (my_strftime):
112571         Define to nstrftime if emacs, but only if my_strftime is not defined.
112572         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
112573         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
112574         Add one more extra argument: a nanoseconds value.
112575         All uses changed.
112576         (ns): New macro.
112577         (my_strftime function): Add %N format.
112578         (emacs_strftimeu): Renamed from emacs_strftime,
112579         with extra ut argument.
112581 2001-05-09  Paul Eggert  <eggert@twinsun.com>
112583         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
112585 2001-04-21  Jim Meyering  <meyering@lucent.com>
112587         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
112588         doesn't interfere.
112590 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112592         * m4/ftruncate.m4: Check for chsize.
112593         Link with ftruncate.o unconditionally if ftruncate is missing.
112594         This was required when cross-compiling to i586-mingw32msvc.
112596 2001-04-08  Jim Meyering  <meyering@lucent.com>
112598         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
112599         recomputed; that's necessary when the offset spans a DST transition.
112600         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
112602 2001-04-02  Jim Meyering  <meyering@lucent.com>
112604         * lib/regex.h, regex.c: Update from GNU libc.
112606 2001-03-24  Jim Meyering  <meyering@lucent.com>
112608         * m4/jm-macros.m4: Require autoconf-2.49d.
112610 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
112612         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
112614 2001-03-19  Paul Eggert  <eggert@twinsun.com>
112616         * lib/version-etc.c (version_etc_copyright): Update to 2001.
112618 2001-03-17  Jim Meyering  <meyering@lucent.com>
112620         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
112621         now that the version in autoconf is equivalent.
112622         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
112624         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
112625         Suggestion from Akim Demaille.
112627         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
112628         (jm_PREREQ_TEMPNAME): New function.
112630 2001-03-16  Paul Eggert  <eggert@twinsun.com>
112632         * lib/tempname.c (uint64_t): Define to uintmax_t if
112633         not defined, and if UINT64_MAX is not defined.
112634         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
112635         Reported by John David Anglin.
112637 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
112639         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
112640         resolve alias if codeset is empty.
112641         * lib/config.charset (BeOS): Use wildcard syntax.
112643 2001-03-13  Jim Meyering  <meyering@lucent.com>
112645         * lib/path-concat.c (path_concat)
112646         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
112647         concatenating e.g., `C:' and `foo'.
112648         From Bruno Haible.
112650 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112652         * lib/localcharset.c (locale_charset): Don't use
112653         setlocale(LC_CTYPE,NULL). Don't return NULL.
112654         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
112656 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112658         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
112659         support for DOS/DJGPP.
112661 2001-03-01  Paul Eggert  <eggert@twinsun.com>
112663         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
112664         lacks mkstemp.  Compile our own tempname.c if we compile our own
112665         mkstemp.c, as mkstemp relies on tempname.
112667 2001-03-01  Jim Meyering  <meyering@lucent.com>
112669         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
112670         AH_VERBATIM really does output its argument verbatim.
112672 2001-02-28  Paul Eggert  <eggert@twinsun.com>
112674         * lib/Makefile.am (libfetish_a_SOURCES):
112675         Add dup-safer.c, fopen-safer.c.
112676         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
112678         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
112679         * lib/unistd-safer.h: New files.
112681 2001-02-25  Paul Eggert  <eggert@twinsun.com>
112683         The mkstemp replacement is taken from glibc 2.2.2, with some
112684         portability fixes for use outside glibc, as follows:
112686         * lib/tempname.c (struct_stat64): New macro.
112687         (direxists, __gen_tempname): Use it.
112688         This avoids a portability problem with Solaris 8.
112690         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
112691         (<stddef.h>, <stdint.h>, <string.h>):
112692         Include only if STDC_HEADERS || _LIBC.
112693         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
112694         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
112695         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
112696         (__set_errno): Define this macro if <errno.h> doesn't.
112697         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
112698         Define these macros if <stdio.h> doesn't.
112699         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
112700         Define these macros if <sys/stat.h>
112701         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
112702         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
112703         __xstat64): Define if not _LIBC.
112704         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
112705         (__gen_tempname): Invoke gettimeofday only if
112706         HAVE_GETTIMEOFDAY || _LIBC;
112707         otherwise, fall back on plain "time".
112708         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
112710         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
112712         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
112714 2001-02-18  Paul Eggert  <eggert@twinsun.com>
112716         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
112718 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112720         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
112721         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
112722         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
112723         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112725 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112727         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
112728         Remove workaround macros for hosts that have mbrtowc but not
112729         mbstate_t, as we now insist on proper declarations for both
112730         before using mbrtowc.
112732 2001-02-17  Jim Meyering  <meyering@lucent.com>
112734         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
112735         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
112736         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
112737         UnixWare 7.1.1.
112739         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
112740         rather than AC_CACHE_VAL.
112742 2001-02-17  Jim Meyering  <meyering@lucent.com>
112744         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
112745         around included file name.
112747         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
112749         * lib/strftime.c: Update from GNU libc (the only changes were to
112750         comments).
112752 2001-02-17  Jim Meyering  <meyering@lucent.com>
112754         * lib/regex.c: Update from libc.
112756 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
112758         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
112759         clash.
112761 2001-02-16  Paul Eggert  <eggert@twinsun.com>
112763         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
112764         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
112765         Reported by Mark Hounschell via Paul Eggert.
112767 2001-02-07  Jim Meyering  <meyering@lucent.com>
112769         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
112771 2001-02-05  Jim Meyering  <meyering@lucent.com>
112773         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
112774         it includes the patch required for `large file' support with at least
112775         HP-UX's 10.20 /bin/cc.
112777 2001-02-03  Jim Meyering  <meyering@lucent.com>
112779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
112780         AS_IF, now that it works once again (mysteriously).
112781         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112783 2001-01-30  Jim Meyering  <meyering@lucent.com>
112785         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
112786         * m4/chown.m4: Rename conftestchown to conftest.chown.
112787         * m4/rename.m4: s/conftestdir/conftest.d1/ and
112788         s/conftestdir2/conftest.d2/.
112789         * m4/utimes.m4: s/conftestdata/conftest.data/
112790         Inspired by Pavel Roskin's change in autoconf.
112792 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
112794         * lib/config.charset: Update for FreeBSD 4.2.
112796 2001-01-27  Jim Meyering  <meyering@lucent.com>
112798         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
112799         a use of AS_IF.
112800         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112802 2001-01-26  Jim Meyering  <meyering@lucent.com>
112804         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
112805         quotearg.c includes it.
112807 2001-01-26  Jim Meyering  <meyering@lucent.com>
112809         * lib/quotearg.c: Include stddef.h.
112810         * lib/quote.c: Include stddef.h.
112811         Reported by Axel Kittenberger.
112813         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
112814         line in double quotes so that it evokes a better diagnostic.
112815         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
112816         Reported by Axel Kittenberger.
112818 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
112820         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
112821         as if it was a `charset'.
112823 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112825         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
112826         has const.
112828 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112830         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
112831         to avoid a warning.  Add back 'const' to inptr.
112833 2001-01-20  Jim Meyering  <meyering@lucent.com>
112835         Be sure that headers are checked before used in code compiled
112836         for the type checks.
112837         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
112838         In place of that, invoke jm_CHECK_ALL_TYPES.
112839         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
112840         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
112841         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
112842         The check for ssize_t was mistakenly run before the test for unistd.h.
112844         The configure-time check for stdbool.h was missing.
112845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
112846         (jm_PREREQ_HASH): New function.
112848 2001-01-17  Jim Meyering  <meyering@lucent.com>
112850         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
112851         for autoconf-2.49c.
112852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
112854 2001-01-16  Jim Meyering  <meyering@lucent.com>
112856         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
112857         From Bruno Haible.
112859 2001-01-14  Jim Meyering  <meyering@lucent.com>
112861         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
112862         foo and bar.  Create conftestdir/ in the script, not in the C code.
112863         Remove directories in the script, not in the C code.
112864         Remove conftestdir{,2} before trying to create the directory.
112865         Make the entire configure script fail if the mkdir fails.
112867 2001-01-14  Jim Meyering  <meyering@lucent.com>
112869         * lib/rename.c: New file.  From Volker Borchert.
112870         Include stdlib.h, string.h or strings.h, and xalloc.h.
112871         Use strip_trailing_slashes rather than open-coding it.
112873 2001-01-03  Paul Eggert  <eggert@twinsun.com>
112875         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
112877 2001-01-03  Jim Meyering  <meyering@lucent.com>
112879         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
112880         of local `inptr' to avoid warning with some system declarations of
112881         iconv.
112883 2001-01-02  Volker Borchert  <bt@teknon.de>
112885         * m4/rename.m4: New file.
112886         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
112888 2001-01-01  Jim Meyering  <meyering@lucent.com>
112890         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
112891         even on systems with utmpx.h.  It's necessary for the declaration of
112892         utmp's ut_user member.  Reported by Andreas Jaeger.
112894         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
112895         available. They are required for the declarations of getgrgid and
112896         getpwuid resp.
112897         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
112898         Reported by Andreas Jaeger.
112900 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
112902         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
112903         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
112904         so `make install' also works in VPATH builds.
112906 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
112908         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
112909         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
112910         can be used in subdirectories.
112912 2000-12-29  Paul Eggert  <eggert@twinsun.com>
112914         * lib/modechange.c: Do not assume that mode_t uses the
112915         traditional octal encoding.  E.g. "chmod 1 FOO" should set
112916         the other-execute bit of FOO even if S_IXOTH != 1.
112918         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
112919         WOTH, XOTH, ALLM): New macros.
112920         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
112921          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
112922         Use them.
112923         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
112924         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
112925         (mode_compile):
112926         No need to use uintmax_t; unsigned long is long enough.
112927         Don't bother to get suffix since we don't use it.
112929 2000-12-26  Jim Meyering  <meyering@lucent.com>
112931         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
112932         better with autoheader.
112934 2000-12-24  Jim Meyering  <meyering@lucent.com>
112936         * lib/hash.c (is_prime): Return explicit boolean values.
112937         (hash_get_first): Return NULL to appease Irix5.6's 89.
112938         Reported by Nelson Beebe.
112940 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
112942         * lib/localcharset.c (locale_charset): Add support for Win32.
112944 2000-12-18  Paul Eggert  <eggert@twinsun.com>
112946         * lib/physmem.h, lib/physmem.c: New files.
112948         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
112949         (noinst_HEADERS): Add physmem.h.
112951         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
112952         't' for compatibility with Solaris 8 sort.
112954 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
112956         * lib/config.charset: Add support for BeOS.
112958 2000-12-17  Jim Meyering  <meyering@lucent.com>
112960         * m4/dos.m4 (jm_AC_DOS): New file and macro.
112961         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
112963 2000-12-16  Jim Meyering  <meyering@lucent.com>
112965         This bug had a serious impact on chown: `chown N:M FILE' (for integer
112966         N and M) would have treated it like `chown N:N FILE'.
112968         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
112970 2000-12-16  Jim Meyering  <meyering@lucent.com>
112972         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
112973         SHELLS_FILE to a file name that's useful on djgpp systems.
112974         Include stdlib.h.
112975         (ADDITIONAL_DEFAULT_SHELLS): Define.
112976         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
112977         Based mostly on a patch from Prashant TR.
112979 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
112981         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
112982         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
112983         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
112985 2000-12-08  Andreas Schwab  <schwab@suse.de>
112987         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
112988         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
112990 2000-12-07  Jim Meyering  <meyering@lucent.com>
112992         * lib/stripslash.c (ISSLASH): Define.
112993         (strip_trailing_slashes): Use ISSLASH rather than comparing against
112994         `/'.
112995         From Prashant TR.
112997         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
112998         (dir_name_r): Declare this function as static.
112999         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
113000         manifest itself on a name containing a mix of slashes and
113001         backslashes.
113002         Make this function work with names starting with a DOS-style
113003         drive letter and colon prefix.
113004         (dir_name): Append `.' if necessary.
113005         Based mostly on patches from Prashant TR and Eli Zaretskii.
113007         * lib/dirname.h (dir_name_r): Remove prototype.
113009 2000-12-06  Paul Eggert  <eggert@twinsun.com>
113011         * m4/off_t-format.m4: Remove this file.
113012         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
113014 2000-12-06  Jim Meyering  <meyering@lucent.com>
113016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
113017         replacement strtoull, we may well need the replacement strtoul, too.
113018         Check for declarations of strtoul and strtoull.
113019         Check for strtol.  Mainly as a cue to cause automake to include
113020         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
113021         Check for limits.h -- strtol.c needs it.
113023 2000-12-05  Jim Meyering  <meyering@lucent.com>
113025         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
113027 2000-12-04  Jim Meyering  <meyering@lucent.com>
113029         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
113030         Also include memory.h, stdlib.h, unistd.h if appropriate.
113031         Reported by Andreas Jaeger (conflicting declaration of malloc).
113033 2000-12-02  Jim Meyering  <meyering@lucent.com>
113035         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
113036         * m4/jm-macros.m4 (jm_MACROS): require it.
113038 2000-12-02  Jim Meyering  <meyering@lucent.com>
113040         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
113042 2000-12-01  Paul Eggert  <eggert@twinsun.com>
113044         * lib/memrchr.c: Include <config.h> before any system include file.
113046 2000-11-30  Jim Meyering  <meyering@lucent.com>
113048         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
113050 2000-11-30  Jim Meyering  <meyering@lucent.com>
113052         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
113054 2000-11-29  Paul Eggert  <eggert@twinsun.com>
113056         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
113058 2000-11-26  Jim Meyering  <meyering@lucent.com>
113060         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
113062 2000-11-22  Paul Eggert  <eggert@twinsun.com>
113064         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
113065         size of (size_t) -1; it's not portable.
113067 2000-11-17  Jim Meyering  <meyering@lucent.com>
113069         * lib/strstr.c: Update from GNU libc.
113071 2000-11-17  Akim Demaille  <akim@epita.fr>
113073         * lib/obstack.h: Formatting changes.
113074         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
113075         prevent type checking.
113076         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
113077         cast the value to (void *): assigning a `foo *' to a `void *'
113078         variable is valid.
113079         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
113081 2000-11-16  Jim Meyering  <meyering@lucent.com>
113083         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
113085 2000-11-11  Jim Meyering  <meyering@lucent.com>
113087         * lib/error.c: Add a couple #includes, merging from GNU libc version.
113089 2000-11-10  Jim Meyering  <meyering@lucent.com>
113091         * lib/obstack.h: Update from GNU libc.
113092         * lib/obstack.c: Likewise.
113094 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
113096         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
113098 2000-11-06  Paul Eggert  <eggert@twinsun.com>
113100         * lib/getusershell.c (setusershell): Use rewind rather than
113101         fseek/fseeko, to avoid configuration hassles with fseeko.
113102         Don't bother opening SHELLS_FILE if shellstream is NULL;
113103         it's not necessary.
113105 2000-11-05  Jim Meyering  <meyering@lucent.com>
113107         * lib/makepath.h (make_dir): Declare.
113108         * lib/makepath.c (make_dir): Remove `static' attribute.
113109         Tweak a comment.
113111 2000-11-04  Jim Meyering  <meyering@lucent.com>
113113         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
113115 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
113117         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
113118         last one in a bucket, advance to the next bucket.
113120 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
113122         * lib/fnmatch.c: Do not comment out all the code if we are using
113123         the GNU C library, because in some cases we are replacing buggy
113124         code in the GNU C library itself.
113126 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
113128         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
113129         (regex_compile): Catch bogus \(\1\).
113131 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113133         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
113134         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
113135         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
113137 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113139         * lib/error.h, getline.h, modechange.h:
113140         Remove "2000" from Copyright line, as the file hasn't been
113141         changed this year other than in the copyright notice.
113143         * lib/xalloc.h: Add "2000" to Copyright line, as this file
113144         was changed this year.
113146 2000-10-29  Jim Meyering  <meyering@lucent.com>
113148         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
113149         renaming.
113150         * m4/ls-mntd-fs.m4: Likewise
113152 2000-10-29  Jim Meyering  <meyering@lucent.com>
113154         * lib/xstat.in: Fix grammar in comment.
113156 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
113158         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
113159         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
113160         doesn't define __restrict_arr.
113162 2000-10-28  Jim Meyering  <meyering@lucent.com>
113164         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
113165         (jm_PREREQ_MEMCHR): New function.
113167 2000-10-28  Jim Meyering  <meyering@lucent.com>
113169         * lib/memchr.c: Update from libc.
113170         Adjust for portability:
113171         [HAVE_STDLIB_H]: Include stdlib.h.
113172         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
113173         Undef __memchr, too.
113174         [!weak_alias]: Define __memchr to memchr.
113176         * lib/regex.c: Update from libc.
113177         * lib/regex.h: Likewise.
113178         * lib/getopt1.c: Likewise.
113179         * lib/memcmp.c: Likewise.
113181         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
113182         Avoid using fseek, when possible -- it's broken by design.
113183         Patch by Ulrich Drepper.
113185 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
113187         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
113188         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
113189         Giving in to popular pressure to shut up the compiler with casts.
113191 2000-10-26  Jim Meyering  <meyering@lucent.com>
113193         * lib/strftime.c: Update from libc.
113195 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
113197         * regex.c: More `unsigned char' -> `re_char' changes.
113198         Also change several `int' into `re_wchar_t'.
113199         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
113200         (PUSH_FAILURE_POINTER): Don't cast any more.
113201         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
113202         We want GCC to complain, since this piece of code makes
113203         re_match non-reentrant, which *should* be fixed.
113204         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
113205         (EXTEND_BUFFER): Use RETALLOC.
113206         (SET_LIST_BIT): Don't cast.
113207         (re_wchar_t): New type.
113208         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
113209         that those two functions will always properly return.
113210         (IMMEDIATE_QUIT_CHECK): Cast to void.
113211         (analyse_first): Use recursion rather than an explicit stack.
113212         (re_compile_fastmap): Can't fail anymore.
113213         (re_search_2): Don't check re_compile_fastmap for failure.
113214         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
113215         Now also sets the new value (passed in a new argument).
113216         (re_match_2_internal): Use it.
113217         Also, use a new var `reg' of type size_t when looping through regs
113218         rather than reuse the inappropriate `mcnt'.
113220 2000-10-25  Jim Meyering  <meyering@lucent.com>
113222         * lib/obstack.c: Update from libc.
113224 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
113226         * regex.c (regex_compile): Change the way of handling a range from
113227         a char less than 256 to a char not less than 256.
113229 2000-10-24  Andrew Innes  <andrewi@gnu.org>
113231         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
113232         NT-Emacs only.
113233         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
113234         so that re_search functions only quit when callers expect them to.
113236 2000-10-23  Jim Meyering  <meyering@lucent.com>
113238         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
113239         wrong.  That set_locale call must not have any side effects.
113240         From Paul Eggert.
113242 2000-10-22  Jim Meyering  <meyering@lucent.com>
113244         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
113245         [CYCLIC]: Remove now-unused definition.
113247         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
113248         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
113249         Suggestion from Ulrich Drepper.
113251 2000-10-21  Jim Meyering  <meyering@lucent.com>
113253         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
113254         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
113255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
113257 2000-10-21  Jim Meyering  <meyering@lucent.com>
113259         * lib/dirname.c (memrchr): Declare if necessary.
113260         (dir_name): Remove the restriction that there be no
113261         trailing slashes.  Now, this code skips past them, effectively
113262         ignoring them.
113263         [TEST_DIRNAME] (main): New unit tests.
113265         * lib/memrchr.c: New file from GNU libc.
113266         Undef __memrchr, too.
113267         [!weak_alias]: Define __memrchr to memrchr.
113268         Guard weak_alias use with `#ifdef weak_alias'.
113270 2000-10-21  Jim Meyering  <meyering@lucent.com>
113272         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
113273         (dir_name): Use dir_name_r.
113274         * lib/dirname.h (dir_name_r): Declare it.
113276 2000-10-17  Jim Meyering  <meyering@lucent.com>
113278         * lib/quote.h (PARAMS): Define and use.
113279         Reported by Akim Demaille.
113281         * lib/getopt.c: Update from libc.
113283 2000-10-16  Jim Meyering  <meyering@lucent.com>
113285         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
113286         setlocale.
113287         From Jan Fedak.
113289 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
113291         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
113293 2000-09-25  Jim Meyering  <meyering@lucent.com>
113295         * lib/md5.h (rol): Define (from GnuPG).
113297         * lib/sha.c: Give credit (GnuPG) where due.
113298         (M): Use rol rather than open-coding it.
113299         Add a FIXME comment.
113301 2000-09-21  Jim Meyering  <meyering@lucent.com>
113303         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
113304         Reported by Michael Stone.
113306 2000-09-20  Jim Meyering  <meyering@lucent.com>
113308         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
113309         (noinst_HEADERS): Add sha.h.
113310         Based on code from Scott G. Miller and from GnuPG.
113312 2000-09-18  Jim Meyering  <meyering@lucent.com>
113314         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
113315         LIBS. Otherwise, everyone ends up linking with -lelf for some
113316         configurations.
113317         Reported by Mike Stone.
113319 2000-09-15  Jim Meyering  <meyering@lucent.com>
113321         * lib/regex.c: Update from libc.
113323 2000-09-10  Jim Meyering  <meyering@lucent.com>
113325         * lib/getopt.c (_getopt_internal): Update from glibc.
113327 2000-09-09  Jim Meyering  <meyering@lucent.com>
113329         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
113330         think it should be used as a general replacement for isascii.
113331         * lib/fnmatch.c: Likewise.
113332         * lib/mbswidth.c: Likewise
113333         * lib/regex.c: Likewise.
113335         Don't use atoi.
113336         * lib/userspec.c: Include sys/param.h and limits.h.
113337         Include xstrtol.h.
113338         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
113339         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
113340         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
113341         UID, GID.  Check range.
113343 2000-09-06  Jim Meyering  <meyering@lucent.com>
113345         * lib/getopt.c (_getopt_internal): Update from glibc.
113347 2000-08-30  Jim Meyering  <meyering@lucent.com>
113349         * lib/strftime.c: Merge in changes from GNU libc.
113351 2000-08-26  Jim Meyering  <meyering@lucent.com>
113353         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
113354         * m4/fpending.m4: New file.
113356 2000-08-26  Jim Meyering  <meyering@lucent.com>
113358         * lib/closeout.c: Include "__fpending.h".
113359         (close_stdout_status): Return right away if there's nothing to flush.
113361         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
113362         * lib/__fpending.c: New file.
113363         * lib/__fpending.h: New file.
113365 2000-08-20  Jim Meyering  <meyering@lucent.com>
113367         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
113368         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
113369         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
113371 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
113373         Improve fileutils installation on systems where running
113374         programs (like install) can't be unlinked.
113375         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
113376         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
113378 2000-08-07  Paul Eggert  <eggert@twinsun.com>
113380         Standardize on "memory exhausted" instead of "Memory exhausted"
113381         or "virtual memory exhausted".
113382         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
113383         "virtual memory exhausted".
113384         * lib/same.c (same_name): Invoke xalloc_die instead of printing
113385         our own message.
113386         * lib/userspec.c (parse_user_spec): Likewise.
113387         * lib/bumpalloc.h: comment fix
113388         * lib/same.c, userspec.c: Include xalloc.h.
113390         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
113391         not char *const and pointing to a constant array.
113392         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
113393         (xrealloc): Comment fix.
113395         * lib/userspec.c (parse_user_spec):
113396         Don't translate a message until just before returning,
113397         to avoid unnecessary translation.
113399 2000-08-07  Jim Meyering  <meyering@lucent.com>
113401         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
113402         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
113403         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
113404         getgroups.c, gethostname.c, getopt.h, group-member.c,
113405         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
113406         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
113407         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
113408         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
113409         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
113410         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
113411         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
113412         yesno.c: Back out Copyright date changes for each file with no change
113413         this year.  This eases coordination with other programs using the same
113414         source code modules.  From Paul Eggert.
113416 2000-08-06  Paul Eggert  <eggert@twinsun.com>
113418         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
113419         not char, for compatibility with glibc 2.1.3 strftime.c.
113421 2000-08-03  Greg McGary  <greg@mcgary.org>
113423         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
113424         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
113425         (EXTEND_BUFFER): Use them.
113427 2000-08-01  Jim Meyering  <meyering@lucent.com>
113429         * lib/dirname.c (ISSLASH): Define.
113430         (BACKSLASH_IS_PATH_SEPARATOR): Define.
113431         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
113432         both `\' and `/' may be use as path separators.
113433         Based on a patch from Prashant TR.
113435 2000-07-31  Paul Eggert  <eggert@twinsun.com>
113437         * lib/quotearg.c (quotearg_n_options): Don't make the initial
113438         slot vector a constant, since it might get modified.
113440 2000-07-31  Jim Meyering  <meyering@lucent.com>
113442         * lib/xmalloc.c: Use `virtual memory exhausted', not
113443         `Memory exhausted'.
113444         * lib/obstack.c (print_and_abort): Likewise.
113446 2000-07-30  Paul Eggert  <eggert@twinsun.com>
113448         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
113449         buffer, so that the caller can always quote one small
113450         component of a "memory exhausted" message in slot 0.
113451         From a suggestion by Jim Meyering.
113453 2000-07-30  Jim Meyering  <meyering@lucent.com>
113455         * lib/makepath.c (make_path): Quote the other instance, too.
113457         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
113458         (STATIC_BUF_SIZE): Define.
113459         (quotearg_n_options): Use only statically allocated storage when
113460         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
113461         than STATIC_BUF_SIZE.
113463 2000-07-29  Jim Meyering  <meyering@lucent.com>
113465         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
113466         * lib/dirname.c (dir_name): Likewise.
113468         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
113469         `/'.
113471         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
113472         (dir_name): Assert that there are no trailing slashes.
113474 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
113476         * lib/mbswidth.h (mbswidth): Add a flags argument.
113477         (mbswidth): New declaration.
113478         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
113479         * lib/mbswidth.c (mbswidth): Add a flags argument.
113480         (mbsnwidth): New function.
113482 2000-07-24  Jim Meyering  <meyering@lucent.com>
113484         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
113486 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113488         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
113490 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113492         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
113493         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
113494         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
113495         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
113496         invoke multibyte primitives.
113498 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113500         * lib/quotearg.c:
113501         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
113502         so that mbstate_t is always defined.
113504         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
113505         be 1 in at least one GCC installation, and this configuration
113506         error is likely to be common.  Ignoring MB_LEN_MAX hurts
113507         performance on hosts that have mbrtowc but have only unibyte
113508         locales, but I assume these hosts are rare.
113510 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113512         * lib/mbswidth.c (_XOPEN_SOURCE):
113513         Don't define; this causes problems on Solaris 7.
113514         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
113516 2000-07-23  Jim Meyering  <meyering@lucent.com>
113518         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
113519         too: getgrgid, getpwuid, getuid.
113521 2000-07-23  Jim Meyering  <meyering@lucent.com>
113523         * lib/basename.c (base_name): Add an assertion.
113525 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
113527         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
113528         shadow its mbsinit function.
113530 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
113532         * lib/mbswidth.h: New file.
113533         * lib/mbswidth.c: New file.
113534         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
113535         (noinst_HEADERS): Add mbswidth.h.
113537 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
113539         * lib/config.charset: Add support for FreeBSD. Improve support for
113540         HP-UX and IRIX 6.
113542 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
113544         * m4/mbswidth.m4: New file.
113545         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
113547 2000-07-15  Jim Meyering  <meyering@lucent.com>
113549         * lib/makepath.c: Include quote.h.
113550         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
113551         corresponding argument in a `quote (...)' call.
113552         Give better diagnostics.
113554         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
113555         (noinst_HEADERS): Add quote.h.
113557         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
113558         from tar's src/misc.c.
113559         * lib/quote.h: New file.  Prototypes for same.
113561 2000-07-14  Paul Eggert  <eggert@twinsun.com>
113563         From a suggestion by Bruno Haible.
113564         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
113565         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
113566         to decide whether to define the BeOS workaround macro;
113567         this adjusts to the change to AC_MBSTATE_T.
113569 2000-07-14  Jim Meyering  <meyering@lucent.com>
113571         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
113572         jm_AC_TYPE_UINTMAX_T.
113574 2000-07-13  Paul Eggert  <eggert@twinsun.com>
113576         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
113578         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
113579         quotearg_buffer_restyled): Add support for
113580         clocale_quoting_style.  Undo previous change to
113581         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
113582         and "{RIGHT QUOTATION MARK}" msgids.
113584 2000-07-10  Paul Eggert  <eggert@twinsun.com>
113586         From a suggestion by Bruno Haible.
113587         * m4/mbstate_t.m4 (AC_MBSTATE_T):
113588         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
113589         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
113590         and mbstate_t, to a single-part test that simply defines mbstate_t.
113591         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
113592         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
113594 2000-07-10  Jim Meyering  <meyering@lucent.com>
113596         * m4/strerror_r.m4: Mirror the correction made in autoconf.
113598         * m4/gnu-source.m4: Output to confdefs.h directly.
113599         Suggestion from Akim Demaille.
113601 2000-07-09  Paul Eggert  <eggert@twinsun.com>
113603         The old behavior of quoting `like this' doesn't look good with
113604         newer, ISO-style fonts.  See:
113605         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
113607         Instead, quote "like this" by default.  Let the translator
113608         tailor the locale-specific quoting behavior by providing
113609         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
113611         * lib/quotearg.c (N_): New macro.
113612         (gettext_default): New function.
113613         (quotearg_buffer_restyled): Use
113614         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
113615         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
113617 2000-07-09  Jim Meyering  <meyering@lucent.com>
113619         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
113620         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
113622         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
113623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
113625 2000-07-09  Jim Meyering  <meyering@lucent.com>
113627         * lib/Most files: Update copyright dates to include 2000.
113629 2000-07-08  Jim Meyering  <meyering@lucent.com>
113631         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
113632         if not defined.
113633         (xgethostname): Remove now-unnecessary #ifdef.
113634         Move declaration of `err' into loop where it's used.
113636 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113637         and Bruno Haible  <haible@clisp.cons.org>
113639         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
113640         only if the test for an object-type mbstate_t fails.  This
113641         prevents us from mistakenly reporting that mbstate_t is a
113642         system object type after we "#define mbstate_t int" to work
113643         around its lack.
113645 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113646         and Bruno Haible  <haible@clisp.cons.org>
113648         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
113650 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113652         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
113653         to strerror_r.
113654         Include <ctype.h> for use of isalpha.
113656 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113658         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
113659         by allocating a larger buffer. Test the gethostname return value for
113660         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
113661         returns an error and ENAMETOOLONG isn't defined.
113663 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113665         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
113666         dimension.
113668 2000-07-04  Jim Meyering  <meyering@lucent.com>
113670         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
113671         of the deprecated AC_CHECKING.
113673 2000-07-04  Jim Meyering  <meyering@lucent.com>
113675         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
113676         Reported by Bruno Haible.
113678 2000-07-04  Jim Meyering  <meyering@lucent.com>
113680         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
113681         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
113682         lacks mbrtowc.
113684 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113686         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
113687         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
113689 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113690         and Bruno Haible  <haible@clisp.cons.org>
113692         * lib/quotearg.c (mbrtowc):
113693         Assign to *pwc, and return 1 only if result is nonzero.
113694         (iswprint): Use ISPRINT when substituting our own mbrtowc.
113696 2000-07-03  Jim Meyering  <meyering@lucent.com>
113698         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
113700 2000-07-03  Jim Meyering  <meyering@lucent.com>
113702         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
113703         This is necessary to get a definition of e.g., UTMP_FILE on
113704         HP-UX 10.20.
113705         From Bob Proulx.
113707 2000-07-02  Jim Meyering  <meyering@lucent.com>
113709         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
113711         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
113712         AC_LIBOBJ(function_name).
113713         * m4/chown.m4: Likewise.
113714         * m4/fnmatch.m4: Likewise.
113715         * m4/ftruncate.m4: Likewise.
113716         * m4/getgroups.m4: Likewise.
113717         * m4/getline.m4: Likewise.
113718         * m4/group-member.m4: Likewise.
113719         * m4/jm-macros.m4: Likewise.
113720         * m4/lstat.m4: Likewise.
113721         * m4/malloc.m4: Likewise.
113722         * m4/memcmp.m4: Likewise.
113723         * m4/nanosleep.m4: Likewise.
113724         * m4/putenv.m4: Likewise.
113725         * m4/realloc.m4: Likewise.
113726         * m4/regex.m4: Likewise.
113727         * m4/stat.m4: Likewise.
113728         * m4/strftime.m4: Likewise.
113730 2000-07-02  Jim Meyering  <meyering@lucent.com>
113732         * lib/quotearg.c (mbstate_t): Don't define here.
113734 2000-07-02  Jim Meyering  <meyering@lucent.com>
113736         * lib/nanosleep.c (SIGCONT): Define if not already defined.
113738 2000-07-01  Jim Meyering  <meyering@lucent.com>
113740         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
113742 2000-07-01  Jim Meyering  <meyering@lucent.com>
113744         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
113745         problem.
113747 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
113750         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
113752 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113754         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
113755         per change in ../m4/ls-mntd-fs.m4.
113756         (read_filesystem_list): Ignore symbolic links.
113758 2000-06-29  Jim Meyering  <meyering@lucent.com>
113760         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
113761         for declaration of strcmp.
113763         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
113765         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
113766         Avoid warning by casting result to `char *' to remove `const'.
113768 2000-06-28  Jim Meyering  <meyering@lucent.com>
113770         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
113771         included by quotearg.c, for which we perform this test.  From
113772         Bruno Haible.
113774 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113776         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
113777         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
113778         <utmpx.h> exists, put readutmp.o into LIBOBJS.
113780 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113782         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
113784 2000-06-26  Paul Eggert  <eggert@twinsun.com>
113786         savedir now sets errno on failure and invokes xmalloc to get memory.
113787         Fix a couple of other minor bugs while we're at it.
113789         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
113790         (NAMLEN): Remove macro.
113791         (malloc, realloc): Remove decls.
113792         (stpcpy): Likewise.
113793         ("xalloc.h"): Include.
113794         (NAME_SIZE_DEFAULT): New macro.
113795         (savedir): Use xmalloc / xrealloc to allocate memory.
113796         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
113797         Skip "" directory entries.
113798         Use strlen to calculate directory entry length, since the old method
113799         is rarely used these days and isn't worth supporting.
113800         Don't use a pointer after freeing it.
113801         Check for integer overflow when calculating allocation size.
113802         Use memcpy to copy entries, instead of stpcpy.
113803         Set errno properly when returning NULL.
113804         Check for readdir error.
113806 2000-06-26  Jim Meyering  <meyering@lucent.com>
113808         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
113810 2000-06-25  Jim Meyering  <meyering@lucent.com>
113812         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
113813         Linux header bug when _XOPEN_SOURCE is defined to 500.
113815 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113817         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
113818         deficiency.
113820 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113822         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
113823         Include xalloc.h.
113824         Don't include <stdlib.h>.  Don't declare malloc, realloc.
113826 2000-06-24  Jim Meyering  <meyering@lucent.com>
113828         * m4/strerror_r.m4: Revive this file -- to try out an experimental
113829         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
113830         for which strerror does return char*, but which lacks a conveniently
113831         accessible declaration of the function.  If the compile-test says
113832         strerror_r doesn't work, then resort to a `run'-test that works on
113833         BeOS and segfaults on DEC Unix.
113835 2000-06-24  Jim Meyering  <meyering@lucent.com>
113837         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
113839 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113841         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
113842         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
113844 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113846         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
113847         (mbrtowc, mbstate_t): Define substitutes if
113848         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
113849         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
113850         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
113852 2000-06-23  Jim Meyering  <meyering@lucent.com>
113854         * m4/afs.m4: Add missing AC_MSG_RESULT.
113855         Reported by Bruno Haible.
113857         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
113858         Suggestion from Bruno Haible.
113860 2000-06-23  Jim Meyering  <meyering@lucent.com>
113862         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
113864 2000-06-21  Jim Meyering  <meyering@lucent.com>
113866         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
113868 2000-06-21  Jim Meyering  <meyering@lucent.com>
113870         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
113871         (noinst_HEADERS): Add getstr.h.
113873         * lib/getline.c (getstr): Move into a separate file.
113874         * lib/getstr.c (getstr): New file, extracted from getline.c, with
113875         the following changes: new parameter, delim2; both delim[12]
113876         parameters have type `int', not `char'.  The latter would lose
113877         with 8-bit delimiters.
113878         * lib/getstr.h: New file.
113880 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113882         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
113883         than 1024, return a memory chunk of least possible size, instead
113884         of size PATH_MAX + 2. In the loop, increment the size proportionally.
113885         Use free/xmalloc instead of xrealloc to avoid copying for very long
113886         paths.
113888 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113890         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
113891         the empty string.
113893 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113895         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
113896         address, not strdup.  Include <stdlib.h> and don't declare free().
113898 2000-06-19  Jim Meyering  <meyering@lucent.com>
113900         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
113902 2000-06-18  Jim Meyering  <meyering@lucent.com>
113904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
113906         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
113907         `checking whether...' message to be consistent with that of the
113908         lstat test.
113910 2000-06-18  Jim Meyering  <meyering@lucent.com>
113912         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
113913         Besides, these days every porting target provides a mkdir function.
113915         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
113916         needed. (this snippet comes from src/system.h).
113918 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
113920         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
113922 2000-06-15  Paul Eggert  <eggert@twinsun.com>
113924         * lib/human.c (adjust_value): New function.
113925         (human_readable_inexact): Apply rounding style even when
113926         printing approximate values.
113928 2000-06-14  Paul Eggert  <eggert@twinsun.com>
113930         * lib/human.c (human_readable_inexact): Allow an input block
113931         size that is not a multiple of the output block size, and vice versa.
113932         Reported by Piergiorgio Sartor.
113934 2000-06-14  Paul Eggert  <eggert@twinsun.com>
113936         * lib/getdate.y (get_date): Apply relative times after time
113937         zone indicator, not before.  Reported by Todd A. Jacobs.
113939 2000-06-13  Jim Meyering  <meyering@lucent.com>
113941         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
113943         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
113945 2000-06-12  Paul Eggert  <eggert@twinsun.com>
113947         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
113949 2000-06-12  Jim Meyering  <meyering@lucent.com>
113951         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
113952         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
113953         optional argument.
113954         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
113955         the optional argument, `lib'.
113957 2000-06-08  Jim Meyering  <meyering@lucent.com>
113959         * m4/largefile.m4: Remove file (now that it's part of autoconf).
113961 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113963         Rewrite largefile configuration so that we don't need to run
113964         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
113965         AC_CANONICAL_HOST in configure.in -- jmm]
113967         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
113968         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
113969         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
113970         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
113971         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
113972         All uses changed.
113973         Instead of inspecting the output of getconf, try to compile the
113974         test program without and with the macro definition.
113975         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
113976         for getconf.  Instead, check for the needed flags by compiling
113977         test programs.
113979 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113981         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
113983 2000-06-04  Jim Meyering  <meyering@lucent.com>
113985         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
113986         SunOS 4.1.4 for which gid_t is an unsigned type.
113988 2000-06-03  Jim Meyering  <meyering@lucent.com>
113990         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
113991         now that autoconf requires that.
113993         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
113994         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
113995         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
113997 2000-06-03  Jim Meyering  <meyering@lucent.com>
113999         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
114001 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114003         * m4/glibc21.m4: New file.
114004         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
114006 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114008         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
114009         newer, don't install charset.alias.
114010         * lib/config.charset: Change the Linux/glibc rules so they become empty
114011         on glibc-2.1 or newer.
114013 2000-06-02  Jim Meyering  <meyering@lucent.com>
114015         * lib/mountlist.c: Back out last change.  Instead, do this...
114016         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
114017         me_dummy member using the same `ignore'-testing code.
114018         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
114019         fs_type strings.
114020         From Mark D. Roth.
114022 2000-05-29  Jim Meyering  <meyering@lucent.com>
114024         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
114025         mounts with the `ignore' attribute.  Based on a patch from
114026         Mark D. Roth.
114028 2000-05-28  Jim Meyering  <meyering@lucent.com>
114030         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
114031         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114032         * m4/stat.m4: Likewise.
114033         * m4/lstat.m4: Likewise.
114034         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
114036         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
114037         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
114039 2000-05-26  Jim Meyering  <meyering@lucent.com>
114041         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
114043 2000-05-24  Jim Meyering  <meyering@lucent.com>
114045         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
114046         autoconf requires that.
114047         * m4/lib-check.m4: Likewise.
114048         * m4/jm-macros.m4: Likewise.
114049         * m4/strftime.m4: Likewise.
114051         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
114052         AC_CHECK_DECLS, now that autoconf requires that.
114054 2000-05-22  Jim Meyering  <meyering@lucent.com>
114056         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114057         * m4/lstat.m4: Likewise.
114059 2000-05-22  Jim Meyering  <meyering@lucent.com>
114061         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
114063 2000-05-20  Jim Meyering  <meyering@lucent.com>
114065         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
114066         (jm_PREREQ): Use it.
114068 2000-05-18  Jim Meyering  <meyering@lucent.com>
114070         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
114071         back, too, since it may have been modified by allocate_entry.
114072         (hash_delete): Rewrite to use neither the assignment operator
114073         nor the comma operator in an if-expression.
114075 2000-05-15  Paul Eggert  <eggert@twinsun.com>
114077         * lib/closeout.c:
114078         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
114079         Remove; no longer needed.
114080         "quotearg.h": Add include.
114081         (file_name): Do not bother to explicitly initialize to NULL; it's less
114082         efficient on some hosts.
114083         (close_stdout_status): Remove test as to whether stdout was already
114084         closed; it breaks for the case "echo x | sort >&-".
114085         Quote file name colons.
114086         Do not assume that _("write error") lacks format strings.
114088 2000-05-15  Jim Meyering  <meyering@lucent.com>
114090         * lib/version-etc.c (version_etc_copyright): Update the copyright
114091         string used in all --version output.
114093 2000-05-14  Jim Meyering  <meyering@lucent.com>
114095         * lib/closeout.c (close_stdout_set_file_name): New function.
114096         (close_stdout_status): Use new file-scoped global.
114097         Return right away if fstat says the stdout file descriptor is invalid.
114098         * lib/closeout.h (close_stdout_set_file_name): Declare.
114100 2000-05-10  Jim Meyering  <meyering@lucent.com>
114102         * lib/closeout.c [default_exit_status]: New file-scoped variable.
114103         (close_stdout_set_status): New function.
114104         * lib/closeout.h (close_stdout_set_status): Declare.
114106 2000-05-09  Jim Meyering  <meyering@lucent.com>
114108         * m4/gettext.m4: Rename this...
114109         * m4/libintl.m4: ...to this.
114111 2000-05-08  Jim Meyering  <meyering@lucent.com>
114113         * lib/long-options.c: Don't include closeout.h.
114114         (parse_long_options): Don't call close_stdout for --version.
114116 2000-05-06  Paul Eggert  <eggert@twinsun.com>
114118         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
114119         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
114120         2.1.3 bug.  This avoids a clash when files like regex.c define
114121         _GNU_SOURCE.
114123 2000-05-06  Jim Meyering  <meyering@lucent.com>
114125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
114126         (AC_REPLACE_FUNCS): Add strnlen.
114128         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
114129         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
114131         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
114132         AC_SEARCH_LIBS call for nanosleep.
114133         (LIB_NANOSLEEP): Set and AC_SUBST.
114135 2000-05-06  Jim Meyering  <meyering@lucent.com>
114137         * lib/strnlen.c: Undefine __strnlen and strnlen.
114138         [!weak_alias]: Define __strnlen to strnlen.
114140         * lib/atexit.c: New file, from libiberty.
114142 2000-05-06  Jim Meyering  <meyering@lucent.com>
114144         * lib/closeout.c (close_stdout_status): Also check for errors on the
114145         stderr stream.
114147 2000-05-05  Jim Meyering  <meyering@lucent.com>
114149         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
114150         AC_SEARCH_LIBS call for clock_gettime.
114151         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
114153         * m4/search-libs.m4: Update from autoconf.
114155         su doesn't work on Solaris 2.6.
114156         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
114157         <shadow.h>.  Reported by Dragos Harabor.
114159 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
114161         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
114162         memcpy instead of xmalloc, xrealloc, path_concat.
114163         (locale_charset): Treat empty environment variables as absent.
114164         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
114166 2000-05-04  Jim Meyering  <meyering@lucent.com>
114168         * lib/getopt.c: Update from glibc.
114169         * lib/obstack.c: Likewise.
114170         * lib/obstack.h: Likewise.
114171         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
114172         file
114174         * lib/regex.h: Likewise.
114175         * lib/strndup.c: Likewise.
114176         * lib/strnlen.c: New file, from glibc.
114178 2000-05-03  Jim Meyering  <meyering@lucent.com>
114180         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
114182 2000-05-02  Paul Eggert  <eggert@twinsun.com>
114184         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
114185         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
114186         compile-time test, rather than inspecting host and OS, to
114187         decide whether to define _LARGEFILE_SOURCE.
114189 2000-05-01  Jim Meyering  <meyering@lucent.com>
114191         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
114193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
114194         Based on a patch from Bruno Haible.
114196 2000-05-01  Jim Meyering  <meyering@lucent.com>
114198         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
114200 2000-04-29  Jim Meyering  <meyering@lucent.com>
114202         * lib/path-concat.c: Declare strdup only if it's not defined.
114203         * lib/canon-host.c: Likewise.
114205 2000-04-28  Jim Meyering  <meyering@lucent.com>
114207         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
114208         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
114209         is included first, then limits.h is included by locale.h by libintl.h.
114210         From John David Anglin.
114212 2000-04-25  Jim Meyering  <meyering@lucent.com>
114214         * lib/makepath.c (S_IRWXUGO): Define.
114215         (make_path): Always perform explicit chmod if MODE specifies any
114216         of the `special' permission bits.  Prompted by a bug report against
114217         install from Mate Wierdl and Joost van Baal.
114219 2000-04-18  Jim Meyering  <meyering@lucent.com>
114221         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
114222         (jm_PREREQ): Use it.
114224 2000-04-18  Jim Meyering  <meyering@lucent.com>
114226         * lib/README: New file.
114228         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
114229         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
114231 2000-04-17  Jim Meyering  <meyering@lucent.com>
114233         Get it right :-)
114234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
114235         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
114236         Suggestion from Akim Demaille.
114238 2000-04-17  Jim Meyering  <meyering@lucent.com>
114240         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
114241         the definition of it to rpl_strftime also defined-away the system's
114242         declaration.
114244 2000-04-15  Jim Meyering  <meyering@lucent.com>
114246         Use `C' to denote so-called `contiguous' files, the same way
114247         that tar does.
114248         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
114249         (ftypelet): Use S_ISCTG.
114250         From Michael Deutschmann.
114252 2000-04-14  Jim Meyering  <meyering@lucent.com>
114254         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
114255         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
114256         clobbered.
114258 2000-04-14  Jim Meyering  <meyering@lucent.com>
114260         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
114262 2000-04-13  Jim Meyering  <meyering@lucent.com>
114264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
114265         AH_VERBATIM to insert required #ifndef into config.h.in.
114266         Suggestion from Akim Demaille.
114268 2000-04-12  Jim Meyering  <meyering@lucent.com>
114270         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
114271         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
114272         Christian Krackowizer.
114274         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
114275         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
114276         (AC_SYS_LARGEFILE): Require.
114277         (AM_C_PROTOTYPES): Require.
114279 2000-04-08  Jim Meyering  <meyering@lucent.com>
114281         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
114282         names don't conflict.  Reported by Eli Zaretskii.
114284 2000-04-07  Jim Meyering  <meyering@lucent.com>
114286         * lib/putenv.c: Move inclusion of errno.h so it follows that of
114287         sys/types.h, to work around system header problems on AIX 3.2.5.
114288         From Bruno Haible.
114290 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
114292         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
114293         bug.  Deal with the different error behavior of Irix iconv.
114295 2000-04-05  Paul Eggert  <eggert@twinsun.com>
114297         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
114298         IRIX if the installer said otherwise.
114300 2000-04-05  Jim Meyering  <meyering@lucent.com>
114302         Portability tweaks required for ultrix4.3.
114303         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
114304         (jm_CHECK_DECLS): Add getutent to the list of functions.
114305         (_jm_DECL_HEADERS): Add utmpx.h.
114306         From John David Anglin.
114308         * m4/strftime.m4: Back out the 2000-04-02 change.
114309         Instead of that change, simply undefine putenv in the test program.
114311 2000-04-05  Jim Meyering  <meyering@lucent.com>
114313         Portability tweaks required for ultrix4.3.
114314         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
114315         getutent.
114316         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
114317         * lib/canon-host.c: Declare strdup.
114318         * lib/path-concat.c: Likewise.
114319         From John David Anglin.
114321 2000-04-04  Jim Meyering  <meyering@lucent.com>
114323         Be more DOS 8.3-friendly.
114324         * lib/ref-add.sin: Renamed from ref-add.sed.in.
114325         * lib/ref-del.sin: Renamed from ref-del.sed.in.
114326         * lib/Makefile.am: Reflect renaming.
114327         Reported by Eli Zaretskii.
114329         Use a temporary file name that won't clash with `charset.alias'
114330         in the DOS 8.3 name space.
114331         * lib/Makefile.am (charset_tmp): Define.
114332         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
114333         (uninstall-local): Likewise.
114334         Reported by Eli Zaretskii.
114336 2000-04-03  Jim Meyering  <meyering@lucent.com>
114338         * m4/gettext.m4: Fix typo in comment.
114340         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
114341         textutils/configure.in).  Suggestion from Paul Eggert.
114342         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
114344 2000-04-02  Paul Eggert  <eggert@twinsun.com>
114346         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
114347         variable in the shell rather than using putenv, which isn't
114348         portable.  This avoids the configure-time inter-test dependency
114349         on the potentially-renamed putenv function.
114351 2000-03-30  Paul Eggert  <eggert@twinsun.com>
114353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
114354         before checking struct stat.st_blksize, so that
114355         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
114357 2000-03-29  Paul Eggert  <eggert@twinsun.com>
114359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
114360         since strftime.c uses HAVE_STRFTIME to decide whether to use
114361         the underlying strftime.
114363 2000-03-29  Paul Eggert  <eggert@twinsun.com>
114365         * lib/time/strftime.c (my_strftime): Make sure we call the system
114366         strftime, not ourselves, when invoking the underlying strftime.
114368 2000-03-24  Jim Meyering  <meyering@lucent.com>
114370         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
114371         (charset_alias): Define.
114372         (install-exec-local): Factor out common code.
114373         (uninstall-local): Split lines longer than 80.
114374         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
114375         (SUFFIXES): Define.
114376         (.sed.in.sed): New rule.  Don't redirect directly to $@.
114377         (CLEANFILES): Add ref-add.sed and ref-del.sed.
114379 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
114381         * lib/config.charset: Output a line containing "Packages using this
114382         file".
114383         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
114384         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
114385         ref-del.sed): New rules.
114387 2000-03-17  Jim Meyering  <meyering@lucent.com>
114389         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
114390         Otherwise, include <strings.h>
114392 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
114394         * lib/unicodeio.c (utf8_wctomb): New function.
114395         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
114396         format instead of in UCS-4 with platform dependent endianness.
114398 2000-03-10  Jim Meyering  <meyering@lucent.com>
114400         * m4/lib-check.m4: Look for getspnam in -lgen, too.
114401         From Marco Franzen.
114403 2000-03-07  Paul Eggert  <eggert@twinsun.com>
114405         * lib/savedir.c (savedir): Work even if directory size is
114406         negative; this can happen with some screwy NFS configurations.
114408 2000-03-06  Jim Meyering  <meyering@lucent.com>
114410         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
114411         if it's NULL (because we ran out of memory).  From Bruno Haible.
114413 2000-03-05  Jim Meyering  <meyering@lucent.com>
114415         * lib/localcharset.c ("path-concat.h"): Include.
114416         (get_charset_aliases): Use path_concat instead of ANSI string
114417         concatenation.
114419         * lib/unicodeio.h (PARAMS): Define.
114420         Use it to guard prototype.
114422 2000-03-04  Jim Meyering  <meyering@lucent.com>
114424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
114425         for lib/localcharset.c.
114427 2000-03-04  Jim Meyering  <meyering@lucent.com>
114429         * lib/Makefile.am (install-exec-local): Create $(libdir) before
114430         installing into it.
114431         (uninstall-local): Uncomment this rule so `make distcheck' works
114432         once again.
114434         * lib/unicodeio.c (<errno.h>): Include it.
114435         (errno): Declare if not defined.
114437         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
114439         * lib/config.charset: New version, incorporating remarks from a linux
114440         i18n mailing list.  From Bruno Haible.
114442 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
114444         * m4/codeset.m4: New file.
114445         * m4/iconv.m4: New file.
114446         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
114448 2000-03-03  Jim Meyering  <meyering@lucent.com>
114450         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
114452 2000-03-02  Jim Meyering  <meyering@lucent.com>
114454         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
114455         the messages come out on separate lines.
114457         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
114458         rather than jm_CHECK_DECLARATIONS.
114459         * m4/decl.m4: Remove now-unused file.
114461         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
114462         geteuid.
114464 2000-03-02  Jim Meyering  <meyering@lucent.com>
114466         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
114468 2000-03-01  Jim Meyering  <meyering@lucent.com>
114470         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
114471         * lib/unicodeio.c: Likewise.
114473 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
114475         * lib/config.charset: New file.
114476         * lib/localcharset.c: New file.
114477         * lib/unicodeio.h, lib/unicodeio.c: New files.
114478         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
114479         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
114480         (noinst_HEADERS): Add unicodeio.h.
114481         (all-local, install-exec-local, charset.alias): New targets.
114483 2000-02-28  Paul Eggert  <eggert@twinsun.com>
114485         * lib/quotearg.c (ALERT_CHAR): New macro.
114486         (quotearg_buffer_restyled): Use it.
114488 2000-02-27  Jim Meyering  <meyering@lucent.com>
114490         * m4/check-decl.m4: Add getenv to the list.
114492 2000-02-27  Jim Meyering  <meyering@lucent.com>
114494         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
114495         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
114497         * lib/backupfile.c: Guard inclusion of stdlib.h with
114498         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
114499         Declare malloc if needed.
114501         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
114502         `#ifndef HAVE_DECL..'
114503         now that autoconf always defines the HAVE_DECL_ symbols.
114504         * lib/human.c: Likewise.
114505         * lib/same.c: Likewise.
114506         * lib/strtoumax.c: Likewise.
114508         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
114509         declaration check was not run.
114510         * lib/hash.c: Likewise.
114511         * lib/human.c: Likewise.
114512         * lib/same.c: Likewise.
114513         * lib/strtoumax.c: Likewise.
114515         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
114516         `.', then first look up the entire `.'-containing string as a login
114517         name.
114519 2000-02-23  Jim Meyering  <meyering@lucent.com>
114521         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
114522         in place of my hack.
114524 2000-02-18  Paul Eggert  <eggert@twinsun.com>
114526         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
114527         (textint): New typedef.
114528         (parser_control): Member year changed from int to textint.
114529         All uses changed.
114530         (YYSTYPE): Removed; replaced by %union with int and textint members.
114531         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
114532         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
114533         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
114534         (tSNUMBER, tUNUMBER): Now of type <textintval>.
114535         (date, number, to_year): Use width of number in digits, not its value,
114536         to determine whether it's a 2-digit year, or a 2-digit time.
114537         (yylex): Store number of digits of numeric tokens.
114538         Reported by John Kendall.
114540         (parser_control): Changed from struct parser_control to typedef (for
114541         consistency).  All uses changed.
114543         (tID): Removed; not used.
114544         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
114546 2000-02-14  Paul Eggert  <eggert@twinsun.com>
114548         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
114549         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
114551 2000-02-12  Jim Meyering  <meyering@lucent.com>
114553         * lib/userspec.c (ISDIGIT): Define it.
114554         (isdigit): Remove definition.
114555         (is_number): Use ISDIGIT, not isdigit.
114556         <libintl.h>: Include.
114557         (_ and N_): Define.
114558         (parse_user_spec): Mark translatable strings.
114560 2000-02-10  Jim Meyering  <meyering@lucent.com>
114562         With these changes, nanosleep.[ch] are finally enough like the other
114563         lib/* replacement files to compile on a few more losing systems.
114565         * lib/nanosleep.h: Don't include config.h.
114566         Remove prototype from declaration of nanosleep.
114567         (PARAMS): Remove now-unneeded definition.
114568         * lib/nanosleep.c: #undef nanosleep.
114569         (rpl_nanosleep): Rename from nanosleep.
114571 2000-02-10  Jim Meyering  <meyering@lucent.com>
114573         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
114574         gnu_nanosleep to rpl_nanosleep.
114576 2000-02-09  Jim Meyering  <meyering@lucent.com>
114578         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
114579         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
114581 2000-02-08  Akim Demaille  <akim@epita.fr>
114583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
114584         `[' and `]' and remove uses of `changequote'.
114585         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
114586         (AC_SYS_LARGEFILE): Likewise.
114587         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
114588         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
114589         of changequote.
114590         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
114591         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
114592         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
114593         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
114595 2000-02-05  Jim Meyering  <meyering@lucent.com>
114597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
114598         Remove explicit use of AC_HEADER_TIME.  It is required by
114599         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
114600         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
114601         in autoconf whereby the expansion of the latter ended up preceding
114602         the expansion of its prerequisite, AC_HEADER_TIME.
114603         Reported by Volker Borchert.
114605 2000-02-03  Jim Meyering  <meyering@lucent.com>
114607         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
114609 2000-02-03  Jim Meyering  <meyering@lucent.com>
114611         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
114612         rather than with `#if HAVE_UTMPNAME'.
114614 2000-02-02  Jim Meyering  <meyering@lucent.com>
114616         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
114617         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
114618         Reported by Eli Zaretskii.
114620 2000-02-01  Jim Meyering  <meyering@lucent.com>
114622         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
114624 2000-01-31  Jim Meyering  <meyering@lucent.com>
114626         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
114627         functions.  Add the time.h and sys/time.h headers along with the
114628         AC_REQUIRE'ment of AC_HEADER_TIME.
114630 2000-01-31  Jim Meyering  <meyering@lucent.com>
114632         * lib/nanosleep.h (nanosleep): Guard declaration with
114633         `#if ! HAVE_DECL_NANOSLEEP'.
114634         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
114635         the declaration in that vendor's sys/timers.h.
114636         Reported by Christian Krackowizer.
114638         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
114639         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
114640         (ISPRINT): Likewise.
114641         Reported by Tom Tromey.
114643 2000-01-30  Jim Meyering  <meyering@lucent.com>
114645         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
114647         * m4/prereq.m4 (utmp_includes): Define.
114648         Check for ut_user and ut_name members in both struct utmpx
114649         and struct utmp.
114651 2000-01-30  Jim Meyering  <meyering@lucent.com>
114653         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
114654         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
114655         header files where only utmpx.ut_user is declared.
114657         * lib/readutmp.h (UT_USER): Define.
114659 2000-01-29  Jim Meyering  <meyering@lucent.com>
114661         * m4/lib-check.m4: New file containing library-related checks from
114662         fileutils and sh-utils (textutils had none).
114664 2000-01-28  Jim Meyering  <meyering@lucent.com>
114666         * m4/perl.m4: Change format of warning message to look more like that
114667         from the missing script.  Suggestion from François Pinard.
114669 2000-01-25  Jim Meyering  <meyering@lucent.com>
114671         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
114672         well as time.h in the compile check.
114673         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
114674         Fix typo in cross-compiling case: s/yes/no/.
114676 2000-01-23  Jim Meyering  <meyering@lucent.com>
114678         * m4/jm-macros.m4: Move df-related tests here from
114679         fileutils/configure.in
114681         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
114682         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
114684         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
114685         s/space/ac_fsusage_space/.
114686         (jm_FILE_SYSTEM_USAGE): Take two parameters.
114688         * m4/ftruncate.m4: New file (derived from part of
114689         fileutils/configure.in).
114690         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
114691         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
114693         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
114694         AC_SUBST these here, rather than just in sh-util/configure.in, so
114695         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
114696         all the same.
114697         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
114698         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
114699         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
114700         (AC_SUBST(POW_LIBM)): Likewise.
114701         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
114703 2000-01-23  Jim Meyering  <meyering@lucent.com>
114705         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
114706         obstack.c.
114708 2000-01-22  Jim Meyering  <meyering@lucent.com>
114710         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
114712         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
114714         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
114715         configure.in
114716         (AC_CHECK_HEADERS): Likewise for sh-utils.
114717         (AC_CHECK_HEADERS): Likewise for textutils.
114718         Merge the three lists of headers.
114720         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
114721         from fileutils' configure.in.
114723         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
114724         code. Moved tests into their own function (_jm_DECL_HEADERS) in
114725         check-decl.m4.
114727         * m4/check-decl.m4: Use #if rather than #ifdef.
114728         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
114729         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
114730         (_jm_DECL_HEADERS): Define new function.
114731         (jm_CHECK_DECLARATIONS): Require it.
114733 2000-01-22  Jim Meyering  <meyering@lucent.com>
114735         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
114736         [! HAVE_DECL_STRTOULL]: Declare strtoull.
114737         Required for some AIX systems.  Reported by Christian Krackowizer.
114738         [TESTING] (main): New function.
114740         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
114741         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
114742         letters.
114744         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
114745         iswprint.
114747         * lib/strverscmp.c (ISDIGIT): Define.
114748         (strverscmp): Use ISDIGIT, not isdigit.
114750 2000-01-19  Jim Meyering  <meyering@lucent.com>
114752         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
114753         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
114754         defines `struct timespec' in <sys/time.h>
114756         * m4/c-bs-a.m4: Remove uses of changequote altogether.
114757         Thanks to Akim for explaining.
114759 2000-01-17  Paul Eggert  <eggert@twinsun.com>
114761         * lib/nanosleep.c (nanosleep):
114762         Don't use SA_INTERRUPT to decide whether to call sigaction, as
114763         POSIX.1 doesn't require SA_INTERRUPT and some systems
114764         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
114765         it's been part of POSIX.1 since day 1 (in 1988).
114767 2000-01-17  Jim Meyering  <meyering@lucent.com>
114769         * lib/interlock: Remove unused file.  Reported by François Pinard.
114771 2000-01-16  Paul Eggert  <eggert@twinsun.com>
114773         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
114774         alert, backslash, formfeed, and vertical tab unnecessarily in
114775         shell quoting style.
114777 2000-01-16  Jim Meyering  <meyering@lucent.com>
114779         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
114780         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
114781         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
114782         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
114784 2000-01-16  Jim Meyering  <meyering@lucent.com>
114786         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
114787         because the latter didn't work.
114789 2000-01-15  Jim Meyering  <meyering@lucent.com>
114791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
114792         (AC_REPLACE_FUNCS): Add memcpy and memset.
114793         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
114794         Add strpbrk.
114795         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
114797 2000-01-12  Jim Meyering  <meyering@lucent.com>
114799         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
114800         (jm_PREREQ): Use it.
114801         (jm_PREREQ_READUTMP): New macro.
114802         (jm_PREREQ): Use it.
114804 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114806         Quote multibyte characters correctly.
114807         * m4/c-bs-a.m4: New file.
114808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
114809         (jm_PREREQ): Use it.
114811 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114813         * m4/uintmax_t.m4: Port to autoconf 2.13.
114815 2000-01-08  Jim Meyering  <meyering@ascend.com>
114817         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
114818         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
114820 2000-01-04  Jim Meyering  <meyering@ascend.com>
114822         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
114823         jm_STRUCT_DIRENT_D_TYPE.
114824         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
114825         jm_STRUCT_DIRENT_D_INO.
114826         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
114827         jm_STRUCT_UTIMBUF.
114828         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
114829         renamings.
114830         * m4/utime.m4: Likewise.
114832         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
114833         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
114835 2000-01-03  Paul Eggert  <eggert@twinsun.com>
114837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
114838         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
114840 2000-01-02  Jim Meyering  <meyering@ascend.com>
114842         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
114843         remember if this is necessary.
114845 1999-12-26  Jim Meyering  <meyering@ascend.com>
114847         * m4/jm-macros.m4: Use it here.
114848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
114850 1999-12-23  Jim Meyering  <meyering@ascend.com>
114852         * m4/jm-macros.m4: Check for clock_gettime (moved from
114853         fileutils/configure.in)
114854         Check for gettimeofday.
114856 1999-12-20  Jim Meyering  <meyering@ascend.com>
114858         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
114859         autoconf-2.14a-1999-12-20.
114861 1999-12-19  Jim Meyering  <meyering@ascend.com>
114863         * m4/lstat-slash.m4: New file.
114864         * m4/jm-macros.m4: Use the new macro:
114865         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114867 1999-12-07  Jim Meyering  <meyering@ascend.com>
114869         * m4/perl.m4: Require that File::Compare be available, too.
114870         Too many systems seem to lack it.
114872         * m4/strftime.m4: Add checks for most of the cpp macros tested in
114873         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
114875 1999-11-18  Paul Eggert  <eggert@twinsun.com>
114877         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
114878         problem with the QNX 4.25 shell, which doesn't propagate exit
114879         status of failed commands inside shell assignments.
114881 1999-11-17  Jim Meyering  <meyering@ascend.com>
114883         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
114885 1999-11-07  Jim Meyering  <meyering@ascend.com>
114887         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
114889 1999-11-06  Jim Meyering  <meyering@ascend.com>
114891         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
114892         * m4/jm-macros.m4 (jm_MACROS): Use it here.
114894 1999-11-05  Jim Meyering  <meyering@ascend.com>
114896         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
114897         configure.in of textutils, fileutils, and sh-utils into this one
114898         (shared between those packages) file.
114899         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
114900         AC_STRUCT_ST_BLKSIZE.
114902 1999-11-03  Jim Meyering  <meyering@ascend.com>
114904         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
114905         of AC_CHECK_TYPE checks includes unistd.h.
114906         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
114907         Suggestion from Akim Demaille.
114909 1999-10-30  Jim Meyering  <meyering@ascend.com>
114911         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
114912         m4-quoted string.
114913         * m4/ls-mntd-fs.m4: Likewise.
114914         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
114915         * m4/jm-winsz1.m4: Likewise.
114917         * m4/const.m4: Remove file, since the fix made it into the experimental
114918         version of autoconf.
114919         * m4/mktime.m4: Likewise.
114921         * m4/check-type.m4: Remove file, now that the latest version of
114922         AC_CHECK_TYPE takes a third arg to specify additional #includes.
114924         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
114925         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
114926         AC_CHECK_TYPE.
114928 1999-10-04  Jim Meyering  <meyering@ascend.com>
114930         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
114932 1999-09-22  Paul Eggert  <eggert@twinsun.com>
114934         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
114935         2.95.1 bug with HP-UX 10.20.
114937 1999-09-17  Jim Meyering  <meyering@ascend.com>
114939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
114940         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
114941         due to missing strdup (against sh-utils-2.0).
114943 1999-08-29  Jim Meyering  <meyering@ascend.com>
114945         * m4/jm-macros.m4: Require jm_BISON.
114946         * m4/bison.m4: New file.
114948 1999-08-17  Paul Eggert  <eggert@twinsun.com>
114950         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
114951         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
114953 1999-08-05  Jim Meyering  <meyering@ascend.com>
114955         * m4/getline.m4: Rename test file from conftestdata to conftest.data
114956         to avoid conflicts with `conftest' on 8+3 filesystems.
114957         Suggestion from Eli Zaretskii.
114959 1999-08-04  Jim Meyering  <meyering@ascend.com>
114961         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
114962         fileutils and sh-utils (textutils's getline test was inadequate).
114963         (AM_FUNC_GETLINE): Run this test.
114964         (AC_CHECK_FUNCS): Check for getdelim.
114965         Reported by Bob Proulx.
114967 1999-08-02  Jim Meyering  <meyering@ascend.com>
114969         * m4/jm-macros.m4: Add a comment.
114971 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114973         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
114974         <inttypes.h> defines strtoumax as a macro (and not as a
114975         function).
114977 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114979         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
114980         that we can shift, multiply and divide unsigned long long
114981         values; Ultrix cc can't do it.
114983 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114985         * m4/mktime.m4: New file, which is a preview of what should appear
114986         in the next public autoconf release.
114988 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114990         * m4/lfs.m4: Remove this file.
114991         * m4/largefile.m4: New file.  It contains the old contents of
114992         lfs.m4, except that all names with prefix AC_LFS have been
114993         changed to use the prefix AC_SYS_LARGEFILE instead, to be
114994         compatible with future autoconf versions.  Also, some minor m4
114995         quoting problems have been fixed.
114997 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114999         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
115000         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
115001         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
115002         and simplify the shell code.
115004 1999-08-01  Jim Meyering  <meyering@ascend.com>
115006         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
115007         m4.
115009 1999-07-20  Jim Meyering  <meyering@ascend.com>
115011         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
115013 1999-07-15  Jim Meyering  <meyering@ascend.com>
115015         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
115017 1999-05-22  Jim Meyering  <meyering@ascend.com>
115019         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
115021 1999-05-20  Jim Meyering  <meyering@ascend.com>
115023         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
115024         Add a colon after each `then' in case $4 is empty.
115026 1999-05-16  Jim Meyering  <meyering@ascend.com>
115028         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
115030 1999-05-10  Jim Meyering  <meyering@ascend.com>
115032         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
115034         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
115035         AC_FUNC_MKTIME.
115037 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
115039         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
115041 1999-05-04  Paul Eggert  <eggert@twinsun.com>
115043         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
115044         not CPPFLAGS, so that linking works correctly in IRIX.
115046 1999-04-30  Paul Eggert  <eggert@twinsun.com>
115048         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
115050 1999-04-20  Paul Eggert  <eggert@twinsun.com>
115052         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
115053         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
115054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
115055         jm_AC_TYPE_UNSIGNED_LONG_LONG.
115056         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
115058         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
115060 1999-04-20  Jim Meyering  <meyering@ascend.com>
115062         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
115063         AC_REPLACE xstroull if necessary.  From Paul Eggert.
115064         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
115066 1999-04-18  Jim Meyering  <meyering@ascend.com>
115068         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
115069         * m4/jm-macros.m4: Use it.
115071 1999-04-06  Jim Meyering  <meyering@ascend.com>
115073         * m4/strftime.m4: Remove test for %f.
115075 1999-03-29  Jim Meyering  <meyering@ascend.com>
115077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
115078         superset of the AC_TYPE_* checks in the textutils, fileutils,
115079         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
115080         AC_TYPE_PID_T.
115082 1999-03-28  Jim Meyering  <meyering@ascend.com>
115084         * m4/jm-macros.m4: Define GNU_PACKAGE here.
115085         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
115086         replaced e.g., in the *.sh files of the sh-utils.
115088 1999-03-20  Jim Meyering  <meyering@ascend.com>
115090         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
115091         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
115092         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
115094 1999-03-19  Jim Meyering  <meyering@ascend.com>
115096         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
115098 1999-03-12  Jim Meyering  <meyering@ascend.com>
115100         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
115102 1999-03-07  Jim Meyering  <meyering@ascend.com>
115104         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
115105         declared.
115107 1999-02-17  Jim Meyering  <meyering@ascend.com>
115109         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
115110         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
115112 1999-02-07  Jim Meyering  <meyering@ascend.com>
115114         * m4/group-member.m4: New file -- extracted from sh-utils'
115115         configure.in.
115117         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
115118         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
115120 1999-02-06  Jim Meyering  <meyering@ascend.com>
115122         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
115123         * m4/fnmatch.m4: Likewise.
115124         * m4/getgroups.m4: Likewise.
115125         * m4/lstat.m4: Likewise.
115126         * m4/malloc.m4: Likewise.
115127         * m4/putenv.m4: Likewise.
115128         * m4/realloc.m4: Likewise.
115129         * m4/regex.m4: Likewise.
115130         * m4/stat.m4: Likewise.
115131         * m4/strftime.m4: Likewise.
115132         Suggestion from Alain Magloire.
115134         * m4/chown.m4: Use `.$ac_objext', not `.o'.
115135         * m4/fnmatch.m4: Likewise.
115136         * m4/getgroups.m4: Likewise.
115137         * m4/getline.m4: Likewise.
115138         * m4/lstat.m4: Likewise.
115139         * m4/malloc.m4: Likewise.
115140         * m4/memcmp.m4: Likewise.
115141         * m4/putenv.m4: Likewise.
115142         * m4/realloc.m4: Likewise.
115143         * m4/regex.m4: Likewise.
115144         * m4/stat.m4: Likewise.
115145         * m4/strftime.m4: Likewise.
115146         Suggestion from Alain Magloire.
115148         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
115149         an argument.
115151         * m4/regex.m4: Add a run-time Test for proper operation of
115152         re_compile_pattern.
115154 1999-01-31  Jim Meyering  <meyering@ascend.com>
115156         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
115158 1999-01-30  Jim Meyering  <meyering@ascend.com>
115160         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
115162         * m4/jm-mktime.m4: Make this a wrapper around the official
115163         AM_FUNC_MKTIME rather than my private copy, now that the official one
115164         is up to date.
115165         * m4/mktime.m4: Remove file.
115167         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
115168         * m4/uptime.m4: Likewise.
115169         * m4/uintmax_t.m4: Likewise.
115171 1999-01-28  Jim Meyering  <meyering@ascend.com>
115173         * m4/jm-macros.m4: Use jm_AFS.
115174         * m4/afs.m4: New file (from fileutils' configure.in).
115176         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
115177         * m4/chown.m4: Likewise.
115178         * m4/d-ino.m4: Likewise.
115179         * m4/d-type.m4: Likewise.
115180         * m4/fnmatch.m4: Likewise.
115181         * m4/getgroups.m4: Likewise.
115182         * m4/gettext.m4: Likewise.
115183         * m4/jm-mktime.m4: Likewise.
115184         * m4/jm-winsz2.m4: Likewise.
115185         * m4/lcmessage.m4: Likewise.
115186         * m4/ls-mntd-fs.m4: Likewise.
115187         * m4/malloc.m4: Likewise.
115188         * m4/memcmp.m4: Likewise.
115189         * m4/putenv.m4: Likewise.
115190         * m4/realloc.m4: Likewise.
115191         * m4/st_mtim.m4: Likewise.
115192         * m4/strftime.m4: Likewise.
115194 1999-01-16  Jim Meyering  <meyering@ascend.com>
115196         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
115197         (ARGMATCH_DIE_DECL): Define.
115199 1999-01-12  Jim Meyering  <meyering@ascend.com>
115201         * m4/Makefile.am.in: Rewrite to avoid using fmt.
115202         Reported by Lars Hecking.
115204 1999-01-10  Jim Meyering  <meyering@ascend.com>
115206         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
115207         gross kludge.
115208         * m4/inttypes_h.m4: Likewise.
115209         * m4/lstat.m4: Likewise.
115210         * m4/malloc.m4: Likewise.
115211         * m4/readdir.m4: Likewise.
115212         * m4/realloc.m4: Likewise.
115213         * m4/st_dm_mode.m4: Likewise.
115214         * m4/stat.m4: Likewise.
115215         * m4/utimbuf.m4: Likewise.
115216         * m4/utimes.m4: Likewise.
115218         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
115219         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
115220         comments in config.h.in are meaningful.
115222         * m4/jm-macros.m4: Require autoconf-2.13 here.
115224         * m4/regex.m4: By default, don't use the included regex.c on systems
115225         with glibc 2.  Suggestion from Uli Drepper.
115227 1999-01-02  Jim Meyering  <meyering@ascend.com>
115229         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
115231 1998-12-18  Jim Meyering  <meyering@ascend.com>
115233         * m4/Makefile.am.in (Makefile.am): Simplify rule.
115234         Based on a suggestion from Lars Hecking.
115236 1998-11-16  Paul Eggert  <eggert@twinsun.com>
115238         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
115240 1998-11-16  Jim Meyering  <meyering@ascend.com>
115242         * m4/lfs.m4: Double-quote the `uname...` expression.
115244 1998-11-14  Jim Meyering  <meyering@ascend.com>
115246         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
115247         * m4/stat.m4: Likewise.
115249 1998-11-03  Jim Meyering  <meyering@ascend.com>
115251         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
115252         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
115254 1998-10-18  Jim Meyering  <meyering@ascend.com>
115256         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
115258 1998-10-17  Jim Meyering  <meyering@ascend.com>
115260         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
115261         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
115262         calls for those previously hard-coded headers.  Instead, take a new
115263         parameter.
115264         (jm_CHECK_DECLARATIONS): Reflect interface change.
115265         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
115266         (jm_CHECK_DECL_LOCALTIME_R): New macro.
115268         * m4/mktime.m4: Test for spring-forward gap before long-running test.
115270 1998-10-14  Jim Meyering  <meyering@ascend.com>
115272         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
115273         instead of "TZ=America/Vancouver".  From Paul Eggert.
115275 1998-10-11  Jim Meyering  <meyering@ascend.com>
115277         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
115278         This adds a test for a recently added compatibility fix for mktime.c.
115279         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
115281 1998-09-27  Jim Meyering  <meyering@ascend.com>
115283         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
115285         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
115286         ../configure.in, including a change from Gordon Matzigkeit to allow
115287         cross-compiling for the Hurd.
115289         * m4/glibc.m4: New file/macro to test for the GNU C Library
115290         versions 1 and 2.  From Gordon Matzigkeit.
115291         Indent.
115293 1998-09-21  Jim Meyering  <meyering@ascend.com>
115295         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
115297 1998-08-18  Paul Eggert  <eggert@twinsun.com>
115299         Port nanosecond-resolution times to UnixWare 2.1.2 and
115300         pedantic Solaris 2.6.
115302         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
115303         AC_STRUCT_ST_MTIM.
115304         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
115305         Generate name of ns member, instead of just 1 or undef.
115306         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
115308 1998-08-15  Jim Meyering  <meyering@ascend.com>
115310         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
115311         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
115312         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
115313         instead of jm_TYPE_SSIZE_T.
115315 1998-08-12  Jim Meyering  <meyering@ascend.com>
115317         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
115319 1998-08-02  Jim Meyering  <meyering@ascend.com>
115321         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
115322         in acconfig.h manually.
115324 1998-07-31  Paul Eggert  <eggert@twinsun.com>
115326         * m4/st_mtim.m4: New file.
115328 1998-07-28  Jim Meyering  <meyering@ascend.com>
115330         * m4/utimes.m4: Undef stat.
115332 1998-07-25  Jim Meyering  <meyering@ascend.com>
115334         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
115335         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
115337 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
115339         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
115340         uid and gid actually remain unchanged.
115342 1998-07-07  Jim Meyering  <meyering@ascend.com>
115344         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
115346 1998-07-04  Jim Meyering  <meyering@ascend.com>
115348         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
115349         to prove that this macro can be used in packages without regex.c.
115351 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
115353         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
115354         is to be used.
115356 1998-07-03  Jim Meyering  <meyering@ascend.com>
115358         * m4/gettext.m4: Add -lintl if it's found to be necessary.
115360         * m4/gettext.m4: New file -- from gettext-0.10.35.
115361         * m4/lcmessage.m4: Likewise.
115362         * m4/progtest.m4: Likewise.
115364         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
115365         * m4/jm-macros.m4: Require the new macro.
115367 1998-06-29  Jim Meyering  <meyering@ascend.com>
115369         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
115370         for the definition of NGROUPS (used in a system header included
115371         by sys/mount.h).
115373 1998-06-28  Jim Meyering  <meyering@ascend.com>
115375         * m4/ls-mntd-fs.m4: New file.
115376         * m4/fstypename.m4: New file.
115378         * m4/jm-macros.m4: Require the new macro.
115379         * m4/jm-glibc-io.m4: New file.
115381 1998-05-19  Jim Meyering  <meyering@ascend.com>
115383         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
115384         * m4/lchown.m4: New file.
115386         * m4/Makefile.am.in: New file.
115387         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
115389 1998-05-14  Jim Meyering  <meyering@ascend.com>
115391         * m4/Makefile.am (EXTRA_DIST): Add them.
115392         * m4/jm-macros.m4: New file.
115393         * m4/utimbuf.m4: New file.
115395 1998-05-12  Jim Meyering  <meyering@ascend.com>
115397         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
115399 1998-05-11  Jim Meyering  <meyering@ascend.com>
115401         * m4/isc-posix.m4: New file.
115403 1998-05-10  Jim Meyering  <meyering@ascend.com>
115405         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
115407 1998-05-09  Jim Meyering  <meyering@ascend.com>
115409         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
115410         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
115411         with automake.
115413         * m4/ssize_t.m4: New file.
115414         * m4/mktime.m4: Remove file -- the new automake has this now.
115416 1998-04-26  Jim Meyering  <meyering@ascend.com>
115418         * m4/assert.m4: New file.
115419         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
115421 1998-04-05  Jim Meyering  <meyering@ascend.com>
115423         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
115424         (jm_PREREQ): Use it here.
115426 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
115428         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
115429         in acconfig.h.
115431 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
115433         * m4/prereq.m4: New file.
115434         * m4/error.m4: New file.
115435         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
115437 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
115439         * m4/getline.m4: Don't set am_cv_func_working_getline before the
115440         cache-check for the same variable -- that defeated the purpose of
115441         the test; the test program was never run.  This was a problem only
115442         on systems with losing getline functions -- HP-UX 10.20 is one.
115443         Reported by Bjorn Helgaas.
115445 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
115447         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
115449 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
115451         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
115453         * m4/const.m4: New file.  Use an initializer in this declaration
115454         typedef int charset[2]; const charset x;
115455         Reported by Bob Glickstein.
115457 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
115459         * m4/chown.m4: Fix reversed types on -1 args to chown.
115460         From Kaveh Ghazi.
115462 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
115464         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
115465         Add lseek and memchr.
115467         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
115468         T.E.Dickey <dickey@clark.net> said that some older preprocessors
115469         have a 20-character limit on names.
115471 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
115473         * m4/inttypes_h.m4: New file.
115474         * m4/uintmax_t.m4: New file.
115475         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
115478         -----
115480         Local Variables:
115481         coding: utf-8
115482         End:
115484         Copyright (C) 1997-2018 Free Software Foundation, Inc.
115486         Copying and distribution of this file, with or without
115487         modification, are permitted provided the copyright notice
115488         and this notice are preserved.